Ejemplo n.º 1
0
 /** 批量逻辑删除 */
 public String batchDelete() {
   String xtbhs = request.getParameter("xtbhs");
   if (yytservice.batchDelete(xtbhs)) {
     super.outmessage("删除成功!");
   } else {
     super.outmessage("删除失败!");
   }
   return null;
 }
Ejemplo n.º 2
0
 /**
  * 删除
  *
  * @return
  * @throws Exception
  */
 public String delete() throws Exception {
   String xtbh = entity.getXtbh();
   if (yytservice.delete(xtbh)) {
     super.outmessage("删除成功!");
   } else {
     super.outmessage("删除失败!");
   }
   return null;
 }
Ejemplo n.º 3
0
 /**
  * 批量编辑
  *
  * @return
  */
 public String batchEdit() throws Exception {
   String former = request.getQueryString();
   Map<String, Object> map = super.getSerializeForm(former);
   if (gqdservice.batchEdit(map)) {
     super.outmessage("编辑成功!");
   } else {
     super.outmessage("编辑失败!");
   }
   return null;
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
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);
 }
Ejemplo n.º 7
0
 /** 首页统计在线车辆、人员计数 */
 public void todaycalcdata() {
   UserInfo user = ((UserInfo) request.getSession().getAttribute("user"));
   Map<String, Object> map = onlineService.getOnlineDataCount(user);
   super.convertmaptojson(map);
 }
Ejemplo n.º 8
0
 /**
  * 资源点搜索
  *
  * @return
  */
 public String pointresource() {
   super.outmessage("just test");
   return null;
 }