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

<!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" />
    <link href="../../images/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.form.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../../scripts/jquery/messages_cn.js"></script>
    <script type="text/javascript" src="../../scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="../../scripts/function.js"></script>
    <script src="../../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerRadioList.js" type="text/javascript"></script>
    <script src="../../scripts/ui/js/plugins/ligerSpinner.js" type="text/javascript"></script>
     <script src="../../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
     <script type="text/javascript">
         $(function () {
             document.getElementById("F_Name").value = "";
             document.getElementById("F_TypeName").value = "";
             document.getElementById("F_USERNAME").value = "";
             document.getElementById("F_CODE").value = "";
             document.getElementById("F_REPAIRMANPHONE").value = "";
             document.getElementById("F_CustomerNature").value = "";
             document.getElementById("F_SystemType").value = "";
             document.getElementById("F_ServiceDept").value = "";
             document.getElementById("F_QualityGuaranteeEndTime").value = "";
             document.getElementById("F_CONTENT").value = "";
             document.getElementById("F_RoleName").value = "";
             InitDropList();
         });
         function InitDropList() {
             try {
                 $("#F_Name").ligerComboBox({
                     valueField: 'id', resize: false, treeLeafOnly: false,
                        tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getF_Namelist',
                         checkbox: false,
                         ajaxType: 'get'
                     }
                 });

                 $("#F_TypeName").ligerComboBox({
                     valueField: 'id', resize: false, treeLeafOnly: false,
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getF_TypeNamelist',
                         checkbox: false,
                         ajaxType: 'get'
                     }
                 });
                 $("#F_RoleName").ligerComboBox({
                     valueField: 'F_RoleId', resize: false, treeLeafOnly: false,
                     tree: {
                         url: '../ajax/ligerComboBox.ashx?action=getF_RoleName',
                         checkbox: false,
                         ajaxType: 'get'
                     }
                 });
                 $("#F_KNOWLEDGE").ligerComboBox({
                     data: [
                            { text: '是', id: '0' },
                            { text: '否', id: '1' }
                        ], valueFieldID: 'test3', resize: true
                 });

                 $("#F_ALREADYKNOWLEDGE").ligerComboBox({
                     data: [
                            { text: '是', id: '0' },
                            { text: '否', id: '1' }
                        ], valueFieldID: 'test2', resize: true
                 });

             }
             catch (e) {
                 alert(e.Message);
             }
         }
         var sql = "" ;
         function Search() {
             if (document.getElementById("F_Name").value != "") {
                 sql += "&F_Name=" + escape(document.getElementById("F_Name").value);
             }
             if (document.getElementById("F_TypeName").value != "") {
                 sql += "&F_TypeName=" + escape(document.getElementById("F_TypeName").value);
             }
             if (document.getElementById("F_USERNAME").value != "") {
                 sql += "&F_USERNAME=" + escape(document.getElementById("F_USERNAME").value);
             }
             if (document.getElementById("F_CODE").value != "") {
                 sql += "&F_CODE=" + escape(document.getElementById("F_CODE").value);
             }
             if (document.getElementById("F_REPAIRMANPHONE").value != "") {
                 sql += "&F_REPAIRMANPHONE=" + escape(document.getElementById("F_REPAIRMANPHONE").value);
             }
             if (document.getElementById("F_CustomerNature").value != "") {
                 sql += "&F_CustomerNature=" + escape(document.getElementById("F_CustomerNature").value);
             }
             if (document.getElementById("F_SystemType").value != "") {
                 sql += "&F_SystemType=" + escape(document.getElementById("F_SystemType").value);
             }
             if (document.getElementById("F_ServiceDept").value != "") {
                 sql += "&F_ServiceDept=" + escape(document.getElementById("F_ServiceDept").value);
             }
             if (document.getElementById("F_QualityGuaranteeEndTime").value != "") {
                 sql += "&F_QualityGuaranteeEndTime=" + document.getElementById("F_QualityGuaranteeEndTime").value;
             }
             if ($("#test3").val() != "") {
                 sql += "&F_KNOWLEDGE=" + $("#test3").val();
             }
             if ($("#test2").val() != "") {
                 sql += "&F_ALREADYKNOWLEDGE=" + $("#test2").val();
             }
             if (document.getElementById("F_CONTENT").value != "") {
                 sql += "&F_CONTENT=" + escape(document.getElementById("F_CONTENT").value);
             }
             if (document.getElementById("F_RoleName").value != "") {
                 sql += "&F_RoleName=" + escape(document.getElementById("F_RoleName").value);
             }
             parent.Search(sql);
             var dialog = frameElement.dialog;
             dialog.close();
         }
         document.onkeydown = function (event) {
             var e = event || window.event || arguments.callee.caller.arguments[0];
             if (e && e.keyCode == 13) {
                 Search();
             }
         };
     </script>
</head>
<body>
    <form id="form1" runat="server">
<div id="contentTab">
        <ul class="tab_nav">
            <li class="selected"><a>搜索信息</a></li>
        </ul>
        <div class="tab_con" style="display: block; ">
            <table class="form_table">
                <col width="100px" />
                <col />
                <col width="100px" />
                <col />
                <tbody>
                    <tr>
                        <th>
                           工单状态：
                        </th>
                        <td>
                            <asp:TextBox ID="F_Name" runat="server" ></asp:TextBox>
                        </td>
                        <th>
                           来电类型：
                        </th>
                        <td>
                            <asp:TextBox ID="F_TypeName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                           制单人：
                        </th>
                        <td>
                            <asp:TextBox ID="F_USERNAME" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                        <th>
                           工单记录编号：
                        </th>
                        <td>
                            <asp:TextBox ID="F_CODE" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                           来电人电话：
                        </th>
                        <td>
                            <asp:TextBox ID="F_REPAIRMANPHONE" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                        <th>
                           客户属性：
                        </th>
                        <td>
                            <asp:TextBox ID="F_CustomerNature" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                           系统类型：
                        </th>
                        <td>
                            <asp:TextBox ID="F_SystemType" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                        <th>
                           客户归属部门：
                        </th>
                        <td>
                            <asp:TextBox ID="F_ServiceDept" runat="server" CssClass="txtInput normal" Style="width: 120px;"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th>
                            质保到期时间：
                        </th>
                        <td>
                                <asp:TextBox ID="F_QualityGuaranteeEndTime" runat="server" CssClass="txtInput normal" Style="width: 120px;" onfocus="WdatePicker({skin:'whyGreen'})"></asp:TextBox>
                        </td>
                        <th>
                            接单人角色：
                        </th>
                        <td>
                            <input type="text" id="F_RoleName" />
                        </td>
                        <%--<th>
                            是否形成知识：
                        </th>
                        <td>
                            <input type="text" id="F_KNOWLEDGE" />
                        </td>--%>
                    </tr>
                    <tr>
                        <%--<th>
                            是否已形成知识：
                        </th>
                        <td>
                            <input type="text" id="F_ALREADYKNOWLEDGE" />
                        </td>--%>
                        <th>
                            工单内容：
                        </th>
                        <td>
                            <input type="text" id="F_CONTENT" class="txtInput normal" style="width: 120px;" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="foot_btn_box">
       <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="Search();" />
        </div>
    </div>
    </form>
</body>
</html>
