|
|
|
@ -3607,15 +3607,7 @@ Ext.extend(Shipping.ChSettlementRecvDuiEdit, Ext.Panel, {
|
|
|
|
|
_this.formEdit.getForm().findField('SETTLEUSERREF').setDisabled(true);
|
|
|
|
|
_this.GetEditStatus();
|
|
|
|
|
_this.LoadPeriod(this.opStatus);
|
|
|
|
|
this.StoreBANK.load({
|
|
|
|
|
params: { condition: "" },
|
|
|
|
|
callback: function (r, options, success) {
|
|
|
|
|
if (success) {
|
|
|
|
|
this.formEdit.getForm().findField('ACCOUNT').setValue(data.ACCOUNT);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
scope: this
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
_this.storeChfeeFile.load({ params: { start: 0, limit: 9999, BillNo: data.BILLNO } });
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
@ -3639,11 +3631,11 @@ Ext.extend(Shipping.ChSettlementRecvDuiEdit, Ext.Panel, {
|
|
|
|
|
callback: function (r, options, success) {
|
|
|
|
|
if (success) {
|
|
|
|
|
if (this.storeBodyList.getCount() > 0) {
|
|
|
|
|
this.comboxCurr.setReadOnly(true);
|
|
|
|
|
this.comboxBILLTYPE.setReadOnly(true);
|
|
|
|
|
this.comboxCustCode.setReadOnly(true);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this.comboxCurr.setReadOnly(false);
|
|
|
|
|
this.comboxBILLTYPE.setReadOnly(false);
|
|
|
|
|
this.comboxCustCode.setReadOnly(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -5579,16 +5571,24 @@ Ext.extend(Shipping.ChSettlementRecvDuiEdit, Ext.Panel, {
|
|
|
|
|
},
|
|
|
|
|
GetBank: function () {
|
|
|
|
|
if (this.StoreBANK.getCount() == 0) return;
|
|
|
|
|
var ACCOUNT = this.formEdit.getForm().findField('ACCOUNT').getValue();
|
|
|
|
|
var CURR = this.formEdit.getForm().findField('CURR').getValue();
|
|
|
|
|
var ACCOUNT = this.formEdit.getForm().findField('ACCOUNTRMB').getValue();
|
|
|
|
|
var SETTLETYPE = this.formEdit.getForm().findField('SETTLETYPE').getRawValue();
|
|
|
|
|
if (SETTLETYPE == '现金') return;
|
|
|
|
|
if (ACCOUNT != '') return;
|
|
|
|
|
if (CURR == '') return;
|
|
|
|
|
if (ACCOUNT == '') {
|
|
|
|
|
for (var j = 0; j < this.StoreBANK.getCount(); j += 1) {
|
|
|
|
|
var memberbody = this.StoreBANK.getAt(j);
|
|
|
|
|
if (memberbody.data.CURRENCY == CURR && memberbody.data.ISDEF=='True') {
|
|
|
|
|
this.formEdit.getForm().findField('ACCOUNT').setValue(memberbody.data.GID);
|
|
|
|
|
if (memberbody.data.CURRENCY == 'RMB' && memberbody.data.ISDEF == 'True') {
|
|
|
|
|
this.formEdit.getForm().findField('ACCOUNTRMB').setValue(memberbody.data.GID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var ACCOUNTUSD = this.formEdit.getForm().findField('ACCOUNTUSD').getValue();
|
|
|
|
|
if (ACCOUNTUSD == '') {
|
|
|
|
|
for (var j = 0; j < this.StoreBANKUSD.getCount(); j += 1) {
|
|
|
|
|
var memberbody = this.StoreBANKUSD.getAt(j);
|
|
|
|
|
if (memberbody.data.CURRENCY == 'USD' && memberbody.data.ISDEF == 'True') {
|
|
|
|
|
this.formEdit.getForm().findField('ACCOUNTUSD').setValue(memberbody.data.GID);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|