<!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/jsonConvert.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/page.js" type="text/javascript"></script>
    <script src="../../Scripts/common.js" type="text/javascript"></script>
    <script src="../../Scripts/02/P021202.js" type="text/javascript"></script>
    <script src="../../Scripts/02/p021103_thd.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            strTableNameP021202 = "Tp021202";
            $("#cmbDateExtentP021202").combobox();
            $("#cmbCustomP021202").combobox();
            $("#cmbYpP021202").combobox();
            addArrowClass();
            inputAndBindData("dateStartTimeP021202", false, null, dateTimeChange_P021202);
            inputAndBindData("dateEndTimeP021202", false, null, dateTimeChange_P021202);
            //页面加载方法
            pageLoad_P021202();

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                resizeGrid(strTableNameP021202, true, true);
                resizeGridScroll(strTableNameP021202);
            }
            bLoadComplete = true;
        });
        function refreshMyCombobox() {  //基本资料有更新，刷新combobox
            var strModels = $("#idRefreshCombobox").val();
            var data = getComboboxData(strModels + "2");

            if (strModels == "Tspxx") {
                data.unshift({ dm: "", mc: "全部药品", "selected": true });
                reLoadCombobox("cmbYpP021202", data);
            }
            if (strModels == "Tkhxx") {
                data.unshift({ dm: "", mc: "全部客户", "selected": true });
                reLoadCombobox("cmbCustomP021202", data);
            }
        }
        function toExcelMethod() {      //导出方法
            makeExportData(strTableP021202, "销售退货明细");
        }
    </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_P021202();return false;">查看单据</a> </li>
                        <li class="Back_cen"><a href="#" onclick="toExcelMethod()">导出</a> </li>
                        <li class="Back_right"><a href="#" onclick="pageBack_P021202()">返回</a> </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li> 
                            <select id="cmbDateExtentP021202" class="easyui-combobox" style="width:90px">
                            </select>
                        </li>
                        <li class="inp_70">
                            <input id="dateStartTimeP021202" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P021202()" />
                                <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP021202" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P021202()" />
                        </li>
                        <li>
                            <select id="cmbCustomP021202" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li>
                             <select id="cmbYpP021202" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li class="enter"><a href="#" id="btnSearchData" class="buttonSearch" onclick="searchData_P021202()">查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="Tp021202">
            </table>
        </div>
        <!--分页使用层-->
        <div id="divPageP021202" class="Page"></div>
    </div>

    <!-- 弹出窗口使用层 -->
    <div id="divP021202"> </div>
    <input style="display: none" type="button" id="idRefreshCombobox" value="" onclick="refreshMyCombobox()" />
</body>
</html>
