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

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="Desktop.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Desktop" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>Desktop</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 dialwinprocess(CurrDate,CurrTime,whichPg,TaskID)
  13. {
  14.    if(whichPg==1)
  15. var newdialoguewin = window.showModalDialog("../Schedule/Manage.aspx?CurrDate="+CurrDate+"&CurrTime="+CurrTime,window,"dialogWidth:1000px;DialogHeight=700px;status:no");
  16.    else if(whichPg==2)
  17.    var newdialoguewin = window.showModalDialog("../Schedule/TaskDetail.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
  18.    else if(whichPg==3)
  19.    var newdialoguewin = window.showModalDialog("../Schedule/TaskStatus.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
  20. }
  21. </script>
  22. </HEAD>
  23. <body leftMargin="0" topMargin="0" rightMargin="5">
  24. <form id="Desktop" method="post" runat="server">
  25. <table cellSpacing="10" cellPadding="0" width="100%" align="center" border="0">
  26. <tr>
  27. <td vAlign="top">
  28. <TABLE id="Table1" cellSpacing="0" cellPadding="0" align="left" border="0">
  29. <TR>
  30. <TD><IMG id="IMG1" src="../../Images/desktop1.jpg" border="0" runat="server"></TD>
  31. <TD vAlign="bottom" align="right" width="40"><A href="../Schedule/TaskList.aspx" target="_self"><IMG alt="" src="../../Images/more.gif" border="0"></A></TD>
  32. <TD vAlign="bottom" align="right" width="40"><A onclick="var newwin=window.open('../Schedule/Manage.aspx','newtask','toolbar=yes,scrollbars=yes,width=800,height=600,resizable=yes');newwin.moveTo(0,0);newwin.focus();"
  33. href="#" target="_self"><IMG alt="" src="../../Images/new.gif" border="0"></A></TD>
  34. </TR>
  35. <tr>
  36. <td><asp:datagrid id="dgList" runat="server" AllowPaging="True" BorderColor="#E8F4FF" GridLines="Horizontal"
  37. PageSize="5" DataKeyField="ID" Width="100%" PagerStyle-HorizontalAlign="center" PagerStyle-Mode="NumericPages"
  38. AutoGenerateColumns="False" BackColor="White" CellPadding="2" OnPageIndexChanged="DataGrid_PageChanged"
  39. CssClass="top" BorderWidth="1px">
  40. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  41. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="20px" ForeColor="#006699"
  42. VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  43. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  44. <Columns>
  45. <asp:TemplateColumn HeaderText="时段">
  46. <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
  47. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  48. <ItemTemplate>
  49. <asp:Label runat="server" Text='<%# GetDateString(DataBinder.Eval(Container, "DataItem.Date").ToString())+"  "+GetPeriodByPeriodID(DataBinder.Eval(Container, "DataItem.EndTime").ToString(),DataBinder.Eval(Container, "DataItem.beginPeriodID").ToString(),(DataBinder.Eval(Container, "DataItem.endPeriodID").ToString())) %>' ID="Label2" NAME="Label2">
  50. </asp:Label>
  51. </ItemTemplate>
  52. </asp:TemplateColumn>
  53. <asp:TemplateColumn HeaderText="内容">
  54. <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
  55. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  56. <ItemTemplate>
  57. <a href="#" onclick='javascript:return dialwinprocess("","","2","<%# DataBinder.Eval(Container, "DataItem.TaskID") %>")'>
  58. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Subject") %>' ID="Label3" NAME="Label3"></a>
  59. </asp:Label>
  60. </ItemTemplate>
  61. </asp:TemplateColumn>
  62. </Columns>
  63. <PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="White" BackColor="#93BEE2" Mode="NumericPages"></PagerStyle>
  64. </asp:datagrid></td>
  65. </tr>
  66. </TABLE>
  67. </td>
  68. <td vAlign="top">
  69. <TABLE id="Table2" cellSpacing="0" cellPadding="0" align="left" border="0">
  70. <TR>
  71. <TD><IMG id="Img4" src="../../Images/desktop2.jpg" border="0" runat="server"></TD>
  72. <TD vAlign="bottom" align="right" width="40"><A href="NewDoc/Listview.aspx" target="_self"><IMG alt="" src="../../Images/more.gif" border="0"></A></TD>
  73. <TD vAlign="bottom" align="right" width="40"></TD>
  74. </TR>
  75. <tr>
  76. <td><FONT face="宋体"><asp:datagrid id="dgDocList" runat="server" AllowPaging="True" BorderColor="#E8F4FF" GridLines="Horizontal"
  77. PageSize="5" DataKeyField="DocID" Width="100%" PagerStyle-HorizontalAlign="right" PagerStyle-Mode="NumericPages"
  78. AutoGenerateColumns="False" CellPadding="2" BorderWidth="1px" Font-Names="Arial" AllowSorting="True">
  79. <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  80. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="20px" ForeColor="#006699"
  81. VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  82. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  83. <Columns>
  84. <asp:TemplateColumn HeaderText="文档标题">
  85. <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
  86. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
  87. <ItemTemplate>
  88. <a href='Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  89. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  90. </a>
  91. </ItemTemplate>
  92. </asp:TemplateColumn>
  93. <asp:TemplateColumn HeaderText="审批人">
  94. <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
  95. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  96. <ItemTemplate>
  97. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocApprover").ToString()) %>'>
  98. </asp:Label>
  99. </ItemTemplate>
  100. <FooterStyle Font-Size="X-Small"></FooterStyle>
  101. </asp:TemplateColumn>
  102. </Columns>
  103. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  104. PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  105. </asp:datagrid></FONT></td>
  106. </tr>
  107. </TABLE>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td height="40"></td>
  112. <td></td>
  113. </tr>
  114. <tr>
  115. <td vAlign="top">
  116. <TABLE id="Table3" cellSpacing="0" cellPadding="0" align="left" border="0">
  117. <TR>
  118. <TD vAlign="top"><IMG id="IMG2" src="../../Images/desktop3.jpg" border="0" runat="server"></TD>
  119. <TD vAlign="bottom" align="right" width="40"><A href="Mail/Index.aspx" target="_self"><IMG alt="" src="../../Images/more.gif" border="0"></A></TD>
  120. <TD vAlign="bottom" align="right" width="40"><A href="Mail/Compose.aspx?ClassID=0" target="_self"><IMG alt="" src="../../Images/new.gif" border="0"></A></TD>
  121. </TR>
  122. <tr>
  123. <td><asp:datagrid id="dgMailList" runat="server" AllowPaging="True" BorderColor="#E8F4FF" GridLines="Horizontal"
  124. PageSize="5" DataKeyField="MailID" Width="100%" PagerStyle-HorizontalAlign="right" PagerStyle-Mode="NumericPages"
  125. AutoGenerateColumns="False" CellPadding="2" BorderWidth="1px" Font-Names="Arial" AllowSorting="True">
  126. <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  127. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="20px" ForeColor="#006699"
  128. VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  129. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  130. <Columns>
  131. <asp:TemplateColumn HeaderText="邮件主题">
  132. <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
  133. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
  134. <ItemTemplate>
  135. <a href='Mail/ReadMail.aspx?FolderType=1&MailId=<%# DataBinder.Eval(Container.DataItem,"MailID") %>'>
  136. <%# (DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"MailSubject").ToString() %>
  137. </a>
  138. <%# DataBinder.Eval(Container.DataItem,"attnumber").ToString()==""?"":(DataBinder.Eval(Container.DataItem,"attnumber").ToString()=="0"?"":"<img src='../../DataImages/attach.gif' border='0'>") %>
  139. </ItemTemplate>
  140. </asp:TemplateColumn>
  141. <asp:BoundColumn DataField="MailSender" HeaderText="发送者">
  142. <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
  143. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  144. </asp:BoundColumn>
  145. </Columns>
  146. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  147. PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  148. </asp:datagrid></td>
  149. </tr>
  150. </TABLE>
  151. </td>
  152. <td vAlign="top">
  153. <TABLE id="Table4" cellSpacing="0" cellPadding="0" align="left" border="0">
  154. <TR>
  155. <TD vAlign="top"><IMG id="IMG3" src="../../Images/desktop4.jpg" border="0" runat="server"></TD>
  156. <TD vAlign="bottom" align="right" width="40"><A href="Approve/Listview.aspx" target="_self"><IMG alt="" src="../../Images/more.gif" border="0"></A></TD>
  157. <TD vAlign="bottom" align="right" width="40"></TD>
  158. </TR>
  159. <tr>
  160. <td><asp:datagrid id="dgAppDocList" runat="server" AllowPaging="True" BorderColor="#E8F4FF" GridLines="Horizontal"
  161. PageSize="5" DataKeyField="DocID" Width="100%" PagerStyle-HorizontalAlign="right" PagerStyle-Mode="NumericPages"
  162. AutoGenerateColumns="False" CellPadding="3" BorderWidth="1px" Font-Names="Arial" AllowSorting="True"
  163. DESIGNTIMEDRAGDROP="164">
  164. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
  165. <HeaderStyle Font-Size="X-Small" Font-Bold="True" HorizontalAlign="Center" Height="20px" ForeColor="#006699"
  166. VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
  167. <FooterStyle Font-Size="XX-Small" HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
  168. <Columns>
  169. <asp:TemplateColumn HeaderText="文档标题">
  170. <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
  171. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle>
  172. <ItemTemplate>
  173. <a href='Document/ApproveDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'>
  174. <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %>
  175. </a>
  176. </ItemTemplate>
  177. </asp:TemplateColumn>
  178. <asp:TemplateColumn HeaderText="上传人">
  179. <HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
  180. <ItemStyle Font-Size="X-Small" HorizontalAlign="Center"></ItemStyle>
  181. <ItemTemplate>
  182. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'>
  183. </asp:Label>
  184. </ItemTemplate>
  185. </asp:TemplateColumn>
  186. </Columns>
  187. <PagerStyle Visible="False" Font-Size="12px" BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
  188. PageButtonCount="5" Mode="NumericPages"></PagerStyle>
  189. </asp:datagrid></td>
  190. </tr>
  191. </TABLE>
  192. </td>
  193. </tr>
  194. </table>
  195. </form>
  196. </body>
  197. </HTML>