private void setPaediatricContainer() { if (form.grdPaedCont().getRows().size() == 1 && form.grdAltPaedCont().getRows().size() > 0) { engine.showMessage("Please remove the Alternative Paediatric Containers before adding a new Paediatric Container."); return; } form.grdPaedCont().setValue(null); clearForPaediatricContainer(); SpecimenContainerVo paediatricContainer = new SpecimenContainerVo(); paediatricContainer.setType(SpecimenContainerType.PAEDIATRIC); // adultSpecimenContainer.setVolumeUnits(PathVolumeUnits.MLS); form.getGlobalContext().OCRR.setPaediatricsContainer(paediatricContainer); engine.open(form.getForms().OCRR.AlternativeContainerDialog); }
private void setAlternatePaediatricContainer() { form.grdAltPaedCont().setValue(null); clearForAlternatePaedContainer(); SpecimenContainerVo alternatePaediatricContainer = new SpecimenContainerVo(); alternatePaediatricContainer.setType(SpecimenContainerType.ALTERNATE_PAEDIATRIC); // adultSpecimenContainer.setVolumeUnits(PathVolumeUnits.MLS); form.getGlobalContext().OCRR.setAlternativePaediatricsContainer(alternatePaediatricContainer); engine.open(form.getForms().OCRR.AlternativeContainerDialog); }
private void setAdultSpecimenContainer() { form.grdAdultSpecCont().setValue(null); clearForAdultSpecimenContainer(); SpecimenContainerVo adultSpecimenContainer = new SpecimenContainerVo(); adultSpecimenContainer.setType(SpecimenContainerType.ADULT); // adultSpecimenContainer.setVolumeUnits(PathVolumeUnits.MLS); form.getGlobalContext().OCRR.setAdultSpecimenContainer(adultSpecimenContainer); engine.open(form.getForms().OCRR.AlternativeContainerDialog); }