private void loadActivities() { form.cmbActivity().clear(); ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES); //wdev-12812 if(voCollActivities != null) { voCollActivities.sort(new ActivityComparator(SortOrder.ASCENDING)); //wdev-12812 for (int i = 0; i < voCollActivities.size(); i++) { if (voCollActivities.get(i).getNameIsNotNull()) form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName()); } } }
public ActivitySchedVoCollection listSchedActivities(Boolean isActive) { DomainFactory factory = getDomainFactory(); if(isActive == null) return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.listDomainObjects(Activity.class)); return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find(" select act from Activity act left join act.activityType as type where act.isActive = :isActive and type.id=-599" , new String[]{"isActive"},new Object[]{isActive})); }
private void loadActivities() { form.cmbActivity().clear(); ActivitySchedVoCollection voCollActivities = domain .listActivitiesForType(ActivityType.APPOINTMENTTYPES, form.getGlobalContext().RefMan.getCatsReferral()); if (voCollActivities != null) { for (int i = 0; i < voCollActivities.size(); i++) { if (voCollActivities.get(i).getNameIsNotNull()) form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName()); } } }
private void loadActivities() { form.cmbActivity().clear(); ActivitySchedVoCollection voCollActivities = domain.listActivitiesForType(ActivityType.APPOINTMENTTYPES, form.getGlobalContext().RefMan.getCatsReferral(), form.cmbService().getValue()); if (voCollActivities != null) { for (int i = 0; i < voCollActivities.size(); i++) { if (voCollActivities.get(i).getNameIsNotNull()) form.cmbActivity().newRow(voCollActivities.get(i), voCollActivities.get(i).getName()); } } }
public ActivitySchedVoCollection listActivitiesForType(ActivityType actType) { DomainFactory factory = getDomainFactory(); return ActivitySchedVoAssembler.createActivitySchedVoCollectionFromActivity(factory.find("from Activity act where act.activityType = :actType and act.isActive = :isActive", new String[]{"actType", "isActive"}, new Object[]{getDomLookup(actType), Boolean.TRUE})); }