<!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/Default/combo.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/Default/combobox.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/lib/jquery.autonum.min.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.combo_ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.combobox.js" type="text/javascript"></script>
    <script src="../../Scripts/lib/jquery.layoutpanel.js" type="text/javascript"></script>
    <script src="../../Scripts/jsonConvert.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/p0605.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(function () {
            var objconfig = [];
            var objResult = [];
            //获得jqGrid的列名和属性
            objconfig = ParseData(window.external.DoOptions(strTableNameP0605, 'GetTableConfig', '{}'));
            //获得数据源。
            objResult = ParseData(window.external.DoOptions(strTableNameP0605, 'GetList', '{}'));

            //创建jqGrid  
            createGrid(strTableNameP0605, objconfig.colNames, objconfig.colModel, objResult.Records, selectRow_P0605, gridComplete_P0605, false, alterRecord);
            $("#" + strTableNameP0605).sortGrid("a2", false, "asc");
            //表格加载完数据后，调整一下表格的高度和宽度
            resizeGrid(strTableNameP0605, false, false);

            //表格加载完数据后，调整列宽度自适应表格
            resizeGridScroll(strTableNameP0605);

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                //隐藏浮动层
                $(".operate").hide();

                //调整表格的大小
                resizeGrid(strTableNameP0605, false, false);

                //有滚动条时改变表格宽度
                resizeGridScroll(strTableNameP0605);
            }
            objconfig = null;
            objResult = null;
        });
        function toExcelMethod() {  //导出数据
            makeExportData(strTableNameP0605, "职员基本信息");
        }
    </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="javascript:openBmDlg()">部门设置</a></li>
                                          <li><a href="#" onclick="javascript:toExcelMethod()">导出</a></li>
                               <!-- <li><a href="#" onclick="alert('导入数据！');">导入</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="TZyxx">
            </table>
        </div>
    </div>
    <div id="divP0605"></div>
    <!--消息提示窗口-->
    <div id="divMessage">
    </div>
</body>
</html>
