<!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/common.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/03/p0301.js" type="text/javascript"></script>
    <script src="../../Scripts/03/P030101.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(document).ready(function () {
            try {

                //表格对象，配置信息
                var objTable = $("#" + strTableP0301);
                var objConfig = ParseData(window.external.DoOptions(strTableP0301, "GetTableConfig", "{}"));

                //改变窗口大小时事件
                window.onresize = function () {
                    $(".operate").hide();
                    resizeGrid(strTableP0301, true, true);
                    resizeGridScroll(strTableP0301);
                }

                //查询按钮点击事件
                $("#btnSearchDataP0301").click(function () {
                    objPageParamP0301.sortfield = "djdate";
                    objPageParamP0301.orderby = "asc";
                    objPageParamP0301.flag = 1;

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

                //头部信息
                getTopInfoP0301();

                //创建grid
                createGrid(strTableP0301, objConfig.colNames, objConfig.colModel, "{}", onSelectGridP0301, null, true, funcDbClick);

                //设置属性
                objTable.setColProp("rksl", { formatter: formatterP0301Count });
                objTable.setColProp("cksl", { formatter: formatterP0301Count });
                objTable.setColProp("glsl", { formatter: formatterP0301Count });
                objTable.setGridParam({ onSortCol: sortDataP0301 });

                //分页默认排序
                objPageParamP0301.sortfield = "djdate";
                objPageParamP0301.orderby = "asc";

                //创建分页
                createPage(strPageP0301, strTableP0301);

                //设置表格宽度
                resizeGrid(strTableP0301, true, true);

                //搜索数据
                searchDataClickP0301();

                //释放内存
                objTable = null;

                //其他
                bLoadComplete = true;
            }
            catch (e) {
                proceError("p0301", e.ToString());
            }
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP0301" class="easyui-combobox">
                                <option selected="selected" value='今天'>今天</option>
                                <option value='昨天'>昨天</option>
                                <option value='本周'>本周</option>
                                <option value='本月'>本月</option>
                                <option value='上一月'>上一月</option>
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0301" type="text" style="width: 70px;" onchange="dateTimeChangeP0301();" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0301" type="text" style="width: 70px;" onchange="dateTimeChangeP0301();" />
                        </li>
                        <li>
                            <!-- 全部仓库 -->
                            <select id="cmbCkP0301" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部往来单位 -->
                            <select id="cmbWldwP0301" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部药品 -->
                            <select id="cmbSpP0301" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <!-- 全部业务类型 -->
                            <select id="cmbTypesP0301" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="unline">
                            <!-- 只显示未登记完 -->
                            <input id="chbShowP0301" type="checkbox" checked="checked" />
                            <span onclick="$('#chbShowP0301').attr('checked',!$('#chbShowP0301').attr('checked'))">
                                只显示未登记完</span> </li>
                        <li class="enter"><a id="btnSearchDataP0301" 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="Tp0301">
            </table>
        </div>
    </div>
    <div class="Page">
        <div id="divPageP0301">
        </div>
        <div class="clr">
        </div>
    </div>
    <!-- 弹出层 -->
    <div id="divP030101">
    </div>
</body>
</html>
