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