示例#1
0
 /// <summary>
 /// Eventos generado por los diferentes menus del sistema
 /// </summary>
 /// <param name="pVal">Objeto con el listado completo de variables de control del evento</param>
 /// <param name="BubbleEvent">Indicador booleano para detener la cola de eventos generada</param>
 void m_SBO_Appl_MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     try
     {
         if (pVal.BeforeAction)
         {
             switch (pVal.MenuUID)
             {
             case "MSEI_NOM":
                 SEI_FormNominas oCAF = new SEI_FormNominas("SEI_NOM");
                 break;
             }
         }
     }
     catch (Exception ex)
     {
         Msj_Appl.Errores(14, "m_SBO_Appl_MenuEvent() > Eventos_SBO.cs " + ex.Message);
     }
 }
示例#2
0
 /// <summary>
 /// Metodo encargado de gestionar los eventos generado por los Items del sistema
 /// </summary>
 /// <param name="FormUID">Identificador del formulario</param>
 /// <param name="pVal">Objeto con el listado completo de variables de control del evento</param>
 /// <param name="BubbleEvent">Indicador booleano para detener la cola de eventos generada</param>
 void m_SBO_Appl_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
 {
     BubbleEvent = true;
     try
     {
         switch (pVal.FormTypeEx)
         {
         case "SEI_NOM":
             SEI_FormNominas.m_SBO_Appl_ItemEvent(FormUID, ref pVal, out BubbleEvent);
             break;
         }
     }
     catch (Exception ex)
     {
         Msj_Appl.Errores(14, "m_SBO_Appl_ItemEvent() > Eventos_SBO.cs" + ex.Message + pVal.EventType.ToString());
     }
     finally
     {
         GC.Collect();
     }
 }