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
6e77c02b
Commit
6e77c02b
authored
Nov 07, 2019
by
25484
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/prj_project_create_entrance' into develop
parents
4f6f3e14
d1da5b4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
20 deletions
+32
-20
prj_project_create_entrance.lview
...app/modules/prj/PRJ500N/prj_project_create_entrance.lview
+32
-20
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create_entrance.lview
View file @
6e77c02b
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
Leaf.onReady(function () {
Leaf.onReady(function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var head_record = $(ds_id).getAt(0);
var head_record = $(ds_id).getAt(0);
head_record.getField('invoice_agent_id_n').setRequired(true);
var invoice_agent_id = '${/model/user_agent_description/record/@agent_id}';
var invoice_agent_id_n = '${/model/user_agent_description/record/@agent_name}';
head_record.set('unit_id', '${/model/4s_root_path/record/@value_code}');
head_record.set('unit_id', '${/model/4s_root_path/record/@value_code}');
head_record.set('unit_id_n', '${/model/4s_root_path/record/@value_name}');
head_record.set('unit_id_n', '${/model/4s_root_path/record/@value_name}');
...
@@ -53,8 +56,17 @@
...
@@ -53,8 +56,17 @@
head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// head_record.set('invoice_agent_id', '${/model/prj_project_invoice_agent_id_dafault_value_path/record/@bp_id}');
// 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_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', invoice_agent_id);
head_record.set('invoice_agent_id_n', '${/model/user_agent_description/record/@agent_name}');
head_record.set('invoice_agent_id_n', invoice_agent_id_n);
if(!invoice_agent_id){
head_record.getField('invoice_agent_id_n').setReadOnly(false);
// head_record.getField('invoice_agent_id_n').setRequired(false);
}
// alert('${/session/@user_id}');
// alert('${/session/@user_id}');
});
});
...
@@ -64,25 +76,25 @@
...
@@ -64,25 +76,25 @@
//
//
if (name == 'division') {
if (name == 'division') {
record.set('bp_class_n', '');
//
record.set('bp_class_n', '');
}
// record.set('invoice_agent_id_n', '');
// record.set('invoice_agent_id_n', '');
//
record.getField('bp_class_n').setReadOnly(false);
record.getField('bp_class_n').setReadOnly(false);
// record.getField('invoice_agent_id_n').setRequired(true);
// record.getField('invoice_agent_id_n').setRequired(true);
//
//
} else if (name == 'lease_channel') {
} else if (name == 'lease_channel') {
//
record.set('division', '');
record.set('division', '');
//
record.set('division_n', '');
record.set('division_n', '');
//
record.set('first_flag', '');
record.set('first_flag', '');
//
record.set('first_flag_n', '');
record.set('first_flag_n', '');
//
record.set('ka_prj_id', '');
record.set('ka_prj_id', '');
//
record.set('ka_prj_id_n', '');
record.set('ka_prj_id_n', '');
//
//
record.getField('first_flag_n').setReadOnly(true);
record.getField('first_flag_n').setReadOnly(true);
//
record.getField('first_flag_n').setRequired(false);
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