private void populateScreenFromData(PendingEmergencyAdmissionShortVo pendrec, BedAvailabilityForTrackVo bedAvailability) { clearControls(); if (pendrec == null) return; if (!EmergencyAdmissionStatus.CANCELLED.equals(pendrec.getAdmissionStatus())) //wdev-17254 { if (bedAvailability != null) form.ccRequestedBy().setValue(bedAvailability.getRequestedBy()); form.dtimDecisionToAdmitDate().setValue(pendrec.getDTADateTime()); form.cmbDTABedType().setValue(pendrec.getBedTypeRequested()); if (bedAvailability != null) form.dtimAvailableBedTime().setValue(bedAvailability.getAvailableDateTime()); } }