private void populateControls(SpecimenCollectionMethod value) { if(value != null) { if (value.equals(SpecimenCollectionMethod.OUTPATIENT)) { OutPatientDurationCollection collDuration = LookupHelper.getOutPatientDuration(domain.getLookupService()); if (form.cmbValues().getValues().size() == 0) { for (int i = 0; i < collDuration.size(); i++) { form.cmbValues().newRow(collDuration.get(i), collDuration.get(i).toString()); } } } else if (value.equals(SpecimenCollectionMethod.INPATIENT))//WDEV-16964 { form.dteDate().setValue(new Date()); dateChanged(); } } }
private void populateCellFromLookup(DynamicGridCell cellDuration) { OutPatientDurationCollection collDuration = form.getLocalContext().getOutpatientDurationLookupCollection(); if (collDuration == null) collDuration = LookupHelper.getOutPatientDuration(domain.getLookupService()); for (int i = 0; i < collDuration.size(); i++) cellDuration.getItems().newItem(collDuration.get(i), collDuration.get(i).toString()); }