| | |
| | | if(list!=null && list.size()>0){
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | Battinf_apply bapply=list.get(i);
|
| | | /*int uid=((User_inf)ActionUtil.getUser()).getUId();
|
| | | bapply.setApply_uid(uid);*/
|
| | | int uid=((User_inf)ActionUtil.getUser()).getUId();
|
| | | bapply.setApply_uid(uid);
|
| | | BattInf binf=bapply.getBinf();
|
| | | //验证新添加的机房是否存在
|
| | | List listS=(new BattInfImpl()).judgeBatt(binf);
|
| | |
| | | }
|
| | | maxb++;
|
| | | sql_str.add(sql);
|
| | | /*{
|
| | | {
|
| | | String msg=((User_inf)ActionUtil.getUser()).getUId()+"申请添加"+binf.getStationName()+"机房"+binf.getBattGroupId()+"电池组的信息";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Increase, msg);
|
| | | listU.add(ulog);
|
| | | }*/
|
| | | }
|
| | | }
|
| | | }
|
| | | Boolean bl=false;
|
| | |
| | | }else{
|
| | | return false;
|
| | | }
|
| | | //(new User_logService()).addPro(listU);//将用户的操作记录下来
|
| | | (new User_logService()).addPro(listU);//将用户的操作记录下来
|
| | |
|
| | | return bl;
|
| | | }
|
| | |
| | | ",'"+binf.getBattProducer()+"','"+binf.getBattModel()+"','"+DAOHelper.sdf.format(binf.getBattProductDate())+"','"+DAOHelper.sdf.format(binf.getBattInUseDate())+"',"+binf.getLoad_curr()+",'"+binf.getInstall_user()+"',"+binf.getDisCurrMax()+",'"+binf.getStation_phone()+"',"+binf.getStation_install()+")";
|
| | | sql_str.add(sql_insert_binf);
|
| | | {
|
| | | String msg=((User_inf)ActionUtil.getUser()).getUId()+"确认添加"+binf.getStationName()+"机房"+binf.getBattGroupId()+"电池组的信息";
|
| | | String msg="确认添加"+binf.getStationName()+"机房"+binf.getBattGroupId()+"电池组的信息";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Alter, msg);
|
| | | listU.add(ulog);
|
| | | }
|
| | |
| | | ",FBSDeviceName,GroupIndexInFBSDevice,battgroupId,BattGroupNum,BattGroupName,FloatVolLevel,OfflineVolLevel,BattFloatCurrent" +
|
| | | ",MonCount,MonCapStd,monVolStd,monResStd,MonSerStd,MonVolLowToAvg,BattProducer,BattModel,BattProductDate,BattInUseDate,Load_curr,install_user,DisCurrMax,station_phone " +
|
| | | " from db_battinf.tb_battinf_apply " +
|
| | | " where apply_en=0 " +
|
| | | " where apply_en=0 order by apply_date desc" +
|
| | | " limit ?,? ";
|
| | | List<Battinf_apply> list=DAOHelper.executeQueryLimit(sql, conn, new Object[]{(page.getPageCurr()-1)*page.getPageSize(),page.getPageSize()}, new CallBack() {
|
| | |
|
| | |
| | | int number=LimitNumberFactory.GetLimtitNumber(conn, numberSql);
|
| | | //System.out.println("number: "+number);
|
| | | if(list!=null&&list.size()>0){
|
| | | list.get(list.size()-1).setNum(number);
|
| | | list.get(list.size()-1).setApply_note(String.valueOf(number));
|
| | | }
|
| | | return list;
|
| | | }
|
| | |
| | | page.setPageSize(10);
|
| | | binf.setPage(page);
|
| | | bapply.setBinf(binf);
|
| | | /*List list=bimpl.serchByCondition(bapply);
|
| | | System.out.println(list.size());*/
|
| | | List list=new ArrayList();
|
| | | List list=bimpl.serchByCondition(page);
|
| | | System.out.println(list.size());
|
| | | /*List list=new ArrayList();
|
| | | list.add(bapply);
|
| | | boolean bl=bimpl.add(list);
|
| | | System.err.println(bl);
|
| | | System.err.println(bl);*/
|
| | | /*int dev_id=BattinfGroupFactory.searchmaxdev_id();
|
| | | System.out.println(dev_id);
|
| | | int station_id=BattinfGroupFactory.searchStationId();
|