List <decimal> SelectPlantIdsByAccessLevel() { List <decimal> plantIdList = new List <decimal>(); if (UserContext.CheckUserPrivilege(SysPriv.admin, SysScope.system)) { plantIdList = EHSAuditMgr.SelectPlantIdsByCompanyId(companyId); } else { plantIdList = SessionManager.UserContext.PlantAccessList; if (plantIdList == null || plantIdList.Count == 0) { plantIdList.Add(SessionManager.UserContext.HRLocation.Plant.PLANT_ID); } } return(plantIdList); }