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
6359c59b
Commit
6359c59b
authored
Nov 21, 2019
by
25484
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/feature/ap_invoice_import' into develop
parents
9cd71ea8
fec024c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+6
-4
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
6359c59b
...
...
@@ -9,6 +9,7 @@
trace=
"true"
>
<a:init-procedure>
<a:model-query
fetchAll=
"true"
model=
"hls.HLS213N.hls_bp_master_unit"
rootPath=
"user_agent_description"
/>
<a:model-query
fetchAll=
"true"
model=
"hls.HLS214N.hls_bp_master_modify_user"
rootPath=
"modify_user"
/>
</a:init-procedure>
<a:view>
<a:link
id=
"get_special_fields_link_id"
model=
"hls.HLS213N.social_code_exist"
...
...
@@ -28,9 +29,10 @@
<!-- <script src="${/request/@context_path}/javascripts/identity_card_info_query.js" type="text/javascript"/>-->
<!-- <a:link id="identity_query_link" model="interface.CCX_INTERFACE.identity_query" modelaction="update"/>-->
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(function () {
Leaf.onReady(function () {
debugger;
var unit_id = '${/model/user_agent_description/record/@unit_id}';
var unit_id_n = '${/model/user_agent_description/record/@bp_name}';
var employee_type_id = '${/model/modify_user/record/@employee_type_id}';
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
...
...
@@ -42,12 +44,12 @@
bp_record.set('owner_user_id', '${/session/@user_id}');
bp_record.set('unit_id', unit_id);
bp_record.set('unit_id_n', unit_id_n);
if
(unit_id && unit_id_n)
{
if
(employee_type_id == '64')
{
bp_record.getField('unit_id_n').setReadOnly(true);
} else {
bp_record.getField('unit_id_n').setRequired(false);
}else{
bp_record.getField('unit_id_n').setReadOnly(false);
bp_record.getField('unit_id_n').setRequired(true);
// bp_record.getField('agent_type_n').setRequired(true);
}
if ('${/parameter/@bp_type}' == 'AGENT') {
bp_record.getField('agent_type_n').setReadOnly(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