<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderreply.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.workordermanage.workorder.orderreply" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>接单</title>
    <link href="../../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../scripts/ui/json2.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerTab.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../scripts/CustomersData.js" type="text/javascript"></script>
    <link href="../../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <link href="../../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="../../images/style.css" rel="stylesheet" type="text/css" />
     <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
         <script type="text/javascript">
             //客户端验证事件
        function checkUserDataAddOther() {
            document.getElementById("hfSQDX").value = "1471,";
            document.getElementById("hfSQDXName").value = "测试,";
        }
        $(function () {
            document.getElementById("runSavebtn0").disabled = false;
            document.getElementById("HFPanDuan").value = "true";
            if (document.getElementById("HFJueSe").value == '31') {
                document.getElementById("HFPanDuan").value = "false";
                document.getElementById("runSavebtn0").disabled = true;
                show();
            }
        });
        function show() {
            showMsg();
            //1000 * 60 * 5  是五分钟
            setInterval(showMsg, 1000 * 5);
        }
        function showMsg() {
            //alert(document.getElementById("HdWorkOrderId").value);
            $.ajax({
                async: false,
                type: "Post",
                url: "orderreply.aspx/Get",
                //方法传参的写法一定要对，str为形参的名字,str2为第二个形参的名字
                data: "{'id':'" + document.getElementById("HdWorkOrderId").value + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var pandaun = data.d;
                    if (pandaun=="1") {
                        document.getElementById("runSavebtn0").disabled = false;
                        document.getElementById("HFPanDuan").value = "true";
                    }
                },
                error: function (err) {
                }
            });
        }
         </script>
</head>
<body>
    <form id="form1" runat="server">
      <div region="north" border="false" split="flase" style="height: 0px;">
                  <!--授权对象eptIdlist-->
         <asp:HiddenField ID="hfSQDX" runat="server" />
          <!--授权对象人名列表-->
           <asp:HiddenField ID="hfSQDXName" runat="server" />
           <asp:HiddenField ID="HFPanDuan" runat="server" />
           <asp:HiddenField ID="HFJueSe" runat="server" />
           <asp:HiddenField ID="HdWorkOrderId" runat="server" />
           <asp:HiddenField ID="txtF_INSTANCEID" runat="server" />
           <asp:HiddenField ID="txtF_WORKORDERSTATEID" runat="server" />
    </div>
<div region="center" border="false" split="flase">
        <div class="easyui-panel" fit="true" border="true" title="工单处理" iconcls="icon-edit">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border: #A0A2AF 1px dotted;
                        background-color: #E0ECFF;">
                        当前状态
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-top: #A0A2AF 1px dotted;
                        border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_Name" runat="server" style="color: Red;">未知</span>
                    </td>
                </tr>
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        工单类型
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_TypeName" runat="server" style="color: Red;">未知</span>
                    </td>
                </tr>
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        建单人员
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_UserAccountName" runat="server" style="color: Red;">未知</span>
                    </td>
                </tr>
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        处理人员<asp:HiddenField ID="txtOpterId" runat="server" />
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_USERNAME" runat="server" style="color: blue;">未知</span>
                    </td>
                </tr>
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        预计工时
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_ESTIMATED" runat="server" style="color: blue;">无</span>
                    </td>
                </tr>
                <tr>
                    <td width="65px" height="30" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        形成知识
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<span id="F_KNOWLEDGE" runat="server" style="color: blue;">未知</span>
                    </td>
                </tr>
                 <tr style=" display:none;">
                    <td width="65px" height="120" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        指派对象
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                    <a class="tools_btn" href="#" onclick="Add();">
                <span><b class="add">添加</b></span>
            </a>
                        &nbsp;<asp:TextBox ID="TextBox1" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                Style="width:150px; height:100px;" ></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td width="65px" height="120" align="right" style="padding-right: 8px; border-bottom: #A0A2AF 1px dotted;
                        border-left: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted; background-color: #E0ECFF;">
                        回复内容
                    </td>
                    <td style="padding-left: 8px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<asp:TextBox ID="F_CONTENT" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                Style="width:120px; height:100px;" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td id="tdbtn" runat="server" colspan="2" align="center" valign="middle" height="30">
                    </td>
                </tr>
            </table>
        </div>
    </div>
        <div region="south" border="false" split="false" style="height: 0px;">
    </div>
    <div region="east" border="false" split="flase" style="width: 0px;">
    </div>
    <div region="west" border="false" split="flase" style="width: 0px;">
    </div>
    </form>
</body>
</html>
