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
d24d3c43
Commit
d24d3c43
authored
Oct 10, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴经办人 身份证号唯一性校验
parent
3b3b28d0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
185 additions
and
98 deletions
+185
-98
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+137
-98
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+30
-0
hls_bp_master_req_modify.lview
...webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
+18
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
d24d3c43
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
d24d3c43
...
...
@@ -82,7 +82,24 @@
return
false;
}
//
经办人信息校验
var
signer_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_signer');
if(signer_ds_id){
var
signer_record =
$(signer_ds_id).getAll();
var
v_signer_count=
0;
if(signer_record.length
>
1){
for (var i = 1;i
< signer_record.length
;i++)
{
if(signer_record[i].get('id_card')
==
signer_record[i-1].get('id_card')){
v_signer_count=
v_signer_count+1;
}
}
}
if(v_signer_count
>
= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord();
...
...
@@ -571,6 +588,19 @@
}
}
}
//经办人身份信息校验
if(
sign_ds_id=
=ds.id
&&
sign_ds_id){
var
sign_record =
$(sign_ds_id).getAll();
var
check_num=
0;
if(sign_record[0].data.id_card
!=
undefined){
check_num++;
}
if(
check_num=
=0){
$(sign_ds_id).remove(sign_record[0]);
Leaf.showErrorMessage("提示","请先保存!");
return
false;
}
}
}
//更新时调用
add
by
liukang
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
View file @
d24d3c43
...
...
@@ -73,6 +73,24 @@
Leaf.showErrorMessage('${l:PROMPT}',
'第三方不能含有其他角色类型');
return
false;
}
//
经办人信息校验
var
signer_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_signer_req');
if(signer_ds_id){
var
signer_record =
$(signer_ds_id).getAll();
var
v_signer_count=
0;
if(signer_record.length
>
1){
for (var i = 1;i
< signer_record.length
;i++)
{
if(signer_record[i].get('id_card')
==
signer_record[i-1].get('id_card')){
v_signer_count=
v_signer_count+1;
}
}
}
if(v_signer_count
>
= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var bp_record = $(ds_id).getCurrentRecord();
var address_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_address_req');
...
...
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