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

<!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 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>
    <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 () {
            try {
                var w = $("#form1").width();
                var h = $("#form1").height() - 150;
                $("#divBaseInfo").ligerPanel({
                    title: '客户基本信息',
                    height: 125,
                    width: w
                });
                $("#divWorkOrderBase").ligerPanel({
                    title: '工单基本信息',
                    height: 125,
                    width: w
                });
                InitOrderFlow();
            }
            catch (e) {
                //alert(e.Message);
            }
        });
        function InitOrderFlow() {
            var w = $("#form1").width();
            var fcount = parseInt(document.getElementById("hfFlowCount").value);
            for (var i = 0; i < fcount; i++) {
                var divflow = "#divOrderFlow" + i.toString();
                var flowtitle = document.getElementById("hfFlowTitle" + i.toString()).value;
                var flowheight = parseInt(document.getElementById("hfFlowHeight" + i.toString()).value);
                $(divflow).ligerPanel({
                    title: flowtitle,
                    height: flowheight,
                    width: w
                });
            }
        }
        function PrePage() {
            parent.$.ligerDialog.close();
            var id = getQueryString("id");
            parent.NextWorkOrderId(id, "pre");
        }
        function NextPage() {
            parent.$.ligerDialog.close();
            var id = getQueryString("id");
            parent.NextWorkOrderId(id, "next");
        }
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
        function openFileList(hisid) {
            $.ligerDialog.open({ url: '../workorder/downloadfiles.aspx?hisid=' + hisid, width: 500 });
        }
    </script>
</head>
<body style="overflow: scroll; overflow-x: hidden;">
    <form id="form1" runat="server">
    <%--处理流程数量--%>
    <asp:HiddenField ID="hfFlowCount" Value="0" runat="server"></asp:HiddenField>
    <div id="divBaseInfo">
        <table class="form_table" style="width: 100%;">
        <colgroup>
        <col width="100" />
        <col />
        <col width="100" />
        <col />
        <col width="100" />
        <col />
        </colgroup>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户名称：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerName" runat="server" CssClass="txtInput normal" ReadOnly="true"
                        Style="width: 120px;"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户编号：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerCode" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    所属省市：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtProvince" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>

            <%--<tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户名称：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerName" runat="server" CssClass="txtInput normal" ReadOnly="true"
                        Style="width: 120px;"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户属性：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerNature" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户编号：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerCode" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    所属部门：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtServiceDept" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    客户等级：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCustomerClass" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    投诉负责人：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtAfterSaleName" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    维保时间：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtQualityGuaranteeEndTime" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    所属省市：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtProvince" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    系统类型：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtSystemType" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>--%>
        </table>
    </div>
    <div id="divWorkOrderBase">
        <table class="form_table" style="width: 100%;">
        <colgroup>
        <col width="100" />
        <col />
        <col width="100" />
        <col />
        <col width="100" />
        <col />
        </colgroup>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    工单编号：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtWorkOrderNum" runat="server" CssClass="txtInput normal" ReadOnly="true"
                        Style="width: 120px;"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    来电类型：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCallInType" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    创建时间：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCreateTime" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    工单状态：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtWorkOrderState" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <%--<th style="height:25px; padding:0px 8px 0px 0px;">
                    投诉级别：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtWorkOrderClass" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>--%>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    投诉类型：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtWorkOrderType" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    制单人：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCreateName" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr style="height:25px;">
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    来电人：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCallInName" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                <th style="height:25px; padding:0px 8px 0px 0px;">
                    来电人电话：
                </th>
                <td style="height:25px; padding:2px 0px 0px 8px;">
                    <asp:TextBox ID="txtCallInPhone" runat="server" CssClass="txtInput normal" Style="width: 120px;"
                        ReadOnly="true"></asp:TextBox>
                </td>
                
            </tr>
        </table>
    </div>
    <%=html%>
    <div class="foot_btn_box">
            <asp:Button ID="btnPerPage" runat="server" Text="上&nbsp;一&nbsp;条" CssClass="btnSubmit"
                OnClientClick="PrePage();"/>&nbsp;
            <asp:Button ID="btnNextPage" runat="server" Text="下&nbsp;一&nbsp;条" CssClass="btnSubmit"
                OnClientClick="NextPage();" />
    </div>
    </form>
</body>
</html>
