<?xml version="1.0" encoding="UTF-8"?> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:view> <a:link id="tre_loan_contract_aq_link1_id" url="${/request/@context_path}/modules/tre/tre503/tre_loan_contract_add.lview"/> <a:link id="get_layout_code_link1_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <script type="text/javascript"><![CDATA[ function loan_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'], 'tre_loan_contract'); var param = {}; param['loan_contract_id'] = record.get('loan_contract_id'); if (record.get('loan_con_wfl_status') === 'WFL_APPROVED' || record.get('loan_con_wfl_status') === 'WFL_APPROVING') { param['function_usage'] = 'QUERY'; param['function_code'] = 'TRE503P'; } else { param['function_usage'] = 'MODIFY'; param['function_code'] = 'TRE503F'; } param['download']='Y'; param['url_title'] = '借款合同明细'; param['winid'] = 'tre503d_tre_loan_contract_modify_winid'; hls_doc_get_layout_code('get_layout_code_link1_id', param, 'tre_loan_contract_aq_link1_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 == 'loan_contract_number' && !record.isNew) { link_function = 'loan_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>