public virtual bool afterFORM_DATA_DELETE(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }
public virtual bool beforeDrag(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }
public virtual bool afterCHOOSE_FROM_LIST(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }
public virtual bool afterDATASOURCE_LOAD(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }
public virtual bool beforeMATRIX_COLLAPSE_PRESSED(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }
//recebe os eventos do SAP, para que sejam tratados, eh necessario //adicionar os filtros para os eventos no metodo Init() public virtual bool EventReceiver(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { bubbleEvent = true; try { log.pushOperation("EventReceiver"); BoEventTypes evnt = BoEventTypes.et_MENU_CLICK; if (pVal == null && objectInfo != null) { evnt = objectInfo.EventType; } else if (pVal != null) { evnt = pVal.EventType; } #region events switch (evnt) { case BoEventTypes.et_ALL_EVENTS: if (before) { bubbleEvent = beforeALL_EVENTS(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterALL_EVENTS(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_ITEM_PRESSED: if (before) { bubbleEvent = beforeITEM_PRESSED(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterITEM_PRESSED(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_KEY_DOWN: if (before) { bubbleEvent = beforeKEY_DOWN(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterKEY_DOWN(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_GOT_FOCUS: if (before) { bubbleEvent = beforeGOT_FOCUS(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterGOT_FOCUS(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_LOST_FOCUS: if (before) { bubbleEvent = beforeLOST_FOCUS(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterLOST_FOCUS(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_COMBO_SELECT: if (before) { bubbleEvent = beforeCOMBO_SELECT(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterCOMBO_SELECT(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_CLICK: if (before) { bubbleEvent = beforeCLICK(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterCLICK(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_DOUBLE_CLICK: if (before) { bubbleEvent = beforeDOUBLE_CLICK(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterDOUBLE_CLICK(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_MATRIX_LINK_PRESSED: if (before) { bubbleEvent = beforeMATRIX_LINK_PRESSED(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterMATRIX_LINK_PRESSED(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_MATRIX_COLLAPSE_PRESSED: if (before) { bubbleEvent = beforeMATRIX_COLLAPSE_PRESSED(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterMATRIX_COLLAPSE_PRESSED(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_VALIDATE: if (before) { bubbleEvent = beforeVALIDATE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterVALIDATE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_MATRIX_LOAD: if (before) { bubbleEvent = beforeMATRIX_LOAD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterMATRIX_LOAD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_DATASOURCE_LOAD: if (before) { bubbleEvent = beforeDATASOURCE_LOAD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterDATASOURCE_LOAD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_LOAD: if (before) { bubbleEvent = beforeFORM_LOAD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_LOAD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_UNLOAD: if (before) { bubbleEvent = beforeFORM_UNLOAD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_UNLOAD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_ACTIVATE: if (before) { bubbleEvent = beforeFORM_ACTIVATE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_ACTIVATE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_DEACTIVATE: if (before) { bubbleEvent = beforeFORM_DEACTIVATE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_DEACTIVATE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_CLOSE: if (before) { bubbleEvent = beforeFORM_CLOSE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_CLOSE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_RESIZE: if (before) { bubbleEvent = beforeFORM_RESIZE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_RESIZE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_KEY_DOWN: if (before) { bubbleEvent = beforeFORM_KEY_DOWN(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_KEY_DOWN(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_MENU_HILIGHT: if (before) { bubbleEvent = beforeFORM_MENU_HILIGHT(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_MENU_HILIGHT(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_PRINT: if (before) { bubbleEvent = beforePRINT(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterPRINT(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_PRINT_DATA: if (before) { bubbleEvent = beforePRINT_DATA(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterPRINT_DATA(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_EDIT_REPORT: if (before) { bubbleEvent = beforeEDIT_REPORT(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterEDIT_REPORT(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_CHOOSE_FROM_LIST: if (before) { bubbleEvent = beforeCHOOSE_FROM_LIST(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterCHOOSE_FROM_LIST(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_RIGHT_CLICK: if (before) { bubbleEvent = beforeRIGHT_CLICK(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterRIGHT_CLICK(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_MENU_CLICK: if (before) { bubbleEvent = beforeMENU_CLICK(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterMENU_CLICK(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_DATA_ADD: if (before) { bubbleEvent = beforeFORM_DATA_ADD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_DATA_ADD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_DATA_UPDATE: if (before) { bubbleEvent = beforeFORM_DATA_UPDATE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_DATA_UPDATE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_DATA_DELETE: if (before) { bubbleEvent = beforeFORM_DATA_DELETE(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_DATA_DELETE(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_FORM_DATA_LOAD: if (before) { bubbleEvent = beforeFORM_DATA_LOAD(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterFORM_DATA_LOAD(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_PICKER_CLICKED: if (before) { bubbleEvent = beforePICKER_CLICKED(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterPICKER_CLICKED(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_GRID_SORT: if (before) { bubbleEvent = beforeGRID_SORT(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterGRID_SORT(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_Drag: if (before) { bubbleEvent = beforeDrag(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterDrag(container, componentID, before, pVal, objectInfo); } break; case BoEventTypes.et_PRINT_LAYOUT_KEY: if (before) { bubbleEvent = beforePRINT_LAYOUT_KEY(container, componentID, before, pVal, objectInfo); } else { bubbleEvent = afterPRINT_LAYOUT_KEY(container, componentID, before, pVal, objectInfo); } break; } #endregion }catch (Exception e) { bubbleEvent = false; SB1ControlException.SB1ControlException.Save(e); } log.releaseOperation(); return(bubbleEvent); }
public virtual bool afterPRINT_LAYOUT_KEY(string container, string componentID, bool before, ItemEvent pVal = null, IBusinessObjectInfo objectInfo = null) { return(true); }