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 initializeGridAppointmentOutcomeReasonWithLookups() { form.ctnDetails().grdAppointmentOutcomeReasons().getRows().clear(); AppointmentOutcomeReasonCollection lookupCollection = (AppointmentOutcomeReasonCollection) domain.getLookupService().getLookupCollection(AppointmentOutcomeReason.TYPE_ID, AppointmentOutcomeReasonCollection.class, AppointmentOutcomeReason.class, false, false); for(int x = 0; x < lookupCollection.size(); x++) { addLookupRowToAppOutcomeReasonGrid(lookupCollection.get(x)); } }
private void addLookupRowToAppOutcomeReasonGrid(AppointmentOutcomeReason appointmentOutcomeReason) { grdAppointmentOutcomeReasonsRow row = form.ctnDetails().grdAppointmentOutcomeReasons().getRows().newRow(); row.setValue(appointmentOutcomeReason); row.setColAppointmentOutcomeReason(appointmentOutcomeReason.getText()); row.setTooltipForColAppointmentOutcomeReason(appointmentOutcomeReason.getText()); row.setColActive(appointmentOutcomeReason.isActive()); }
private void addLookupRowToAppOutcomeReasonGrid(AppointmentOutcomeReason appointmentOutcomeReason) //WDEV-20319 { grdAppointmentOutcomeReasonsRow row = form.ctnDetails().grdAppointmentOutcomeReasons().getRows().newRow(); row.setValue(appointmentOutcomeReason); row.setColAppointmentOutcomeReason(appointmentOutcomeReason.getText()); row.setTooltipForColAppointmentOutcomeReason(appointmentOutcomeReason.getText()); }