public void Listar()
 {
     try
     {
         DocenteCursoLogic dcl = new DocenteCursoLogic();
         List<DocenteCurso> docentes = new List<DocenteCurso>();
         foreach (DocenteCurso dc in dcl.GetAll())
         {
             if (dc.Curso.ID == _CursoActual.ID)
                 docentes.Add(dc);
         }
         dgvDocentesCursos.DataSource = docentes;
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public void Listar()
 {
     EspecialidadLogic e = new EspecialidadLogic();
     this.dgvEspecialidades.DataSource = e.GetAll();
     PlanLogic p = new PlanLogic();
     this.dgvPlanes.DataSource = p.GetAll();
     MateriaLogic m = new MateriaLogic();
     this.dgvMaterias.DataSource = m.GetAll();
     ComisionLogic co = new ComisionLogic();
     this.dgvComisiones.DataSource = co.GetAll();
     CursoLogic cu = new CursoLogic();
     this.dgvCursos.DataSource = cu.GetAll();
     PersonaLogic alu = new PersonaLogic();
     this.dgvAlumnos.DataSource = alu.GetAll(0);
     PersonaLogic pro = new PersonaLogic();
     this.dgvProfesores.DataSource = pro.GetAll(1);
     DocenteCursoLogic dc = new DocenteCursoLogic();
     this.dgvDesignaciones.DataSource = dc.GetAll();
     UsuarioLogic u = new UsuarioLogic();
     this.dgvUsuarios.DataSource = u.GetAll();
 }
Beispiel #3
0
 public void Listar()
 {
     DocenteCursoLogic DCL = new DocenteCursoLogic();
     this.dgvDocenteCurso.DataSource = DCL.GetAll();
 }
 private void LoadGrid()
 {
     try
     {
         DocenteCursoLogic dcl = new DocenteCursoLogic();
         List<DocenteCurso> docentes = new List<DocenteCurso>();
         foreach (DocenteCurso dc in dcl.GetAll())
         {
             if (dc.Curso.ID == this.SelectedIDCurso)
                 docentes.Add(dc);
         }
         GridView.DataSource = docentes;
         GridView.DataBind();
     }
     catch (Exception ex)
     {
         Response.Write("<script>window.alert('" + ex.Message + "');</script>");
     }
 }