Commit 2fca3285 authored by gzj34291's avatar gzj34291

铁甲承租人地址校验

parent 0a27fce9
<?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>
......@@ -1202,6 +1202,36 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
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') {
var project_number = current_record.get('project_number');
......
......@@ -1341,6 +1341,7 @@
return;
}
}
}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 (!bp_tenant_detail_r.get(key)) {
......@@ -1353,6 +1354,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) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
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