<!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>
    <!--引用样式-->
    <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.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/lib/jquery.autonum.min.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/page.js" type="text/javascript"></script>
    <script src="../../Scripts/ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p0101.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p010101.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p010102.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p010103.js" type="text/javascript"></script>
    <!--<script src="../../Scripts/01/p010104_qc.js" type="text/javascript"></script>-->
    <script language="javascript" type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //日期控件的绑定
            inputAndBindData("dateStartTimeP0101", false, null, dateTimeChange_P0101);
            inputAndBindData("dateEndTimeP0101", false, null, dateTimeChange_P0101);
            //转换下拉框控件类型
            $("#cmbDateExtentP0101").combobox();    //快捷日期
            $("#cmbProviderP0101").combobox();      //供应商
            $("#cmbDrugP0101").combobox();          //药品
            $("#cmbBillsTypeP0101").combobox();     //单据类型
            addArrowClass();                        //设置下拉框按钮的样式

            //页面加载方法
            pageLoad_P0101();

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

                //调整表格的大小
                //resizeTbl(false, strTableP0101, true, true);
                resizeGrid(strTableP0101, true, true);

                //有滚动条时改变表格宽度
                //resizeGrid(strTableP0101);
                resizeGridScroll(strTableP0101);
            }

            //是否更新下拉框信息
            bLoadComplete = true;
        });

        //更新下拉框信息
        function refreshMyCombobox(strModels) {
            for (var i = 0; i < strModels.length; i++) {
                var data = getComboboxData(strModels[i] + "2");
                //这里是当前页面有的comgbobox
                if (strModels[i] == "Tgysxx") {
                    data.unshift({ "dm": "", "mc": "全部供应商", "selected": true });
                    reLoadCombobox("cmbProviderP0101", data);
                }
                else if (strModels[i] == "Tspxx") {
                    data.unshift({ "dm": "", "mc": "全部药品", "selected": true });
                    reLoadCombobox("cmbDrugP0101", data);
                }
            }
        }
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="openBuy(1)">&nbsp;&nbsp;采&nbsp;&nbsp;&nbsp;购&nbsp;&nbsp;</a>
                            <ul class="addnav">
                                <li><a href="#" onclick="showDialog_P010102('1')">退货</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP0101" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="inp_70">
                            <input id="dateStartTimeP0101" type="text" style="text-align: center" onchange="dateTimeChange_P0101()" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0101" type="text" style="text-align: center" onchange="dateTimeChange_P0101()" />
                        </li>
                        <li>
                            <select id="cmbProviderP0101" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDrugP0101" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbBillsTypeP0101" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP0101" href="#" onclick="searchDataClick_P0101()">
                            查询</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="Tp0101">
            </table>
        </div>
        <!-- 分页使用层 -->
        <div id="divPageP0101" class="Page">
        </div>
    </div>
    <!-- 弹出窗口使用层 -->
    <div id="divP010101">
    </div>
    <div id="divP010102">
    </div>
    <div id="divP010103">
    </div>
    <div id="divP010104">
    </div>
    <div id="divAddType">
    </div>
</body>
</html>
