Beispiel #1
0
        /// <summary>
        /// Handler de los comandos de Menu/Toolbar
        /// </summary>
        public static void Arranque_MnuCommandsMF(object sender, MFOptionEventArgs e)
        {
            // Bloqueamos el menu
            App.LockMenu(true);

            // Procesamos el código
            switch (e.CmdCode)
            {
            // *************************************************
            // ** Ejecución automática al inicio del programa
            // **
            case "$$AUTOEXEC$$": { SysRuts.AutoExecIni(App.Programa.Codigo); PrgRuts.AutoExec(); SysRuts.AutoExecEnd(App.Programa.Codigo); return; }

            // *************************************************
            // ** Ejecución automática al final del programa
            // **
            case "$$ENDEXEC$$": { SysRuts.EndExecIni(App.Programa.Codigo); PrgRuts.EndExec(); SysRuts.EndExecEnd(App.Programa.Codigo); return; }
            }

            // Comando no identificado. Liberamos el menu
            App.LockMenu(false);
            App.HideMsg();
        }
Beispiel #2
0
        /// <summary>
        /// Handler de los comandos de Menu/Toolbar
        /// </summary>
        public static void Arranque_MnuCommandsMF(object sender, MFOptionEventArgs e)
        {
            // Bloqueamos el menu
            App.LockMenu(true);

            // Procesamos el código
            switch (e.CmdCode)
            {
            // *************************************************
            // ** Ejecución automática al inicio del programa
            // **
            case "$$AUTOEXEC$$": { SysRuts.AutoExecIni(App.Programa.Codigo); PrgRuts.AutoExec(); SysRuts.AutoExecEnd(App.Programa.Codigo); return; }

            // *************************************************
            // ** Menu: Moviles
            // **
            case "ESTM": { new EstadoMoviles().Show(); return; }

            // **
            case "GAST": { new CostosPorMovil().Show(); return; }

            // **
            case "ACCN": { new AccidentesPorMovil().Show(); return; }

            // *************************************************
            // ** Menu: Ordenes de Trabajo
            // **
            case "ITPND": { new ItemsPendientes().Show(); return; }

            // **
            case "ORDF": { new OrdenesFinalizadas().Show(); return; }

            // *************************************************
            // ** Menu: Reportes Usuario
            // **
            case "ALER": { new DQbe("Alertas", "Q").Show(); return; }

            // **
            case "MOVI": { new DQbe("Moviles", "Q").Show(); return; }

            // **
            case "MCOMB": { new DQbe("MvlCombus", "Q").Show(); return; }

            // **
            case "MINFR": { new DQbe("MvlInfracc", "Q").Show(); return; }

            // **
            case "ORDT": { new DQbe("OrdTrabajo", "Q").Show(); return; }

            // **
            case "OTITM": { new DQbe("OTItems ", "Q").Show(); return; }

            // *************************************************
            // ** Menu: Estadísticas Usuario
            // **
            case "EALER": { new DQbe("Alertas", "S").Show(); return; }

            // **
            case "EMOVI": { new DQbe("Moviles", "S").Show(); return; }

            // **
            case "EORDT": { new DQbe("OrdTrabajo", "S").Show(); return; }

            // *************************************************
            // ** Ejecución automática al final del programa
            // **
            case "$$ENDEXEC$$": { SysRuts.EndExecIni(App.Programa.Codigo); PrgRuts.EndExec(); SysRuts.EndExecEnd(App.Programa.Codigo); return; }
            }

            // Comando no identificado. Liberamos el menu
            App.LockMenu(false);
            App.HideMsg();
        }
Beispiel #3
0
        /// <summary>
        /// Handler de los comandos de Menu/Toolbar
        /// </summary>
        public static void Arranque_MnuCommandsMF(object sender, MFOptionEventArgs e)
        {
            // Bloqueamos el menu
            App.LockMenu(true);

            // Procesamos el código
            switch (e.CmdCode)
            {
            // *************************************************
            // ** Ejecución automática al inicio del programa
            // **
            case "$$AUTOEXEC$$": { SysRuts.AutoExecIni(App.Programa.Codigo); PrgRuts.AutoExec(); SysRuts.AutoExecEnd(App.Programa.Codigo); return; }

            // *************************************************
            // ** Menu: Geografico
            // **
            case "LOC": { new Localidades().Show(); return; }

            // **
            case "ZONAS": { new Zonas().Show(); return; }

            // *************************************************
            // ** Menu: RR.HH.
            // **
            case "SUP": { new Supervisores().Show(); return; }

            // **
            case "TIPOVEND": { new TipoVendedores().Show(); return; }

            // **
            case "VEND": { new Vendedores().Show(); return; }

            // *************************************************
            // ** Menu: Comunicaciones
            // **
            case "CATLLAM": { new CategoriasLlamada().Show(); return; }

            // **
            case "MOTLLAM": { new MotivosLlamadas().Show(); return; }

            // **
            case "RESENT": { new ResEntrevistas().Show(); return; }

            // *************************************************
            // ** Menu: Operativa
            // **
            case "FRQ": { new Franquicias().Show(); return; }

            // **
            case "SRV": { new Servicios().Show(); return; }

            // **
            case "PLNS": { new PlnServicios().Show(); return; }

            // **
            case "PRSRV": { new PreciosServicios().Show(); return; }

            // *************************************************
            // ** Menu: Clasificadores
            // **
            case "TCONT": { new TipoConts().Show(); return; }

            // **
            case "TINST": { new TipoInsts().Show(); return; }

            // **
            case "RUB": { new Rubros().Show(); return; }

            // *************************************************
            // ** Ejecución automática al final del programa
            // **
            case "$$ENDEXEC$$": { SysRuts.EndExecIni(App.Programa.Codigo); PrgRuts.EndExec(); SysRuts.EndExecEnd(App.Programa.Codigo); return; }
            }

            // Comando no identificado. Liberamos el menu
            App.LockMenu(false);
            App.HideMsg();
        }
Beispiel #4
0
        /// <summary>
        /// Handler de los comandos de Menu/Toolbar
        /// </summary>
        public static void Arranque_MnuCommandsMF(object sender, MFOptionEventArgs e)
        {
            // Bloqueamos el menu
            App.LockMenu(true);

            // Procesamos el código
            switch (e.CmdCode)
            {
            // *************************************************
            // ** Ejecución automática al inicio del programa
            // **
            case "$$AUTOEXEC$$": { SysRuts.AutoExecIni(App.Programa.Codigo); PrgRuts.AutoExec(); SysRuts.AutoExecEnd(App.Programa.Codigo); return; }

            // *************************************************
            // ** Menu: Tablas Generales
            // **
            case "EQUI": { new Equipamientos().Show(); return; }

            // **
            case "MOD": { new Modelos().Show(); return; }

            // **
            case "MAR": { new Marcas().Show(); return; }

            // **
            case "ESTA": { new Estaciones().Show(); return; }

            // **
            case "ESTD": { new Estados().Show(); return; }

            // **
            case "MINF": { new MotivosInfracciones().Show(); return; }

            // **
            case "DEST": { new DestinatariosMails().Show(); return; }

            // *************************************************
            // ** Menu: Controles y Reparaciones
            // **
            case "CAT": { new Categorias().Show(); return; }

            // **
            case "REP": { new Reparaciones().Show(); return; }

            // **
            case "CNRE": { new ControlesRepa().Show(); return; }

            // *************************************************
            // ** Menu: Talleres y Categorias
            // **
            case "TALL": { new Talleres().Show(); return; }

            // **
            case "TALC": { new TalleresCategorias().Show(); return; }

            // *************************************************
            // ** Ejecución automática al final del programa
            // **
            case "$$ENDEXEC$$": { SysRuts.EndExecIni(App.Programa.Codigo); PrgRuts.EndExec(); SysRuts.EndExecEnd(App.Programa.Codigo); return; }
            }

            // Comando no identificado. Liberamos el menu
            App.LockMenu(false);
            App.HideMsg();
        }
Beispiel #5
0
        /// <summary>
        /// Handler de los comandos de Menu/Toolbar
        /// </summary>
        public static void Arranque_MnuCommandsMF(object sender, MFOptionEventArgs e)
        {
            // Bloqueamos el menu
            App.LockMenu(true);

            // Procesamos el código
            switch (e.CmdCode)
            {
            // *************************************************
            // ** Ejecución automática al inicio del programa
            // **
            case "$$AUTOEXEC$$": { SysRuts.AutoExecIni(App.Programa.Codigo); PrgRuts.AutoExec(); SysRuts.AutoExecEnd(App.Programa.Codigo); return; }

            // *************************************************
            // ** Menu: Clientes
            // **
            case "CLCR": { new CliCargadores().Show(); return; }

            // **
            case "BAJAS": { new CliBajas().Show(); return; }

            // **
            case "RECL": { new CliReclamos().Show(); return; }

            // **
            case "RECUP": { new CliRecuperos().Show(); return; }

            // **
            case "LOG": { new CliLog().Show(); return; }

            // *************************************************
            // ** Menu: Vendedores
            // **
            case "VENT": { new VndEntrevistas().Show(); return; }

            // **
            case "VLLAM": { new VndLlamadas().Show(); return; }

            // **
            case "VVTAS": { new VndVentas().Show(); return; }

            // **
            case "LPROG": { new LlamadasProgramadas().Show(); return; }

            // *************************************************
            // ** Menu: Ventas
            // **
            case "VTAMES": { new Ventas().Show(); return; }

            // **
            case "ABON": { new FacturacionAbonos().Show(); return; }

            // *************************************************
            // ** Ejecución automática al final del programa
            // **
            case "$$ENDEXEC$$": { SysRuts.EndExecIni(App.Programa.Codigo); PrgRuts.EndExec(); SysRuts.EndExecEnd(App.Programa.Codigo); return; }
            }

            // Comando no identificado. Liberamos el menu
            App.LockMenu(false);
            App.HideMsg();
        }