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