private TrackingCubicleRoomBedVo assembleCubicleRoomBed(String cubicle) { if(cubicle == null) return null; TrackingCubicleRoomBedVo tempVo = new TrackingCubicleRoomBedVo(); tempVo.setCubicleRoomBedName(cubicle); return tempVo; }
private void newInstanceNewClick() { clear(); form.getLocalContext().setCurrentTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking())); //WDEV-15827 form.getLocalContext().setCurrentCubicleAllocation(new CubicleAllocationVo()); MemberOfStaffLiteVo temp = null; if(domain.getMosUser() instanceof MemberOfStaffLiteVo) { temp = (MemberOfStaffLiteVo) domain.getMosUser(); } form.ccAllocatedBy().setValue(temp); if(form.getLocalContext().getCurrentTrackingIsNotNull()) { TrackingAreaLiteVo trackingArea = form.getLocalContext().getCurrentTracking().getCurrentArea(); form.lblNameOfTrackingArea().setValue(trackingArea != null ? trackingArea.getAreaDisplayName():""); } else { form.lblNameOfTrackingArea().setValue(""); } form.dtimAllocatedCubicle().setValue(new DateTime()); initializeCubiclesRoomsBedsCombo(); //wdev-16011 //wdev-16068 if( form.cmbCubicle().getValues().size() == 1) { TrackingCubicleRoomBedVo tempvo = (TrackingCubicleRoomBedVo) form.cmbCubicle().getValues().get(0); form.cmbCubicle().setValue(tempvo); } //---------------- form.setMode(FormMode.EDIT); }