<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: wangwei  
    $Date: 2016-1-8 下午1:17:39  
    $Revision: 1.0  
    $Purpose: 其他业务付款
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
    <a:view>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:link id="sdic110d_other_contract_payment_detail_link_id" url="${/request/@context_path}/modules/sdic/SDIC110/sdic_other_contract_payment_detail.lview"/>
        <script type="text/javascript"><![CDATA[
            
             function contract_number(id, name, query_only) {
                var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
                var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'sdic_other_contract');
                var param = {};
                    param['function_code'] = 'SDIC110D';
                    param['function_usage'] = 'MODIFY';
                    param['url_title'] = '其他业务付款明细';
                param['contract_id'] =record.get('contract_id') ;
                param['winid']='sdic110d_other_contract_payment_detail_winid';
                hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'sdic110d_other_contract_payment_detail_link_id', ds_id);
            }
        
         //超链接渲染
            window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record) {
                var link_function = '';
                window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
                if (name == 'contract_number' && !record.isNew) {
                    link_function = 'contract_number';
                    return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">'+value+'</a>';
                }
            };    
   ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>
