Commit 0c83226b authored by 21471731's avatar 21471731

租赁物导入调整08

parent d4794e63
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<script><![CDATA[ <script><![CDATA[
function import_exit() { function import_exit() {
debugger; parent._input_window.close();
parent._input_window.close();
} }
......
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
//保存 //保存
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() { window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_lease_item_list'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_lease_item_list');
debugger;
var records = $(ds_id).getAll(); var records = $(ds_id).getAll();
var record= $(ds_id).getAt(0); var record= $(ds_id).getAt(0);
if(record==null){ if(record==null){
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
function saveClick(){ function saveClick(){
if (document.getElementById('importFile').value){ if (document.getElementById('importFile').value){
debugger;
var fileName = document.getElementById('importFile').value; var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf(".")); var fileType = fileName.substr(fileName.lastIndexOf("."));
if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') { if (fileType != '.xls' && fileType != '.xlsx' && fileType != '.xlsm') {
...@@ -33,7 +32,7 @@ ...@@ -33,7 +32,7 @@
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() { _input_window.on('close', function() {
// $('${/parameter/@parent_ds_id}').setQueryParameter('batch_id','${/parameter/@batch_id}'); // $('${/parameter/@parent_ds_id}').setQueryParameter('batch_id','${/parameter/@batch_id}');
$('${/parameter/@parent_ds_id}').query(); $('${/parameter/@parent_ds_id}').query();
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
<a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/> <a:label name="label6" bindTarget="label_ds" style="color:#055A78;font-weight:bold;margin-left:10px;" width="380"/>
</a:fieldSet> </a:fieldSet>
<a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400"> <a:fieldSet style="margin-left:10px;margin-top:10px;" title="导入文件" width="400">
<form name="upload" id="importForm" enctype="multipart/form-data" method="post"> <form name="upload" id="importForm" enctype="multipart/form-data" method="post" target="_input_window">
<label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label> <label style="margin-left:10px;margin-top:10px;"><![CDATA[请选择文件:]]></label>
<input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/> <input name="CONTENT" id="importFile" style="margin-bottom:4px;width:160px;height:22px;" type="file"/>
<input onclick="saveClick()" style="margin-left:50px;margin-top:10px;width:60px;" type="button" value="导入"/> <input onclick="saveClick()" style="margin-left:50px;margin-top:10px;width:60px;" type="button" value="导入"/>
......
...@@ -625,7 +625,6 @@ ...@@ -625,7 +625,6 @@
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
debugger;
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project'); var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master'); var prj_project_history_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail'); var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
...@@ -1584,7 +1583,6 @@ ...@@ -1584,7 +1583,6 @@
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
var q_value='${/model/residual_value/record/@residual_value}'; var q_value='${/model/residual_value/record/@residual_value}';
debugger;
if(total_price!=lease_item_amount &&total_price!=null){ if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!'); Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return; return;
...@@ -1639,7 +1637,6 @@ ...@@ -1639,7 +1637,6 @@
var lease_item_amount=record.get('lease_item_amount'); var lease_item_amount=record.get('lease_item_amount');
var residual_value=record.get('residual_value'); var residual_value=record.get('residual_value');
var q_value='${/model/residual_value/record/@residual_value}'; var q_value='${/model/residual_value/record/@residual_value}';
debugger;
if(total_price!=lease_item_amount &&total_price!=null){ if(total_price!=lease_item_amount &&total_price!=null){
Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!'); Leaf.showMessage('${l:PROMPT}', '支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return; return;
......
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