public void Listar() { try { if (Session.currentUser.TipoPersona == 3) { this.dgvMaterias.DataSource = MateriaLogic.GetInstance().GetAllPlan(Session.currentUser.IdPlan); //ReporteAlumnoBindingSource.DataSource = ReporteAlumnoLogic.GetInstance().GetReporteAlumno(Session.currentUser); //this.reportViewer1.RefreshReport(); } if (Modo == ModoForm.SelectIdPlan) { this.dgvMaterias.DataSource = MateriaLogic.GetInstance().GetAllPlan(IdPlan); } else if (Session.currentUser.TipoPersona != 3) { this.dgvMaterias.DataSource = MateriaLogic.GetInstance().GetAll(); } } catch (Exception e) { NotificarError(e); } idMateria.DataPropertyName = "ID"; DescMateria.DataPropertyName = "DescMateria"; HsSemanales.DataPropertyName = "HorasSemanales"; HsTotales.DataPropertyName = "HorasTotales"; desc_plan.DataPropertyName = "DescPlan"; desc_especialidad.DataPropertyName = "DescEspecialidad"; //anio_especialidad }
public MateriaDesktop(ModoForm modo, int ID) : this() { Text = modo.ToString(); btnSeleccionarPlan.Enabled = false; if (modo == ModoForm.Baja) { txtId.ReadOnly = true; } Modo = modo; MateriaActual = MateriaLogic.GetInstance().GetOne(ID); MapearDeDatos(); }