| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="WorkTimeOverSetEdit.aspx.cs"
- EnableEventValidation="false" Inherits="Business_WorkTimeOverSetEdit" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html>
- <head id="Head1" runat="server">
- <title>工单超时设置</title>
- <base target="_self" />
- <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
- <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
- <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
- <script type="text/javascript" language="javascript">
- function Init()
- {
- changeType();
- loadInfoBigType();
- }
- //修改类型
- function changeType() {
- document.getElementById("rfvState").enabled = false;
- document.getElementById("trState").style.display = "none";
- var types = document.getElementsByName("rblSetType");
- for (var i = 0; i < types.length; i++) {
- if (types[i].checked) {
- if (types[i].value == 1) {
- document.getElementById("trState").style.display = "inline";
- document.getElementById("rfvState").enabled = true;
- }
- break;
- }
- }
- }
-
- //加载业务大类
- function loadInfoBigType() {
-
- document.getElementById("ddlBigType").options.length = 0;
- document.getElementById("ddlBigType").options.add(new Option("--全部--", ""));
- var dt = Business_WorkTimeOverSetEdit.BindInfoType(document.getElementById("ddlInfoType").value).value;
- if (dt != null) {
- if (dt != undefined) {
- for (var i = 0; i < dt.Rows.length; i++) {
- document.getElementById("ddlBigType").options.add(new Option(dt.Rows[i]["TypeName"], dt.Rows[i]["TypeId"]));
- }
- }
- }
- if(document.getElementById("hfInfoBigType").value!="")
- {
- document.getElementById("ddlBigType").value=document.getElementById("hfInfoBigType").value;
- }
- }
- //绑定大类的值
- function BindBigInfo()
- {
- document.getElementById("hfInfoBigType").value=document.getElementById("ddlBigType").value;
- }
- </script>
- </head>
- <body onload="Init();">
- <form id="form1" runat="server">
- <asp:HiddenField ID="hfId" runat="server" />
- <asp:HiddenField ID="hfInfoBigType" runat="server" />
- <table class="stdTable" cellspacing="5" cellpadding="0" border="0" style="background-color: #fff;">
- <colgroup>
- <col width="95px" align="right" />
- <col />
- </colgroup>
- <tbody>
- <tr>
- <td>
- <span style="color: #ff0000; font-family: Wingdings;">v</span>业务类型:
- </td>
- <td>
- <asp:DropDownList ID="ddlInfoType" runat="server" CssClass="selectBox" Width="120px"
- onchange="loadInfoBigType();">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="rfvType" runat="server" ControlToValidate="ddlInfoType"
- ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必选</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr height="25" runat="server">
- <td>
- 业务类别:
- </td>
- <td>
- <asp:DropDownList ID="ddlBigType" runat="server" CssClass="selectBox" Width="120px"
- onchange="BindBigInfo();">
- </asp:DropDownList>
- </td>
- </tr>
- <tr height="25">
- <td>
- 设置类型:
- </td>
- <td>
- <asp:RadioButtonList ID="rblSetType" runat="server" RepeatDirection="Horizontal"
- RepeatLayout="Flow" onclick="changeType()">
- <asp:ListItem Selected="True" Value="1">处理过程</asp:ListItem>
- <asp:ListItem Value="0">工单</asp:ListItem>
- </asp:RadioButtonList>
- </td>
- </tr>
- <tr height="25" id="trState" runat="server">
- <td>
- <span style="color: #ff0000; font-family: Wingdings;">v</span> 状态:
- </td>
- <td>
- <asp:DropDownList ID="ddlState" runat="server" CssClass="selectBox" Width="120px">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="rfvState" runat="server" ControlToValidate="ddlState"
- ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必选</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>
- <span style="color: #ff0000; font-family: Wingdings;">v</span> 处理时长:
- </td>
- <td>
- <asp:TextBox ID="txtLongTime" runat="server" CssClass="txt" Width="40px"></asp:TextBox>
- <asp:DropDownList ID="ddlUnit" runat="server" CssClass="selectBox" Width="60px">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="ddlLongTime" runat="server" ControlToValidate="txtLongTime"
- ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必填</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>
- <span style="color: #ff0000; font-family: Wingdings;">v</span> 告警时长:
- </td>
- <td>
- 还剩<asp:TextBox ID="txtRemainderTimeLong" runat="server" CssClass="txt" Width="40px"></asp:TextBox>
- <asp:DropDownList ID="ddlRemainderTimeUnit" runat="server" CssClass="selectBox" Width="60px">
- </asp:DropDownList>
- 开始告警
- <asp:RequiredFieldValidator ID="rfvRemainderTimeLong" runat="server" ControlToValidate="txtRemainderTimeLong"
- ErrorMessage="" ToolTip="" ValidationGroup="Group1" Display="Dynamic">必填</asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td>
- 备注:
- </td>
- <td>
- <asp:TextBox ID="txtRemark" runat="server" Width="80%" Height="60px" TextMode="MultiLine"></asp:TextBox>
- </td>
- </tr>
- <tr>
- <td class="main" colspan="2">
- <div style="text-align: center;">
- <span id="spanRes" runat="server" style="color: Red;"></span>
- <button id="btnSave" runat="server" onserverclick="btnBegin_ServerClick" style="width: 65px;"
- validationgroup="Group1">
- 保存</button>
- <button id="cmdDialogCancel" style="width: 65px;" onclick="parent.CloseWindowPage(0);">
- 取消</button>
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="2" height="100%">
-
- </td>
- </tr>
- </tbody>
- </table>
- </form>
- </body>
- </html>
|