监管车界面的公司和部门

DS7_JingHan
ddlucky 2 years ago
parent a79f466bea
commit b23489fb37

@ -19,6 +19,19 @@
SHOWNAME = '<%= Session["SHOWNAME"] %>';
}
getSessgion3();
var DEPTID;
function getSessgion4() {
DEPTID = '<%= Session["DEPTGID"] %>';
}
getSessgion4();
var COMPANYID;
function getSessgion5() {
COMPANYID = '<%= Session["COMPANYID"] %>';
}
getSessgion5();
var strLANGUAGES;
function getSessgion6() {
strLANGUAGES = '<%= Session["LANGUAGES"] %>'; //zh-cn-中文en-us英文

@ -1406,10 +1406,13 @@ function getStoreRecordsByFieldValue(store, fieldname, fieldvalue) {
var member = store.getAt(i);
var _fieldvalue = member.get(fieldname);
if (_fieldvalue == fieldvalue) {
_List.push(member.get(fieldname));
_List.push(member);
} else {
}
}
//idx = store.findExact(fieldname, fieldvalue);
////return idx !== -1 ? ds.getAt(idx)
//idx !== -1 ? _List.push(store.getAt(idx)) : false;
return _List;
}

@ -116,9 +116,9 @@ Ext.extend(Shipping.MsOp_SuperVision_TruckEdit, Ext.Panel, {
// flex: 0.5,
// labelWidth: 60,
forceSelection: true,
name: 'SALEDEPT',
value: DEPTNAME,
valueField: 'DeptName',
name: 'DEPTID', id: "DEPTID",
valueField: 'GID',
value: DEPTID,
displayField: 'DeptName'
//,hidden: true
});

@ -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 {

Loading…
Cancel
Save