<?xml version="1.0" encoding="UTF-8"?> <a:screen xmlns:a="http://www.leaf-framework.org/application" dynamiccreateenabled="true" trace="true"> <a:view> <a:link id="${/parameter/@layout_code}_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="management_car_link" model="rent.rent300.management_confirm_car" modelaction="update"/> <script type="text/javascript"><![CDATA[ //锁屏 window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'] = function () { var detail_mask; if ('${/parameter/@winid}') { if (parent.$L.CmpManager.get('${/parameter/@winid}')) { detail_mask = parent.$('${/parameter/@winid}').wrap; parent.Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}'); } else { detail_mask = $('${/parameter/@winid}').wrap; Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}'); } } else { detail_mask = Ext.getBody(); Leaf.Masker.mask(detail_mask, '${l:HLS.EXECUTING}'); } }; //解屏 window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'] = function () { var detail_mask; if ('${/parameter/@winid}') { if (parent.$L.CmpManager.get('${/parameter/@winid}')) { detail_mask = parent.$('${/parameter/@winid}').wrap; parent.Leaf.Masker.unmask(detail_mask); } else { detail_mask = $('${/parameter/@winid}').wrap; Leaf.Masker.unmask(detail_mask); } } else { detail_mask = Ext.getBody(); Leaf.Masker.unmask(detail_mask); } if (Ext.get(document.documentElement)) { $L.Masker.unmask(Ext.get(document.documentElement)); } }; //处置确认 window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () { var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_collection'); var record = $(ds_id).getCurrentRecord(); var col_id = record.get('col_id'); Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认处置?', function () { Leaf.request({ url: $('management_car_link').getUrl(), para: { col_id: col_id }, success: function (res) { Leaf.SideBar.show({ msg: '处置确认成功', duration: 2000 }); $('${/parameter/@winid}').close(); }, scope: this }); }); }; ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>