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
be3f0aa1
Commit
be3f0aa1
authored
Nov 07, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]报价创建修改
parent
b6c1695b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
18 deletions
+50
-18
user_agent_description.lwm
...pp/WEB-INF/classes/prj/PRJ500D/user_agent_description.lwm
+26
-0
prj_project_create_entrance.lview
...app/modules/prj/PRJ500N/prj_project_create_entrance.lview
+24
-18
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ500D/user_agent_description.lwm
0 → 100644
View file @
be3f0aa1
<?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>
src/main/webapp/modules/prj/PRJ500N/prj_project_create_entrance.lview
View file @
be3f0aa1
...
...
@@ -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);
//
// }
//
};
...
...
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