@Override public ArrayList<String> getcity() { ArrayList<IntermediateCenterPO> ipos = new ArrayList<IntermediateCenterPO>(); ArrayList<String> cs = new ArrayList<String>(); try { ipos = intermediateCenterDataService.findsIntermediateCenterPO(); } catch (RemoteException e) { e.printStackTrace(); } for (int i = 0; i < ipos.size(); i++) { if (!cs.contains(ipos.get(i).getCity())) { cs.add(ipos.get(i).getCity()); } } return cs; }
@Override public ArrayList<IntermediateCenterVO> getAllIntermediateCenterInfo() { ArrayList<IntermediateCenterPO> ipos = new ArrayList<IntermediateCenterPO>(); ArrayList<IntermediateCenterVO> ivos = new ArrayList<IntermediateCenterVO>(); try { ipos = intermediateCenterDataService.findsIntermediateCenterPO(); } catch (RemoteException e) { e.printStackTrace(); } for (int i = 0; i < ipos.size(); i++) { ivos.add( new IntermediateCenterVO( ipos.get(i).getCity(), ipos.get(i).getId(), ipos.get(i).getSpo(), ipos.get(i).getBpos())); } return ivos; }