Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
2fca3285
Commit
2fca3285
authored
Jul 15, 2022
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
铁甲承租人地址校验
parent
0a27fce9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
get_bp_address.lwm
...ain/webapp/WEB-INF/classes/prj/PRJ500N/get_bp_address.lwm
+23
-0
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+30
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+27
-0
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ500N/get_bp_address.lwm
0 → 100644
View file @
2fca3285
<?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>
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
2fca3285
...
...
@@ -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');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
2fca3285
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment