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
cfc8eb27
Commit
cfc8eb27
authored
Jul 15, 2022
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
铁甲承租人地址校验
parent
ef053075
Changes
3
Show 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 @
cfc8eb27
<?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 @
cfc8eb27
...
@@ -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');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
cfc8eb27
...
@@ -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;
...
...
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