<!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>
    <title>部门信息</title>
    <link href="../../Content/Default/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Default/ui.jqgrid.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/lib/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/grid.locale-cn.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.jqGrid.min.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/06/p0604.js" type="text/javascript"></script>
    <script src="../../Scripts/msg.js" type="text/javascript"></script>
    <script src="../../Scripts/msgBox.js" type="text/javascript"></script>
    <script type="text/javascript">
        //改变窗口大小时，改变表格的高度和宽度。
        window.onresize = function () {
            $(".operate").remove();
            resizeGrid(strTableP0604, false, false);
            resizeGridScroll(strTableP0604);
        }


        //=====================页面初始化==================
        $(function () {

            var config = ParseData(window.external.DoOptions(strTableP0604, 'GetTableConfig', ''));
            var arrData = ParseData(window.external.DoOptions(strTableP0604, 'GetList', '{}'));

            //创建treegrid
            createTreeGrid(strTableP0604, config.colNames, config.colModel, arrData.Records, "a3", function (rowId) {
                selItem = $(this).getRowData(rowId);
                var strBtns = '<a herf="#" onclick="openBMXX(2, \'' + rowId + '\');return false;">新增下一级</a>-<a herf="#" onclick="openBMXX(3, \'' + rowId + '\');return false;">修改</a>-<a  herf="#" onclick="delSelItem();return false;">删除</a>';
                createFloatButton.call(this, rowId, strBtns);
            }, null, function (state, rowId) {
                selRowId = rowId;
                openBMXX(3, rowId);
            });

            //加载treegrid 数据
            loadTreeData(strTableP0604, arrData.Records);
            resizeGrid(strTableP0604, false, false);
            resizeGridScroll(strTableP0604);
        })
    </script>
</head>
<body style="width: 100%">
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="openBMXX(1);return false;">&nbsp;&nbsp;新&nbsp;&nbsp;&nbsp;增&nbsp;&nbsp;</a></li>
                        <span></span>
                    </ul>
                </div>
                <div class="dedt">
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation" style="width: 100%">
        <div class="mation_div" style="width: 100%">
            <table id="Tbmxx" style="width: 100%">
            </table>
        </div>
    </div>
    <div id="divP0604">
    </div>
    <div id="divmessage">
    </div>
    <input type="hidden" id="isRoot" />
</body>
</html>
