<!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/jsonConvert.js" type="text/javascript"></script>
    <script src="../../Scripts/page.js" type="text/javascript"></script>
    <script src="../../Scripts/01/P011202.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p011202_fhd.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p011202_fxd.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        var bLoadComplete = true; //是否更新下拉框信息
        $(function () {
            //转换下拉框控件类型
            $("#cmbDateExtentP011202").combobox();
            $("#cmbProviderP011202").combobox();
            $("#cmbDrugP011202").combobox();
            $("#cmbBillsTypeP011202").combobox();
            addArrowClass(); //修改combobox箭头的样式
            inputAndBindData("dateStartTimeP011202", false, null, dateTimeChange_P011202);
            inputAndBindData("dateEndTimeP011202", false, null, dateTimeChange_P011202);

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

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                //调整表格的大小
                resizeGrid(strTableP011202, true, true);

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

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

        //更新下拉框信息
        function refreshMyCombobox() {
            var strModels = $("#idRefreshCombobox").val();
            var data = getComboboxData(strModels + "2");

            if (strModels == "Tspxx") {
                data.unshift({ dm: "", mc: "全部药品", "selected": true });
                reLoadCombobox("cmbDrugP011202", data);
            }
            if (strModels == "Tgysxx") {
                data.unshift({ dm: "", mc: "全部供应商", "selected": true });
                reLoadCombobox("cmbProviderP011202", data);
            }
        }
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="Back_box">
                    <ul class="Back_btn">
                        <li class="Back_left"><a href="#" onclick="viewReceipt_P011202()">查看单据</a> </li>
                        <li class="Back_cen"><a href="#" onclick="makeExportData(strTableP011202,'采购返利明细信息')">
                            导出</a> </li>
                        <li class="Back_right"><a href="#" onclick="pageBack_P011202()">返回</a> </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP011202" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="inp_70">
                            <input id="dateStartTimeP011202" type="text" onchange="dateTimeChange_P011202()" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP011202" type="text" onchange="dateTimeChange_P011202()" />
                        </li>
                        <li>
                            <select id="cmbProviderP011202" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDrugP011202" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP011202" href="#" onclick="searchDataClick_P011202()">
                            查询</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="Tp011202">
            </table>
        </div>
        <!-- 分页使用层 -->
        <div id="divPageP011202" class="Page">
        </div>
    </div>
    <!-- 单据窗口 -->
    <div id="divP011202_fhd">
    </div>
    <div id="divP011202_fxd">
    </div>
    <input style="display: none" type="button" id="idRefreshCombobox" value="" onclick="refreshMyCombobox()" />
</body>
</html>
