<!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/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.layoutpanel.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.autonum.min.js" type="text/javascript"></script>
    <script src="../../Scripts/page.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/ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p0509.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050901.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050902.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050904.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {
            try {
                //改变窗口大小时事件
                window.onresize = function () {
                    $(".operate").hide();
                    resizeGrid(strTableP0509, false, true);
                    resizeGridScroll(strTableP0509);
                }

                //查询点击事件
                $("#btnSearchDataP0509").click(function () {
                    objPageParamP0509.sortfield = "id";
                    objPageParamP0509.orderby = "desc";
                    objPageParamP0509.flag = 1;

                    //加载表格数据
                    searchDataClickP0509();
                });

                //配置信息
                var objConfig = ParseData(window.external.DoOptions(strTableP0509, "GetTableConfig", "{}"));
                var objTable = $("#" + strTableP0509);

                //头部搜索信息
                getSearchInfoP0509();

                //创建table
                createGrid(strTableP0509, objConfig.colNames, objConfig.colModel, "{}", onSelectGridP0509, null, false, dbClickP0509);

                //设置属性
                objTable.setGridParam({ onSortCol: sortDataP0509 });
                objTable.setColProp("ytfs", { formatter: formatterP0509YtType });
                objTable.setColProp("slje", { formatter: formatterP0509Slje });
                objTable.setColProp("ytsj", { formatter: formatterP0509Ytsj });
                objTable.setColProp("zt", { formatter: formatterP0509Zt });
                objTable.setColProp("gz", { formatter: formatterP0509Gz });
                objTable.setColProp("slje", { unformat: unFormatterP0509Slje });
                objTable.setColProp("ytfs", { unformat: unFormatterP0509YtType });
                objTable.setColProp("ytsj", { unformat: unFormatterP0509Ytsj });

                //默认分页排序
                objPageParamP0509.sortfield = "id";
                objPageParamP0509.orderby = "desc";

                //创建分页
                createPage(strPageP0509, strTableP0509);

                //设置表格的高度
                resizeGrid(strTableP0509, false, true);

                //加载表格数据
                searchDataClickP0509();

                bLoadComplete = true;

                objTable = null;
            }
            catch (e) {
                proceError("P0509", e.ToString());
            }
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="showDialogP050901('1');">新增规则</a> <span></span>
                            <!--              <ul class="addnav">-->
                            <!--<li><a href="#" onclick="showDialogP050904();">期初录入</a></li>-->
                            <!--              </ul>-->
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbZyP0509" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP0509" href="#">查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="Tp0509">
            </table>
        </div>
        <div id="divPageP0509" class="Page">
        </div>
    </div>
    <!--弹出层-->
    <div id="divP050901">
    </div>
    <div id="divP050902">
    </div>
    <div id="divP050903">
    </div>
    <div id="divP050904">
    </div>
    <div id="divAddType">
    </div>
</body>
</html>
