Example #1
0
        public Operations()
        {
            SAPbouiCOM.EventFilters objFilterCollection = null;
            SAPbouiCOM.EventFilter  objFilter           = null;
            try
            {
                objApplication      = T1.B1.MainObject.Instance.B1Application;
                objFilterCollection = objApplication.GetFilter();
                objFilterCollection.Reset();

                //objFilter = objFilterCollection.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK);

                //objFilter = objFilterCollection.Add(SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED);
                //objFilter.AddEx(B1.BPImpairment.InteractionId.Default.frmBPFilteringFormType);
                //objFilter.AddEx(B1.BPImpairment.InteractionId.Default.frmBPResultFormType);
                //objFilter.AddEx(B1.InventoryImpairment.InteractionId.Default.frmItemFilteringFormType);
                //objFilter.AddEx(B1.InventoryImpairment.InteractionId.Default.frmItemResultFormType);

                //objFilter = objFilterCollection.Add(SAPbouiCOM.BoEventTypes.et_COMBO_SELECT);
                //objFilter.AddEx(B1.FSNotes.InteractionId.Default.fsNotesFormType);

                //objFilter = objFilterCollection.Add(SAPbouiCOM.BoEventTypes.et_PRINT_LAYOUT_KEY);
                //objFilter.AddEx(B1.FSNotes.InteractionId.Default.fsNotesFormType);

                objFilter = objFilterCollection.Add(SAPbouiCOM.BoEventTypes.et_ALL_EVENTS);



                objStatus = true;

                T1.B1.MainObject.Instance.B1Application = objApplication;
            }
            catch (COMException comEx)
            {
                _Logger.Error("", comEx);
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
Example #2
0
        private void inicializarFiltros()
        {
            SAPbouiCOM.EventFilters filtros    = new SAPbouiCOM.EventFilters();
            SAPbouiCOM.EventFilter  filtroMenu = filtros.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK);

            SAPbouiCOM.EventFilter filtroItem = filtros.Add(SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED);
            filtroItem.AddEx(FormName.MAESTRO_EQUIPOS);
            filtroItem.AddEx(FormName.MAESTRO_MENUAPP);
            filtroItem.AddEx(FormName.MAESTRO_TIPOUSR);
            filtroItem.AddEx(FormName.CFG_PERMISOS_X_TIPO_USR);
            filtroItem.AddEx(FormName.CFG_VENDEDOR);
            filtroItem.AddEx(FormName.AST_CONFIGURACION);
            filtroItem.AddEx(FormName.MAESTRO_CLIENTES);
            filtroItem.AddEx(FormName.DOC_ORDEN_VENTA);
            filtroItem.AddEx(FormName.DOC_PAGO_RECIBIDO);
            filtroItem.AddEx(FormName.DOC_INCIDENCIAS);
            filtroItem.AddEx(FormName.LOG_REGISTROS);
            filtroItem.AddEx(FormName.DOC_DEVOLUCION);
            filtroItem.AddEx(FormName.DOC_NOTA_CREDITO);

            SAPbouiCOM.EventFilter filtroLinkPressed = filtros.Add(SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED);
            filtroLinkPressed.AddEx(FormName.DOC_ORDEN_VENTA);
            filtroLinkPressed.AddEx(FormName.DOC_PAGO_RECIBIDO);
            filtroLinkPressed.AddEx(FormName.DOC_DEVOLUCION);
            filtroLinkPressed.AddEx(FormName.DOC_NOTA_CREDITO);

            SAPbouiCOM.EventFilter filtroDoubleClick = filtros.Add(SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK);
            filtroDoubleClick.AddEx(FormName.DOC_ORDEN_VENTA);

            SAPbouiCOM.EventFilter filtroCFL = filtros.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST);
            filtroCFL.AddEx(FormName.CFG_VENDEDOR);
            filtroCFL.AddEx(FormName.AST_CONFIGURACION);

            SAPbouiCOM.EventFilter filtroRightClick = filtros.Add(SAPbouiCOM.BoEventTypes.et_RIGHT_CLICK);
            filtroRightClick.AddEx(FormName.MAESTRO_EQUIPOS);

            application.SetFilter(filtros);
        }
Example #3
0
        void SetFilter()
        {
            SAPbouiCOM.EventFilters oFilters = null;
            SAPbouiCOM.EventFilter  oFilter  = null;
            oFilters = new SAPbouiCOM.EventFilters();



            oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_ALL_EVENTS);

            oFilter.AddEx("EJ_OSTS"); //Stock Transfer Shipment
            oFilter.AddEx("EJ_OSTR"); //Stock Transfer Receipt
            oFilter.AddEx("139");     //Sales Order
            oFilter.AddEx("179");     //AR Credit Note
            oFilter.AddEx("EJ_OCSH"); //Customer Sales History

            oFilter.AddEx("142");     //P Order
            oFilter.AddEx("181");     //AP Credit Note
            oFilter.AddEx("EJ_OSSH"); //Supplier History


            SetFilter(oFilters);
        }