Beispiel #1
0
        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));
        }
Beispiel #2
0
        /// <summary>
        /// Muestra la vista principal
        /// </summary>
        /// <returns>Vista principal de la opción</returns>
        public ActionResult Index()
        {
            var model = new PlanAreaBusquedaModel();
            var bl_PeriodoAcademico = new BL_PeriodoAcademico();
            var bl_Grado            = new BL_Grado();
            var bl_Area             = new BL_Area();

            model.ListaPeriodoAcademico = bl_PeriodoAcademico.ListarPeriodosAcademicos();
            model.ListaGrados           = bl_Grado.ListarGrados();
            model.ListaAreas            = bl_Area.ListarArea();

            return(View(model));
        }