<!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" />
    <!--脚本引用-->
    <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/05/p0511.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            $("#cbmSearchTypeP0511").combobox();
            $("#cmbDateExtentP0511").combobox();
            $("#cmbFykmP0511").combobox();
            $("#cmbFyjsrP0511").combobox();
            $("#cmbYtdxP0511").combobox();
            addArrowClass();
            inputAndBindData("dateStartTimeP0511", false, null, dateTimeChange_P0511);
            inputAndBindData("dateEndTimeP0511", false, null, dateTimeChange_P0511);
            //明细的iframe
            var iHeightDetail = window.parent.document.documentElement.clientHeight; //设定新创建的iframe的高度，宽度
            var strIframeHtml = "<iframe id=\"idIframe-51102\" frameborder=\"0\" scrolling=\"no\" style=\"display:none;width:100%;height:" + iHeightDetail + "\"></iframe>";
            $(window.parent.document).find("#tabs").find("#511").append(strIframeHtml);
            //页面加载方法
            pageLoad_P0511();
            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                resizeGrid(strTableP0511, true, false);
                resizeGridScroll(strTableP0511);
            }
            bLoadComplete = true;
        });

        function refreshInfos(obj) {
            if (obj && obj.page && obj.flag) {
                if (obj.page == "p0506" && obj.flag == "1") {
                    if ($(window.parent.document).find('#idIframe-51102').length > 0) {
                        $(window.parent.document.getElementById("idIframe-51102").contentWindow.document.getElementById("idRefreshInfos")).val(obj.page);
                        $(window.parent.document.getElementById("idIframe-51102").contentWindow.document.getElementById("idRefreshInfos_flag")).val(obj.flag);
                        $(window.parent.document.getElementById("idIframe-51102").contentWindow.document.getElementById("idRefreshInfos")).click();
                    }
                    var objProvider = ParseData(window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'2'}")).Records;
                    if (objProvider == "{}") {
                        objProvider = [];
                    }
                    objProvider.unshift({ "kmdm": "", "kmmc": "全部费用科目", "selected": true });
                    $("#cmbFykmP0511").combobox("loadData", objProvider);
                    objProvider = {};
                    var objDrug = ParseData(window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'1'}")).Records;
                    if (objDrug == "{}") {
                        objDrug = [];
                    }
                    objDrug.unshift({ "jsrdm": "", "jsrmc": "全部费用经手人", "selected": true });
                    $("#cmbFyjsrP0511").combobox("loadData", objDrug);
                    objDrug = {};
                    var objDrugDx = window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'3'}");
                    if (objDrugDx) {
                        var objYtdx = ParseData(objDrugDx);
                        objYtdx.Records.unshift({ "ytdx": "", "ytdxmc": "全部预提对象", "selected": true });
                        $("#cmbYtdxP0511").combobox("loadData", objYtdx.Records);
                    }
                    objDrugDx = {};
                    objYtdx = {};
                }
            }
        }
    </script>
</head>
<body>
    <div class="title_bar">
        <div class="topi">
            <div class="column">
                <div id="added">
                    <ul class="topnav">
                        <li><a onclick="viewDetail_P0511()">往来明细</a>
                            <span></span>
                        </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cbmSearchTypeP0511" class="easyui-combobox" style="width: 90px">
                            </select>
                        </li>
                        <li>
                            <select id="cmbDateExtentP0511" class="easyui-combobox" style="width: 90px">
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP0511" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P0511()" />
                                <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP0511" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P0511()" />
                        </li>
                        <li>
                            <select id="cmbFykmP0511" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li>
                            <select id="cmbFyjsrP0511" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li>
                            <select id="cmbYtdxP0511" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li class="unline">
                            <input id="ckbGc" type="checkbox" style="width: 18px; border: 0px" />显示构成
                        </li>
                        <li class="enter"><a id="btnSearchDataP0511" href="#" onclick="searchDataClick_P0511('0')">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div id="divTp0511" class="mation_div">
            <table id="Tp0511">
            </table>
        </div>
        <div id="divTp051101" class="mation_div">
            <table id="Tp051101">
            </table>
        </div>
    </div>
</body>
</html>
