Ejemplo n.º 1
0
 private void btnReporte_Click(object sender, EventArgs e)
 {
     if (this.ValidarPermiso(CGlobal.Formularios.REPORTES))
     {
         if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Trazabilidad")
         {
             Form form = new reportes.ReporteTrazabilidad();
             form.Show();
         }
         else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Enturnamientos manuales")
         {
             Form form = new reportes.ReporteManuales();
             form.Show();
         }
         else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Ciclos incompletos")
         {
             Form form = new reportes.ReporteCiclosIncompletos();
             form.Show();
         }
         else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Tiempo en planta")
         {
             Form form = new reportes.ReporteTiemposEnPlanta();
             form.Show();
         }
         else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Tiempo por ciclo")
         {
             Form form = new reportes.ReporteTiemposPorCiclo();
             form.Show();
         }
     }
     else
     {
         MessageBox.Show("No tiene permisos para ingresar a esta opción", "No tiene permisos", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            if (this.ValidarPermiso(CGlobal.Formularios.REPORTES))
            {
                if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Trazabilidad")
                {
                    Form form = new reportes.ReporteTrazabilidad();
                    form.Show();                
                }
                else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Enturnamientos manuales")
                {
                    Form form = new reportes.ReporteManuales();
                    form.Show();
                }
                else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Ciclos incompletos")
                {
                    Form form = new reportes.ReporteCiclosIncompletos();
                    form.Show();                
                }
                else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Tiempo en planta")
                {
                    Form form = new reportes.ReporteTiemposEnPlanta();
                    form.Show();                                
                }
                else if (this.cboReporte.Items[this.cboReporte.SelectedIndex].ToString() == "Tiempo por ciclo")
                {
                    Form form = new reportes.ReporteTiemposPorCiclo();
                    form.Show();                                                
                }


            }
            else
            {
                MessageBox.Show("No tiene permisos para ingresar a esta opción", "No tiene permisos", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

        }