<!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/common.js" type="text/javascript"></script>
    <script src="../../Scripts/01/p0113.js" type="text/javascript"></script>
    <script type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            $("#cmbSelBy").combobox();
            $("#cmbDateExtentP0113").combobox();
            $("#cmbGysP0113").combobox();
            $("#cmbYpP0113").combobox();
            addArrowClass();
            inputAndBindData("dateStartTimeP0113", false, null, dateTimeChange_P0113);
            inputAndBindData("dateEndTimeP0113", false, null, dateTimeChange_P0113);

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

            var iHeightDetail = window.parent.document.documentElement.clientHeight;
            //在该tab下添加明细iframe.不需要制定src
            var strIframeHtml = "<iframe id=\"idIframe-11302\" frameborder=\"0\" scrolling=\"no\" style=\"display:none;width:100%;height:" + iHeightDetail + "\"></iframe>";
            $(window.parent.document).find("#tabs").find("#113").append(strIframeHtml);

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                resizeGrid(strTableP0113, true, false);
                resizeGridScroll(strTableP0113);
            }
            bLoadComplete = true;
        });
    </script>
    <script type="text/javascript">
        function refreshMyCombobox(strModels) {
            if ($(window.parent.document).find('#idIframe-11302').length > 0) {
                $(window.parent.document.getElementById("idIframe-11302").contentWindow.document.getElementById("idRefreshCombobox")).val(strModels[0]);
                $(window.parent.document.getElementById("idIframe-11302").contentWindow.document.getElementById("idRefreshCombobox")).click();
            }
            for (var i = 0; i < strModels.length; i++) {
                var data = getComboboxData(strModels[i] + "2");

                if (strModels[i] == "Tspxx") {
                    data.unshift({ dm: "", mc: "全部药品", "selected": true });
                    reLoadCombobox("cmbYpP0113", data);
                }
                if (strModels[i] == "Tgysxx") {
                    data.unshift({ dm: "", mc: "全部供应商", "selected": true });
                    reLoadCombobox("cmbGysP0113", data);
                }
            }
        }
  </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="showDetail();return false;">查看明细</a>
                            <ul class="addnav">
                                <li><a href="#" onclick="exportData()">导出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li><select id="cmbSelBy" class="easyui-combobox" style="width: 90px">
                            </select>
                        </li>
                        <li> 
                            <select id="cmbDateExtentP0113" class="easyui-combobox" style="width:90px">
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0113" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P0113()" />
                                <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0113" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P0113()"/>
                        </li>
                        <li>
                            <select id="cmbGysP0113" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li>
                             <select id="cmbYpP0113" class="easyui-combobox" style="width: 120px"></select>
                        </li>
                        <li class="enter"><a href="#" id="btnSearchData" class="buttonSearch" onclick="searchData_P0113()">查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div id="divTp0113" class="mation_div">
            <table id="Tp0113">
            </table>
        </div>
        <div id="divTp011301" class="mation_div">
            <table id="Tp011301">
            </table>
        </div>
    </div>
</body>
</html>
    
