<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: lpc 9874 $Date: $ $Revision: 1.0 $ $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true"> <a:init-procedure> <s:server-script import="contract_print_path.js"><![CDATA[ $ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source']; ]]></s:server-script> </a:init-procedure> <a:view> <a:link id="prj_project_reconsider_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <script src="${/request/@context_path}/modules/prj/PRJ500N/javascripts/input_validator.js" type="text/javascript"/> <link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/> <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/> <a:link id="prj_project_reconsider_link" url="${/request/@context_path}/modules/prj/PRJ520/prj_project_reconsider.lview"/> <script type="text/javascript"><![CDATA[ Ext.ux.Lightbox.register('a[ref=img]', true); //复议 window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { var ds_id = $('${/parameter/@layout_code}_RECEIPT_INFO_prj_project_ds'); var record = ds_id.getCurrentRecord(); var param = {}; // var project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var lease_item_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project_lease_item'); var head_car_ds_id = '${/parameter/@layout_code}' + '_G_LEASE_HEAD_CAR_prj_project_lease_item_ds'; var trailer_ds_id = '${/parameter/@layout_code}' + '_G_LEASE_TRAILER_prj_project_lease_item_ds'; var bus_ds_id = '${/parameter/@layout_code}' + '_G_LEASE_BUS_prj_project_lease_item_ds'; var passenger_car_ds_id = '${/parameter/@layout_code}' + '_G_LEASE_PASSENGER_CAR_prj_project_lease_item_ds'; var project_record = $(project_ds_id).getCurrentRecord(); var lease_item_record = $(lease_item_ds_id).getCurrentRecord(); var division = project_record.get('division'); if (division == '02') { if (!lease_item_record) { Leaf.showMessage('${l:HLS.PROMPT}', '请先添加租赁物!'); return; } else { param['function_code'] = 'PRJ520D_RECONSIDER'; param['function_usage'] = 'MODIFY'; param['maintain_type'] = 'MODIFY'; param['document_id'] = record.get('project_id'); param['project_id'] = record.get('project_id'); param['winId'] = 'prj_project_reconsider_link_winid'; param['url_title'] = '${l:HLS.PROJECT_RECONSIDER}'; hls_doc_get_layout_code('prj_project_reconsider_get_layout_code_link_id', param, 'prj_project_reconsider_link', ds_id, '${/parameter/@layout_code}'); } } else if (division !== '02') { var head_car_record = $(head_car_ds_id).getCurrentRecord(); var trailer_record = $(trailer_ds_id).getCurrentRecord(); var bus_record = $(bus_ds_id).getCurrentRecord(); var passenger_car_record = $(passenger_car_ds_id).getCurrentRecord(); if (!head_car_record && !trailer_record && !bus_record && !passenger_car_record) { Leaf.showMessage('${l:HLS.PROMPT}', '请先添加租赁物!'); return; } else { param['function_code'] = 'PRJ520D_RECONSIDER'; param['function_usage'] = 'MODIFY'; param['maintain_type'] = 'MODIFY'; param['document_id'] = record.get('project_id'); param['project_id'] = record.get('project_id'); param['winId'] = 'prj_project_reconsider_link_winid'; param['url_title'] = '${l:HLS.PROJECT_RECONSIDER}'; hls_doc_get_layout_code('prj_project_reconsider_get_layout_code_link_id', param, 'prj_project_reconsider_link', ds_id, '${/parameter/@layout_code}'); } } }; ]]></script> <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/> </a:view> </a:screen>