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
57c63f2b
Commit
57c63f2b
authored
Nov 14, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]商业伙伴维护修改
parent
8e1a56d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
31 deletions
+22
-31
user_agent_description.lwm
...pp/WEB-INF/classes/prj/PRJ500D/user_agent_description.lwm
+5
-15
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+17
-16
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ500D/user_agent_description.lwm
View file @
57c63f2b
...
...
@@ -4,21 +4,11 @@
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select h.bp_name agent_name,h.bp_id agent_id
from hls_bp_master h
where h.unit_id =
(select eo.unit_id
from exp_org_position eo
where eo.position_id =
(select ee.POSITION_ID
from EXP_EMPLOYEE_ASSIGNS ee
where ee.EMPLOYEE_ID =
(select s.employee_id
from sys_user s
where ${/session/@user_id} = s.user_id))
and (select eou.parent_unit_id
from EXP_ORG_UNIT eou
where eou.unit_id = eo.unit_id) = 1544)
select h.bp_name, h.bp_code, h.bp_id
from exp_emp_assign_e_v ee, hls_bp_master h
where ee.user_id = ${/session/@user_id}
and ee.unit_id = h.unit_id
and h.bp_category = 'AGENT'
]]>
</bm:query-sql>
</bm:operation>
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
57c63f2b
...
...
@@ -388,23 +388,24 @@
}
if (name == 'id_card_no') {
//
if (!checkCard(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
//自动带出籍贯
record.set('resident_addres',get_native_place(value))
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
if(record.get('id_type') == 'ID_CARD') {
if (!checkCard(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证';
} else if (value.length == 18) {
//自动带出籍贯
record.set('resident_addres', get_native_place(value));
record.set('date_of_birth', new Date(value.substr(6, 4) + '/' + value.substr(10, 2) + '/' + value.substr(12, 2)));
record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) {
record.set('gender', 'MALE');
record.set('gender_n', '男');
} else if (value.substr(16, 1) % 2 == 0) {
record.set('gender', 'FEMALE');
record.set('gender_n', '女');
}
}
}
}
...
...
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