<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    <!--所需引进的css-->
    <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" />
    <!--所需引进的js-->
    <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/06/p0608.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 type="text/javascript">
        $(function () {
            var objconfig = {};             //存放从后台返回的列配置
            var objResult = {};             //存放从后台返回的数据信息

            //从后台请求列配置
            objconfig = ParseData(window.external.DoOptions(strTableNameP0608, 'GetTableConfig', '{}'));

            //从后台获取据数
            objResult = ParseData(window.external.DoOptions(strTableNameP0608, 'GetList', '{}'));

            //注意：jqGrid的数据源是strParsedData.Records
            createGrid(strTableNameP0608,
        objconfig.colNames,
        objconfig.colModel,
        objResult.Records,
        fDCP0608,
        formatterZtP0608,
        false,
        funcDbClick);
            //手动排一下序
            $("#" + strTableNameP0608).sortGrid("a2", false, "asc");
            //表格加载完数据后，重新调整表格的高度和宽度
            resizeGrid(strTableNameP0608, false, false);
            resizeGridScroll(strTableNameP0608);

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                $(".operate").hide();
                resizeGrid(strTableNameP0608, false, false);
                resizeGridScroll(strTableNameP0608);
            }

            //释放一下内存
            objconfig = null;
            objResult = null;
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="alterRecord('1')">&nbsp;&nbsp;新&nbsp;&nbsp;&nbsp;增&nbsp;&nbsp;</a>
                            <span></span></li>
                    </ul>
                </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="TCkxx">
            </table>
        </div>
    </div>
    <div id="divP0608">
    </div>
    <div id="divP060801">
    </div>
</body>
</html>
