Listview.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.NewDoc.Listview" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Listview</title>
  6. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. <script language="javascript">
  11. function selectAll(){
  12. var len=document.Listview.elements.length;
  13. var i;
  14.     for (i=0;i<len;i++){
  15. if (document.Listview.elements[i].type=="checkbox"){
  16.         document.Listview.elements[i].checked=true;
  17.  }
  18. }
  19. }
  20. function unSelectAll(){
  21.           var len=document.Listview.elements.length;
  22.           var i;
  23.           for (i=0;i<len;i++){
  24.                if (document.Listview.elements[i].type=="checkbox"){
  25.                   document.Listview.elements[i].checked=false; 
  26.                }   
  27.           } 
  28.     }
  29. </script>
  30. <LINK href="../../../Css/basiclayout.css" type="text/css" rel="stylesheet">
  31. </HEAD>
  32. <body leftMargin="0" topMargin="0">
  33. <form id="Listview" method="post" runat="server">
  34. <FONT face="宋体">
  35. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  36. <TBODY>
  37. <tr>
  38. <td vAlign="top" ><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  39. <TBODY>
  40. <TR height="30">
  41. <TD class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  42. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../../DataImages/myDoc2.gif" width="16"></FONT></TD>
  43. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  44. align="right"><font color="#006699">我的文档</font></TD>
  45. <TD class="GbText" background="../../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体"><INPUT class="redButtonCss" onclick="selectAll()" type="button" value="全部选择">
  46. <input type="button" onclick="unSelectAll()" value="全部取消" class="redButtonCss">&nbsp;
  47. <asp:Button id="btnThowAwayDocument" runat="server" Text="丢弃文档" CssClass="redButtonCss"></asp:Button>&nbsp;</FONT></TD>
  48. </FONT></TD></TR></TBODY></TABLE></TD></TR>
  49. <TR>
  50. <TD>
  51. <TABLE class="gbtext" id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
  52. <TR>
  53. <TD align="center" width="90" background="../../../images/maillistbutton2.gif" height="24"
  54. class="Newbutton">&nbsp;已归档</TD>
  55. <TD align="center" width="90" background="../../../images/maillistbutton1.gif" height="24">&nbsp;<A href="../Approve/Listview.aspx" class="Newbutton">待审批</A></TD>
  56. <TD align="right"><FONT face="宋体">&nbsp; </FONT>
  57. </TD>
  58. </TR>
  59. </TABLE>
  60. </TD>
  61. </TR>
  62. <TR>
  63. <TD><asp:datagrid id="dgDocList" runat="server" DataKeyField="DocID" ShowFooter="True" OnSortCommand="DataGrid_SortCommand"
  64. CellPadding="3" BorderWidth="1px" BorderColor="#93BEE2" OnPageIndexChanged="DataGrid_PageChanged"
  65. PageSize="15" Width="100%" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"
  66. AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" Font-Names="Arial">
  67. <AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" BackColor="#E8F4FF"></AlternatingItemStyle>
  68. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  69. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
  70. BackColor="#337FB2"></HeaderStyle>
  71. <FooterStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  72. <Columns>
  73. <asp:TemplateColumn HeaderText="◎">
  74. <HeaderStyle Width="5%"></HeaderStyle>
  75. <ItemTemplate>
  76. <FONT face="宋体">
  77. <asp:CheckBox id="DocID" runat="server"></asp:CheckBox></FONT>
  78. </ItemTemplate>
  79. </asp:TemplateColumn>
  80. <asp:TemplateColumn SortExpression="DocTitle" HeaderText="文档标题">
  81. <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
  82. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  83. <ItemTemplate>
  84. <a href='../Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  85. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  86. </a>
  87. </ItemTemplate>
  88. </asp:TemplateColumn>
  89. <asp:BoundColumn DataField="DocViewedTimes" SortExpression="DocViewedTimes" HeaderText="浏览次数">
  90. <HeaderStyle Width="10%"></HeaderStyle>
  91. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  92. </asp:BoundColumn>
  93. <asp:TemplateColumn SortExpression="DocApprover" HeaderText="审批人">
  94. <HeaderStyle Width="10%"></HeaderStyle>
  95. <ItemTemplate>
  96. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocApprover").ToString()) %>'>
  97. </asp:Label>
  98. </ItemTemplate>
  99. </asp:TemplateColumn>
  100. <asp:TemplateColumn SortExpression="DocAddedBy" HeaderText="上传人">
  101. <HeaderStyle Width="10%"></HeaderStyle>
  102. <ItemTemplate>
  103. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'>
  104. </asp:Label>
  105. </ItemTemplate>
  106. </asp:TemplateColumn>
  107. <asp:HyperLinkColumn DataNavigateUrlField="ClassID" DataNavigateUrlFormatString="../Project.aspx?ClassID={0}"
  108. DataTextField="ClassName" SortExpression="ClassName" HeaderText="所属项目">
  109. <HeaderStyle Width="20%"></HeaderStyle>
  110. <ItemStyle Font-Size="Smaller" HorizontalAlign="Center"></ItemStyle>
  111. </asp:HyperLinkColumn>
  112. <asp:TemplateColumn SortExpression="DocAddedDate" HeaderText="上传日期">
  113. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  114. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  115. <ItemTemplate>
  116. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DocAddedDate") %>'>
  117. </asp:Label>
  118. </ItemTemplate>
  119. </asp:TemplateColumn>
  120. </Columns>
  121. <PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  122. ForeColor="White" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  123. </asp:datagrid></TD>
  124. </TR>
  125. </TBODY></TABLE></FONT>
  126. </form>
  127. </body>
  128. </HTML>