private void comboAreaValueChanged() { form.grdCubiclesRoomsBeds().getRows().clear(); if( form.cmbArea().getValue() != null) { TrackingAreaCubiclesVo tempVo = domain.getTrackingAreaCubicle(form.cmbArea().getValue()); form.getLocalContext().setCurrentTrackingAreaCubicles(tempVo); form.getLocalContext().setTrackingArea(form.cmbArea().getValue()); if( tempVo != null && tempVo.getCubiclesRoomsBedsIsNotNull()&& tempVo.getCubiclesRoomsBeds().size() > 0 ) { for(int i = 0; i < tempVo.getCubiclesRoomsBeds().size();i++) { grdCubiclesRoomsBedsRow row = form.grdCubiclesRoomsBeds().getRows().newRow(); row.setCubilcelsRoomsBeds(tempVo.getCubiclesRoomsBeds().get(i).getCubicleRoomBedName()); row.setValue(tempVo.getCubiclesRoomsBeds().get(i)); } } } else form.getLocalContext().setCurrentTrackingAreaCubicles(null); form.getLocalContext().setSelectedEvent(SendToConfigEvent.COMBOVALUECHANGED); form.fireCustomControlValueChanged(); }
protected void onCcSendToConfigValueChanged() throws PresentationLogicException { if (SendToConfigEvent.COMBOVALUECHANGED.equals(form.lyr1().tabSendToConfig().ccSendToConfig().getSelectedEvent())) { form.getLocalContext().setAreaFromSendToConfig(form.lyr1().tabSendToConfig().ccSendToConfig().getFromAreaCombo()); updateControlsState(); } }
@Override protected void onCmbAreaValueChanged() throws PresentationLogicException { if (form.cmbArea().getValue() != null) { form.getGlobalContext().Emergency.setTrackingArea(domain.getTrackingArea(form.cmbArea().getValue())); } else { form.getGlobalContext().Emergency.setTrackingArea(null); } populateGrid(); form.getLocalContext().setSelectedEvent(SendToConfigEvent.COMBOVALUECHANGED); form.fireCustomControlValueChanged(); }
public SendToConfigEvent getSelectedEvent() { return form.getLocalContext().getSelectedEvent(); }
protected void onCcCubicleRoomBedValueChanged() throws PresentationLogicException { if( SendToConfigEvent.COMBOVALUECHANGED.equals(form.lyr1().tabCubiclesRoomsBeds().ccCubicleRoomBed().getSelectedEvent() )) { updateControlsState(); } }