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