<!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>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <!--css引用-->
    <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/msg.js" type="text/javascript"></script>
    <script src="../../Scripts/msgBox.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/ciho.js" type="text/javascript"></script>
    <script src="../../Scripts/page.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p0102.js" type="text/javascript"></script>    
    <script src="../../Scripts/01/P010201.js" type="text/javascript"></script>    
    <script src="../../Scripts/01/p010202.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            strTableNameP0102 = "Tp0102";
            $("#cmbDateExtentP0102").combobox();
            $("#cmbGysP0102").combobox();
            $("#cmbYpP0102").combobox();
            //修改combobox下拉箭头的样式。
            addArrowClass();
            inputAndBindData("dateStartTimeP0102", false, null, dateTimeChange_P0102);
            inputAndBindData("dateEndTimeP0102", false, null, dateTimeChange_P0102);
            //页面加载方法
            pageLoad_P0102();

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

        //当基本资料信息发生改变时，刷新combobox的值
        function refreshMyCombobox(strModels) {
            for (var i = 0; i < strModels.length; i++) {
                var data = getComboboxData(strModels[i] + "2");

                if (strModels[i] == "Tspxx") {
                    data.unshift({ dm: "", mc: "全部药品" });
                    reLoadCombobox("cmbYpP0102", data);
                }
                if (strModels[i] == "Tgysxx") {
                    data.unshift({ dm: "", mc: "全部供应商" });
                    reLoadCombobox("cmbGysP0102", data);
                }
            }
        }
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="showDialogP0102_FH('1')">&nbsp;&nbsp;返&nbsp;&nbsp;&nbsp;货&nbsp;&nbsp;</a>
                            <ul class="addnav">
                                <li><a href="#" onclick="showDialog_P010202('1')">返现</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li> 
                            <select id="cmbDateExtentP0102" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0102" type="text" style="text-align: center"
                                onchange="dateTimeChange_P0102()"  />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0102" type="text" style="text-align: center"
                                onchange="dateTimeChange_P0102()" />
                        </li>
                        <li>
                            <select id="cmbGysP0102" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li>
                             <select id="cmbYpP0102" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li class="enter"><a href="#" id="btnSearchData" class="buttonSearch" onclick="searchData_P0102()">查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="Tp0102">
            </table>
        </div>
        <!-- 分页使用层 -->
        <div id="divPageP0102" class="Page"></div>
     </div>
    
    <!-- 弹出窗口使用层 -->
    <div id="divP010201"></div>
    <div id="divP010202"></div>
    <div id="divAddType"></div>    
</body>
</html>



