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

<!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/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 () {
            InitList();
        });
        function InitList() {
            try {
                gridlist = $("#divDataList").ligerGrid({
                    height: '100%',
                    columns: [
                { display: '客服部名称', name: 'F_DEPTNAME', width: '20%' },
                { display: 'Id', name: 'F_OWNERID', hide: 'Id', width: '1%' },
                { display: '领导姓名', name: 'F_USERNAME', width: '19%' },
                { display: '待派工数', name: 'F_DPGCOUNT', width: '10%' },
                { display: '操作', isSort: false, width: '10%', render: function (rowdata, rowindex, value) {
                    var h = "";
                    if (!rowdata._editing) {
                        h += "<a href='javascript:onclick=ShowInfo(" + rowdata.F_OWNERID + ",1)'>详细</a> ";
                    }
                    return h;
                }
                },
                { display: '待接单数', name: 'F_DJDCOUNT', width: '10%' },
                { display: '操作', isSort: false, width: 100, render: function (rowdata, rowindex, value) {
                    var h = "";
                    if (!rowdata._editing) {
                        h += "<a href='javascript:onclick=ShowInfo(" + rowdata.F_OWNERID + ",2)'>详细</a> ";
                    }
                    return h;
                }
                },
                { display: '待处理数', name: 'F_DCLCOUNT', width: '10%' },
                { display: '操作', isSort: false, width: 100, render: function (rowdata, rowindex, value) {
                    var h = "";
                    if (!rowdata._editing) {
                        h += "<a href='javascript:onclick=ShowInfo(" + rowdata.F_OWNERID + ",3)'>详细</a> ";
                    }
                    return h;
                }
                }
                ],
                    url: '../ajax/YXGCSCountsList.ashx?action=getGCSCountsList', pageSize: 1000, rownumbers: true
                });
            }
            catch (e) {
                alert(e.Message);
            }
            gridlist.changePage('first');
            $("#pageloading").hide();
        }

        function ShowInfo(ownerid, gdtype) {
            var w = $("#form1").width() - 20;
            var h = $("#form1").height();
            OpenWindowShow('workorderGDZHCXList.aspx?ownerid=' + ownerid + "&gdtype=" + gdtype, '查看工单详细', w, h);
        }
        function OpenWindowShow(Url, Title, Width, Height) {
            $.ligerDialog.open({ title: Title, url: Url, height: Height, width: Width, isResize: true, modal: true, isResize: true
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divDataList">
    </div>
    </form>
</body>
</html>
