Commit cfc8eb27 authored by gzj34291's avatar gzj34291

铁甲承租人地址校验

parent ef053075
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: gzj
$Date: 2022年6月14日
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select count(1) bp_number
from hls_bp_master_address t
where t.bp_id = ${@bp_id_tenant}
and t.address_type = 'HOUSE_ADDRESS'
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="bp_number"></bm:field>
</bm:fields>
</bm:model>
...@@ -1204,6 +1204,36 @@ ...@@ -1204,6 +1204,36 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return; return;
} }
if(current_record.get('division')=='70'){
var bp_number;
$L.request({
url: '${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
para: {
bp_id_tenant: current_record.get('bp_id_tenant')
},
sync: true,
success: function (res) {
bp_number=res.result.record.bp_number;
},
error: function () {
},
failure: function () {
},
scope: this,
sync: true,
});
if( bp_number ==0){
$L.showMessage('提示','承租人的居住地址不能为空');
return ;
}
}
if (record.get('large_balance') == 'YES') { if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number'); var project_number = current_record.get('project_number');
......
...@@ -1346,6 +1346,7 @@ ...@@ -1346,6 +1346,7 @@
return; return;
} }
} }
}else{ }else{
if (key != 'bp_detail_id' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score' ) { if (key != 'bp_detail_id' && key != 'score_name'&& key != 'contract_id' && key != 'bp_age' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score' ) {
//if (!bp_tenant_detail_r.get(key)) { //if (!bp_tenant_detail_r.get(key)) {
...@@ -1358,6 +1359,32 @@ ...@@ -1358,6 +1359,32 @@
} }
} }
if(current_record.get('division')=='70'){
var bp_number;
$L.request({
url: '${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
para: {
bp_id_tenant: current_record.get('bp_id_tenant')
},
sync: true,
success: function (res) {
bp_number=res.result.record.bp_number;
},
error: function () {
},
failure: function () {
},
scope: this,
sync: true,
});
if( bp_number ==0){
Leaf.showMessage('提示','承租人的居住地址不能为空');
return ;
}
}
if (current_record.dirty == true) { if (current_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}'); Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
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