private String getAppOutcomeReasons(AppointmentOutcomeReasonVoCollection collAppointmentOutcomeReasons) { if (collAppointmentOutcomeReasons==null || collAppointmentOutcomeReasons.size()==0) return null; StringBuffer str=new StringBuffer(""); for (int i=0;i < collAppointmentOutcomeReasons.size();i++) //wdev-18498 { str.append(collAppointmentOutcomeReasons.get(i).getIsActive() ? collAppointmentOutcomeReasons.get(i).getAppointmentOutcomeReason().getText() + "," : ""); } if( str.length() > 0) //wdev-18498 return str.substring(0, str.length() - 1); else return ""; }
private void bindAppointmentOutcomeCombo(AppointmentOutcomeReasonVoCollection appointmentOutcomeReasons) { form.cmbOutcomeReason().clear(); if(appointmentOutcomeReasons == null) return; for(AppointmentOutcomeReasonVo reason : appointmentOutcomeReasons) { if(reason == null || reason.getIsActive() == null || Boolean.FALSE.equals(reason.getIsActive())) continue; form.cmbOutcomeReason().newRow(reason.getAppointmentOutcomeReason(), reason.getAppointmentOutcomeReason().getText()); } }
private void populateGridAppOutcomeReason(AppointmentOutcomeReasonVoCollection collAppointmentOutcomeReasons) { for (int i=0;i<form.ctnDetails().grdAppointmentOutcomeReasons().getRows().size();i++) { AppointmentOutcomeReasonVo apptOutcomeReason=getApptOutcomeReason((AppointmentOutcomeReason)form.ctnDetails().grdAppointmentOutcomeReasons().getRows().get(i).getValue(),collAppointmentOutcomeReasons); if (apptOutcomeReason!=null) { form.ctnDetails().grdAppointmentOutcomeReasons().getRows().get(i).setColSelect(apptOutcomeReason.getIsActive()); } } }
private AppointmentOutcomeReasonVo getApptOutcomeReason(AppointmentOutcomeReason value, AppointmentOutcomeReasonVoCollection collAppointmentOutcomeReasons) { if (collAppointmentOutcomeReasons==null || collAppointmentOutcomeReasons.size()==0) return null; for (int i=0;i<collAppointmentOutcomeReasons.size();i++) { if (collAppointmentOutcomeReasons.get(i).getAppointmentOutcomeReason().getID()==value.getID()) return collAppointmentOutcomeReasons.get(i); } return null; }
private void bindAppointmentOutcomeReasonCombo(AppointmentOutcomeReasonVoCollection appointmentOutcomeReasons) { form.cmbOutcomeReason().clear(); if(appointmentOutcomeReasons == null) return; for(AppointmentOutcomeReasonVo reason : appointmentOutcomeReasons) { if(reason == null || reason.getIsActive() == null || Boolean.FALSE.equals(reason.getIsActive())) continue; form.cmbOutcomeReason().newRow(reason.getAppointmentOutcomeReason(), reason.getAppointmentOutcomeReason().getText()); } }