|
|
@ -4574,6 +4574,8 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
|
|
|
|
if (isEmptyObject(recchange)) memberyf.commit();
|
|
|
|
if (isEmptyObject(recchange)) memberyf.commit();
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('DRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText('', false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var rec = selections[0];
|
|
|
|
var rec = selections[0];
|
|
|
|
var custname = rec.data.CustomerName;
|
|
|
|
var custname = rec.data.CustomerName;
|
|
|
@ -4585,6 +4587,39 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
|
|
|
|
DESCRIPTION: custname
|
|
|
|
DESCRIPTION: custname
|
|
|
|
});
|
|
|
|
});
|
|
|
|
_thisfee.storeCustomerNameRefDr.add(recordCustCode);
|
|
|
|
_thisfee.storeCustomerNameRefDr.add(recordCustCode);
|
|
|
|
|
|
|
|
var storeSelect = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'MsSelectFee',
|
|
|
|
|
|
|
|
proxy: { url: '/MvcShipping/MsCompanys/GetNoPicDataList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
|
|
|
|
|
var memberyf = selections[i];
|
|
|
|
|
|
|
|
var records = DsStoreQueryBy(storeSelect, 'CURR', memberyf.data.Currency)
|
|
|
|
|
|
|
|
if (records.getCount() > 0) {
|
|
|
|
|
|
|
|
var rec = records.getAt(0);
|
|
|
|
|
|
|
|
var AMOUNT = Add(rec.data.AMOUNT, memberyf.data.Amount);
|
|
|
|
|
|
|
|
rec.set('AMOUNT', AMOUNT);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
var rec = Ext.create('MsSelectFee', {
|
|
|
|
|
|
|
|
CURR: memberyf.data.Currency,
|
|
|
|
|
|
|
|
AMOUNT: memberyf.data.Amount
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
storeSelect.add(rec);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (storeSelect.getCount() > 0) {
|
|
|
|
|
|
|
|
str = '选中费用合计[';
|
|
|
|
|
|
|
|
for (i = 0; i < storeSelect.getCount(); i += 1) {
|
|
|
|
|
|
|
|
var memberyf = storeSelect.getAt(i);
|
|
|
|
|
|
|
|
str = str + memberyf.data.CURR + ':' + memberyf.data.AMOUNT + ';';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
str = str + ']';
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('DRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText(str, false);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('DRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText('', false);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -4598,6 +4633,8 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
|
|
|
|
if (isEmptyObject(recchange)) memberyf.commit();
|
|
|
|
if (isEmptyObject(recchange)) memberyf.commit();
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('CRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText('', false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var rec = selections[0];
|
|
|
|
var rec = selections[0];
|
|
|
|
var custname = rec.data.CustomerName;
|
|
|
|
var custname = rec.data.CustomerName;
|
|
|
@ -4609,6 +4646,39 @@ Ext.extend(Shipping.FeeEditGrid, Ext.Panel, {
|
|
|
|
DESCRIPTION: custname
|
|
|
|
DESCRIPTION: custname
|
|
|
|
});
|
|
|
|
});
|
|
|
|
_thisfee.storeCustomerNameRefCr.add(recordCustCode);
|
|
|
|
_thisfee.storeCustomerNameRefCr.add(recordCustCode);
|
|
|
|
|
|
|
|
var storeSelect = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'MsSelectFee',
|
|
|
|
|
|
|
|
proxy: { url: '/MvcShipping/MsCompanys/GetNoPicDataList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
|
|
|
|
|
var memberyf = selections[i];
|
|
|
|
|
|
|
|
var records = DsStoreQueryBy(storeSelect, 'CURR', memberyf.data.Currency)
|
|
|
|
|
|
|
|
if (records.getCount() > 0) {
|
|
|
|
|
|
|
|
var rec = records.getAt(0);
|
|
|
|
|
|
|
|
var AMOUNT = Add(rec.data.AMOUNT, memberyf.data.Amount);
|
|
|
|
|
|
|
|
rec.set('AMOUNT', AMOUNT);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
var rec = Ext.create('MsSelectFee', {
|
|
|
|
|
|
|
|
CURR: memberyf.data.Currency,
|
|
|
|
|
|
|
|
AMOUNT: memberyf.data.Amount
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
storeSelect.add(rec);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (storeSelect.getCount() > 0) {
|
|
|
|
|
|
|
|
str = '选中费用合计[';
|
|
|
|
|
|
|
|
for (i = 0; i < storeSelect.getCount(); i += 1) {
|
|
|
|
|
|
|
|
var memberyf = storeSelect.getAt(i);
|
|
|
|
|
|
|
|
str = str + memberyf.data.CURR + ':' + memberyf.data.AMOUNT + ' ';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
str = str + ']';
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('CRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText(str, false);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
var DRSELECTSTR = Ext.getCmp('CRSELECTSTR');
|
|
|
|
|
|
|
|
DRSELECTSTR.setText('', false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|