Listview.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:6k
源码类别:

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

开发平台:

C#

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