@Override protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { if (args!=null && args.length>1 && (args[0]!=null && args[0] instanceof ims.emergency.vo.enums.EDWhiteBoardEvent ) && (args[1]!=null && (args[1] instanceof ims.emergency.vo.enums.EDWhiteBoardDynGrdComboValues || args[1] instanceof Boolean) )) { form.getLocalContext().setSelecteEvent((EDWhiteBoardEvent) args[0]); if ((args[1] instanceof ims.emergency.vo.enums.EDWhiteBoardDynGrdComboValues )) form.getLocalContext().setSelectedComboCellValue((EDWhiteBoardDynGrdComboValues) args[1]); else if (args[1] instanceof Boolean) form.getLocalContext().setSelectedCheckBoxValue( (Boolean) args[1]); } form.getLocalContext().setSelectedTracking(domain.getTracking(form.getGlobalContext().Emergency.getTracking())); initialize(); open(); //doSearch(); }
private String getRowByEvent(EDWhiteBoardEvent selecteEvent) { if (selecteEvent==null) return null; if (form.getLocalContext().getSelecteEvent().equals(EDWhiteBoardEvent.OBS_REQ_COL_VALUE_CHANGED)) return ROW_OBS_REQUIRED; else if (form.getLocalContext().getSelecteEvent().equals(EDWhiteBoardEvent.MEDS_GIVEN_COL_VALUE_CHANGED)) return ROW_MEDS_GIVEN; else if (form.getLocalContext().getSelecteEvent().equals(EDWhiteBoardEvent.ECG_COL_VALUE_CHANGED)) return ROW_ECG; else if (form.getLocalContext().getSelecteEvent().equals(EDWhiteBoardEvent.NPO_COL_VALUE_CHANGED)) return ROW_NPO; else if (form.getLocalContext().getSelecteEvent().equals(EDWhiteBoardEvent.ISOLATION_COL_VALUE_CHANGED)) return ROW_ISOLATION; return null; }