No Description

WorkTimeOverSetEdit.aspx 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkTimeOverSetEdit.aspx.cs"
  2. EnableEventValidation="false" Inherits="Business_WorkTimeOverSetEdit" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <html>
  5. <head id="Head1" runat="server">
  6. <title>工单超时设置</title>
  7. <base target="_self" />
  8. <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
  9. <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
  10. <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
  11. <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
  12. <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
  13. <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
  14. <script type="text/javascript" language="javascript">
  15. function Init()
  16. {
  17. changeType();
  18. loadInfoBigType();
  19. }
  20. //修改类型
  21. function changeType() {
  22. document.getElementById("rfvState").enabled = false;
  23. document.getElementById("trState").style.display = "none";
  24. var types = document.getElementsByName("rblSetType");
  25. for (var i = 0; i < types.length; i++) {
  26. if (types[i].checked) {
  27. if (types[i].value == 1) {
  28. document.getElementById("trState").style.display = "inline";
  29. document.getElementById("rfvState").enabled = true;
  30. }
  31. break;
  32. }
  33. }
  34. }
  35. //加载业务大类
  36. function loadInfoBigType() {
  37. document.getElementById("ddlBigType").options.length = 0;
  38. document.getElementById("ddlBigType").options.add(new Option("--全部--", ""));
  39. var dt = Business_WorkTimeOverSetEdit.BindInfoType(document.getElementById("ddlInfoType").value).value;
  40. if (dt != null) {
  41. if (dt != undefined) {
  42. for (var i = 0; i < dt.Rows.length; i++) {
  43. document.getElementById("ddlBigType").options.add(new Option(dt.Rows[i]["TypeName"], dt.Rows[i]["TypeId"]));
  44. }
  45. }
  46. }
  47. if(document.getElementById("hfInfoBigType").value!="")
  48. {
  49. document.getElementById("ddlBigType").value=document.getElementById("hfInfoBigType").value;
  50. }
  51. }
  52. //绑定大类的值
  53. function BindBigInfo()
  54. {
  55. document.getElementById("hfInfoBigType").value=document.getElementById("ddlBigType").value;
  56. }
  57. </script>
  58. </head>
  59. <body onload="Init();">
  60. <form id="form1" runat="server">
  61. <asp:HiddenField ID="hfId" runat="server" />
  62. <asp:HiddenField ID="hfInfoBigType" runat="server" />
  63. <table class="stdTable" cellspacing="5" cellpadding="0" border="0" style="background-color: #fff;">
  64. <colgroup>
  65. <col width="95px" align="right" />
  66. <col />
  67. </colgroup>
  68. <tbody>
  69. <tr>
  70. <td>
  71. <span style="color: #ff0000; font-family: Wingdings;">v</span>业务类型:&nbsp;
  72. </td>
  73. <td>
  74. <asp:DropDownList ID="ddlInfoType" runat="server" CssClass="selectBox" Width="120px"
  75. onchange="loadInfoBigType();">
  76. </asp:DropDownList>
  77. <asp:RequiredFieldValidator ID="rfvType" runat="server" ControlToValidate="ddlInfoType"
  78. ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必选</asp:RequiredFieldValidator>
  79. </td>
  80. </tr>
  81. <tr height="25" runat="server">
  82. <td>
  83. 业务类别:
  84. </td>
  85. <td>
  86. <asp:DropDownList ID="ddlBigType" runat="server" CssClass="selectBox" Width="120px"
  87. onchange="BindBigInfo();">
  88. </asp:DropDownList>
  89. </td>
  90. </tr>
  91. <tr height="25">
  92. <td>
  93. 设置类型:
  94. </td>
  95. <td>
  96. <asp:RadioButtonList ID="rblSetType" runat="server" RepeatDirection="Horizontal"
  97. RepeatLayout="Flow" onclick="changeType()">
  98. <asp:ListItem Selected="True" Value="1">处理过程</asp:ListItem>
  99. <asp:ListItem Value="0">工单</asp:ListItem>
  100. </asp:RadioButtonList>
  101. </td>
  102. </tr>
  103. <tr height="25" id="trState" runat="server">
  104. <td>
  105. <span style="color: #ff0000; font-family: Wingdings;">v</span> 状态:
  106. </td>
  107. <td>
  108. <asp:DropDownList ID="ddlState" runat="server" CssClass="selectBox" Width="120px">
  109. </asp:DropDownList>
  110. <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="ddlState"
  111. ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必选</asp:RequiredFieldValidator>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td>
  116. <span style="color: #ff0000; font-family: Wingdings;">v</span> 处理时长:
  117. </td>
  118. <td>
  119. <asp:TextBox ID="txtLongTime" runat="server" CssClass="txt" Width="40px"></asp:TextBox>
  120. <asp:DropDownList ID="ddlUnit" runat="server" CssClass="selectBox" Width="60px">
  121. </asp:DropDownList>
  122. <asp:RequiredFieldValidator ID="ddlLongTime" runat="server" ControlToValidate="txtLongTime"
  123. ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必填</asp:RequiredFieldValidator>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td>
  128. <span style="color: #ff0000; font-family: Wingdings;">v</span> 告警时长:
  129. </td>
  130. <td>
  131. 还剩<asp:TextBox ID="txtRemainderTimeLong" runat="server" CssClass="txt" Width="40px"></asp:TextBox>
  132. <asp:DropDownList ID="ddlRemainderTimeUnit" runat="server" CssClass="selectBox" Width="60px">
  133. </asp:DropDownList>
  134. 开始告警
  135. <asp:RequiredFieldValidator ID="rfvRemainderTimeLong" runat="server" ControlToValidate="txtRemainderTimeLong"
  136. ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必填</asp:RequiredFieldValidator>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td>
  141. 备注:
  142. </td>
  143. <td>
  144. <asp:TextBox ID="txtRemark" runat="server" Width="80%" Height="60px" TextMode="MultiLine"></asp:TextBox>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td class="main" colspan="2">
  149. <div style="text-align: center;">
  150. <span id="spanRes" runat="server" style="color: Red;"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  151. <button id="btnSave" runat="server" onserverclick="btnBegin_ServerClick" style="width: 65px;"
  152. validationgroup="Group1">
  153. 保存</button>&nbsp;&nbsp;&nbsp;
  154. <button id="cmdDialogCancel" style="width: 65px;" onclick="parent.CloseWindowPage(0);">
  155. 取消</button>
  156. </div>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td colspan="2" height="100%">
  161. &nbsp;
  162. </td>
  163. </tr>
  164. </tbody>
  165. </table>
  166. </form>
  167. </body>
  168. </html>