Administrator
2018-10-15 2f10da83d8087ed1b47b8edc9ff29ca5248f504d
gx_tieta/src/com/fgkj/actions/BattInfAction.java
@@ -242,9 +242,6 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //搜索机房或电池组
   public String serchStationOrBattgroup(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
@@ -261,12 +258,28 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询所有的省份(左侧导航第一层,查所有的省份)
   public String serchAllStation_all(){
      User_inf u = (User_inf)getUser();
      BattInf binf=new BattInf();
      binf.setNum(u.getUId());
      ServiceModel model = service.serchAllStation_all(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的市(左侧导航第二层,查所有的市,num中存放uid)
   public String serchStationName2(){
      User_inf u = (User_inf)getUser();
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      binf.setNum(u.getUId());
      ServiceModel model = service.serchStationName2(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的市(左侧导航第二层,查所有的市)
   public String serchStationName2_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      ServiceModel model = service.serchStationName2_all(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
@@ -279,10 +292,28 @@
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //查询管理的机房(左侧导航第三层,查所有的机房)
   public String serchStationName3_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      ServiceModel model = service.serchStationName3_all(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组,num中存放uid)
   public String serchBattByStation(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      User_inf u = (User_inf)getUser();
      binf.setNum(u.getUId());
      //System.out.println(binf);
      ServiceModel model = service.serchBattByStation(binf);
      result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model);
      return SUCCESS;
   }
   //根据机房id查询机房下的电池组信息(左侧导航第四层,根据机房查询下面的电池组)
   public String serchBattByStation_all(){
      BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
      //System.out.println(binf);
      ServiceModel model = service.serchBattByStation_all(binf);
      result = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").toJson(model);
      return SUCCESS;
   }
@@ -295,6 +326,20 @@
      return SUCCESS;
   }
   
   //电池配组管理(重要)
   public String serchMakeGroup(){
      BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
      ServiceModel model = service.serchMakeGroup(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   //电池配组管理(重要)
   public String serchGroupByInfor(){
      BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
      ServiceModel model = service.serchGroupByInfor(binf);
      result = ActionUtil.tojson(model);
      return SUCCESS;
   }
   public BattInf getBif() {
      return bif;
   }
@@ -328,12 +373,6 @@
      this.btdif = btdif;
   }
   
//   public ServiceModel getModel() {
//      return model;
//   }
    
   public void setJson(String json) {
      this.json = json;