<?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:init-procedure>
    <a:view>
        <a:link id="prj_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
                modelaction="update"/>
        <a:link id="prj_project_modify_link"
                url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_create_tree_n.lview"/>
        <a:link id="update_win_query"
                url="${/request/@context_path}/modules/cont/CON2000/project_maintain.lview"/>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <script ><![CDATA[
         function update_win_query1(record_id, ds_id){
            var record = $(ds_id).findById(record_id);
            record.set('function_usage','UPDATE');
            record.set('maintain_type','UPDATE');
            record.set('function_code','CON2000N');
             record.set('document_id',record.get('contract_id'));
            record.data['url_title'] = '催收短信查询';
            var param = record.data;
            param['winid'] = 'update_win_query_window';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'update_win_query',ds_id);
        }

        //超链接渲染
        window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
            if (name == 'contract_number' && value) {
                return '<a href="javascript:update_win_query1(\'' + record.id + '\',\'' + record.ds.id + '\');">' + value + '</a>';
            }
            return value;
        };


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