<!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" />
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                </div>
                <div class="dedt">
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="TKjkm">
            </table>
        </div>
    </div>
    <div id="divP0606">
    </div>
</body>
    <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/msgBox.js" type="text/javascript"></script>
    <script src="../../Scripts/msg.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/06/p0606.js" type="text/javascript"></script>
    <script type="text/javascript">

        //加载完成的标志位
        var bLoadComplete = false;
        $(document).ready(function () {

            //窗口改变时的事件
            window.onresize = function () {
                $(".operate").remove();

                resizeGrid(strTableP0606, false, false);
                resizeGridScroll(strTableP0606);
            }

            //列配置
            var config = ParseData(window.external.DoOptions(strTableP0606, 'GetTableConfig', '{}'));

            //取同一级
            var objRecords = ParseData(window.external.DoOptions(strTableP0606, 'GetList', '{}'));

            //创建grid
            createTreeGrid(strTableP0606, config.colNames, config.colModel, "{}", 'a3', onSelectP0606, null, dbClickP0606);

            //设置表格
            resizeGrid(strTableP0606, false, false);

            //设置属性
            $("#" + strTableP0606).setColProp("zt", { formatter: FormatterZtP0606 });

            //加载数据
            loadTreeData(strTableP0606, objRecords.Records);

            //调整滚动条
            resizeGridScroll(strTableP0606);

            //释放内存
            config = null;
            s = null;

            //加载完成
            bLoadComplete = true;

        });
    </script>
</html>
