private ElectiveListHospitalConfigurationVoCollection getHospitalsFromGrid() { if (form.ctnDetails().grdHospitals().getRows().size()==0) return null; ElectiveListHospitalConfigurationVoCollection collHosp = new ElectiveListHospitalConfigurationVoCollection(); for (int i=0;i<form.ctnDetails().grdHospitals().getRows().size();i++) { if (form.ctnDetails().grdHospitals().getRows().get(i).getColHospitals().getValue()==null) continue; ElectiveListHospitalConfigurationVo hosp = new ElectiveListHospitalConfigurationVo(); hosp.setListLocation((LocationLiteVo)form.ctnDetails().grdHospitals().getRows().get(i).getColHospitals().getValue()); collHosp.add(hosp); } return collHosp; }
private ElectiveListHospitalConfigurationVoCollection getHospitalsFromGrid() { if (form.ctnDetails().grdHospitals().getRows().size()==0) return null; ElectiveListHospitalConfigurationVoCollection collHosp = new ElectiveListHospitalConfigurationVoCollection(); for (int i=0;i<form.ctnDetails().grdHospitals().getRows().size();i++) { if (form.ctnDetails().grdHospitals().getRows().get(i).getColHospitals().getValue()==null) continue; ElectiveListHospitalConfigurationVo hosp = new ElectiveListHospitalConfigurationVo(); hosp.setListLocation((LocSiteLiteVo)form.ctnDetails().grdHospitals().getRows().get(i).getColHospitals().getValue());//WDEV-20064 hosp.setCaseNoteFolderLocation((LocationLiteVo)form.ctnDetails().grdHospitals().getRows().get(i).getColCaseNote().getValue());//WDEV-20064 collHosp.add(hosp); } return collHosp; }