private void prepopulateSpecimenGrid() { SpecimenCollectionTimeCollection collCollectionTime = LookupHelper.getSpecimenCollectionTime(domain.getLookupService()); form.lyrSpecColConfig().tabSpecCollectionConfig().grdSpecimenCollection().getRows().clear(); GenForm.lyrSpecColConfigLayer.tabSpecCollectionConfigContainer.grdSpecimenCollectionRow row; SpecimenCollectionTime collectionTime; for (int i = 0; i < collCollectionTime.size(); i++) { collectionTime = collCollectionTime.get(i); row = form.lyrSpecColConfig().tabSpecCollectionConfig().grdSpecimenCollection().getRows().newRow(); row.setcolTime(collectionTime); } }
private SpecimenCollectionSettings getSettings(SpecimenCollectionMethod type) { SpecimenCollectionSettings settings = new SpecimenCollectionSettings(); settings.setSpecimenCollectionMethod(type); if (type.equals(SpecimenCollectionMethod.INPATIENT)) { settings.setDate(form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().dteCollect().getValue()); // date control has been cleared using the keyboard if (settings.getDate() == null) form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbTime().clear(); settings.setSelectedTime(form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbTime().getValue()); if (form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbTime().getValues().size() > 0) { settings.setCollTimes(new SpecimenCollectionTimeCollection()); for (int i = 0; i < form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbTime().getValues().size(); i++) { settings.getCollTimes().add((SpecimenCollectionTime) form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbTime().getValues().get(i)); } } } else if (type.equals(SpecimenCollectionMethod.OUTPATIENT)) { settings.setUnits(form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().intDuration().getValue()); settings.setDuration(form.lyrDetails().tabPathDetails().lyrPathology().tabPhlebotomy().cmbDuration().getValue()); } return settings; }
protected final SpecimenCollectionTimeCollection getCollTimes() { return collTimes; }
protected final void setCollTimes(SpecimenCollectionTimeCollection collTimes) { this.collTimes = collTimes; }