<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: xuls  
    $Date: 2015-7-13 下午4:18:29  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true">
    <a:init-procedure/>
    <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="con517_inception_link_id" url="${/request/@context_path}/modules/cont/CON517/con_cat_inception_detail.lview"/>
        <script type="text/javascript"><![CDATA[
	
		function open_contract_win(ds_id,record_id){
    	    var record=$(ds_id).findById(record_id);
    	   // $(ds_id).find(record_id);
    	    var param = record.data;
                param['function_code'] = 'CON517D';
                param['wf_function_code'] = 'CON517';
                param['url_title'] = '合同起租';
            	hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con517_inception_link_id',ds_id);
    	}
    	
		window['${/parameter/@layout_code}_dynamic_link_renderer']=function(value,record,name,config_record){
		    if(name=='contract_number' && value){
		        return '<a href="javascript:open_contract_win(\''+record.ds.id+'\',\''+record.id+'\')">'+value+'</a>';
		    }
		    return value;
		};	
	
]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
    </a:view>
</a:screen>
