<?xml version="1.0" encoding="UTF-8"?>

<!--
    $Author: chenlingfeng7543
$Date: 2018/12/20 21:19
$Revision: 1.0
$Purpose:˙
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="basic.get_sys_default_time" rootPath="sys_default_time"/>
    </a:init-procedure>
    <a:view>
        <a:link id="con851_record_list_import_link" url="${/request/@context_path}/modules/cont/CON851/record_list_import.lview"/>
        <script src="${/request/@context_path}/javascripts/hap/dynamicStopAutoQuery.js" type="text/javascript"/>

        <script type="text/javascript"><![CDATA[

        //   stopDymanicAutoQuery('${/parameter/@layout_code}', 'REPORT_RESULT', 'installment_mortgage_balance');

        window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
            var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'installment_mortgage_balance');
            var grid_id = ds_id.replace('ds', 'layout_grid_id');
            $(grid_id)._export(null,'分期/按揭债权数据管理');
        };

        window['${/parameter/@layout_code}_on_layout_dynamic_grid_query'] = function (ds, qpara, bp_seq) {
            //异步打印
            ds.setQueryParameter('__async__', 'Y');
        };
        window['${/parameter/@layout_code}_user_button2_layout_dynamic_click'] = function () {
            var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'installment_mortgage_balance');
            var url = $('con851_record_list_import_link').getUrl();
            var win = new Leaf.Window({
                id: 'installment_list_batch_import_win',
                url: url,
                params: {

                    'winid': 'installment_list_batch_import_win',
                    'session_id': '${/session/@session_id}',
                    'parent_ds_id': ds_id
                },
                title: '信息导入',
                width: 430,
                height: 390
            });
            win.on('close', function () {
                $('ds_id').query();
            });

        };

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