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

<!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 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/CustomersData.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">
        var singleClick;

        $(function () {
            InitList();
        });

        function InitList() {
            var sql = GetSql();
            $.ajax({
                url: 'ajax/QcResultList.ashx?action=getlist' + sql,
                type: 'post',
                datatype: 'json',
                success: function (data) {
                    if (data != "") {
                        try {
                            $("#divDataList").html(data);
                            $("#htHtmlReport").val(data);
                        } catch (e) {

                        }

                    }
                }
            });
        }

        function GetSql() {
            var sql = "";
             if (document.getElementById("txtStartTime").value != "") {
                 sql += "&txtStartTime=" + document.getElementById("txtStartTime").value;
             }
             if (document.getElementById("txtEndTime").value != "") {
                 sql += "&txtEndTime=" + document.getElementById("txtEndTime").value;
             }
             if (document.getElementById("dtDpt").value != "" && document.getElementById("dtDpt").value != "请选择") {
                 sql += "&dpt=" + document.getElementById("dtDpt").value;
             }
             return sql;
        }
       
        document.onkeydown = function (event) {
            var e = event || window.event || arguments.callee.caller.arguments[0];
            if (e && e.keyCode == 13) {
                InitList();
            }
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <asp:HiddenField ID="htHtmlReport" runat="server" />
    <div class="tools_box">
        <div class="tools_bar">
            <div class="search_box">
               部门： <asp:DropDownList ID="dtDpt" runat="server" CssClass="select"></asp:DropDownList>&nbsp;&nbsp;<asp:TextBox ID="txtStartTime" runat="server" CssClass="txtInput" onfocus="WdatePicker({skin:'whyGreen'})"></asp:TextBox>&nbsp;至&nbsp;
                <asp:TextBox ID="txtEndTime" runat="server" CssClass="txtInput" onfocus="WdatePicker({skin:'whyGreen'})"></asp:TextBox>&nbsp;&nbsp;
                <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="InitList();" />&nbsp;&nbsp;
                <asp:LinkButton ID="exportExcel" Height="24px" runat="server" class="btnSearch" 
                    OnClientClick="return DaoChu()" onclick="exportExcel_Click" >导出Excel</asp:LinkButton>&nbsp;&nbsp;
            </div>
        </div>
    </div>
    <div id="divDataList">
            </div>
    </form>
</body>
</html>
