|
|
|
@ -63,14 +63,14 @@ Ext.extend(Shipping.MsOp_SuperVision_TruckIndex, Ext.Panel, {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeDEPT = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsTruckMng.ux.DEPTRefModel',
|
|
|
|
|
this.storeDept = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
model: 'DsShipping.ux.DeptModel',
|
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetDeptList' }
|
|
|
|
|
});
|
|
|
|
|
this.storeDEPT.load({ params: { condition: "" } });
|
|
|
|
|
this.storeDept.load();
|
|
|
|
|
this.comboxDEPT = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
fieldLabel: '部门',
|
|
|
|
|
store: this.storeDEPT,
|
|
|
|
|
store: this.storeDept,
|
|
|
|
|
name: 'DEPTID', id: "DEPTID",
|
|
|
|
|
valueField: 'GID',
|
|
|
|
|
displayField: 'DeptName'
|
|
|
|
@ -1857,15 +1857,15 @@ Ext.extend(Shipping.MsOp_SuperVision_TruckIndex, Ext.Panel, {
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
, GetCompanyInfo: function (CORPID) {
|
|
|
|
|
var company = getStoreRecordsByFieldValue(this.storeCompany, "GID", CORPID)
|
|
|
|
|
var company = getStoreRecordsByFieldValue(this.storeCompany, "gid", CORPID)
|
|
|
|
|
if (company.length > 0) {
|
|
|
|
|
return company[0].get("NAME");
|
|
|
|
|
return company[0].get("name");
|
|
|
|
|
} else {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, GetDeptInfo: function (DEPTGID) {
|
|
|
|
|
var dept = getStoreRecordsByFieldValue(this.storeCompany, "GID", DEPTGID)
|
|
|
|
|
var dept = getStoreRecordsByFieldValue(this.storeDept, "GID", DEPTGID)
|
|
|
|
|
if (dept.length > 0) {
|
|
|
|
|
return dept[0].get("DeptName");
|
|
|
|
|
} else {
|
|
|
|
|