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

<!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 type="text/javascript">
        var actionNodeID;
        $(function () {
            $("#layout1").ligerLayout({
                leftWidth: 300,
                allowCenterBottomResize: false
            });

            $("#tree1").ligerTree({
                nodeWidth: 200,
                checkbox: false,
                isExpand:1,
                url: 'ajax/regionlist.ashx?action=gettreelist',
                onClick: function (node, e) {
                    actionNodeID = node.data.id;
                    LoadList();
                }
            });
            LoadList();
        });

        function LoadList() {
            try {
                if (actionNodeID == undefined) {
                    actionNodeID = "";
                }
                gridlist = $("#divDataList").ligerGrid({
                    height: 380,
                    columns: [
                { display: '编号', name: '_f_regionid', minWidth: 60 },
                { display: '地区名称', name: '_f_regionname', minWidth: 60 },
                { display: '排序', name: '_f_sort'}],
                    url: 'ajax/regionlist.ashx?action=getregionlist&F_ParentId=' + actionNodeID,
                    pageSize: 10, rownumbers: false
                });
                gridlist.changePage('first');
            }
            catch (e) {
                alert(e.message);
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tools_box">
        <div class="tools_bar"><a class="tools_btn" href="#" onclick="Add('add');">
                <span><b class="add">添加</b></span>
            </a>
            <a class="tools_btn" href="#" onclick="Edit('edit');">
                <span><b class="modify">修改</b></span>
            </a>
              <a class="tools_btn" href="#" onclick="DeleteUser();">
                <span><b class="delete">删除</b></span>
            </a>
        </div>
    </div>
    <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">
            </ul>
        
        </div>
        <div position="center" title="地区列表">
        <div id="divDataList">
            </div>
        </div>
    </div>
    </form>
</body>
</html>
