<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: wangwei $Date: 2016-1-5 下午5:21:04 $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="sdic100_other_contract_create_entrance_link_id" url="${/request/@context_path}/modules/sdic/SDIC100/sdic_other_contract_create_entrance.lview"/> <a:link id="sdic100d_other_contract_detail_link_id" url="${/request/@context_path}/modules/sdic/SDIC100/sdic_other_contract_modify.lview"/> <script type="text/javascript"><![CDATA[ //新增按钮 window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'sdic_other_contract'); var param = {}; param['function_code'] = 'SDIC100N'; param['function_usage'] = 'CREATE'; param['url_title'] = '其他业务新增'; param['screen_width'] = 350; param['screen_height'] = 300; param['pre_layout_code'] = '${/parameter/@layout_code}'; param['winid'] = 'sdic100n_create_other_contract_winid'; hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'sdic100_other_contract_create_entrance_link_id', ds_id); }; 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 = {}; if (record.get('wfl_status') == 'NEW' || record.get('wfl_status') == 'REJECT') { param['contract_id'] = record.get('contract_id'); param['function_code'] = 'SDIC100D'; param['function_usage'] = 'MODIFY'; } else { param['contract_id'] = record.get('contract_id'); param['function_code'] = 'SDIC100Q'; param['function_usage'] = 'MODIFY'; } param['document_category'] = record.get('document_category'); param['document_type'] = record.get('document_type'); param['document_type_2nd'] = 'FACTORING_CONTRACT'; param['url_title'] = '其他业务明细'; param['winid'] = 'sdic100d_other_contract_detail_winid'; hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'sdic100d_other_contract_detail_link_id', ds_id); } window['${/parameter/@layout_code}_excel_layout_dynamic_click'] = function() { $('${/parameter/@layout_code}_G_OTHER_CON_sdic_other_contract_layout_grid_id')._export(); }; //超链接渲染 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>