<!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/p0506.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050601.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050602.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p050604.js" type="text/javascript"></script>
    <script src="../../Scripts/06/p060601.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            try {
                //改变窗口大小事件
                window.onresize = function () {
                    $(".operate").hide();

                    //重新设置表格高度
                    resizeGrid(strTableP0506, false, true);
                    resizeGridScroll(strTableP0506);
                }

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

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

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

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

                //创建grid
                createGrid(strTableP0506, objConfig.colNames, objConfig.colModel, "{}", onSelectGridP0506, null, false, dbClickP0506);

                //设置属性

                objTable.setGridParam({ onSortCol: sortDataP0506 });
                objTable.setColProp("ytfs", { formatter: formatterP0506YtType });
                objTable.setColProp("slje", { formatter: formatterP0506Slje });
                objTable.setColProp("ytsj", { formatter: formatterP0506Ytsj });
                objTable.setColProp("zt", { formatter: formatterP0506Zt });
                objTable.setColProp("gz", { formatter: formatterP0506Gz });
                objTable.setColProp("slje", { unformat: unFormatterP0506Slje });
                objTable.setColProp("ytfs", { unformat: unFormatterP0506YtType });
                objTable.setColProp("ytsj", { unformat: unFormatterP0506Ytsj });

                //默认排序
                objPageParamP0506.sortfield = "id";
                objPageParamP0506.orderby = "desc";

                //创建分页
                createPage(strPageP0506, strTableP0506);

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

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

                objTable = null;
            }
            catch (e) {
                proceError("P0506", 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="showDialogP050601('1');">新增规则</a>
                            <ul class="addnav">
                                <li><a href="#" onclick="showDialogP050604()">期初录入</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbKmP0506" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbJsrP0506" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDxP0506" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP0506" 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="Tp0506">
            </table>
        </div>
        <div id="divPageP0506" class="Page">
        </div>
    </div>
    <!--弹出层-->
    <div id="divP050601">
    </div>
    <div id="divP050602">
    </div>
    <div id="divP050603">
    </div>
    <div id="divP050604">
    </div>
    <div id="divP060601">
    </div>
    <div id="divAddType">
    </div>
</body>
</html>
