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

<!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 id="Head1" 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/ligerComboBox.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 Confirm(optid) {
                 if (document.getElementById("txtZhu").value == "1") {
                     var pandaun;
                     $.ajax({
                         async: false,
                         type: "Post",
                         url: "orderchuli.aspx/Get",
                         //方法传参的写法一定要对，str为形参的名字,str2为第二个形参的名字
                         data: "{'id':'" + document.getElementById("txtF_WORKORDERID").value + "'}",
                         contentType: "application/json; charset=utf-8",
                         dataType: "json",
                         success: function (data) {
                             var pandaun = data.d;
                             if (pandaun == "0") {
                                 parent.$.ligerDialog.confirm('还有辅助人员没有处理工单，你确定要完成处理吗?', function (yes) {
                                     if (yes) {
                                         __doPostBack('runSavebtn' + optid, '');
                                         return true;
                                     }
                                 });
                                 return false;
                             } else {
                                 __doPostBack('runSavebtn' + optid, '');
                                 return true; 
                             }
                         },
                         error: function (err) {

                         }
                     });

                     return false;

                 }

             }
             $(function () {
                 InitTreeList();
             });
             function InitTreeList() {
                 treelist = $("#F_SERVICENATURE").ligerComboBox({
                     selectBoxWidth: 200,
                     selectBoxHeight: 200,
                     valueField: 'id', resize: false, treeLeafOnly: true, isMultiSelect: false,
                     onSelected: function (newvalue) {
                     },
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=gettreelist',
                         checkbox: false,
                         ajaxType: 'get',
                         onSuccess: function (data) {
                             if (data.length > 1) {
                                 liger.get("F_SERVICENATURE").setValue(data[1].id);
                             }
                         }
                     }
                 });
                 treelist1 = $("#F_SERVICEMETHOD").ligerComboBox({
                     selectBoxWidth: 200,
                     selectBoxHeight: 200,
                     valueField: 'id', resize: false, treeLeafOnly: true, isMultiSelect: false,
                     onSelected: function (newvalue) {
                     },
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getSERVICEMETHODtree',
                         checkbox: false,
                         ajaxType: 'get',
                         onSuccess: function (data) {
                             if (data.length > 1) {
                                 liger.get("F_SERVICEMETHOD").setValue(data[1].id);
                             }
                         }
                     }
                 });
                 $("#F_SERVICETYPE").ligerComboBox({
                     selectBoxWidth: 200,
                     selectBoxHeight: 200,
                     valueField: 'id', resize: false, treeLeafOnly: true, isMultiSelect: false,
                     onSelected: function (newvalue) {
                     },
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getSERVICETYPElist',
                         checkbox: false,
                         ajaxType: 'get',
                         onSuccess: function (data) {
                             if (data.length > 0) {
                                 liger.get("F_SERVICETYPE").setValue(data[0].id);
                             }
                         }
                     }
                 });
                 $("#F_VISITOPINION").ligerComboBox({
                     selectBoxWidth: 200,
                     selectBoxHeight: 200,
                     valueField: 'id', resize: false, treeLeafOnly: true, isMultiSelect: false,
                     onSelected: function (newvalue) {
                     },
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getVISITOPINIONlist',
                         checkbox: false,
                         ajaxType: 'get',
                         onSuccess: function (data) {
                             
                         }
                     }
                 });
                 $("#F_ORDERTYPE").ligerComboBox({
                     selectBoxWidth: 200,
                     selectBoxHeight: 200,
                     valueField: 'id', resize: false, treeLeafOnly: true, isMultiSelect: false,
                     onSelected: function (newvalue) {
                     },
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getORDERTYPElist',
                         checkbox: false,
                         ajaxType: 'get',
                         onSuccess: function (data) {

                         }
                     }
                 });

             }
             //客户端验证事件
             function checkUserDataAddOther() {
                 document.getElementById("hfSQDX").value = "1471,";
                 document.getElementById("hfSQDXName").value = "测试,";
             }
             function shangchuan() {
                 parent.OpenWindowShow("shangchuan.aspx", '附件信息', 500, 350);
                 //$.ligerDialog.open({ url: 'shangchuan.aspx', title: '附件信息', height: 200, width: 200, isResize: true});
             }
         </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="txtF_INSTANCEID" runat="server" />
           <asp:HiddenField ID="txtF_WORKORDERSTATEID" runat="server" />
           <asp:HiddenField ID="txtF_WORKORDERID" runat="server" />
           <asp:HiddenField ID="txtZhu" 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 style="display:none;">
                    <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 style="display:none;">
                    <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_ESTIMATED" runat="server" style="color: blue;">无</span>
                    </td>
                </tr>
                <tr style="display:none">
                    <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="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 style="display:none;">
                    <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: 12px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        <asp:TextBox ID="F_SERVICETYPE" runat="server" ></asp:TextBox>
                    </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: 12px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<asp:TextBox ID="F_SERVICENATURE" runat="server"></asp:TextBox>
                    </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: 12px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<asp:TextBox ID="F_SERVICEMETHOD" runat="server"></asp:TextBox>
                    </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: 12px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<asp:TextBox ID="F_ORDERTYPE" runat="server"></asp:TextBox>
                    </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;<asp:TextBox ID="F_COEFFICIENT" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                 ></asp:TextBox><br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="难度系数是带一位小数点的数字"
                         ControlToValidate="F_COEFFICIENT" ValidationExpression="^[0-9]+(.[0-9]{1})?$"  ></asp:RegularExpressionValidator>
                    </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;<asp:TextBox ID="F_DECLARATION" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                 ></asp:TextBox><br />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="工时是带一位小数点的数字"
                         ControlToValidate="F_DECLARATION" ValidationExpression="^[0-9]+(.[0-9]{1})?$"  ></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr style="display:none">
                    <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;<asp:RadioButton ID="RadioButton1" runat="server" Text="是"  GroupName="a"/>
                        <asp:RadioButton ID="RadioButton2" runat="server" Text="否" Checked="true" GroupName="a"/>
                    </td>
                </tr>
                <tr style="display:none">
                    <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;<asp:TextBox ID="F_KNOWLEDGENAME" runat="server" CssClass="txtInput normal" TextMode="MultiLine"
                                 ></asp:TextBox>
                    </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: 12px; border-bottom: #A0A2AF 1px dotted; border-right: #A0A2AF 1px dotted;">
                        &nbsp;<asp:TextBox ID="F_VISITOPINION" runat="server"></asp:TextBox>
                    </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;">
                     <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'"
                                    onclick="shangchuan();" style="color:Blue;">打开上传页面</a>
                    </td>
                </tr>
                 <tr>
                    <td width="65px" height="100" 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:130px; height:140px;" ></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>
