Commit 57c63f2b authored by 25484's avatar 25484

[fix]商业伙伴维护修改

parent 8e1a56d1
...@@ -4,21 +4,11 @@ ...@@ -4,21 +4,11 @@
<bm:operations> <bm:operations>
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql><![CDATA[ <bm:query-sql><![CDATA[
select h.bp_name agent_name,h.bp_id agent_id select h.bp_name, h.bp_code, h.bp_id
from hls_bp_master h from exp_emp_assign_e_v ee, hls_bp_master h
where h.unit_id = where ee.user_id = ${/session/@user_id}
(select eo.unit_id and ee.unit_id = h.unit_id
from exp_org_position eo and h.bp_category = 'AGENT'
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)
]]> ]]>
</bm:query-sql> </bm:query-sql>
</bm:operation> </bm:operation>
......
...@@ -388,13 +388,13 @@ ...@@ -388,13 +388,13 @@
} }
if (name == 'id_card_no') { if (name == 'id_card_no') {
// if(record.get('id_type') == 'ID_CARD') {
if (!checkCard(value)) { if (!checkCard(value)) {
Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!'); Leaf.showMessage('提示', '基本信息中,请输入正确格式的身份证!');
return '请输入正确格式的身份证'; return '请输入正确格式的身份证';
} else if (value.length == 18) { } else if (value.length == 18) {
//自动带出籍贯 //自动带出籍贯
record.set('resident_addres',get_native_place(value)) 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('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)); record.set('age', new Date().getFullYear() - value.substr(6, 4));
if (value.substr(16, 1) % 2 == 1) { if (value.substr(16, 1) % 2 == 1) {
...@@ -407,6 +407,7 @@ ...@@ -407,6 +407,7 @@
} }
} }
}
if (name == 'id_no_sp') { if (name == 'id_no_sp') {
// //
......
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