|
|
|
@ -176,15 +176,15 @@ Ext.extend(Shipping.MsOpApplyLSEdit, Ext.Panel, {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
var recs = DsStoreQueryBy(this.storeUserBase, 'USERID', records[0].data.GID);
|
|
|
|
|
|
|
|
|
|
var SALEDEPT = this.formHead.getForm().findField('SALEDEPT');
|
|
|
|
|
if (recs.getCount() > 0) {
|
|
|
|
|
var data = recs.getAt(0).data;
|
|
|
|
|
SALEDEPT.setValue(data.DEPTNAME);
|
|
|
|
|
} else {
|
|
|
|
|
SALEDEPT.setValue('');
|
|
|
|
|
}
|
|
|
|
|
//var recs = DsStoreQueryBy(this.storeUserBase, 'USERID', records[0].data.GID);
|
|
|
|
|
|
|
|
|
|
//var SALEDEPT = this.formHead.getForm().findField('SALEDEPT');
|
|
|
|
|
//if (recs.getCount() > 0) {
|
|
|
|
|
// var data = recs.getAt(0).data;
|
|
|
|
|
// SALEDEPT.setValue(data.DEPTNAME);
|
|
|
|
|
//} else {
|
|
|
|
|
// SALEDEPT.setValue('');
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -203,7 +203,15 @@ Ext.extend(Shipping.MsOpApplyLSEdit, Ext.Panel, {
|
|
|
|
|
name: 'OP',
|
|
|
|
|
valueField: 'UserName',
|
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
|
value: SHOWNAME
|
|
|
|
|
value: SHOWNAME,
|
|
|
|
|
listeners: {
|
|
|
|
|
scope: this,
|
|
|
|
|
'select': function (combo, records, eOpts) {
|
|
|
|
|
if (records.length > 0) {
|
|
|
|
|
this.formHead.getForm().findField('SALEDEPT').setValue(records[0].data.DEPTNAME);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|