<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"
          trace="true">
    <a:init-procedure/>
    <a:view>
        <a:link id="contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="con_contract_ifrs9_link" url="${/request/@context_path}/modules/cont/CON3500/contract_ifrs9_report_query.lview"/>

        <a:link id="${/parameter/@layout_code}con_contract_query_link"
                url="${/request/@context_path}/modules/cont/CON505/con_contract_modify.lview"/>
        <style>
            body{
                font-size: 12px;
            }
        </style>
        <script type="text/javascript"><![CDATA[
        window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
            var ds_id = get_dsid_by_tabcode_basetable(
                window['${/parameter/@layout_code}_layoutDataSetList'],
                'F_QUERY',
                'con_contract'
            );
            var param={};
            var period_name=$(ds_id).getAt(0).get('period_name');
            param['period_name']=period_name;
            param['function_code'] = 'CON3400N';
            param['function_usage'] = 'MODIFY';
            param['url_title'] = 'IFRS9';
            param['winid']='ifrs9_win';

            var win = new Leaf.Window({
                id: 'ifrs9_win',
                url: $('con_contract_ifrs9_link').getUrl(),
                params: param,
                title: '发送信息',
                fullScreen: true
            });
            win.on('close', function () {
               document.getElementsByClassName('alert')[0].remove();
            });
           // hls_doc_get_layout_code('contract_get_layout_code_link_id', param, 'con_contract_ifrs9_link',ds_id);

        }


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