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
14520422
Commit
14520422
authored
Nov 21, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]报价创建修改
parent
2fc63481
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+10
-10
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+14
-14
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
14520422
...
...
@@ -476,17 +476,17 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_
branch_name
',null);
record.set('bank_
branch_name
_n',null);
record.getField('bank_
branch_name
').setReadOnly(true);
record.getField('bank_
branch_name
_n').setReadOnly(true);
record.getField('bank_
branch_name
').setRequired(false);
record.getField('bank_
branch_name
_n').setRequired(false);
record.set('bank_
account_id
',null);
record.set('bank_
account_id
_n',null);
record.getField('bank_
account_id
').setReadOnly(true);
record.getField('bank_
account_id
_n').setReadOnly(true);
record.getField('bank_
account_id
').setRequired(false);
record.getField('bank_
account_id
_n').setRequired(false);
} else {
record.getField('bank_
branch_name
').setReadOnly(false);
record.getField('bank_
branch_name
_n').setReadOnly(false);
record.getField('bank_
branch_name
').setRequired(true);
record.getField('bank_
branch_name
_n').setRequired(true);
record.getField('bank_
account_id
').setReadOnly(false);
record.getField('bank_
account_id
_n').setReadOnly(false);
record.getField('bank_
account_id
').setRequired(true);
record.getField('bank_
account_id
_n').setRequired(true);
}
}
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
14520422
...
...
@@ -485,17 +485,17 @@ function prj501n_contract_number_renderer(id, name, query_only){
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_
branch_name
',null);
record.set('bank_
branch_name
_n',null);
record.getField('bank_
branch_name
').setReadOnly(true);
record.getField('bank_
branch_name
_n').setReadOnly(true);
record.getField('bank_
branch_name
').setRequired(false);
record.getField('bank_
branch_name
_n').setRequired(false);
record.set('bank_
account_id
',null);
record.set('bank_
account_id
_n',null);
record.getField('bank_
account_id
').setReadOnly(true);
record.getField('bank_
account_id
_n').setReadOnly(true);
record.getField('bank_
account_id
').setRequired(false);
record.getField('bank_
account_id
_n').setRequired(false);
} else {
record.getField('bank_
branch_name
').setReadOnly(false);
record.getField('bank_
branch_name
_n').setReadOnly(false);
record.getField('bank_
branch_name
').setRequired(true);
record.getField('bank_
branch_name
_n').setRequired(true);
record.getField('bank_
account_id
').setReadOnly(false);
record.getField('bank_
account_id
_n').setReadOnly(false);
record.getField('bank_
account_id
').setRequired(true);
record.getField('bank_
account_id
_n').setRequired(true);
}
}
...
...
@@ -525,10 +525,10 @@ function prj501n_contract_number_renderer(id, name, query_only){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
if(ds_id==ds.id
&&
ds_id){
if(record.get('pay_method') == 'WIRE_TRANSFER'){
record.getField('bank_
branch_name
').setReadOnly(true);
record.getField('bank_
branch_name
_n').setReadOnly(true);
record.getField('bank_
branch_name
').setRequired(false);
record.getField('bank_
branch_name
_n').setRequired(false);
record.getField('bank_
account_id
').setReadOnly(true);
record.getField('bank_
account_id
_n').setReadOnly(true);
record.getField('bank_
account_id
').setRequired(false);
record.getField('bank_
account_id
_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