Example #1
0
 private void removePreactiveOrActiveLookup() {
   PreActiveActiveInactiveStatus status = form.cmbStatus().getValue();
   form.cmbStatus().clear();
   PreActiveActiveInactiveStatusCollection lookupColl =
       LookupHelper.getPreActiveActiveInactiveStatus(domain.getLookupService());
   for (int i = 0; lookupColl != null && i < lookupColl.size(); i++) {
     if (isStatusActive() && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE))
       continue;
     if (isStatusInactive()
         && (lookupColl.get(i).equals(PreActiveActiveInactiveStatus.PREACTIVE)
             || lookupColl.get(i).equals(PreActiveActiveInactiveStatus.ACTIVE))) continue;
     // WDEV-17376
     if ((form.getLocalContext().getSelectedTriageProtocol() == null
             || form.getLocalContext().getSelectedTriageProtocol() != null
                 && form.getLocalContext().getSelectedTriageProtocol().getActiveStatusIsNotNull()
                 && form.getLocalContext()
                     .getSelectedTriageProtocol()
                     .getActiveStatus()
                     .equals(PreActiveActiveInactiveStatus.PREACTIVE))
         && lookupColl.get(i).equals(PreActiveActiveInactiveStatus.INACTIVE)) {
       continue;
     }
     form.cmbStatus()
         .newRow(
             lookupColl.get(i),
             lookupColl.get(i).toString(),
             lookupColl.get(i).getImage(),
             lookupColl.get(i).getColor());
   }
   form.cmbStatus().setValue(status);
 }
Example #2
0
 protected final void bindcmbStatusLookup() {
   this.form.cmbStatus().clear();
   ims.core.vo.lookups.PreActiveActiveInactiveStatusCollection lookupCollection =
       ims.core.vo.lookups.LookupHelper.getPreActiveActiveInactiveStatus(
           this.domain.getLookupService());
   for (int x = 0; x < lookupCollection.size(); x++) {
     this.form
         .cmbStatus()
         .newRow(
             lookupCollection.get(x),
             lookupCollection.get(x).getText(),
             lookupCollection.get(x).getImage(),
             lookupCollection.get(x).getTextColor());
   }
 }