Commit be3f0aa1 authored by 25484's avatar 25484

[fix]报价创建修改

parent b6c1695b
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<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)
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -15,6 +15,7 @@
rootPath="prj_project_invoice_agent_id_dafault_value_path"/>
<a:model-query defaultWhereClause="t1.company_id=${/session/@company_id}" fetchAll="true"
model="prj.PRJ500D.get_company_info" rootPath="company_info_path"/>
<a:model-query fetchAll="true" model="prj.PRJ500D.user_agent_description" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view>
<a:link id="prj_chance_create_link"
......@@ -50,7 +51,11 @@
head_record.set('company_id', '${/model/company_info_path/record/@company_id}');
head_record.set('company_id_n', '${/model/company_info_path/record/@company_short_name}');
head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
head_record.set('invoice_agent_id_n', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id_n}');
// head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id_n', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id_n}');
head_record.set('invoice_agent_id', '${/model/user_agent_description/record/@agent_id}');
head_record.set('invoice_agent_id_n', '${/model/user_agent_description/record/@agent_name}');
// alert('${/session/@user_id}');
});
......@@ -59,24 +64,25 @@
//
if (name == 'division') {
// record.set('bp_class_n', '');
record.set('invoice_agent_id_n', '');
// record.getField('bp_class_n').setReadOnly(false);
record.getField('invoice_agent_id_n').setRequired(true);
} else if (name == 'lease_channel') {
record.set('division', '');
record.set('division_n', '');
record.set('first_flag', '');
record.set('first_flag_n', '');
record.set('ka_prj_id', '');
record.set('ka_prj_id_n', '');
record.getField('first_flag_n').setReadOnly(true);
record.getField('first_flag_n').setRequired(false);
record.set('bp_class_n', '');
}
// record.set('invoice_agent_id_n', '');
// record.getField('bp_class_n').setReadOnly(false);
// record.getField('invoice_agent_id_n').setRequired(true);
//
// } else if (name == 'lease_channel') {
// record.set('division', '');
// record.set('division_n', '');
// record.set('first_flag', '');
// record.set('first_flag_n', '');
// record.set('ka_prj_id', '');
// record.set('ka_prj_id_n', '');
//
// record.getField('first_flag_n').setReadOnly(true);
// record.getField('first_flag_n').setRequired(false);
//
// }
//
};
......
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