<!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/jquery.autonum.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/msg.js" type="text/javascript"></script>
    <script src="../../Scripts/msgBox.js" type="text/javascript"></script>
    <script src="../../Scripts/06/p0601.js" type="text/javascript"></script>
    <script src="../../Scripts/jsonConvert.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var objconfig = {};         //存放表格的列配置
            var objResult = {};         //存放后台返回数据

            //获得jqGrid的列名和属性
            objconfig = ParseData(window.external.DoOptions(strTableNameP0601, 'GetTableConfig', '{}'));

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

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

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                $(".operate").hide();
                resizeGrid(strTableNameP0601, false, false);
                resizeGridScroll(strTableNameP0601);
            }
            //释放内存
            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>
                            <ul class="addnav">
                                <li><a href="#" onclick="makeExportData('Tgysxx','供应商基本信息')">导出</a></li>
                            </ul>
                        </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="Tgysxx">
            </table>
        </div>
    </div>
    <div id="divP0601">
    </div>
    <div id="divP060101">
    </div>
</body>
</html>
