Project.aspx
上传用户:cha0314
上传日期:2014-03-02
资源大小:12522k
文件大小:16k
源码类别:

C#编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Project.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Project" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Project</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. <script language="javascript">
  12. function MoveToTeam(a)
  13. {
  14. var ret;
  15. ret = window.showModalDialog("MoveTeam/TreeView.aspx?FromID=<%=classID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");
  16. if(ret>0)
  17. // frmAddRight.ObjID.value = ret;
  18. return false;
  19. }
  20. </script>
  21. <script language="JavaScript" src="../../Css/tr.js"></script>
  22. <style type="text/css">TD { FONT-SIZE: 9pt }
  23. </style>
  24. </HEAD>
  25. <body leftMargin="0" topMargin="0" MS_POSITIONING="GridLayout">
  26. <form id="Project" method="post" runat="server">
  27. <table height="345" cellSpacing="0" cellPadding="1" width="100%" align="right" border="0">
  28. <TBODY>
  29. <tr>
  30. <td class="text" vAlign="top" width="100%" height="57">
  31. <table class="GbText" height="68" cellSpacing="0" cellPadding="0" width="100%" border="0">
  32. <tr>
  33. <td width="60"><IMG height="68" src="../../Images/p_leftbg.gif" width="60"></td>
  34. <td align="middle" width="200" background="../../Images/p_leftcenterbg.gif">
  35. <table height="66" cellSpacing="0" cellPadding="0" width="100%" border="0">
  36. <tr>
  37. <td align="middle"><strong><font size="4"><asp:label id="lblClassName" runat="server" BorderColor="Transparent" Font-Size="Medium" Font-Names="楷体_GB2312"></asp:label></font></strong></td>
  38. </tr>
  39. <tr>
  40. <td align="middle"><asp:label id="lblMember" runat="server"></asp:label></td>
  41. </tr>
  42. </table>
  43. </td>
  44. <td width="43" background="../../Images/p_leftrightrbg.gif">
  45. <table height="66" cellSpacing="0" cellPadding="0" width="100%" border="0">
  46. <tr>
  47. <td align="middle"><A href="ProjectDetail.aspx?classID=<%=classID%>" ><IMG height="19" src="../../Images/p_more.gif" width="22" border="0"></A></td>
  48. </tr>
  49. <tr>
  50. <td align="middle"><A href="ProjectDetail.aspx?classID=<%=classID%>" ><IMG height="19" src="../../Images/p_more2.gif" width="20" border="0"></A></td>
  51. </tr>
  52. </table>
  53. </td>
  54. <td align="middle" background="../../Images/p_centerbg.gif">
  55. <table height="66" cellSpacing="0" cellPadding="0" width="96%" align="left" border="0">
  56. <tr>
  57. <td vAlign="center" align="middle" width="22"><asp:image id="imgComposeMail" runat="server" ImageUrl="../../Images/icon/284.GIF" Height="16px" Width="16px"></asp:image></td>
  58. <td vAlign="center"><A href="Mail/Compose.aspx?classID=<%=classID%>" ><asp:label id="lblComposeMail" runat="server" Font-Size="X-Small"> 撰写邮件</asp:label></A></td>
  59. <td vAlign="center" align="middle" width="22"><asp:image id="imgDeliveryDoc" runat="server" ImageUrl="../../Images/icon/278.GIF" Height="16px" Width="16px"></asp:image></td>
  60. <td vAlign="center"><A href="Switch.aspx?Action=0&amp;ClassID=<%=classID%>" ><asp:label id="lblDeliveryDoc" runat="server" Font-Size="X-Small">投递文档</asp:label></A><A href="MemberListView.aspx?TeamID=<%=classID%>" ></A></td>
  61. <td vAlign="center" align="middle" width="22"><asp:image id="imgManageDirectory" runat="server" ImageUrl="../../Images/icon/001.GIF" Height="16px" Width="16px"></asp:image>&nbsp;</td>
  62. <td vAlign="center"><A href="oClassNode.aspx?Action=1&amp;classID=<%=classID%>" ><asp:label id="lblManageDirectory" runat="server" Font-Size="X-Small"> 目录管理</asp:label></A></td>
  63. <td vAlign="center" align="middle" width="22"><asp:image id="imgManageProject" runat="server" ImageUrl="../../Images/icon/273.GIF" Height="16px" Width="16px"></asp:image></td>
  64. <td vAlign="center"><A href="ManageProject.aspx?Action=3&amp;classID=<%=classID%>" ><asp:label id="lblManageProject" runat="server" Font-Size="X-Small"> 管理项目</asp:label></A></td>
  65. </tr>
  66. <tr>
  67. <td vAlign="center" align="middle"><asp:image id="imgSubscribe" runat="server" ImageUrl="../../Images/Icon/mydoc.gif" Height="16px" Width="16px"></asp:image></td>
  68. <td vAlign="center"><A href="Project.aspx?classID=<%=classID%>&amp;Action=5" ><asp:label id="lblSubscribe" runat="server" Font-Size="X-Small"> 订阅项目</asp:label></A></td>
  69. <td vAlign="center" align="middle"><asp:image id="imgManagePermission" runat="server" ImageUrl="../../Images/icon/118.gif" Height="16px" Width="16px"></asp:image></td>
  70. <TD vAlign="center"><A 
  71.                   href="../AssignRule/RightListView.aspx?ObjID=<%=classID%>&amp;displayType=1"><asp:label id="lblManagePermission" runat="server" Font-Size="X-Small"> 权限管理</asp:label></A><A href="Switch.aspx?Action=0&amp;ClassID=<%=classID%>" ></A></TD>
  72. <td vAlign="center" align="middle"><asp:image id="imgShowMember" runat="server" ImageUrl="../../Images/admin_ico2.gif" Height="16px" Width="16px"></asp:image></td>
  73. <td vAlign="center"><A href="MemberListView.aspx?TeamID=<%=classID%>" ><asp:label id="lblShowMember" runat="server" Font-Size="X-Small">显示组员</asp:label></A><A onclick="MoveToTeam()" href="#"></A></td>
  74. <td vAlign="center" align="middle"><asp:image id="imgRemove" runat="server" ImageUrl="../../Images/Icon/03.gif" Height="16px" Width="16px"></asp:image>&nbsp;</td>
  75. <td vAlign="center"><A onclick="MoveToTeam()" href="#"><asp:label id="lblRemove" runat="server" Font-Size="X-Small"> 项目移动</asp:label></A><A href="../AssignRule/RightListView.aspx?ObjID=<%=classID%>&amp;displayType=1" ></A></td>
  76. </tr>
  77. </table>
  78. </td>
  79. <td align="right" width="84"><IMG height="68" src="../../Images/p_rightbg.gif" width="84"></td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. <tr id="tr1" runat="server">
  85. <td class="text" vAlign="top" width="100%" height="120"><IMG src="../../Images/line1.gif" runat="server" id="line1"><br>
  86. <A href="Document/Listview.aspx?ClassID=<%=classID%>" ><IMG id="IMG1" src="../../Images/newmain_r4_c1.jpg" border="0" runat="server"></A>&nbsp;<FONT face="宋体">
  87. <BR>
  88. <asp:datagrid id="dgDocList" runat="server" BorderColor="#E8F4FF" Font-Names="Arial" Width="100%" GridLines="Horizontal" CellPadding="2" BorderWidth="1px" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="DocID" PageSize="5">
  89. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  90. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  91. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  92. <Columns>
  93. <asp:TemplateColumn HeaderText="文档标题">
  94. <HeaderStyle HorizontalAlign="Left" Width="30%"></HeaderStyle>
  95. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  96. <ItemTemplate>
  97. <a href='Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  98. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>20)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,20)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  99. </a>
  100. </ItemTemplate>
  101. </asp:TemplateColumn>
  102. <asp:TemplateColumn HeaderText="审批人">
  103. <HeaderStyle Width="15%"></HeaderStyle>
  104. <ItemTemplate>
  105. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocApprover").ToString()) %>'>
  106. </asp:Label>
  107. </ItemTemplate>
  108. </asp:TemplateColumn>
  109. <asp:TemplateColumn HeaderText="上传人">
  110. <HeaderStyle Width="15%"></HeaderStyle>
  111. <ItemTemplate>
  112. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'>
  113. </asp:Label>
  114. </ItemTemplate>
  115. </asp:TemplateColumn>
  116. <asp:BoundColumn DataField="DocViewedTimes" HeaderText="浏览次数">
  117. <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
  118. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  119. </asp:BoundColumn>
  120. <asp:TemplateColumn HeaderText="上传日期">
  121. <HeaderStyle HorizontalAlign="Right" Width="20%"></HeaderStyle>
  122. <ItemStyle Font-Size="X-Small" HorizontalAlign="Right"></ItemStyle>
  123. <ItemTemplate>
  124. <asp:Label runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.DocAddedDate").ToString()).ToString("yyyy-MM-dd") %>'>
  125. </asp:Label>
  126. </ItemTemplate>
  127. </asp:TemplateColumn>
  128. </Columns>
  129. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  130. </asp:datagrid></FONT></td>
  131. </tr>
  132. <tr id="tr2" runat="server">
  133. <td class="text" vAlign="bottom" width="100%" height="120"><IMG src="../../Images/line1.gif"><br>
  134. <A href="Mail/Index.aspx?classID=<%=classID%>" ><IMG id="IMG2" src="../../Images/newmain_r4_c2.jpg" border="0" runat="server"></A>
  135. &nbsp;
  136. <asp:datagrid id="dgMailList" runat="server" BorderColor="#E8F4FF" Font-Names="Arial" Width="100%" GridLines="Horizontal" CellPadding="2" BorderWidth="1px" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="MailID" PageSize="5">
  137. <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  138. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Top" BackColor="#E8F4FF"></HeaderStyle>
  139. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  140. <Columns>
  141. <asp:TemplateColumn HeaderText="邮件主题">
  142. <HeaderStyle HorizontalAlign="Left" Width="35%"></HeaderStyle>
  143. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  144. <ItemTemplate>
  145. <a href='Mail/ReadMail.aspx?MailId=<%# DataBinder.Eval(Container.DataItem,"MailID") %>'>
  146. <%# (DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"MailSubject").ToString() %>
  147. </a>
  148. <%# DataBinder.Eval(Container.DataItem,"attnumber").ToString()=="0"?"":"<img src='../../DataImages/attach.gif' border='0'>" %>
  149. </ItemTemplate>
  150. </asp:TemplateColumn>
  151. <asp:BoundColumn DataField="MailSender" HeaderText="发送者">
  152. <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
  153. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  154. </asp:BoundColumn>
  155. <asp:BoundColumn DataField="MailReceiver" HeaderText="接收者">
  156. <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
  157. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  158. <FooterStyle Font-Size="X-Small"></FooterStyle>
  159. </asp:BoundColumn>
  160. <asp:TemplateColumn HeaderText="是否已读">
  161. <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
  162. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  163. <ItemTemplate>
  164. <%# (string)DataBinder.Eval(Container.DataItem,"MailReadFlag")=="False"?"<img src='../../Images/mailclose.gif'>":"<img src='../../Images/mailopen.gif'>" %>
  165. </ItemTemplate>
  166. </asp:TemplateColumn>
  167. <asp:TemplateColumn HeaderText="接收日期">
  168. <HeaderStyle HorizontalAlign="Right" Width="20%"></HeaderStyle>
  169. <ItemStyle Font-Size="X-Small" HorizontalAlign="Right"></ItemStyle>
  170. <ItemTemplate>
  171. <asp:Label runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.MailSendDate").ToString()).ToString("yyyy-MM-dd") %>'>
  172. </asp:Label>
  173. </ItemTemplate>
  174. </asp:TemplateColumn>
  175. </Columns>
  176. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  177. </asp:datagrid>
  178. <P></P>
  179. <table id="tblMailList" style="BORDER-COLLAPSE: collapse" borderColor="#cccccc" height="36" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server">
  180. </table>
  181. </td>
  182. </tr>
  183. <tr id="tr3" runat="server">
  184. <td class="text" vAlign="bottom" width="100%" height="120"><IMG id="line2" src="../../Images/line1.gif" runat="server"><br>
  185. <A href="Approve/ListView.aspx?ClassID=<%=classID%>&amp;DisplayType=1" ><IMG id="IMG3" src="../../Images/newmain_r9_c2.jpg" border="0" runat="server"></A>&nbsp;
  186. <A href="#"></A>
  187. <asp:label id="lblApp" runat="server" Visible="False">审批文档</asp:label><BR>
  188. <asp:datagrid id="dgAppDocList" runat="server" BorderColor="#E8F4FF" Font-Names="Arial" Width="100%" CellPadding="2" BorderWidth="1px" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="DocID" PageSize="5">
  189. <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  190. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="20px" VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  191. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  192. <Columns>
  193. <asp:TemplateColumn HeaderText="文档标题">
  194. <HeaderStyle HorizontalAlign="Left" Width="35%"></HeaderStyle>
  195. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  196. <ItemTemplate>
  197. <a href='Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  198. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>20)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,20)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  199. </a>
  200. </ItemTemplate>
  201. </asp:TemplateColumn>
  202. <asp:BoundColumn DataField="DocAddedBy" HeaderText="上传人">
  203. <HeaderStyle HorizontalAlign="Left" Width="20%"></HeaderStyle>
  204. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  205. <FooterStyle Font-Size="X-Small"></FooterStyle>
  206. </asp:BoundColumn>
  207. <asp:BoundColumn DataField="DocViewedTimes" HeaderText="浏览次数">
  208. <HeaderStyle HorizontalAlign="Left" Width="20%"></HeaderStyle>
  209. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left"></ItemStyle>
  210. </asp:BoundColumn>
  211. <asp:TemplateColumn HeaderText="上传日期">
  212. <HeaderStyle HorizontalAlign="Right" Width="25%"></HeaderStyle>
  213. <ItemStyle Font-Size="X-Small" HorizontalAlign="Right"></ItemStyle>
  214. <ItemTemplate>
  215. <asp:Label runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.DocAddedDate").ToString()).ToString("yyyy-MM-dd") %>'>
  216. </asp:Label>
  217. </ItemTemplate>
  218. </asp:TemplateColumn>
  219. </Columns>
  220. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  221. </asp:datagrid></td>
  222. </tr>
  223. </TBODY>
  224. </table>
  225. </form>
  226. </TD></TR></TBODY></TABLE>
  227. </body>
  228. </HTML>