| | |
| | | int numAlarm=0;
|
| | | int numPlan=0;
|
| | | int numPoff=0;
|
| | | int dianzhanNum=0;
|
| | | if(list!=null&&list.size()>0){
|
| | | for(int i=0;i<list.size();i++){
|
| | | state="item-normal";
|
| | |
| | | binf.setFBSDeviceId(binformation.getFBSDeviceId());
|
| | | state=(new Fbs9100_stateImpl().seachDevNow(binf));
|
| | | }else{
|
| | | numPoff=(new Bts_station_stateImpl()).serchByStationId(binformation); //停电数
|
| | | numPoff=(new Bts_station_stateImpl()).serchByStationId(binformation); //停电数 |
| | | dianzhanNum=((Bts_station_stateImpl)dao).serchByStationId_diaozhan(binformation); //掉站数
|
| | | numBadBatt=(new BadBatt_monImpl()).serchByStationId(binformation); //落后总数
|
| | | numAlarm=(new Battalarm_dataDAOImpl()).serchByStationId(binformation); //告警总数
|
| | | numPlan=(new BattDischarge_planImpl()).serchByStationId(binformation); //延迟总数
|
| | | //numPlan=(new BattDischarge_planImpl()).serchByStationId(binformation); //延迟总数
|
| | | if(numPoff>0){
|
| | | state="item-poff"; //停电
|
| | | }else{
|
| | |
| | | if(numAlarm > 0){
|
| | | state="item-warn"; //告警机房
|
| | | }else{
|
| | | if(numPlan > 0){
|
| | | /*if(numPlan > 0){
|
| | | state="item-timeout"; //延迟机房
|
| | | }*/
|
| | | if(dianzhanNum>0){
|
| | | state="item-diaozhan";
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | model.setMsgO(String.valueOf(numPoff)); //停电数
|
| | | model.setCode(numAlarm); //告警总数
|
| | | model.setSum(numBadBatt); //落后总数
|
| | | model.setNewsum(numPlan); //延时总数
|
| | | //model.setNewsum(numPlan); //延时总数
|
| | | model.setMsgT(String.valueOf(dianzhanNum)); //掉站
|
| | | model.setMsg(state); //61850状态
|
| | | model.setMsgN(binformation.getFBSDeviceId().toString());
|
| | | listAll.add(model);
|
| | |
| | | int numBadBatt=0;
|
| | | int numAlarm=0;
|
| | | int numPlan=0;
|
| | | int numPoff=0;
|
| | | int dianzhanNum=0;
|
| | | if(list!=null&&list.size()>0){
|
| | | for(int i=0;i<list.size();i++){
|
| | | state="item-normal";
|
| | |
| | | binf.setFBSDeviceId(binformation.getFBSDeviceId());
|
| | | state=(new Fbs9100_stateImpl().seachDevNow(binf));
|
| | | }else{
|
| | | numPoff=(new Bts_station_stateImpl()).serchByStationId(binformation); //停电数 |
| | | dianzhanNum=((Bts_station_stateImpl)dao).serchByStationId_diaozhan(binformation); //掉站数
|
| | | numBadBatt=(new BadBatt_monImpl()).serchByStationId(binformation); //落后总数
|
| | | numAlarm=(new Battalarm_dataDAOImpl()).serchByStationId(binformation); //告警总数
|
| | | numPlan=(new BattDischarge_planImpl()).serchByStationId(binformation); //延迟总数
|
| | | if(numBadBatt>0){
|
| | | state="item-behind"; //落后机房
|
| | | //numPlan=(new BattDischarge_planImpl()).serchByStationId(binformation); //延迟总数
|
| | | if(numPoff>0){ |
| | | state="item-poff"; //停电
|
| | | }else{
|
| | | if(numAlarm > 0){
|
| | | state="item-warn"; //告警机房
|
| | | if(numBadBatt>0){
|
| | | state="item-behind"; //落后机房
|
| | | }else{
|
| | | if(numPlan > 0){
|
| | | state="item-timeout"; //延迟机房
|
| | | if(numAlarm > 0){
|
| | | state="item-warn"; //告警机房
|
| | | }else{
|
| | | /*if(numPlan > 0){
|
| | | state="item-timeout"; //延迟机房
|
| | | }*/
|
| | | if(dianzhanNum>0){
|
| | | state="item-diaozhan";
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | model.setData(list.get(i));
|
| | | model.setMsgO(String.valueOf(numPoff)); //停电数
|
| | | model.setCode(numAlarm); //告警总数
|
| | | model.setSum(numBadBatt); //落后总数
|
| | | model.setNewsum(numPlan); //延时总数
|
| | | //model.setNewsum(numPlan); //延时总数
|
| | | model.setMsgT(String.valueOf(dianzhanNum)); //掉站
|
| | | model.setMsg(state); //61850状态
|
| | | model.setMsgN(binformation.getFBSDeviceId().toString());
|
| | | listAll.add(model);
|
| | |
| | | int numAlarm=(new Battalarm_dataDAOImpl()).serchByStationId(binformation);
|
| | | int numBadBatt=(new BadBatt_monImpl()).serchByStationId(binformation);
|
| | | int numPlan=(new BattDischarge_planImpl()).serchByStationId(binformation);
|
| | | int numPoff=(new Bts_station_stateImpl()).serchByStationId(binformation); //停电数 |
| | | int dianzhanNum=((Bts_station_stateImpl)dao).serchByStationId_diaozhan(binformation); //掉站数
|
| | | model.setData(list.get(i));
|
| | | model.setCode(numAlarm); //告警总数
|
| | | model.setSum(numBadBatt); //落后总数
|
| | | model.setNewsum(numPlan); //延时总数
|
| | | model.setMsgO(String.valueOf(numPoff)); //停电数
|
| | | model.setMsgT(String.valueOf(dianzhanNum)); //掉站
|
| | | listAll.add(model);
|
| | | }
|
| | | }
|