| | |
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | //查询所有的机房
|
| | | public String serchAllStation(){
|
| | | User_inf u = (User_inf)getUser();
|
| | | ServiceModel model = service.serchAllStation(u);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | |
|
| | | //搜索机房或电池组
|
| | | public String serchStationOrBattgroup(){
|
| | |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //根据机房id查询机房下的电池组信息
|
| | | //查询所有的省份(左侧导航第一层,查所有的省份,num中存放uid)
|
| | | public String serchAllStation(){
|
| | | User_inf u = (User_inf)getUser();
|
| | | BattInf binf=new BattInf();
|
| | | binf.setNum(u.getUId());
|
| | | ServiceModel model = service.serchAllStation(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;
|
| | | }
|
| | | //查询管理的机房(左侧导航第三层,查所有的机房,num中存放uid)
|
| | | public String serchStationName3(){
|
| | | User_inf u = (User_inf)getUser();
|
| | | BattInf binf = ActionUtil.getGson().fromJson(json, BattInf.class);
|
| | | binf.setNum(u.getUId());
|
| | | ServiceModel model = service.serchStationName3(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;
|