Listview.aspx
资源名称:OA.rar [点击查看]
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:7k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
C#
- <%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.NewDoc.Listview" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>Listview</title>
- <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <script language="javascript">
- function selectAll(){
- var len=document.Listview.elements.length;
- var i;
- for (i=0;i<len;i++){
- if (document.Listview.elements[i].type=="checkbox"){
- document.Listview.elements[i].checked=true;
- }
- }
- }
- function unSelectAll(){
- var len=document.Listview.elements.length;
- var i;
- for (i=0;i<len;i++){
- if (document.Listview.elements[i].type=="checkbox"){
- document.Listview.elements[i].checked=false;
- }
- }
- }
- </script>
- <LINK href="../../../Css/basiclayout.css" type="text/css" rel="stylesheet">
- </HEAD>
- <body leftMargin="0" topMargin="0">
- <form id="Listview" method="post" runat="server">
- <FONT face="宋体">
- <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TBODY>
- <tr>
- <td vAlign="top" ><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TBODY>
- <TR height="30">
- <TD class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgColor="#c0d9e6"
- align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../../DataImages/myDoc2.gif" width="16"></FONT></TD>
- <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
- align="right"><font color="#006699">我的文档</font></TD>
- <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体"><INPUT class="redButtonCss" onclick="selectAll()" type="button" value="全部选择">
- <input type="button" onclick="unSelectAll()" value="全部取消" class="redButtonCss">
- <asp:Button id="btnThowAwayDocument" runat="server" Text="丢弃文档" CssClass="redButtonCss"></asp:Button> </FONT></TD>
- </FONT></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD>
- <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
- <TR>
- <TD align="center" width="90" background="../../../images/maillistbutton2.gif" height="24"
- class="Newbutton"> 已归档</TD>
- <TD align="center" width="90" background="../../../images/maillistbutton1.gif" height="24"> <A href="../Approve/Listview.aspx" class="Newbutton">待审批</A></TD>
- <TD align="right"><FONT face="宋体"> </FONT>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR>
- <TD><asp:datagrid id="dgDocList" runat="server" DataKeyField="DocID" ShowFooter="True" OnSortCommand="DataGrid_SortCommand"
- CellPadding="3" BorderWidth="1px" BorderColor="#93BEE2" OnPageIndexChanged="DataGrid_PageChanged"
- PageSize="15" Width="100%" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"
- AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" Font-Names="Arial">
- <AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#E8F4FF"></AlternatingItemStyle>
- <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
- <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
- BackColor="#337FB2"></HeaderStyle>
- <FooterStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
- <Columns>
- <asp:TemplateColumn HeaderText="◎">
- <HeaderStyle Width="5%"></HeaderStyle>
- <ItemTemplate>
- <FONT face="宋体">
- <asp:CheckBox id="DocID" runat="server"></asp:CheckBox></FONT>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:TemplateColumn SortExpression="DocTitle" HeaderText="文档标题">
- <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
- <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
- <ItemTemplate>
- <a href='../Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
- <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
- </a>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:BoundColumn DataField="DocViewedTimes" SortExpression="DocViewedTimes" HeaderText="浏览次数">
- <HeaderStyle Width="10%"></HeaderStyle>
- <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
- </asp:BoundColumn>
- <asp:TemplateColumn SortExpression="DocApprover" HeaderText="审批人">
- <HeaderStyle Width="10%"></HeaderStyle>
- <ItemTemplate>
- <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocApprover").ToString()) %>'>
- </asp:Label>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:TemplateColumn SortExpression="DocAddedBy" HeaderText="上传人">
- <HeaderStyle Width="10%"></HeaderStyle>
- <ItemTemplate>
- <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'>
- </asp:Label>
- </ItemTemplate>
- </asp:TemplateColumn>
- <asp:HyperLinkColumn DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?ClassID={0}"
- DataTextField="ClassName" SortExpression="ClassName" HeaderText="所属项目">
- <HeaderStyle Width="20%"></HeaderStyle>
- <ItemStyle Font-Size="Smaller" HorizontalAlign="Center"></ItemStyle>
- </asp:HyperLinkColumn>
- <asp:TemplateColumn SortExpression="DocAddedDate" HeaderText="上传日期">
- <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
- <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
- <ItemTemplate>
- <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DocAddedDate") %>'>
- </asp:Label>
- </ItemTemplate>
- </asp:TemplateColumn>
- </Columns>
- <PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
- ForeColor="White" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
- </asp:datagrid></TD>
- </TR>
- </TBODY></TABLE></FONT>
- </form>
- </body>
- </HTML>