Beispiel #1
0
        private void RbtnReportePersonal_Click(object sender, RoutedEventArgs e)
        {
            if (grUsuarios.ServidorSeleccionado != null)
            {
                ServidoresPublicos servidor = grUsuarios.ServidorSeleccionado;

                if (servidor == null)
                {
                    MessageBox.Show("Seleccione el usuario del cual quiere generar el resguardo");
                }
                else
                {
                    if (AccesoUsuarioModel.Grupo == 1)
                    {
                        reporte = new REquipoComputo(servidor);
                        reporte.ReportePersonal();
                    }
                    else if (AccesoUsuarioModel.Grupo == 2)
                    {
                        reporte = new RMobiliario(servidor);
                        reporte.ReportePersonal();
                    }
                }
            }
            else
            {
                MessageBox.Show("Seleccione el usuario del cual quiere generar el resguardo");
            }
        }
Beispiel #2
0
 private void ReportePorArea(int area)
 {
     if (AccesoUsuarioModel.Grupo == 1)
     {
         reporte = new REquipoComputo(ServidoresSingleton.Servidores, area);
         reporte.ReportePorAreas();
     }
     else if (AccesoUsuarioModel.Grupo == 2)
     {
         reporte = new RMobiliario(ServidoresSingleton.Servidores, area);
         reporte.ReportePorAreas();
     }
 }