public ActionResult FormularioRegistro(int pId_Plan_Area) { var model = new PlanAreaRegistroModel(); var bl_PlanArea = new BL_PlanArea(); var bl_PlanEstudio = new BL_PlanEstudio(); if (pId_Plan_Area > 0) { model.planArea = bl_PlanArea.ObtenerPlanArea(pId_Plan_Area).Result; model.planEstudio = new PA_PLAN_ESTUDIO_SEL_Result() { ID_PLANESTUDIO = (int)model.planArea.ID_PLANESTUDIO, ANIO = model.planArea.ANIO_PLANESTUDIO, DOCUMENTO = model.planArea.DOCUMENTO_PLANESTUDIO, DESCRIPCION = model.planArea.DESCRIPCION_PLANESTUDIO }; } else { model.planEstudio = bl_PlanEstudio.ObtenerPlanEstudioVigente(); } var bl_PeriodoAcademico = new BL_PeriodoAcademico(); var bl_Grado = new BL_Grado(); var bl_Area = new BL_Area(); model.ListaPeriodoAcademico = bl_PeriodoAcademico.ListarPeriodosAcademicosVigentes(); model.ListaGrados = bl_Grado.ListarGrados(); model.ListaAreas = bl_Area.ListarArea(); return(PartialView(model)); }
public ActionResult FormularioRegistro(int pId_Plan_Asignatura) { var model = new PlanAsignaturaRegistroModel(); var bl_PeriodoAcademico = new BL_PeriodoAcademico(); var bl_PlanAsignatura = new BL_PlanAsignatura(); if (pId_Plan_Asignatura > 0) { model.planAsignatura = bl_PlanAsignatura.ObtenerPlanAsignatura(pId_Plan_Asignatura).Result; } model.ListaPeriodoAcademico = bl_PeriodoAcademico.ListarPeriodosAcademicosVigentes(); return(PartialView(model)); }