<!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/jsonConvert.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/05/p051102.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p051102_ytd.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p051102_zfd.js" type="text/javascript"></script>
    <script src="../../Scripts/05/p051102_ytjzd.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        var bLoadComplete = false;
        $(function () {
            //转换下拉框控件类型
            $("#cmbDateExtentP051102").combobox();
            $("#cmbFykmP051102").combobox();
            $("#cmbFyjsrP051102").combobox();
            $("#cmbYtdxP051102").combobox();
            addArrowClass();
            inputAndBindData("dateStartTimeP051102", false, null, dateTimeChange_P051102);
            inputAndBindData("dateEndTimeP051102", false, null, dateTimeChange_P051102);

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

            //改变窗口大小时，改变表格的高度和宽度。
            window.onresize = function () {
                resizeGrid(strTableP051102, true, true);
                resizeGridScroll(strTableP051102);
            }
            bLoadComplete = true;
        });

        function refreshInfos() {
            var page = $("#idRefreshInfos").val();
            var flag = $("#idRefreshInfos_flag").val();
            if (page && flag) {
                if (page == "p0506" && flag == "1") {
                    var objProvider = ParseData(window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'2'}")).Records;
                    if (objProvider == "{}") {
                        objProvider = [];
                    }
                    //加载数据
                    objProvider.unshift({ "kmdm": "", "kmmc": "全部费用科目", "selected": true });
                    $("#cmbFykmP051102").combobox("loadData", objProvider);
                    objProvider = {};
                    //经手人信息的取得
                    var objDrug = ParseData(window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'1'}")).Records;
                    if (objDrug == "{}") {
                        objDrug = [];
                    }
                    //加载数据
                    objDrug.unshift({ "jsrdm": "", "jsrmc": "全部费用经手人", "selected": true });
                    $("#cmbFyjsrP051102").combobox("loadData", objDrug);
                    objDrug = {};

                    var objDrugS = window.external.DoOptions("Tp0505", "GetComboBoxData", "{'fb':'3'}");
                    if (objDrugS) {
                        var objZyxx = ParseData(objDrugS);
                        objZyxx.Records.unshift({ "ytdx": "", "ytdxmc": "全部预提对象", "selected": true });
                        $("#cmbYtdxP051102").combobox("loadData", objZyxx.Records);
                    }
                    objDrugS = {};
                    objZyxx = {};
                }
            }
            flag = null;
            page = null;
        }
        function toExcelMethod() {  //导出方法
            makeExportData(strTableP051102, "预提费用统计－往来明细");
        }
    </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_P051102();return false;">查看单据</a> </li>
                        <li class="Back_cen"><a href="#" onclick="toExcelMethod()">导出</a> </li>
                        <li class="Back_right"><a href="#" onclick="pageBack_P051102()">返回</a> </li>
                    </ul>
                </div>
                <div class="dedt">
                    <ul>
                        <li>
                            <select id="cmbDateExtentP051102" class="easyui-combobox" style="width: 90px">
                            </select>
                        </li>
                        <li>
                            <input id="dateStartTimeP051102" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P051102()"  />
                                <font class="text_hx">&nbsp;&nbsp;</font>
                            <input id="dateEndTimeP051102" type="text" style="width: 80px; text-align: center"
                                onchange="dateTimeChange_P051102()" />
                        </li>
                        <li>
                            <select id="cmbFykmP051102" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li>
                            <select id="cmbFyjsrP051102" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li>
                            <select id="cmbYtdxP051102" class="easyui-combobox" style="width: 120px">
                            </select>
                        </li>
                        <li class="enter"><a id="btnSearchDataP051102" href="#" onclick="searchDataClick_P051102()">
                            查询</a></li>
                    </ul>
                </div>
                <div class="clr">
                </div>
            </div>
            <div>
            </div>
        </div>
        <div class="clr">
        </div>
    </div>
    <div class="mation">
        <div class="mation_div">
            <table id="Tp051102">
            </table>
        </div>
        <!--分页使用层-->
        <div id="divPageP051102" class="Page"></div>
    </div>

     <div id="divP051102">
    </div>
    <input style="display: none" type="button" id="idRefreshCombobox" value="" onclick="refreshMyCombobox()" />
    <input style="display: none" type="button" id="idRefreshInfos" value="" onclick="refreshInfos()" />
    <input style="display: none" type="button" id="idRefreshInfos_flag" value=""  />
</body>
</html>
