Esempio n. 1
0
 /**
  * 未处理故障结果页面
  *
  * @return
  */
 public String undoalertresult() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   List<Map<String, Object>> regions = onlineService.getRegions(user);
   List<Map<String, Object>> contractors = onlineService.getContractors(user);
   request.setAttribute("regions", regions);
   request.setAttribute("contractors", contractors);
   return "alertresult";
 }
Esempio n. 2
0
 /** 统计故障列表信息 */
 public void undorealonlinealerdata() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   List<Map<String, Object>> regionsonline = onlineService.getOnlineAlertRealdataByRegion(user);
   List<Map<String, Object>> orgsonline = onlineService.getOnlineAlertRealdataByOrg(user);
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("regionsonline", regionsonline);
   map.put("orgsonline", orgsonline);
   super.convertmaptojson(map);
 }
Esempio n. 3
0
 /** 统计在线车辆数量 */
 public void todayrealonlinecardata() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   List<Map<String, Object>> regionsonlinecar = onlineService.getOnlinecarRealdataByRegion(user);
   List<Map<String, Object>> orgsonlinecar = onlineService.getOnlinecarRealdataByOrg(user);
   List<Map<String, Object>> onlinecarcount = onlineService.getOnlineCarCounts(user);
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("regionsonline", regionsonlinecar);
   map.put("orgsonline", orgsonlinecar);
   map.put("onlinecount", onlinecarcount);
   super.convertmaptojson(map);
 }
Esempio n. 4
0
 /** 在线巡检人列表 */
 public String todayonlineman() {
   UserInfo ui = (UserInfo) request.getSession().getAttribute("user");
   String regionid = request.getParameter("regionid");
   String orgid = request.getParameter("orgid");
   Map<String, Object> conditionmap = new HashMap<String, Object>();
   if (StringUtils.isBlank(regionid) && StringUtils.isBlank(orgid)) {
     if (ui.isMobile()) {
       conditionmap.put(
           "regionlist", baseInfoProvider.getRegionService().getRegionIdList(ui.getUserId()));
     } else {
       conditionmap.put(
           "contractorlist", baseInfoProvider.getOrgService().getOrgIdList(ui.getUserId()));
     }
   }
   if (StringUtils.isNotBlank(super.getParameterValue("name"))) { // 获取快捷搜索的名称
     conditionmap.put("name", super.converstringtoutf8(super.getParameterValue("name")));
   }
   conditionmap.put("regionid", regionid);
   if (ui.isContractor() && StringUtils.isBlank(orgid)) {
     orgid = ui.getOrgId();
   }
   conditionmap.put("orgid", orgid);
   Map<String, Object> map =
       onlineService.queryPageMap(
           "queryTodayOnlineMan", conditionmap, super.getPage("page"), super.getLimit("rows"));
   request.setAttribute("locatejson", getLocateJson(map));
   request.setAttribute("map", map);
   return "onlineman";
 }
Esempio n. 5
0
 /** 巡检车辆轨迹数据 */
 public void getHistoryPositionsBySimid() {
   Map<String, Object> param = new HashMap<String, Object>();
   param.put("simid", request.getParameter("simid"));
   param.put("begindate", request.getParameter("begin"));
   param.put("enddate", request.getParameter("end"));
   List<Map<String, Object>> hp = onlineService.getHistoryPositionsBySimid(param);
   super.convertmaptojson(hp);
 }
Esempio n. 6
0
 /**
  * 列出全部未处理的故障列表
  *
  * @return
  */
 public String undoonlinealer() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   String regionid = request.getParameter("regionid");
   String orgid = request.getParameter("orgid");
   Map<String, Object> conditionmap = new HashMap<String, Object>();
   conditionmap.put("regionid", regionid);
   if (user.isContractor() && StringUtils.isBlank(orgid)) {
     orgid = user.getOrgId();
   }
   conditionmap.put("orgid", orgid);
   Map<String, Object> map =
       onlineService.queryPageMap(
           "queryOnlineAlert", conditionmap, super.getPage("page"), super.getLimit("rows"));
   request.setAttribute("locatejson", getLocateJson(map));
   request.setAttribute("map", map);
   return "onlinealert";
 }
Esempio n. 7
0
 /** 首页统计在线车辆、人员计数 */
 public void todaycalcdata() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   Map<String, Object> map = onlineService.getOnlineDataCount(user);
   super.convertmaptojson(map);
 }