private TableDeviceVoCollection getFromTableGrid(IntraOperativeDetailsVo intraOperativeDetails) { TableDeviceVoCollection tempVoColl = new TableDeviceVoCollection(); //wdev-12832 for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdTable().getRows().size(); i++) { TableDeviceVo tableDeviceVo = new TableDeviceVo(); //wdev-12832 if (TableDevices.OTHER.equals(form.lyr1().tabDetails().ctn1().grdTable().getRows().get(i).getValue())) { tableDeviceVo.setOtherTableDevice(form.lyr1().tabDetails().ctn1().grdTable().getRows().get(i).getcolOther()); //wdev-12832 } if (form.lyr1().tabDetails().ctn1().grdTable().getRows().get(i).getcolSelect()) { tableDeviceVo.setTableDevice(form.lyr1().tabDetails().ctn1().grdTable().getRows().get(i).getValue()); //wdev-12832 tempVoColl.add(tableDeviceVo); //wdev-12832 } } return tempVoColl; //wdev-12832 }
private SkinPreparationusedCollection getFromSkinPreparationGrid(IntraOperativeDetailsVo intraOperativeDetails) { SkinPreparationusedCollection skinPreparationusedCollection = new SkinPreparationusedCollection(); for (int i = 0; i < form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().size(); i++) { if (form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolSelect()) { skinPreparationusedCollection.add(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue()); } if (SkinPreparationused.OTHER.equals(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getValue())) { intraOperativeDetails.setOtherSkinPreparationUsed(form.lyr1().tabDetails().ctn1().grdSkinPreparation().getRows().get(i).getcolOther()); } } return skinPreparationusedCollection.size() == 0 ? null : skinPreparationusedCollection; }