protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException { GPAction action = form.customControlGPSearch().getActionEvent(); if (action != null) { if (action.equals(GPAction.SELECT)) { getAndListDetails(form.customControlGPSearch().getValue()); if(isGPSelectionOnly()) { form.btnOK().setEnabled(true); } } else if (action.equals(GPAction.CLEAR)) { clear(); } else if (action.equals(GPAction.SEARCH)) { clear(); } } }
protected void onContextMenuItemClick(int menuItemID, Control sender) throws PresentationLogicException { switch (menuItemID) { case GenForm.ContextMenus.GPGrid.NEWGP : setActionAndFireEvent(GPAction.NEW); break; case GenForm.ContextMenus.GPGrid.EDITGP : setActionAndFireEvent(GPAction.EDIT); break; } }
/** * Catches all events thrown by the CustomControlGpSearch. Clear button, Search button and * a selection in the grid. Custom control handles actual events, here need only to set * the form to the correct state after the action * @param null * @return null */ protected void onCustomControlGpSearchValueChanged() throws PresentationLogicException { GPAction action = form.customControlGpSearch().getActionEvent(); if (action != null) { if (action.equals(GPAction.CLEAR)) { form.customControlGpSearch().setValue(null); form.getLocalContext().setGPVo(null); clearScreen(); form.setMode(FormMode.VIEW); } if (action.equals(GPAction.SEARCH)) { form.ctnGPDetails().setCollapsed(true); clearInstanceControls(); form.setMode(FormMode.VIEW); } if (action.equals(GPAction.SELECT)) { getSelectedGP(); form.setMode(FormMode.VIEW); } if(action.equals(GPAction.NEW)) { newInstance(); } if(action.equals(GPAction.EDIT)) { editInstance(); } } }
protected void onCustomControlGPSearchValueChanged() throws PresentationLogicException { GPAction action = form.customControlGPSearch().getActionEvent(); if (action != null) { if (action.equals(GPAction.SELECT)) { //getAndListDetails(form.customControlGPSearch().getValue()); if(isGPSelectionOnly()) { form.btnOK().setEnabled(true); } else { if (ConfigFlag.DOM.GP_USE_SURGERIES.getValue()) { form.btnOK().setEnabled(GPSelectedRecordType.SURGERY.equals(form.customControlGPSearch().getComponentGridSelectedRecordType())); } else { form.btnOK().setEnabled(GPSelectedRecordType.PRACTICE.equals(form.customControlGPSearch().getComponentGridSelectedRecordType())); } } } else if (action.equals(GPAction.CLEAR)) { clear(); } else if (action.equals(GPAction.SEARCH)) { clear(); } } }
protected void onDynGrdGpsRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException { enableContextMenu(); if (row.getValue() instanceof GpLiteVo) setSelectedRecordType(GPSelectedRecordType.GP); else if (row.getValue() instanceof GpLiteToPracticeLiteVo) setSelectedRecordType(GPSelectedRecordType.PRACTICE); else if (row.getValue() instanceof LocShortVo) setSelectedRecordType(GPSelectedRecordType.SURGERY); else setSelectedRecordType(GPSelectedRecordType.NONE); setActionAndFireEvent(GPAction.SELECT); }
public GPAction getActionEvent() { return getGPAction(); }
protected void onImbClearClick() throws PresentationLogicException { clearControls(); setGpAction(GPAction.CLEAR); }
protected void onGrdGpsSelectionChanged() throws PresentationLogicException { enableContextMenu(); setActionAndFireEvent(GPAction.SELECT); }
private void doSearch() { searchGps(); setGpAction(GPAction.SEARCH); }
private void setGpAction(GPAction enumValue) { form.getLocalContext().setGpAction(enumValue); }
private GPAction getGPAction() { return form.getLocalContext().getGpAction(); }
private void setActionAndFireEvent(GPAction action) { setGpAction(action); form.fireCustomControlValueChanged(); }
protected void onImbClearClick() throws PresentationLogicException { clearControls(); setGpAction(GPAction.CLEAR); setSelectedRecordType(GPSelectedRecordType.NONE); }
protected void onGrdGpsSelectionChanged() throws PresentationLogicException { enableContextMenu(); setSelectedRecordType(GPSelectedRecordType.GP); setActionAndFireEvent(GPAction.SELECT); }
private void doSearch() { searchGps(); setGpAction(GPAction.SEARCH); setSelectedRecordType(GPSelectedRecordType.NONE); }