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); }
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); }