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

<!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>
    <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 type="text/javascript">
            var actionNodeID;
            var singleClick;
            var count = 1;
            var counts = 1;
            $(function () {
                $("#layout1").ligerLayout({
                    leftWidth: 200,
                    allowCenterBottomResize: false
                });
                $("#tree1").ligerTree({
                    nodeWidth: 135,
                    isExpand: false,
                    checkbox: false,
                    url: '../../sysmanage/ajax/deptcategory.ashx?action=gettreelist',
                    onClick: function (node, e) {
                        count += 1;
                        counts = count;
                        actionNodeID = node.data.id;
                        LoadList(node.data.id);
                    }
                });
                LoadList("");
            });
            function LoadList(id) {
                if (actionNodeID == undefined) {
                    actionNodeID = "";
                }
                gridlist = $("#divDataList").ligerGrid({
                    height: '95%',
                    columns: [
                { display: 'ID', name: '_f_userid', align: 'left', width: '1%', hide: true },
                { display: '用户编号', name: '_f_usercode', width: '30%' },
                { display: '用户名称', name: '_f_username', width: '30%' },
                { display: '电话号码', name: '_f_telephone', width: '30%' }
                ], url: '../../sysmanage/ajax/UserAjaxList.ashx?action=getUserList' + '&id=' + id, pageSize: 10, rownumbers: true,
                    onSelectRow: function (rowdata, rowid, rowobj) { parent.SetTelphone(rowdata._f_telephone); }

                });
                gridlist.changePage('first');
                $("#pageloading").hide();
            }
            function CloseThis() {
                var dialog = frameElement.dialog;
                dialog.close();
            }
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="layout1"     style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px">
      <div style="height: 95%;overflow:scroll;" position="left" title="部门信息">
            <ul id="tree1">
                <li isexpand="false" id="-1">
                    <span>部门信息</span>
                    <ul>
                    </ul>
                </li> 
            </ul>
        </div>
        <div position="center" title="用户列表">
            <div id="divDataList">
            </div>
        </div>
    </div>
    </form>
</body>
</html>
