<!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>
    <!--所需引用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" />
    <!--所需引进的js-->
    <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/common.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/02/p0213.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            $("#cbmSearchTypeP0213").combobox();
            $("#cmbDateExtentP0213").combobox();
            $("#cmbProviderP0213").combobox();
            $("#cmbDrugP0213").combobox();
            $("#cmbBillsTypeP0213").combobox();
            $("#cmbXsyP0213").combobox();
            addArrowClass();
            inputAndBindData("dateStartTimeP0213", false, null, dateTimeChange_P0213);
            inputAndBindData("dateEndTimeP0213", false, null, dateTimeChange_P0213);


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

            //销售回款明细的iframe
            var iHeightDetail = window.parent.document.documentElement.clientHeight;        //设定新创建的iframe的高度，宽度
            var strIframeHtml = "<iframe id=\"idIframe-21303\" frameborder=\"0\" scrolling=\"no\" style=\"display:none;width:100%;height:" + iHeightDetail + "\"></iframe>";
            $(window.parent.document).find("#tabs").find("#213").append(strIframeHtml);       //在该tab下添加明细iframe.不需要制定src

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                //调整表格的大小
                resizeGrid(strTableP0213, true, false);
                //有滚动条时改变表格宽度
                resizeGridScroll(strTableP0213);
            }
            bLoadComplete = true;
            //内存释放
            iHeightDetail = null;
            strIframeHtml = null;
        });
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a href="#" onclick="viewDetail_P0213(); return false;">回款明细</a>
                            <ul class="addnav">
                                <li><a href="#" onclick="makeExportData(strTableP0213,'销售回款统计')">导出</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cbmSearchTypeP0213" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDateExtentP0213" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0213" type="text" style="width: 80px; text-align: center" />
                            <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0213" type="text" style="width: 80px; text-align: center" />
                        </li>
                        <li>
                            <select id="cmbProviderP0213" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDrugP0213" class="easyui-combobox">
                            </select>
                        </li>
                        <li>
                            <select id="cmbXsyP0213" class="easyui-combobox">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP0213" href="#" onclick="searchDataClick_P0213('2')">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div id="divTp0213" class="mation_div">
            <table id="Tp0213">
            </table>
        </div>
        <div id="divTp021301" class="mation_div">
            <table id="Tp021301">
            </table>
        </div>
        <div id="divTp021302" class="mation_div">
            <table id="Tp021302">
            </table>
        </div>
    </div>
    <div id="divMessage">
    </div>
</body>
</html>
