예제 #1
0
        private void oApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;
            SAPbouiCOM.Form oForm = null;
            try
            {
                oForm = oApplication.Forms.ActiveForm;


                //Stock Transfer Shipment
                if (oForm.TypeEx == "EJ_OSTS")
                {
                    WarehouseTransfer.Inventory.clsStockShipment.clsStockShipment_RightClickEvent(ref oApplication, ref oCompany, oForm, ref eventInfo, ref BubbleEvent);
                }

                //Stock Transfer Receipt
                if (oForm.TypeEx == "EJ_OSTR")
                {
                    WarehouseTransfer.Inventory.clsStockReceipt.clsStockReceipt_RightClickEvent(ref oApplication, ref oCompany, oForm, ref eventInfo, ref BubbleEvent);
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #2
0
        public static void RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            if (objWithHoldingTax == null)
            {
                objWithHoldingTax = new Operations();
            }

            SAPbouiCOM.Form objForm = null;
            BubbleEvent = true;
            try
            {
                objForm = MainObject.Instance.B1Application.Forms.Item(eventInfo.FormUID);

                #region UDO Form
                if (objForm.TypeEx == "BYB_T1SWT100UDO" &&
                    eventInfo.BeforeAction &&
                    eventInfo.ItemUID == "0_U_G"

                    )
                {
                    SelfWithholdingTax.addInsertRowRelationMenuUDO(objForm, eventInfo);
                    SelfWithholdingTax.addDeleteRowRelationMenuUDO(objForm, eventInfo);
                }

                if (objForm.TypeEx == "BYB_T1SWT100UDO" &&
                    !eventInfo.BeforeAction &&
                    eventInfo.ItemUID == "0_U_G"

                    )
                {
                    SelfWithholdingTax.removeDeleteRowRelationMenuUDO();
                    SelfWithholdingTax.removeInsertRowRelationMenuUDO();
                }
                #endregion
                #region Invoice
                if (objForm.TypeEx == "133" &&
                    eventInfo.BeforeAction
                    )
                {
                    string strLastActiveForm = MainObject.Instance.B1Application.Forms.ActiveForm.UniqueID;
                    CacheManager.CacheManager.Instance.addToCache("LastActiveForm", strLastActiveForm, CacheManager.CacheManager.objCachePriority.Default);
                }

                if (objForm.TypeEx == "133" &&
                    !eventInfo.BeforeAction)
                {
                    CacheManager.CacheManager.Instance.removeFromCache("LastActiveForm");
                }
                #endregion
            }
            catch (COMException comEx)
            {
                Exception er = new Exception(Convert.ToString("COM Error::" + comEx.ErrorCode + "::" + comEx.Message + "::" + comEx.StackTrace));
                _Logger.Error("", comEx);
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
예제 #3
0
 private void Form_RightClickAfter(ref SAPbouiCOM.ContextMenuInfo eventInfo)
 {
     if (eventInfo.ItemUID == "RecBatches")
     {
         RemoveDeleteMenu();
     }
 }
예제 #4
0
        private static void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo oContextMenuInfo, out bool bBubbleEvent)
        {
            bBubbleEvent = true;

            try
            {
                foreach (var assembly in CommonFunctions.GetAssemblies(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "plugins")))
                {
                    foreach (Type type in Assembly.LoadFrom(assembly.FullName).GetTypes().Where(i => i.GetInterface("ISAPBusinessOne") != null))
                    {
                        try
                        {
                            ISAPBusinessOne pluginclass = (ISAPBusinessOne)Activator.CreateInstance(type);
                            pluginclass.SBO_Application_RightClickEvent(ref oContextMenuInfo, sbo_company, ref sbo_application, out bBubbleEvent);
                            if (!bBubbleEvent)
                            {
                                return;
                            }
                        }
                        catch (Exception ex)
                        {
                            CommonFunctions.LogFile(LogFile, ex.ToString());
                            sbo_application.MessageBox(ex.Message);
                            //sbo_application.StatusBar.SetText(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                sbo_application.MessageBox(ex.Message);
            }
        }
예제 #5
0
        public bool HandleRightClickEvent(SAPbouiCOM.ContextMenuInfo menuInfo)
        {
            var result = true;

            if (menuInfo.BeforeAction)
            {
                try
                {
                }
                catch (Exception e)
                {
                    StatusMessageError("HandleRightClickEvent > BeforeAction > " + e.Message);
                }
            }
            else if (!menuInfo.BeforeAction)
            {
                try
                {
                }
                catch (Exception e)
                {
                    StatusMessageError("HandleRightClickEvent > NotBeforeAction > " + e.Message);
                }
            }

            return(result);
        }
        private void OApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;
            if (eventInfo.FormUID.Equals("RClick"))
            {
                if (eventInfo.BeforeAction)
                {
                    try
                    {
                        SAPbouiCOM.MenuItem           oMenuItem;
                        SAPbouiCOM.Menus              oMenus;
                        SAPbouiCOM.MenuCreationParams oCreateParams = null;

                        oCreateParams = (SAPbouiCOM.MenuCreationParams)oApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams);

                        oCreateParams.Type     = SAPbouiCOM.BoMenuType.mt_STRING;
                        oCreateParams.UniqueID = "OnlyOnRc";
                        oCreateParams.String   = "Somente com o Click Direito";
                        oCreateParams.Enabled  = true;

                        oMenuItem = oApplication.Menus.Item("1280");
                        oMenus    = oMenuItem.SubMenus;
                        oMenus.AddEx(oCreateParams);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message);
                    }
                }
            }
        }
예제 #7
0
        public bool HandleRightClickEvent(SAPbouiCOM.ContextMenuInfo menuInfo)
        {
            var result = true;

            SAPbouiCOM.MenuItem oMenuItem;
            SAPbouiCOM.Menus    oMenus;

            if (menuInfo.BeforeAction)
            {
                try
                {
                    if (mForm.Mode == SAPbouiCOM.BoFormMode.fm_ADD_MODE || mForm.Mode == SAPbouiCOM.BoFormMode.fm_UPDATE_MODE ||
                        mForm.Mode == SAPbouiCOM.BoFormMode.fm_OK_MODE)
                    {
                        SAPbouiCOM.MenuCreationParams oCreationPackage = null;
                        oCreationPackage = Conexion.application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams);
                        oMenuItem        = Conexion.application.Menus.Item("1280");
                        oMenus           = oMenuItem.SubMenus;

                        ItemUIDRightClick = menuInfo.ItemUID;
                        RowItemRightClick = menuInfo.Row;

                        if (menuInfo.Row > 0 && !oMenus.Exists(Constantes.Menu_EliminarLinea))
                        {
                            oCreationPackage.Type     = SAPbouiCOM.BoMenuType.mt_STRING;
                            oCreationPackage.UniqueID = Constantes.Menu_EliminarLinea;
                            oCreationPackage.String   = Constantes.Menu_EliminarLineaDescripcion;
                            oCreationPackage.Position = 101;
                            oCreationPackage.Enabled  = true;
                            oMenus.AddEx(oCreationPackage);
                        }
                    }
                }
                catch (Exception e)
                {
                    StatusMessageError("HandleRightClickEvent > BeforeAction > " + e.Message);
                }
            }
            else if (!menuInfo.BeforeAction)
            {
                try
                {
                    if (mForm.Mode == SAPbouiCOM.BoFormMode.fm_ADD_MODE || mForm.Mode == SAPbouiCOM.BoFormMode.fm_UPDATE_MODE)
                    {
                        if (menuInfo.Row > 0)
                        {
                            Conexion.application.Menus.RemoveEx(Constantes.Menu_EliminarLinea);
                        }
                    }
                }
                catch (Exception e)
                {
                    StatusMessageError("HandleRightClickEvent > NotBeforeAction > " + e.Message);
                }
            }

            return(result);
        }
예제 #8
0
 private void Form_RightClickBefore(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent      = true;
     RowToDeleteIndex = eventInfo.Row;
     if (eventInfo.ItemUID == "RecBatches")
     {
         AddDeleteMenu();
     }
 }
예제 #9
0
 private void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     try
     {
     }
     catch (Exception ex)
     {
         errorLog(ex);
     }
 }
예제 #10
0
 private void Form_RightClickBefore(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     try
     {
         RowToDeleteIndex = eventInfo.Row;
     }
     catch (Exception ex)
     {
         Utilities.LogException(ex);
     }
 }
예제 #11
0
 private void TransferItems_RightClickBefore(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     try
     {
         if (eventInfo.ItemUID == "mtxItems" || eventInfo.ItemUID == "mtxCost")
         {
             AddDeleteMenu();
         }
     }
     catch (Exception ex)
     {
         Utilities.LogException(ex);
     }
 }
예제 #12
0
 private void TransferItems_RightClickAfter(ref SAPbouiCOM.ContextMenuInfo eventInfo)
 {
     try
     {
         RowToDeleteIndex = eventInfo.Row;
         if (eventInfo.ItemUID == "mtxItems" || eventInfo.ItemUID == "mtxCost")
         {
             RemoveDeleteMenu();
         }
     }
     catch (Exception ex)
     {
         Utilities.LogException(ex);
     }
 }
예제 #13
0
        static void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;
            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;

                switch (oForm.TypeEx)
                {
                case "TransferenciasBancarias.Capa_Presentacion.PagosTransf":
                    TransferenciasBancarias.Capa_Presentacion.PagosTransf.Transferencia_RightClickEvent(ref eventInfo, out BubbleEvent);
                    break;
                }
            }
            catch (Exception) {}
        }
예제 #14
0
        public static void RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;
            try
            {
                if (eventInfo.EventType == SAPbouiCOM.BoEventTypes.et_RIGHT_CLICK &&
                    eventInfo.ItemUID == "0_U_G" &&
                    eventInfo.BeforeAction

                    )
                {
                    CacheManager.CacheManager.Instance.addToCache("RightClickLastRow", eventInfo.FormUID + "#" + eventInfo.Row, CacheManager.CacheManager.objCachePriority.Default);
                }
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
예제 #15
0
        private void SBO_Application_RightClickEvent_GoodIssue(ref SAPbouiCOM.ContextMenuInfo pVal, out bool BubbleEvent)
        {
            BubbleEvent = true;

            try
            {
                /*if (pVal.BeforeAction && pVal.ActionSuccess)
                 * {*/
                mStrMatrixSelected    = pVal.ItemUID;
                mIntMatrixRowSelected = pVal.Row;
                //}
            }
            catch (Exception ex)
            {
                if (!ex.Message.Contains("Form - Invalid Form"))
                {
                    SAPbouiCOM.Framework.Application.SBO_Application.MessageBox(ex.Message);
                }
            }
        }
예제 #16
0
        public override void oApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            base.oApplication_RightClickEvent(ref eventInfo, out BubbleEvent);
            if (eventInfo.BeforeAction)
            {
                SAPbouiCOM.MenuItem oMenuItem = null;
                SAPbouiCOM.Menus    oMenus    = null;


                try
                {
                    //  Create menu popup MyUserMenu01 and add it to Tools menu
                    SAPbouiCOM.MenuCreationParams oCreationPackage = null;
                    oCreationPackage = ((SAPbouiCOM.MenuCreationParams)(oApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)));

                    oMenuItem = oApplication.Menus.Item("1280"); // Data'
                    oMenus    = oMenuItem.SubMenus;

                    if (!oMenus.Exists("addGrp"))
                    {
                        oCreationPackage.Type     = SAPbouiCOM.BoMenuType.mt_STRING;
                        oCreationPackage.UniqueID = "addGrp";
                        oCreationPackage.String   = "Add new Sub Group";
                        oCreationPackage.Enabled  = true;
                        oMenus.AddEx(oCreationPackage);
                    }
                    if (!oMenus.Exists("remGrp"))
                    {
                        oCreationPackage.Type     = SAPbouiCOM.BoMenuType.mt_STRING;
                        oCreationPackage.UniqueID = "remGrp";
                        oCreationPackage.String   = "Remove Sub Group";
                        oCreationPackage.Enabled  = true;
                        oMenus.AddEx(oCreationPackage);
                    }
                }
                catch (Exception ex)
                {
                    oApplication.MessageBox(ex.Message);
                }
            }
        }
        static void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;

            try
            {
                //SAPbouiCOM.Form oForm = Application.SBO_Application.Forms.ActiveForm; eventInfo.FormUID
                SAPbouiCOM.Form oForm = Application.SBO_Application.Forms.Item(eventInfo.FormUID);

                switch (oForm.TypeEx)
                {
                case "139":     // Agrega Opciones al Menu Contextual en la pantalla Pedidos a Cliente
                    if (eventInfo.ItemUID == "38" && eventInfo.BeforeAction == true)
                    {
                        SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("38").Specific;
                        int    nRow     = eventInfo.Row; //oMatrix.GetNextSelectedRow(0, SAPbouiCOM.BoOrderType.ot_RowOrder);
                        string ItemCode = ObtenerArticuloMatrixPedidoCliente(oForm, eventInfo.Row);
                        if (ItemCode.Trim().Length > 0)
                        {
                            Funciones.Create_ContextMenu("Ver Imagen 1 Artículo BEAS", "Ver Imagen 1 Artículo " + ItemCode.Trim() + " en BEAS", -1);
                            Funciones.Create_ContextMenu("Ver Imagen 2 Artículo BEAS", "Ver Imagen 2 Artículo " + ItemCode.Trim() + " en BEAS", -1);
                            Funciones.Create_ContextMenu("Ver Imagen 3 Artículo BEAS", "Ver Imagen 3 Artículo " + ItemCode.Trim() + " en BEAS", -1);
                            Funciones.AddUserDataSource(oForm, "UD_ROWMTX", SAPbouiCOM.BoDataType.dt_SHORT_NUMBER, 4);
                            oForm.DataSources.UserDataSources.Item("UD_ROWMTX").ValueEx = nRow.ToString();
                        }
                    }
                    else
                    {
                        Application.SBO_Application.Menus.RemoveEx("Ver Imagen 1 Artículo BEAS");
                        Application.SBO_Application.Menus.RemoveEx("Ver Imagen 2 Artículo BEAS");
                        Application.SBO_Application.Menus.RemoveEx("Ver Imagen 3 Artículo BEAS");
                    }
                    break;

                default:
                    break;
                }
            }
            catch (Exception) { }
        }
        static void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;

            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;

                switch (oForm.TypeEx)
                {
                case "ComisionesVentas.Parametros":
                    Parametros.Parametros_RightClickEvent(ref eventInfo, out BubbleEvent);
                    break;

                case "ComisionesVentas.Comisiones":
                    Comisiones.Comisiones_RightClickEvent(ref eventInfo, out BubbleEvent);
                    break;
                }
            }
            catch (Exception)
            {
            }
        }
예제 #19
0
 public bool HandleRightClickEvent(SAPbouiCOM.ContextMenuInfo menuInfo)
 {
     return(true);
 }
예제 #20
0
 public void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
 }
예제 #21
0
        public static void RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            if (objReletadParties == null)
            {
                objReletadParties = new Operations();
            }

            SAPbouiCOM.Form objForm = null;
            BubbleEvent = true;
            try
            {
                objForm = MainObject.Instance.B1Application.Forms.Item(eventInfo.FormUID);
                #region BP Form
                if (objForm.TypeEx == Settings._Main.BPFormTypeEx &&
                    eventInfo.BeforeAction &&
                    eventInfo.ItemUID == Settings._Main.BPFormMatrixId

                    )
                {
                    Instance.addInsertRowRelationMenu(objForm, eventInfo);
                    Instance.addDeleteRowRelationMenu(objForm, eventInfo);
                }

                if (objForm.TypeEx == Settings._Main.BPFormTypeEx &&
                    !eventInfo.BeforeAction &&
                    eventInfo.ItemUID == Settings._Main.BPFormMatrixId

                    )
                {
                    Instance.removeDeleteRowRelationMenu();
                    Instance.removeInsertRowRelationMenu();
                }
                #endregion
                #region UDO Form
                if (objForm.TypeEx == "BYB_T1RPA100UDO" &&
                    eventInfo.BeforeAction &&
                    eventInfo.ItemUID == "Item_1"

                    )
                {
                    Instance.addInsertRowRelationMenuUDO(objForm, eventInfo);
                    Instance.addDeleteRowRelationMenuUDO(objForm, eventInfo);
                }

                if (objForm.TypeEx == "BYB_T1RPA100UDO" &&
                    !eventInfo.BeforeAction &&
                    eventInfo.ItemUID == "Item_1"

                    )
                {
                    Instance.removeDeleteRowRelationMenuUDO();
                    Instance.removeInsertRowRelationMenuUDO();
                }
                #endregion
            }
            catch (COMException comEx)
            {
                Exception er = new Exception(Convert.ToString("COM Error::" + comEx.ErrorCode + "::" + comEx.Message + "::" + comEx.StackTrace));
                _Logger.Error("", comEx);
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
예제 #22
0
 private void Form_RightClickBefore(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent      = true;
     RowToDeleteIndex = eventInfo.Row;
 }
예제 #23
0
 void m_SAPApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     // throw new NotImplementedException();
     BubbleEvent = true;
 }
예제 #24
0
 private void Form_RightClickAfter(ref SAPbouiCOM.ContextMenuInfo eventInfo)
 {
     //throw new System.NotImplementedException();
 }
예제 #25
0
        //private static void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
        //{
        //    BubbleEvent = true;

        //    //SAPbouiCOM.Form oForm;
        //    //ItemActiveMenu = pVal.ItemUID;

        //    //try
        //    //{

        //    //    oForm = Application.SBO_Application.Forms.ActiveForm;



        //    //    switch (oForm.TypeEx)
        //    //    {
        //    //        case "Colaboradores_3.Form1":
        //    //            switch (pVal.BeforeAction)
        //    //            {
        //    //                case true:
        //    //                    if (pVal.FormUID == "formpri")
        //    //                    {
        //    //                        Application.SBO_Application.ActivateMenuItem("1289"); //Desactivar Agregar Linea
        //    //                        Application.SBO_Application.ActivateMenuItem("1288"); //Desactivar Borrar Linea
        //    //                    }
        //    //                    else
        //    //                    {
        //    //                        oForm.EnableMenu("1289", true); //Activar Agregar Linea
        //    //                        oForm.EnableMenu("1288", true); //Activar Borrar Linea
        //    //                    }
        //    //                    break;
        //    //            }
        //    //            break;
        //    //    }
        //    //}
        //    //catch (Exception) { }



        //}

        static void SBO_Application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            BubbleEvent = true;
            SAPbouiCOM.Form oForm;



            ItemActiveMenu = eventInfo.ItemUID;


            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;



                switch (oForm.TypeEx)
                {
                case "Colaboradores_3.edicionesgr":
                    switch (eventInfo.BeforeAction)
                    {
                    case true:
                        if (eventInfo.ItemUID != "grilaedi")
                        {
                            oForm.EnableMenu("1292", false);         //Desactivar Agregar Linea
                            oForm.EnableMenu("1293", false);         //Desactivar Borrar Linea
                        }
                        else
                        {
                            oForm.EnableMenu("1292", true);         //Activar Agregar Linea
                            oForm.EnableMenu("1293", true);         //Activar Borrar Linea
                        }
                        break;
                    }
                    break;
                }
            }
            catch (Exception) { }



            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;



                switch (oForm.TypeEx)
                {
                case "Colaboradores_3.edimatr":
                    switch (eventInfo.BeforeAction)
                    {
                    case true:
                        if (eventInfo.ItemUID != "Item_2")
                        {
                            oForm.EnableMenu("1292", false);         //Desactivar Agregar Linea
                            oForm.EnableMenu("1293", false);         //Desactivar Borrar Linea
                        }
                        else
                        {
                            oForm.EnableMenu("1292", true);         //Activar Agregar Linea
                            oForm.EnableMenu("1293", true);         //Activar Borrar Linea
                        }
                        break;
                    }
                    break;
                }
            }
            catch (Exception) { }


            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;



                switch (oForm.TypeEx)
                {
                case "Colaboradores_3.suprasec":
                    switch (eventInfo.BeforeAction)
                    {
                    case true:
                        if (eventInfo.ItemUID != "GRSPSEC")
                        {
                            oForm.EnableMenu("1292", false);         //Desactivar Agregar Linea
                            oForm.EnableMenu("1293", false);         //Desactivar Borrar Linea
                        }
                        else
                        {
                            oForm.EnableMenu("1292", true);         //Activar Agregar Linea
                            oForm.EnableMenu("1293", true);         //Activar Borrar Linea
                        }
                        break;
                    }
                    break;
                }
            }
            catch (Exception) { }



            try
            {
                oForm = Application.SBO_Application.Forms.ActiveForm;



                switch (oForm.TypeEx)
                {
                case "Colaboradores_3.seccionesgr":
                    switch (eventInfo.BeforeAction)
                    {
                    case true:
                        if (eventInfo.ItemUID != "GRSEC")
                        {
                            oForm.EnableMenu("1292", false);         //Desactivar Agregar Linea
                            oForm.EnableMenu("1293", false);         //Desactivar Borrar Linea
                        }
                        else
                        {
                            oForm.EnableMenu("1292", true);         //Activar Agregar Linea
                            oForm.EnableMenu("1293", true);         //Activar Borrar Linea
                        }
                        break;
                    }
                    break;
                }
            }
            catch (Exception) { }
        }
예제 #26
0
 private void ObjApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     throw new NotImplementedException();
 }
예제 #27
0
 void application_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = formOpen[eventInfo.FormUID].HandleRightClickEvent(eventInfo);
 }