Commit d4794e63 authored by 21471731's avatar 21471731

租赁物导入调整07

parent d2c2380a
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
<a:link id="import_prj_lease_item_list_link_id" model="prj.PRJ500N.prj_project_lease_import_list" modelaction="insert"/> <a:link id="import_prj_lease_item_list_link_id" model="prj.PRJ500N.prj_project_lease_import_list" modelaction="insert"/>
<script><![CDATA[ <script><![CDATA[
function exit() { function import_exit() {
window.location = '${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import_details.lview?function_code=PRJ501INC&function_usage=QUERY&project_lease_item_id='+'${/parameter/@project_lease_item_id}'; debugger;
parent._input_window.close();
} }
...@@ -49,8 +50,7 @@ ...@@ -49,8 +50,7 @@
msg: '操作成功', msg: '操作成功',
duration: 2000 duration: 2000
}); });
import_exit();
backBtn();
} }
}); });
}); });
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<a:screenBody> <a:screenBody>
<a:form id="success_form" height="400" title="THE_IMPORTED_DATA" width="980"> <a:form id="success_form" height="400" title="THE_IMPORTED_DATA" width="980">
<a:screenTopToolbar> <a:screenTopToolbar>
<a:gridButton click="exit" text="退出"/> <a:gridButton click="import_exit" text="退出"/>
<a:gridButton click="import_btn" text="导入"/> <a:gridButton click="import_btn" text="导入"/>
</a:screenTopToolbar> </a:screenTopToolbar>
<a:grid id="grid_ds_id" bindTarget="prj_lease_item_list_improt_ds" height="340" navBar="true" width="980"> <a:grid id="grid_ds_id" bindTarget="prj_lease_item_list_improt_ds" height="340" navBar="true" width="980">
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
//导入 //导入
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_lease_item_list');
var win = new Leaf.Window({ var win = new Leaf.Window({
id: 'cf_fee_payment_import_upload_winid', id: 'cf_fee_payment_import_upload_winid',
url: $('prj501N_lease_import_upload_link').getUrl(), url: $('prj501N_lease_import_upload_link').getUrl(),
...@@ -24,7 +25,8 @@ ...@@ -24,7 +25,8 @@
set_number: '${/parameter/@set_number}', set_number: '${/parameter/@set_number}',
lease_item_id:'${/parameter/@lease_item_id}', lease_item_id:'${/parameter/@lease_item_id}',
project_lease_item_id:'${/parameter/@project_lease_item_id}', project_lease_item_id:'${/parameter/@project_lease_item_id}',
winid:'prj_lease_detail_winid' winid:'cf_fee_payment_import_upload_winid',
parent_ds_id:ds_id
}, },
width: 430, width: 430,
height: 350 height: 350
......
...@@ -33,7 +33,11 @@ ...@@ -33,7 +33,11 @@
var url = '${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import.lview?set_number=${/parameter/@set_number}&lease_item_id=${/parameter/@lease_item_id}&project_lease_item_id=${/parameter/@project_lease_item_id}&winid=${/parameter/@winid}&_csrf=${/session/@_csrf.token}'; var url = '${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import.lview?set_number=${/parameter/@set_number}&lease_item_id=${/parameter/@lease_item_id}&project_lease_item_id=${/parameter/@project_lease_item_id}&winid=${/parameter/@winid}&_csrf=${/session/@_csrf.token}';
form.action = url; form.action = url;
form.submit(); form.submit();
$('${/parameter/@winid}').close(); //$('${/parameter/@winid}').close();
_input_window.on('close', function() {
// $('${/parameter/@parent_ds_id}').setQueryParameter('batch_id','${/parameter/@batch_id}');
$('${/parameter/@parent_ds_id}').query();
});
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment