Commit 57c63f2b authored by 25484's avatar 25484

[fix]商业伙伴维护修改

parent 8e1a56d1
......@@ -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>
......
......@@ -388,13 +388,13 @@
}
if (name == 'id_card_no') {
//
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('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) {
......@@ -407,6 +407,7 @@
}
}
}
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