Commit baa1c4ca authored by xiaochao's avatar xiaochao

【收款维护限制验证调整】

parent 168e4f68
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
} }
if (name == 'attachment') { if (name == 'attachment') {
if (record.get('paid_byother_flag') == 'T') { if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != 'Y'){ if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') != 'NULL'){
return '<a href="javascript:acr610_detail_upload_window(' + record.get('file_id') + ')">附件</a>'; return '<a href="javascript:acr610_detail_upload_window(' + record.get('file_id') + ')">附件</a>';
} }
} }
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
} }
if (name == 'attachment') { if (name == 'attachment') {
if (record.get('paid_byother_flag') == 'T') { if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != 'Y'){ if (record.get('guarantor_name_duty') != 'Y' || record.get('guarantor_name_duty') != 'NULL'){
return '<a href="javascript:acr610_detail_upload_window(' + record.get('file_id') + ')">附件</a>'; return '<a href="javascript:acr610_detail_upload_window(' + record.get('file_id') + ')">附件</a>';
} }
} }
......
...@@ -274,8 +274,8 @@ ...@@ -274,8 +274,8 @@
} }
}else if(unit_code != 241 || unit_code != 610){ }else if(unit_code != 241 || unit_code != 610){
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc',''); record.set('guarantor_name_duty_desc',' ');
record.set('guarantor_name_duty','N'); record.set('guarantor_name_duty','NULL');
record.getField('guarantor_name_duty_desc').setRequired(false); record.getField('guarantor_name_duty_desc').setRequired(false);
} }
}, },
...@@ -320,8 +320,8 @@ ...@@ -320,8 +320,8 @@
record.getField('guarantor_name_duty_desc').setRequired(true); record.getField('guarantor_name_duty_desc').setRequired(true);
} else if (unit_code != 241 || unit_code != 610) { } else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', ''); record.set('guarantor_name_duty_desc', ' ');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'NULL');
record.getField('guarantor_name_duty_desc').setRequired(false); record.getField('guarantor_name_duty_desc').setRequired(false);
} }
}, },
...@@ -340,10 +340,39 @@ ...@@ -340,10 +340,39 @@
} }
}else if(record.get('paid_byother_flag') =='F'){ }else if(record.get('paid_byother_flag') =='F'){
var extra_id = record.get('bp_id');
if (extra_id != null){
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241 || unit_code == 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否'); record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false); record.getField('guarantor_name_duty_desc').setRequired(false);
} else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', ' ');
record.set('guarantor_name_duty', 'NULL');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
} }
} }
} }
......
...@@ -304,8 +304,8 @@ ...@@ -304,8 +304,8 @@
} }
} else if (unit_code != 241 || unit_code != 610) { } else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', ''); record.set('guarantor_name_duty_desc', ' ');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'NULL');
record.getField('guarantor_name_duty_desc').setRequired(false); record.getField('guarantor_name_duty_desc').setRequired(false);
} }
}, },
...@@ -350,8 +350,8 @@ ...@@ -350,8 +350,8 @@
record.getField('guarantor_name_duty_desc').setRequired(true); record.getField('guarantor_name_duty_desc').setRequired(true);
} else if (unit_code != 241 || unit_code != 610) { } else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', ''); record.set('guarantor_name_duty_desc', '');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'NULL');
record.getField('guarantor_name_duty_desc').setRequired(false); record.getField('guarantor_name_duty_desc').setRequired(false);
} }
}, },
...@@ -369,6 +369,34 @@ ...@@ -369,6 +369,34 @@
record.getField('guarantor_name_duty_desc').setRequired(true); record.getField('guarantor_name_duty_desc').setRequired(true);
} }
}else if(record.get('paid_byother_flag') =='F'){ }else if(record.get('paid_byother_flag') =='F'){
var extra_id = record.get('bp_id');
if (extra_id != undefined){
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241 || unit_code == 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
} else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '');
record.set('guarantor_name_duty', 'NULL');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
record.getField('guarantor_name_duty_desc').setReadOnly(true); record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否'); record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N'); record.set('guarantor_name_duty', 'N');
...@@ -376,6 +404,7 @@ ...@@ -376,6 +404,7 @@
} }
} }
} }
}
// function onAdd_csh511_receipt(ds, record) { // function onAdd_csh511_receipt(ds, record) {
// record.set('precision',2); // record.set('precision',2);
// record.set('zero_amounts_allowed','N'); // record.set('zero_amounts_allowed','N');
......
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