<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zwg $Date: 20180822 $Revision: 1.0 --> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true"> <a:init-procedure/> <a:view> <a:link id="biz100_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <script type="text/javascript"><![CDATA[ var businessQueryWin; /** * 创建业务联络函 */ window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { link_function(); }; /** * 点击业务联络函编号进入审批 */ //超链接渲染 window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) { if (name == 'business_contact_number') { return '<a href="javascript:window[\'' + 'link_function' + '\'](\'' + record.data.business_id + '\');">' + record.data.business_contact_number + '</a>'; } }; // function biz100_letter_create() { // var dsId = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract'); // var records = $(dsId).getSelected(); // } function link_function(letter_num) { var href = '${/request/@context_path}/modules/contact/business_contact_send.lview'; if (letter_num) { href += '?instance_id=' + letter_num; } location.href = encodeURI(href); } window['${/parameter/@layout_code}_G_QUERY_USER_BUTTON1_layout_dynamic_tab_click'] = function () { $('BUSINESS_CONCAT_G_QUERY_business_contacts_layout_grid_id')._export(null,'业务联络函查询'); } ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>