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

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Query.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. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  11. </HEAD>
  12. <body leftMargin="1" topMargin="1" rightMargin="1" MS_POSITIONING="GridLayout">
  13. <form id="Listview" method="post" runat="server">
  14. <FONT face="宋体">
  15. <TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  16. <tr>
  17. <td>
  18. <TABLE class="gbtext" id="tabDoc" cellSpacing="0" cellPadding="0" width="90" border="0"
  19. runat="server">
  20. <TR>
  21. <TD background ="../../images/maillistbutton2.gif" align="center"
  22. height="24" class="gbtext" >文 档</TD>
  23. </TR>
  24. </TABLE>
  25. </td>
  26. </tr>
  27. <TR>
  28. <TD>
  29. <asp:datagrid id="dgDocList" runat="server" Width="100%" AllowSorting="True" AutoGenerateColumns="False"
  30. AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" OnPageIndexChanged="DataGrid_PageChanged"
  31. DataKeyField="DocID" PageSize="15" BorderWidth="1px" CellPadding="3" BorderColor="#93BEE2"
  32. BorderStyle="None" BackColor="White">
  33. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  34. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  35. <ItemStyle ForeColor="#003399" VerticalAlign="Middle" BackColor="White"></ItemStyle>
  36. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="10px" ForeColor="White"
  37. VerticalAlign="Top" BackColor="#337FB2"></HeaderStyle>
  38. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" ForeColor="#003399"
  39. VerticalAlign="Bottom" BackColor="#99CCCC"></FooterStyle>
  40. <Columns>
  41. <asp:TemplateColumn HeaderText="选择">
  42. <HeaderStyle Width="5%"></HeaderStyle>
  43. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
  44. <ItemTemplate>
  45. <asp:CheckBox id="Checkbox1" Checked="False" Runat="server"></asp:CheckBox>
  46. </ItemTemplate>
  47. </asp:TemplateColumn>
  48. <asp:TemplateColumn HeaderText="文档主题">
  49. <HeaderStyle Width="35%"></HeaderStyle>
  50. <ItemStyle Font-Size="X-Small"></ItemStyle>
  51. <ItemTemplate>
  52. <a href='../UnitiveDocument/Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  53. <%# DataBinder.Eval(Container.DataItem,"DocTitle") %>
  54. </a>
  55. </ItemTemplate>
  56. </asp:TemplateColumn>
  57. <asp:BoundColumn DataField="DocViewedTimes" HeaderText="浏览次数">
  58. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="10%"></HeaderStyle>
  59. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  60. <FooterStyle Font-Size="XX-Small"></FooterStyle>
  61. </asp:BoundColumn>
  62. <asp:BoundColumn DataField="DocApprover" HeaderText="审批人">
  63. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  64. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  65. </asp:BoundColumn>
  66. <asp:BoundColumn DataField="DocAddedBy" HeaderText="上传人">
  67. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  68. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  69. <FooterStyle Font-Size="X-Small"></FooterStyle>
  70. </asp:BoundColumn>
  71. <asp:BoundColumn DataField="DocLastViewer" HeaderText="最后浏览者">
  72. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  73. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  74. </asp:BoundColumn>
  75. <asp:TemplateColumn HeaderText="上传日期">
  76. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  77. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  78. <ItemTemplate>
  79. <asp:Label runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.DocAddedDate").ToString()).ToString("yyyy-MM-dd") %>'>
  80. </asp:Label>
  81. </ItemTemplate>
  82. </asp:TemplateColumn>
  83. </Columns>
  84. <PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  85. BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  86. </asp:datagrid></TD>
  87. </TR>
  88. <tr>
  89. <td>&nbsp;</td>
  90. </tr>
  91. <tr>
  92. <td>&nbsp;
  93. <TABLE class="gbtext" id="tabMail" cellSpacing="0" cellPadding="0" width="90" border="0"
  94. runat="server">
  95. <TR>
  96. <TD class="gbtext"  background="../../images/maillistbutton2.gif"
  97. align="center" height="24" >邮 件</TD>
  98. </TR>
  99. </TABLE>
  100. </td>
  101. </tr>
  102. <TR>
  103. <TD>
  104. <asp:datagrid id="dgMailList" runat="server" DataKeyField="MailID" PagerStyle-HorizontalAlign="Right"
  105. PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True"
  106. Width="100%" BackColor="White" BorderStyle="None" BorderColor="#93BEE2" CellPadding="3" BorderWidth="1px"
  107. PageSize="15">
  108. <SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
  109. <AlternatingItemStyle HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
  110. <ItemStyle HorizontalAlign="Center" ForeColor="#003399" VerticalAlign="Middle" BackColor="White"></ItemStyle>
  111. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="10px" ForeColor="White"
  112. VerticalAlign="Top" BackColor="#337FB2"></HeaderStyle>
  113. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" ForeColor="#003399"
  114. VerticalAlign="Bottom" BackColor="#99CCCC"></FooterStyle>
  115. <Columns>
  116. <asp:TemplateColumn HeaderText="选择">
  117. <HeaderStyle Width="5%"></HeaderStyle>
  118. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
  119. <ItemTemplate>
  120. <asp:CheckBox id="grpMailID" Checked="False" Runat="server"></asp:CheckBox>
  121. </ItemTemplate>
  122. </asp:TemplateColumn>
  123. <asp:TemplateColumn HeaderText="邮件主题">
  124. <HeaderStyle HorizontalAlign="Left" Width="45%"></HeaderStyle>
  125. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  126. <ItemTemplate>
  127. <A href='../UnitiveDocument/Mail/ReadMail.aspx?MailId=<%# DataBinder.Eval(Container.DataItem,"MailID") %>'>
  128. <%# DataBinder.Eval(Container.DataItem,"MailSubject") %>
  129. </A>
  130. <%# DataBinder.Eval(Container.DataItem,"attnumber").ToString()=="0"?"":"<img src='../../DataImages/attach.gif' border='0'>" %>
  131. </ItemTemplate>
  132. </asp:TemplateColumn>
  133. <asp:TemplateColumn HeaderText="发送者">
  134. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="10%"></HeaderStyle>
  135. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  136. <ItemTemplate>
  137. <asp:Label runat="server" Text='<%#GetUserRealName(DataBinder.Eval(Container, "DataItem.MailSender").ToString()) %>'>
  138. </asp:Label>
  139. </ItemTemplate>
  140. <EditItemTemplate>
  141. <asp:TextBox runat="server" Text='<%#GetUserRealName(DataBinder.Eval(Container, "DataItem.MailSender").ToString()) %>'>
  142. </asp:TextBox>
  143. </EditItemTemplate>
  144. </asp:TemplateColumn>
  145. <asp:TemplateColumn HeaderText="接收者">
  146. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Width="10%"></HeaderStyle>
  147. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  148. <ItemTemplate>
  149. <asp:Label runat="server" Text='<%#GetUserRealName(DataBinder.Eval(Container, "DataItem.MailReceiverStr").ToString()) %>'>
  150. </asp:Label>
  151. </ItemTemplate>
  152. <EditItemTemplate>
  153. <asp:TextBox runat="server" Text='<%#GetUserRealName(DataBinder.Eval(Container, "DataItem.MailReceiverStr").ToString()) %>'>
  154. </asp:TextBox>
  155. </EditItemTemplate>
  156. </asp:TemplateColumn>
  157. <asp:TemplateColumn HeaderText="是否已读">
  158. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  159. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  160. <ItemTemplate>
  161. <%# (string)DataBinder.Eval(Container.DataItem,"MailReadFlag")=="False"?"<img src='../../Images/mailclose.gif'>":"<img src='../../Images/mailopen.gif'>" %>
  162. </ItemTemplate>
  163. </asp:TemplateColumn>
  164. <asp:BoundColumn DataField="MailSendDate" SortExpression="MailSendDate" HeaderText="日期">
  165. <HeaderStyle Font-Underline="True" HorizontalAlign="Center" Width="20%"></HeaderStyle>
  166. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  167. <FooterStyle Font-Size="XX-Small"></FooterStyle>
  168. </asp:BoundColumn>
  169. </Columns>
  170. <PagerStyle Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  171. BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  172. </asp:datagrid></TD>
  173. </TR>
  174. </TABLE>
  175. </FONT>
  176. </form>
  177. </body>
  178. </HTML>