Commit 247f1a11 authored by 21471731's avatar 21471731

租赁物导入调整20

parent c3befb39
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select prj_project_lease_import_pkg.get_prj_lease_count(${/parameter/@project_id}) as lease_number from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -85,10 +85,7 @@ ...@@ -85,10 +85,7 @@
$(list_ds).query(); $(list_ds).query();
} }
}else if(param['function_code']=='PRJ501INC'){ }else if(param['function_code']=='PRJ501INC'){
if (list_ds) { $('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_ds').query();
$(list_ds).query();
}
Leaf.showMessage('提示信息', '租赁物信息发生变化,请重新进行报价');
} }
else{ else{
if (list_ds) { if (list_ds) {
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/> <a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_description" rootPath="description"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_get_description" rootPath="description"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/> <a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value" rootPath="residual_value"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_residual_value_from" rootPath="prj_residual_value"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.prj_project_lease_number" rootPath="prj_lease_count"/>
<s:server-script import="contract_print_path.js"><![CDATA[ <s:server-script import="contract_print_path.js"><![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path']; $ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source']; $ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...@@ -25,6 +23,7 @@ ...@@ -25,6 +23,7 @@
</s:server-script> </s:server-script>
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="prj501N_prj_lease_item_maintain_link" model="prj.PRJ500N.prj_project_lease_item_delete" modelaction="execute"/>
<a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/> <a:link id="hls_bp_master_billing_link" model="prj.PRJ500N.hls_bp_master_billing" modelaction="query"/>
<a:link id="bp_tenant_detail_query_link" model="prj.PRJ500D.bp_tenant_old_r_query" modelaction="query"/> <a:link id="bp_tenant_detail_query_link" model="prj.PRJ500D.bp_tenant_old_r_query" modelaction="query"/>
<a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id" <a:link id="${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
...@@ -235,9 +234,9 @@ ...@@ -235,9 +234,9 @@
var current_red= $(ds_id).getCurrentRecord(); var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){ if(division=='30' || division=='50'){
var set_number=current_red.get('set_number'); var set_number=current_red.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}'; var total_number=current_red.get('total_number');
if(lease_count!=0 && set_number!=lease_count){ if(total_number!=0 && set_number!=total_number){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!'); Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return; return;
} }
} }
...@@ -1595,7 +1594,7 @@ ...@@ -1595,7 +1594,7 @@
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number'); var set_number=records.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}'; var total_number=records.get('total_number');
var total_price=records.get('total_price'); var total_price=records.get('total_price');
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');
...@@ -1607,8 +1606,8 @@ ...@@ -1607,8 +1606,8 @@
}else if(q_value!=residual_value){ }else if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!'); Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!');
return; return;
}else if(lease_count!=0 && set_number!=lease_count){ }else if(total_number!=0 && set_number!=total_number){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!'); Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return; return;
} }
} }
...@@ -1655,7 +1654,7 @@ ...@@ -1655,7 +1654,7 @@
var record=$(lease_ds_id).getCurrentRecord(); var record=$(lease_ds_id).getCurrentRecord();
var records=$(ds_id).getCurrentRecord(); var records=$(ds_id).getCurrentRecord();
var set_number=records.get('set_number'); var set_number=records.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}'; var total_number=records.get('total_number');
var total_price=records.get('total_price'); var total_price=records.get('total_price');
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');
...@@ -1667,8 +1666,8 @@ ...@@ -1667,8 +1666,8 @@
}else if(q_value!=residual_value){ }else if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!'); Leaf.showMessage('${l:PROMPT}', '支付计划中留购价与报价计算不一致,无法提交审批!');
return; return;
}else if(lease_count!=0 && set_number!=lease_count){ }else if(total_number!=0 && set_number!=total_number){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!'); Leaf.showMessage('${l:HLS.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