Пример #1
0
        private void treeOpciones_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Text == "Shut Down")
            {
                this.Hide();
                //DownLoad.FrmLogin down = new DownLoad.FrmLogin();
                //down.ShowDialog();
                this.Show();
            }



            if (e.Node.Text == Variables.OpReimpresion)
            {
                this.Hide();
                FrmReimpresionEtiquetas reimpri = new FrmReimpresionEtiquetas();
                reimpri.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZWMG04)
            {
                this.Hide();
                FrmZwmg04 zwmg04 = new FrmZwmg04();
                zwmg04.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpTraslados)
            {
                this.Hide();
                FrmTrasladosTarimas traslado = new FrmTrasladosTarimas();
                traslado.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZPPG03)
            {
                this.Hide();
                FrmEntradaZPPG03 zppg03 = new FrmEntradaZPPG03();
                zppg03.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZPPG02)
            {
                this.Hide();
                FrmZPPG02 zppg02 = new FrmZPPG02();
                zppg02.MensajeError = "";
                zppg02.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZPPG01)
            {
                this.Hide();
                FrmZPPG01Entrada zppg01 = new FrmZPPG01Entrada();
                zppg01.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZPPG05)
            {
                this.Hide();
                FrmZPPG05Entrada zppg05 = new FrmZPPG05Entrada();
                zppg05.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZPPG27)
            {
                this.Hide();
                FrmZPPG27 zppg27 = new FrmZPPG27();
                zppg27.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZMaster)
            {
                this.Hide();
                FrmZMASTERMenu zmaster = new FrmZMASTERMenu();
                zmaster.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpReporte)
            {
                this.Hide();
                FrmMonitorEntregas monitorEntregas = new FrmMonitorEntregas();
                //monitorEntregas.MdiParent = this;
                monitorEntregas.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpZInterfaz)
            {
                this.Hide();
                FrmHUProcesarEntrada huProcesarEntrada = new FrmHUProcesarEntrada();
                huProcesarEntrada.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpUsuarios)
            {
                this.Hide();
                FrmAdmoUsuarios usuarios = new FrmAdmoUsuarios();
                usuarios.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == Variables.OpCatalogos)
            {
                this.Hide();
                FrmCatalagos Catalagos = new FrmCatalagos();
                Catalagos.ShowDialog();
                this.Show();
            }
        }
Пример #2
0
        private void treeOpciones_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Text == "Shut Down")
            {
                //this.Hide();
                //DownLoad.FrmLogin down = new DownLoad.FrmLogin();
                //down.ShowDialog();
                //this.Show();
            }

            if (e.Node.Text == "Start Up")
            {
                //this.Hide();
                //StartUpSU.FrmLogin login = new StartUpSU.FrmLogin();
                //login.ShowDialog();
                //this.Show();
            }

            if (e.Node.Text == "Reimpresion Etiquetas")
            {
                this.Hide();
                //FrmReimpresionEtiquetas reimpri = new FrmReimpresionEtiquetas();
                //reimpri.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZWMG04")
            {
                this.Hide();
                //FrmZwmg04 zwmg04 = new FrmZwmg04();
                //zwmg04.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZTRASLADOS")
            {
                this.Hide();
                //FrmTrasladosTarimas traslado = new FrmTrasladosTarimas();
                //traslado.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZPPG03 Pesado de Cabeza")
            {
                this.Hide();
                //FrmZPPG03 zppg03 = new FrmZPPG03();
                //zppg03.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZPPG02 Proceso de Selección de Destino")
            {
                this.Hide();
                //FrmZPPG02 zppg02 = new FrmZPPG02();
                //zppg02.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZPPG01 Fatometer")
            {
                this.Hide();
                FrmZPPG01Entrada zppg01 = new FrmZPPG01Entrada();
                zppg01.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZPPG05 Pesado para canal de Corte y Venta")
            {
                this.Hide();
                //FrmZPPG05Entrada zppg05 = new FrmZPPG05Entrada();
                //zppg05.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZPPG27 Estación de Traslado de Cajas")
            {
                this.Hide();
                //FrmZPPG27 zppg27 = new FrmZPPG27();
                //zppg27.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "ZMASTER")
            {
                this.Hide();
                //FrmZMASTERMenu zmaster = new FrmZMASTERMenu();
                //zmaster.ShowDialog();
                this.Show();
            }

            if (e.Node.Text == "Reporte de Entregas")
            {
                this.Hide();
                //FrmMonitorEntregas monitorEntregas = new FrmMonitorEntregas();
                ////monitorEntregas.MdiParent = this;
                //monitorEntregas.ShowDialog();
                this.Show();
            }
            if (e.Node.Text == "Z Interfaz HU Pesado de Cajas")
            {
                this.Hide();
                //FrmHUProcesarEntrada huProcesarEntrada = new FrmHUProcesarEntrada();
                //huProcesarEntrada.ShowDialog();
                this.Show();
            }
        }