<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Eugene Song
    $Date: 2019年5月14日15:59:09
    $Revision: 1.0
    $Purpose: 月结报表
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" dynamiccreateenabled="true" trace="true">
    <a:view>
        <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>
        <script type="text/javascript"><![CDATA[
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_1', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_2', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_4', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_5', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_6', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_7', 'hls_monthend_static_data');
        stopDymanicAutoQuery('${/parameter/@layout_code}', 'G_SHEET_8', 'hls_monthend_static_data');

        //加载时调用(grid,table,gridBox)
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record, config_records, bp_seq) {
            var ds_1 = $('${/parameter/@layout_code}_G_SHEET_1_hls_monthend_static_data_ds');
            ds_1.setQueryParameter('sheet_name', 'SHEET_1');
            var ds_2 = $('${/parameter/@layout_code}_G_SHEET_2_hls_monthend_static_data_ds');
            ds_2.setQueryParameter('sheet_name', 'SHEET_3');
            var ds_4 = $('${/parameter/@layout_code}_G_SHEET_4_hls_monthend_static_data_ds');
            ds_4.setQueryParameter('sheet_name', 'SHEET_4');
            var ds_5 = $('${/parameter/@layout_code}_G_SHEET_5_hls_monthend_static_data_ds');
            ds_5.setQueryParameter('sheet_name', 'SHEET_5');
            var ds_6 = $('${/parameter/@layout_code}_G_SHEET_6_hls_monthend_static_data_ds');
            ds_6.setQueryParameter('sheet_name', 'SHEET_6');
            var ds_7 = $('${/parameter/@layout_code}_G_SHEET_7_hls_monthend_static_data_ds');
            ds_7.setQueryParameter('sheet_name', 'SHEET_7');
            var ds_8 = $('${/parameter/@layout_code}_G_SHEET_8_hls_monthend_static_data_ds');
            ds_8.setQueryParameter('sheet_name', 'SHEET_8');
        };
        //查询时调用(grid,table,gridBox)
        window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function(ds, qpara, bp_seq) {
            var ds_1 = $('${/parameter/@layout_code}_G_SHEET_1_hls_monthend_static_data_ds');
            ds_1.setQueryParameter('sheet_name', 'SHEET_1');
            var ds_2 = $('${/parameter/@layout_code}_G_SHEET_2_hls_monthend_static_data_ds');
            ds_2.setQueryParameter('sheet_name', 'SHEET_3');
            var ds_4 = $('${/parameter/@layout_code}_G_SHEET_4_hls_monthend_static_data_ds');
            ds_4.setQueryParameter('sheet_name', 'SHEET_4');
            var ds_5 = $('${/parameter/@layout_code}_G_SHEET_5_hls_monthend_static_data_ds');
            ds_5.setQueryParameter('sheet_name', 'SHEET_5');
            var ds_6 = $('${/parameter/@layout_code}_G_SHEET_6_hls_monthend_static_data_ds');
            ds_6.setQueryParameter('sheet_name', 'SHEET_6');
            var ds_7 = $('${/parameter/@layout_code}_G_SHEET_7_hls_monthend_static_data_ds');
            ds_7.setQueryParameter('sheet_name', 'SHEET_7');
            var ds_8 = $('${/parameter/@layout_code}_G_SHEET_8_hls_monthend_static_data_ds');
            ds_8.setQueryParameter('sheet_name', 'SHEET_8');
        };

        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>
