TaskList.aspx
上传用户:xgw_05
上传日期:2009-12-11
资源大小:20208k
文件大小:12k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="TaskList.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Schedule.TaskList" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>CalendarList</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 dialwinprocess(CurrDate,CurrTime,whichPg,TaskID)
  12. {
  13.    if(whichPg==1)
  14. var newdialoguewin = window.showModalDialog("Manage.aspx?CurrDate="+CurrDate+"&CurrTime="+CurrTime,window,"dialogWidth:1000px;DialogHeight=700px;status:no");
  15.    else if(whichPg==2)
  16.    var newdialoguewin = window.showModalDialog("TaskDetail.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
  17.    else if(whichPg==3)
  18.    var newdialoguewin = window.showModalDialog("TaskStatus.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
  19. }
  20. var ball1 = new Image();
  21. var ball2 = new Image();
  22. ball1.src = 'images/ball1.gif';
  23. ball2.src = 'images/ball2.gif';
  24. var active = new Image();
  25. var nonactive = new Image();
  26. active.src = '../../../images/maillistbutton2.gif';
  27. nonactive.src = '../../../images/maillistbutton1.gif';
  28. function onMouseOver(img)
  29. {
  30. document.images[img].src = ball2.src;
  31. }
  32. function onMouseOut(img)
  33. {
  34. document.images[img].src = ball1.src;
  35. }
  36. function onOverBar(bar)
  37. {
  38. if (bar != null) {
  39. bar.style.backgroundImage = "url("+active.src+")";
  40. }
  41. }
  42. function onOutBar(bar)
  43. {
  44. if (bar != null) {
  45. bar.style.backgroundImage = "url("+nonactive.src+")";
  46. }
  47. }
  48. function selectAll(){
  49. var len=document.MailList.elements.length;
  50. var i;
  51.     for (i=0;i<len;i++){
  52. if (document.MailList.elements[i].type=="checkbox"){
  53.         document.MailList.elements[i].checked=true;
  54.  }
  55. }
  56. }
  57. function unSelectAll(){
  58.           var len=document.MailList.elements.length;
  59.           var i;
  60.           for (i=0;i<len;i++){
  61.                if (document.MailList.elements[i].type=="checkbox"){
  62.                   document.MailList.elements[i].checked=false; 
  63.                }   
  64.           } 
  65.     }
  66. </script>
  67. <style>BODY { SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #949494; SCROLLBAR-TRACK-COLOR: #ffffff; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; SCROLLBAR-BASE-COLOR: #ffffff }
  68. .borderMenuLayer { BORDER-LEFT-COLOR: #c9c9c9; BORDER-BOTTOM-COLOR: #c9c9c9; BORDER-TOP-COLOR: #c9c9c9; BORDER-RIGHT-COLOR: #c9c9c9 }
  69. .borderMenuLayerOver { FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #949494; BORDER-BOTTOM-COLOR: #949494; BORDER-TOP-COLOR: #949494; BORDER-RIGHT-COLOR: #949494 }
  70. .textWhite { FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #999999; LINE-HEIGHT: 22px; FONT-FAMILY: "宋体" }
  71. .top { FONT-WEIGHT: normal; FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: "Arial", "Helvetica", "sans-serif"; TEXT-DECORATION: none }
  72. </style>
  73. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  74. </HEAD>
  75. <body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
  76. <form id="TaskList" method="post" runat="server">
  77. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  78. <tr>
  79. <td vAlign="top" height="38"><TABLE borderColor="#111111" height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
  80. <TR height="30">
  81. <TD class="GbText" width="20" background="../../Images/treetopbg.jpg" bgColor="#c0d9e6"
  82. align="right"><FONT color="#003366" size="3"><IMG height="16" src="../../DataImages/MyTask.gif" width="16"></FONT></TD>
  83. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" width="60"
  84. align="right"><font color="#006699">我的任务</font></TD>
  85. <TD class="GbText" background="../../Images/treetopbg.jpg" bgColor="#e8f4ff" align="right"><FONT face="宋体"><asp:button id="btnNew" runat="server" CssClass="redButtonCss" Text="新 建"></asp:button>&nbsp;
  86. <asp:button id="btnAccept" runat="server" CssClass="redButtonCss" Text="接 受"></asp:button>&nbsp;
  87. <asp:button id="btnCancel" runat="server" CssClass="redButtonCss" Text="取 消"></asp:button>&nbsp;
  88. <asp:button id="btnSubscribe" runat="server" CssClass="redButtonCss" Text="订 阅" Visible="False"></asp:button>&nbsp;观察视角:<asp:dropdownlist id="listStaff" runat="server" Width="105px" AutoPostBack="true" OnSelectedIndexChanged="listStaff_SelectedIndexChanged"></asp:dropdownlist></FONT></TD>
  89. </TR>
  90. </TABLE>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td>
  95. <TABLE id="tblContainer" height="25" cellSpacing="0" cellPadding="0" width="100%" border="0"
  96. runat="server">
  97. <tr>
  98. <td id="bar1" align="center" width="90" background="../../images/maillistbutton1.gif">&nbsp;<FONT face="宋体"><asp:linkbutton id="lnkbtnToday" runat="server" CssClass=Newbutton>待完成</asp:linkbutton></FONT>
  99. </td>
  100. <td id="bar2" align="center" width="90" background="../../images/maillistbutton1.gif">&nbsp;<asp:linkbutton id="lnkbtnHistory" runat="server" CssClass=Newbutton>未完成</asp:linkbutton></td>
  101. <td id="bar3" align="center" width="90" background="../../images/maillistbutton1.gif"><asp:linkbutton id="lnkbtnFinished" runat="server" CssClass=Newbutton>已完成</asp:linkbutton>&nbsp;</td>
  102. <td id="bar4" align="center" width="90" background="../../images/maillistbutton1.gif"><FONT face="宋体">&nbsp;
  103. </FONT>
  104. <asp:linkbutton id="Linkbutton1" runat="server" CssClass=Newbutton>我的订阅</asp:linkbutton>&nbsp;</td>
  105. <td id="bar5" align="center" width="90" background="../../images/maillistbutton1.gif"
  106. style="WIDTH: 91px"><FONT face="宋体"> &nbsp;<asp:LinkButton id="lnkbtnArranged" runat="server" Width="59px"  CssClass=Newbutton>我的发起</asp:LinkButton></FONT></td>
  107. <td align="right"><FONT face="宋体">
  108. <asp:button id="btnWeeklyView" runat="server" Text="周览" CssClass="greenButtonCss"></asp:button>
  109. <asp:Button id="btnCancelSubscription" runat="server" Text="取消订阅" CssClass="greenButtonCss"
  110. Visible="False"></asp:Button></FONT></td>
  111. </tr>
  112. </TABLE>
  113. <asp:datagrid id="dgList" runat="server" Font-Size="X-Small" BackColor="White" CssClass="top"
  114. Width="100%" AllowPaging="True" CellPadding="3" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages"
  115. PagerStyle-HorizontalAlign="Right" OnPageIndexChanged="DataGrid_PageChanged" DataKeyField="ID"
  116. BorderColor="#93BEE2" BorderWidth="1px">
  117. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  118. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  119. <HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
  120. <FooterStyle HorizontalAlign="Center"></FooterStyle>
  121. <Columns>
  122. <asp:TemplateColumn HeaderText="选择">
  123. <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
  124. <ItemStyle Font-Size="X-Small" HorizontalAlign="Left" Height="20px" Width="60px"></ItemStyle>
  125. <ItemTemplate>
  126. <asp:CheckBox id="grpID" Checked="False" Runat="server"></asp:CheckBox>
  127. </ItemTemplate>
  128. </asp:TemplateColumn>
  129. <asp:TemplateColumn HeaderText="时段">
  130. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  131. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  132. <ItemTemplate>
  133. <asp:Label runat="server" Text='<%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.Date").ToString()).ToShortDateString()+"  "+GetPeriodByPeriodID(DataBinder.Eval(Container, "DataItem.EndTime").ToString(),DataBinder.Eval(Container, "DataItem.beginPeriodID").ToString(),(DataBinder.Eval(Container, "DataItem.endPeriodID").ToString())) %>' ID="Label2" NAME="Label2">
  134. </asp:Label>
  135. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Date").ToString() %>' ID="Label1" NAME="Label2" Visible = "false">
  136. </asp:Label>
  137. </ItemTemplate>
  138. </asp:TemplateColumn>
  139. <asp:TemplateColumn HeaderText="内容">
  140. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  141. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  142. <ItemTemplate>
  143. <a href="#" onclick='javascript:return dialwinprocess("<%# DataBinder.Eval(Container, "DataItem.Date") %>","","2","<%# DataBinder.Eval(Container, "DataItem.TaskID") %>")'>
  144. <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Subject") %>' ID="Label3" NAME="Label3"></a>
  145. </asp:Label>
  146. </ItemTemplate>
  147. </asp:TemplateColumn>
  148. <asp:TemplateColumn HeaderText="状态">
  149. <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
  150. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  151. <ItemTemplate>
  152. <asp:Label runat="server" Text='<%# GetStatus(DataBinder.Eval(Container, "DataItem.IsConfirm").ToString()) %>' ID="Label4" NAME="Label4">
  153. </asp:Label>
  154. </ItemTemplate>
  155. </asp:TemplateColumn>
  156. <asp:TemplateColumn HeaderText="所有人">
  157. <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
  158. <ItemTemplate>
  159. <asp:Label runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.ArrangedBy").ToString()) %>'>
  160. </asp:Label>
  161. </ItemTemplate>
  162. </asp:TemplateColumn>
  163. <asp:TemplateColumn HeaderText="执行人">
  164. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  165. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  166. <ItemTemplate>
  167. <asp:Label runat="server" Text='<%# GetRealNameStr(DataBinder.Eval(Container, "DataItem.CooperatorList").ToString()) %>'>
  168. </asp:Label>
  169. </ItemTemplate>
  170. <EditItemTemplate>
  171. <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CooperatorList") %>'>
  172. </asp:TextBox>
  173. </EditItemTemplate>
  174. </asp:TemplateColumn>
  175. <asp:TemplateColumn HeaderText="类型">
  176. <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
  177. <ItemTemplate>
  178. <asp:Label runat="server" Text='<%# GetType(DataBinder.Eval(Container, "DataItem.Type").ToString()) %>'>
  179. </asp:Label>
  180. </ItemTemplate>
  181. </asp:TemplateColumn>
  182. <asp:TemplateColumn HeaderText="所属项目">
  183. <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
  184. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  185. <ItemTemplate>
  186. <asp:Label runat="server" Text='<%# GetProjectName(DataBinder.Eval(Container, "DataItem.ProjectID").ToString()) %>'>
  187. </asp:Label>
  188. </ItemTemplate>
  189. </asp:TemplateColumn>
  190. <asp:TemplateColumn HeaderText="反馈">
  191. <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
  192. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  193. <ItemTemplate>
  194. <a href="#" onclick='javascript:return dialwinprocess("<%# DataBinder.Eval(Container, "DataItem.Date") %>","","3","<%# DataBinder.Eval(Container, "DataItem.TaskID") %>")'>
  195. 反馈</a>
  196. </ItemTemplate>
  197. </asp:TemplateColumn>
  198. </Columns>
  199. <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
  200. </asp:datagrid></td>
  201. </tr>
  202. <TR>
  203. <td align="left"><FONT face="宋体"><asp:table id="Table1" runat="server" CssClass="top" Visible="False" Width="100%" BorderWidth="0px"
  204. Height="195px"></asp:table><asp:label id="lblInstru" runat="server" Font-Size="X-Small">待办: !  待定: ?  完成: √ </asp:label></FONT></td>
  205. </TR>
  206. <TR>
  207. <TD style="WIDTH: 150px">&nbsp;&nbsp;</TD>
  208. </TR>
  209. </table>
  210. </form>
  211. <SCRIPT language="javascript">
  212. <!--
  213. // 高亮背景
  214. function high( which )
  215. which.style.background = "#87F977";
  216. which.style.font.color = "#000000";
  217. }
  218. // 取消背景高亮
  219. function low( which )
  220. which.style.background = "#FFF8F7";
  221. which.style.font.color = "#000000";
  222. }
  223. -->
  224.    
  225. </SCRIPT>
  226. </body>
  227. </HTML>