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