| | |
| | | //System.out.println(result);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | |
| | | //添加操作时查询出设备id
|
| | | public String searchmaxdev_id(){
|
| | | model = service.searchmaxdev_id();
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | |
| | | public String searchAll() {
|
| | | model = service.searchAll();
|
| | | result = ActionUtil.tojson(model);
|
| | |
| | |
|
| | | //跨域访问获取所有电池组的信息<-------跨域----------->
|
| | | public String searchInform_ky(){
|
| | | isAllowHeaders(); //允许跨域访问
|
| | | //isAllowHeaders(); //允许跨域访问
|
| | | ServiceModel model = new ServiceModel();
|
| | | model = service.searchInform_ky();
|
| | | result = ActionUtil.tojson(model);
|
| | |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //头部查出已安装的所有机房
|
| | | public String serchByDeviceId(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchByDeviceId(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //头部查出已安装的电池单体
|
| | | public String serchByInstall_count(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchByInstall_count(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public BattInf getBif() {
|
| | | return bif;
|
| | | }
|