ProjectDetails.aspx
上传用户:autodoor
上传日期:2022-08-04
资源大小:9973k
文件大小:16k
源码类别:

.net编程

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="ProjectDetails.aspx.cs" AutoEventWireup="false" Inherits="qminoa.Webs.PM.ProjectDetails" %>
  2. <HTML>
  3. <HEAD>
  4. <title>Project Details</title>
  5. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  6. <LINK href="styles.css" type="text/css" rel="stylesheet">
  7. <script language="javascript" src="script.js"></script>
  8. </HEAD>
  9. <body>
  10. <form id="ProjectDetails" method="post" runat="server">
  11. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  12. <tr>
  13. <td class="tab-active" vAlign="top" height="15"><IMG height="15" src="images/spacer.gif" width="15"></td>
  14. </tr>
  15. </table>
  16. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  17. <tr>
  18. <td width="8"><IMG height="8" src="images/spacer.gif" width="8"></td>
  19. <td vAlign="top">
  20. <table class="admin-tan-border" cellSpacing="20" cellPadding="0" width="600" border="0">
  21. <tr height="10">
  22. <td vAlign="top">
  23. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  24. <tr>
  25. <td class="header-gray">项目管理</td>
  26. <td align="right"><asp:button id="SaveButton" runat="server" width="53px" CssClass="standard-text" Text="保存"></asp:button>&nbsp;&nbsp;
  27. <asp:button id="CancelButton" runat="server" width="53" CssClass="standard-text" Text="取消" causesvalidation="False"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  28. <asp:button id="DeleteButton" runat="server" CssClass="standard-text" Text="删除" causesvalidation="False"></asp:button></td>
  29. </tr>
  30. <tr>
  31. <td colSpan="2"><asp:label id="ErrorMessage" runat="server" CssClass="standard-text" enableviewstate="False" ForeColor="Red"></asp:label>
  32. <hr>
  33. </td>
  34. </tr>
  35. </table>
  36. </td>
  37. </tr>
  38. <tr height="*">
  39. <td vAlign="top">
  40. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  41. <tr>
  42. <td class="header-lightgray" width="240">项目信息
  43. </td>
  44. <td width="*"><IMG height="1" src="images/spacer.gif" width="240"></td>
  45. <td class="header-lightgray" width="240">选择项目成员
  46. </td>
  47. </tr>
  48. <tr>
  49. <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
  50. </tr>
  51. <tr height="*">
  52. <td vAlign="top">
  53. <table cellSpacing="0" cellPadding="0" width="204" border="0">
  54. <tr>
  55. <td>项目名称<br>
  56. <asp:textbox id="ProjectName" runat="server" width="194px" cssclass="standard-text" MaxLength="50"></asp:textbox></td>
  57. </tr>
  58. <tr>
  59. <td><asp:requiredfieldvalidator id="ProjectNameRequiredfieldvalidator" runat="server" ErrorMessage="项目名称不能为空!" display="Dynamic" ControlToValidate="ProjectName"></asp:requiredfieldvalidator></td>
  60. </tr>
  61. <tr>
  62. <td><IMG height="11" src="images/spacer.gif" width="1"></td>
  63. </tr>
  64. <tr>
  65. <td>项目经理<br>
  66. <asp:dropdownlist id="Managers" runat="server" width="193px" cssclass="standard-text"></asp:dropdownlist></td>
  67. </tr>
  68. <tr>
  69. <td><asp:requiredfieldvalidator id="ManagerRequiredFieldValidator" runat="server" ErrorMessage="你必须选择项目经理!" display="Dynamic" ControlToValidate="Managers"></asp:requiredfieldvalidator></td>
  70. </tr>
  71. <tr>
  72. <td><IMG height="11" src="images/spacer.gif" width="1"></td>
  73. </tr>
  74. <tr>
  75. <td><IMG height="11" src="images/spacer.gif" width="1"></td>
  76. </tr>
  77. <tr>
  78. <td>
  79. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  80. <tr>
  81. <td>完成日期</td>
  82. <td>完成时间</td>
  83. </tr>
  84. <tr>
  85. <td><asp:textbox id="CompletionDate" runat="server" width="76px" cssclass="standard-text" columns="12"></asp:textbox><A href="javascript:OpenCalendar('CompletionDate', true)"><IMG src="images/icon-calendar.gif" border="0"></A>
  86. </td>
  87. <td><asp:textbox id="Duration" runat="server" cssclass="standard-text" columns="12" Width="49px"></asp:textbox>小时
  88. </td>
  89. </tr>
  90. </table>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td><asp:comparevalidator id="CompletionDateCompareValidator" runat="server" ErrorMessage="日期格式不正确!" display="Dynamic" operator="DataTypeCheck" type="Date" controltovalidate="CompletionDate"></asp:comparevalidator><asp:requiredfieldvalidator id="CompletionDateRequiredFieldValidator" runat="server" ErrorMessage="完成日期不能为空!" ControlToValidate="CompletionDate" Display="Dynamic"></asp:requiredfieldvalidator><asp:comparevalidator id="DurationCompareValidator" runat="server" ErrorMessage="完成时间必须为整数!" ControlToValidate="Duration" Display="Dynamic" Operator="DataTypeCheck" Type="Integer"></asp:comparevalidator><asp:requiredfieldvalidator id="DurationRequiredFieldValidator" runat="server" ErrorMessage="完成时间不能为空!" ControlToValidate="Duration" Display="Dynamic"></asp:requiredfieldvalidator><asp:rangevalidator id="RangeValidator1" runat="server" ErrorMessage="完成时间超出有效范围!" ControlToValidate="Duration" Type="Integer" MaximumValue="99999" MinimumValue="0"></asp:rangevalidator></td>
  95. </tr>
  96. <tr>
  97. <td><IMG height="11" src="images/spacer.gif" width="1"></td>
  98. </tr>
  99. <tr>
  100. <td><IMG height="11" src="images/spacer.gif" width="1"></td>
  101. </tr>
  102. </table>
  103. </td>
  104. <td vAlign="top">项目描述<br>
  105. <asp:textbox id="Description" runat="server" cssclass="standard-text" columns="20" Width="204px" TextMode="MultiLine" Height="116px" rows="8"></asp:textbox></td>
  106. <td vAlign="top" noWrap>项目成员(按CTRL+Click可以多选)<br>
  107. <asp:listbox id="Members" runat="server" cssclass="standard-text" Width="220px" Height="122px" rows="9" DataValueField="UserID" DataTextField="UserName" SelectionMode="Multiple"></asp:listbox></td>
  108. </tr>
  109. </table>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td vAlign="top">
  114. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  115. <tr>
  116. <td class="header-lightgray" colSpan="3">定义项目进程
  117. </td>
  118. </tr>
  119. <tr>
  120. <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
  121. </tr>
  122. <tr>
  123. <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
  124. </tr>
  125. <tr>
  126. <td width="410">
  127. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  128. <tr>
  129. <td>名称</td>
  130. <td>简称</td>
  131. <td>完成时间</td>
  132. <td>&nbsp;</td>
  133. </tr>
  134. <tr>
  135. <td vAlign="top"><asp:textbox id="CategoryName" runat="server" width="166px" enableviewstate="False" cssclass="standard-text" MaxLength="50"></asp:textbox></td>
  136. <td vAlign="top"><asp:textbox id="Abbrev" runat="server" width="70px" enableviewstate="False" cssclass="standard-text"></asp:textbox></td>
  137. <td vAlign="top"><asp:textbox id="CatDuration" runat="server" width="70px" enableviewstate="False" cssclass="standard-text"></asp:textbox></td>
  138. <td vAlign="top" align="right"><asp:button id="AddButton" runat="server" width="46px" CssClass="standard-text" Text="添加"></asp:button></td>
  139. </tr>
  140. <tr>
  141. <td colSpan="4"><asp:comparevalidator id="CatDurationValidator" runat="server" ErrorMessage="完成时间必须为整数!" ControlToValidate="CatDuration" Display="Dynamic" Operator="DataTypeCheck" Type="Integer"></asp:comparevalidator><asp:customvalidator id="AbbrevCustomValidator" runat="server" ErrorMessage="进程简称不能重复!" display="Dynamic"></asp:customvalidator><asp:rangevalidator id="RangeValidator2" runat="server" ErrorMessage="完成时间超出范围!" display="Dynamic" ControlToValidate="CatDuration" Type="Integer" MaximumValue="99999" MinimumValue="0"></asp:rangevalidator></td>
  142. </tr>
  143. </table>
  144. </td>
  145. <td class="header-gray" align="middle" width="100">&nbsp;或者&nbsp;</td>
  146. <td align="right" width="260">
  147. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  148. <tr>
  149. <td colSpan="2">从其它项目中加入进程</td>
  150. </tr>
  151. <tr>
  152. <td><asp:dropdownlist id="Projects" runat="server" width="190px" cssclass="standard-text"></asp:dropdownlist></td>
  153. <td align="right"><asp:button id="CopyButton" runat="server" width="46" CssClass="standard-text" Text="复制" causesvalidation="False"></asp:button></td>
  154. </tr>
  155. </table>
  156. </td>
  157. </tr>
  158. <tr>
  159. <td colSpan="3"><asp:regularexpressionvalidator id="RegularExpressionValidatorAbbrev" runat="server" ErrorMessage="进程简称的长度为1-4个字符串!" ControlToValidate="Abbrev" Display="Dynamic" ValidationExpression="S{1,4}"></asp:regularexpressionvalidator><asp:label id="CategoryErrorMessage" runat="server" CssClass="standard-text" ForeColor="Red" enableviewstate="False"></asp:label></td>
  160. </tr>
  161. <tr>
  162. <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
  163. </tr>
  164. <tr>
  165. <td>项目进程列表<br>
  166. <asp:datagrid id="CategoriesGrid" runat="server" Width="100%" BorderStyle="None" DataKeyField="CategoryID" OnUpdateCommand="CategoriesGrid_OnUpdate" OnCancelCommand="CategoriesGrid_OnCancel" OnDeleteCommand="CategoriesGrid_OnDelete" OnEditCommand="CategoriesGrid_OnEdit" CellPadding="2" AutoGenerateColumns="False" Font-Name="Verdana" AllowSorting="True" BorderColor="White" font-names="Verdana">
  167. <HeaderStyle Font-Bold="True" CssClass="grid-header"></HeaderStyle>
  168. <Columns>
  169. <asp:TemplateColumn SortExpression="Name" HeaderText="名称">
  170. <HeaderStyle HorizontalAlign="Left" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
  171. <ItemStyle CssClass="grid-first-item"></ItemStyle>
  172. <ItemTemplate>
  173. &nbsp;<%# DataBinder.Eval(Container, "DataItem.Name") %>
  174. </ItemTemplate>
  175. <EditItemTemplate>
  176. <asp:textbox id=EditName Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' CssClass="Standard-text" MaxLength="50" Runat="server" AutoPostBack="false">
  177. </asp:textbox>
  178. <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="进程名称不能为空!" ControlToValidate="EditName" Display="Dynamic"></asp:RequiredFieldValidator>
  179. </EditItemTemplate>
  180. </asp:TemplateColumn>
  181. <asp:TemplateColumn SortExpression="Abbrev" HeaderText="简称">
  182. <HeaderStyle HorizontalAlign="Left" Width="70px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
  183. <ItemStyle CssClass="grid-item"></ItemStyle>
  184. <ItemTemplate>
  185. &nbsp;<%# DataBinder.Eval(Container, "DataItem.Abbreviation") %>
  186. </ItemTemplate>
  187. <EditItemTemplate>
  188. <asp:textbox id=EditAbbreviation Text='<%# DataBinder.Eval(Container, "DataItem.Abbreviation") %>' CssClass="Standard-text" width="70px" Runat="server" AutoPostBack="false">
  189. </asp:textbox>
  190. <asp:requiredfieldvalidator id="Requiredfieldvalidator5" runat="server" ErrorMessage="简称不能为空!" ControlToValidate="EditAbbreviation" display="Dynamic"></asp:requiredfieldvalidator>
  191. <asp:regularexpressionvalidator id="Regularexpressionvalidator3" runat="server" ErrorMessage="进程简称的长度为1-4个字符串!" ControlToValidate="EditAbbreviation" Display="Dynamic" ValidationExpression="S{1,4}"></asp:regularexpressionvalidator>
  192. </EditItemTemplate>
  193. </asp:TemplateColumn>
  194. <asp:TemplateColumn SortExpression="Duration" HeaderText="完成时间">
  195. <HeaderStyle Wrap="False" HorizontalAlign="Right" Width="100px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
  196. <ItemStyle HorizontalAlign="Right" CssClass="grid-item"></ItemStyle>
  197. <ItemTemplate>
  198. &nbsp;<%# DataBinder.Eval(Container, "DataItem.EstDuration") %>
  199. </ItemTemplate>
  200. <EditItemTemplate>
  201. <asp:textbox id=EditDuration Text='<%# DataBinder.Eval(Container, "DataItem.EstDuration") %>' CssClass="Standard-text" width="70px" Runat="server" AutoPostBack="false">
  202. </asp:textbox>
  203. <asp:requiredfieldvalidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="不能为空!" ControlToValidate="EditDuration" display="Dynamic"></asp:requiredfieldvalidator>
  204. <asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="必须为整数!" ControlToValidate="EditDuration" Display="Dynamic" Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator>
  205. </EditItemTemplate>
  206. </asp:TemplateColumn>
  207. <asp:TemplateColumn HeaderText="编辑">
  208. <HeaderStyle HorizontalAlign="Left" Width="50px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
  209. <ItemStyle HorizontalAlign="Center" CssClass="grid-edit-column"></ItemStyle>
  210. <ItemTemplate>
  211. <asp:imagebutton runat="server" ImageUrl="images/icon-pencil.gif" CommandName="Edit" CausesValidation="false" ID="EditButton"></asp:imagebutton>
  212. <img src="images/spacer.gif" width="3">
  213. <asp:imagebutton Runat="server" ImageUrl="images/icon-delete.gif" CommandName="Delete" CausesValidation="False" ID="CatDeleteButton"></asp:imagebutton>
  214. </ItemTemplate>
  215. <EditItemTemplate>
  216. <asp:imagebutton runat="server" ImageUrl="images/icon-floppy.gif" CommandName="Update" CausesValidation="True" ID="UpdateButton"></asp:imagebutton>
  217. <img src="images/spacer.gif" width="3">
  218. <asp:imagebutton runat="server" ImageUrl="images/icon-pencil-x.gif" CommandName="Cancel" CausesValidation="false" ID="CatCancelButton"></asp:imagebutton>
  219. </EditItemTemplate>
  220. </asp:TemplateColumn>
  221. </Columns>
  222. </asp:datagrid><asp:customvalidator id="ProjectsGridCustomValidator" runat="server" enableviewstate="False" ErrorMessage="每个项目必须至少有一个进程!" display="Dynamic"></asp:customvalidator></td>
  223. <td>&nbsp;</td>
  224. <td>&nbsp;</td>
  225. </tr>
  226. </table>
  227. </td>
  228. </tr>
  229. <tr height="10">
  230. <td vAlign="top">
  231. <table cellSpacing="0" cellPadding="0" width="100%" border="0">
  232. <tr>
  233. <td>
  234. <hr>
  235. </td>
  236. </tr>
  237. <tr>
  238. <td align="right"><asp:button id="SaveButton2" runat="server" width="53px" CssClass="standard-text" Text="保存"></asp:button>&nbsp;&nbsp;
  239. <asp:button id="CancelButton2" runat="server" width="53" CssClass="standard-text" Text="取消" causesvalidation="False"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  240. <asp:button id="DeleteButton2" runat="server" CssClass="standard-text" Text="删除" causesvalidation="False"></asp:button></td>
  241. </tr>
  242. </table>
  243. </td>
  244. </tr>
  245. </table>
  246. </td>
  247. <td width="11"><IMG height="11" src="images/spacer.gif" width="11"></td>
  248. </tr>
  249. </table>
  250. </form>
  251. </body>
  252. </HTML>