コード例 #1
0
        private void btnVolver_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmZMASTERMenu master = new FrmZMASTERMenu();

            master.ShowDialog();
        }
コード例 #2
0
        private void btnVolver_Click(object sender, EventArgs e)
        {
            this.Dispose();
            FrmZMASTERMenu menu = new FrmZMASTERMenu();

            menu.ShowDialog();
        }
コード例 #3
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();
            }
        }
コード例 #4
0
ファイル: FrmBase.cs プロジェクト: esantanaya/contingencia
        private void AccederOpciones()
        {
            string cadena     = textAcceso.Text.ToUpper();
            string lsOpciones = ClsEntorno.usuarioActual.Opciones;

            string[] laOpciones = lsOpciones.Split('|');

            if (cadena.Equals("ZPPG01"))
            {
                if (laOpciones[0] == "1")
                {
                    FrmZPPG01Entrada zppg01 = new FrmZPPG01Entrada();
                    zppg01.Show();
                }
            }
            if (cadena.Equals("ZPPG02"))
            {
                if (laOpciones[1] == "1")
                {
                    FrmZPPG02 zppg02 = new FrmZPPG02();
                    zppg02.Show();
                }
            }
            if (cadena.Equals("ZPPG03"))
            {
                if (laOpciones[2] == "1")
                {
                    FrmEntradaZPPG03 zppg03 = new FrmEntradaZPPG03();
                    zppg03.Show();
                }
            }
            if (cadena.Equals("ZPPG05"))
            {
                if (laOpciones[3] == "1")
                {
                    FrmZPPG05Entrada zppg05 = new FrmZPPG05Entrada();
                    zppg05.Show();
                }
            }
            if (cadena.Equals("ZPPG27"))
            {
                if (laOpciones[5] == "1")
                {
                    FrmZPPG27 zppg27 = new FrmZPPG27();
                    zppg27.Show();
                }
            }
            if (cadena.Equals("ZINTERFAZHU"))
            {
                if (laOpciones[4] == "1")
                {
                    FrmHUProcesarEntrada interfaz = new FrmHUProcesarEntrada();
                    interfaz.Show();
                }
            }
            if (cadena.Equals("ZMASTER"))
            {
                if (laOpciones[6] == "1")
                {
                    FrmZMASTERMenu master = new FrmZMASTERMenu();
                    master.Show();
                }
            }
            if (cadena.Equals("ZTRASLADOS"))
            {
                if (laOpciones[7] == "1")
                {
                    FrmTrasladosTarimas traslado = new FrmTrasladosTarimas();
                    traslado.Show();
                }
            }
        }