| | |
| | | import com.fgkj.actions.ActionUtil;
|
| | | import com.fgkj.dao.FBS9100_ComBase;
|
| | | import com.fgkj.dao.UinfDaoFactory;
|
| | | import com.fgkj.dto.BattInf;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_log;
|
| | | import com.fgkj.dto.ram.Fbs9100_battparam;
|
| | |
| | | private Fbs9100_battparamService service=new Fbs9100_battparamService();
|
| | | private User_logService uservice=new User_logService();
|
| | | private String json;
|
| | | private String json_msg;
|
| | | private String result;
|
| | |
|
| | | //获取电池参数信息
|
| | |
| | | public String updatePro() {
|
| | | List<Fbs9100_battparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_battparam>>(){}.getType());
|
| | | ServiceModel model = service.updatePro(list);
|
| | | {
|
| | | String msg="批量设置"+json_msg+"的电池参数信息";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Batch, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | //批量设置电池参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组并读取它的实际电池参数
|
| | | public String serchBattinfAndParam() {
|
| | | BattInf binf=getGson().fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.serchBattinfAndParam(binf);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | |
| | | //批量读取电池参数
|
| | | public String readPL() {
|
| | | List<Fbs9100_battparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_battparam>>(){}.getType());
|
| | | ServiceModel model = service.readPL(list);
|
| | | /*{
|
| | | String msg="批量读取"+json_msg+"的电池参数信息";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Batch, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }*/
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
| | | public void setJson(String json) {
|
| | | this.json = json;
|
| | | }
|
| | | public void setJson_msg(String json_msg) {
|
| | | this.json_msg = json_msg;
|
| | | }
|
| | |
|
| | |
|
| | |
|