private void DisplayArrivalDetails() { form.Comment().setValue(form.getGlobalContext().CcoSched.ClinicView.getBookingComment()); // 10/06/2003 - Do a Get in Sd_appt_dtsDTO (instead of sd_appt) Sd_appt_dts appts = null; try { appts = domain.getArrivalDetails( form.getGlobalContext().CcoSched.ClinicView.getAppointmentHeaderID(), form.getGlobalContext().CcoSched.ClinicView.getAppointmentID()); } catch (DomainInterfaceException e) { engine.showMessage(e.getMessage()); return; } form.getLocalContext().setappt_dts(appts); EnableArrivalControls(true); // If Unarrival was pressed don't default the Time to now. boolean defaultTime = (form.getLocalContext().getUnArrival() != null && form.getLocalContext().getUnArrival() == Boolean.TRUE) ? false : true; if (appts.DataCollection.count() > 0) { Time arrivalTime = getTimeFromString(appts.DataCollection.get(0).Arr_tme); if (arrivalTime != null) form.Time().setEnabled(false); DateTime dateTime = domain.getDateTime(); Time now = new Time( dateTime.getTime().getHour(), dateTime.getTime().getMinute(), dateTime.getTime().getSecond()); if (defaultTime) form.Time().setValue(arrivalTime == null ? now : arrivalTime); else form.Time().setValue(null); this.setActionLookupValue(getIntFromString(appts.DataCollection.get(0).Att_stat)); } form.getLocalContext().setUnArrival(Boolean.FALSE); }