public ActionResult Listar(string codigo, int inicio, int fin, int estado)
        {
            Curricula curriculaFiltro = new Curricula()
            {
                Codigo = codigo,
                Estado = estado
            };

            List <Curricula> objLista = GestionPedagogica.BuscarCurricula(curriculaFiltro, inicio, fin);

            return(PartialView("_Lista", objLista));
        }
示例#2
0
        public ActionResult PlanSecundaria()
        {
            bool boCurriculaBaseAsignada = false;

            int IdCurricula = Convert.ToInt32(Request.QueryString["vParam1"].ToString());
            int Anio        = Convert.ToInt32(Request.QueryString["vParam2"].ToString());

            if (GestionPedagogica.BuscarCurricula(new Curricula()
            {
                Estado = 4
            }).Where(x => x.IdCurriculaBase == IdCurricula).Count() > 0)
            {
                boCurriculaBaseAsignada = true;
            }

            ViewBag.IdCurricula             = IdCurricula;
            ViewBag.boCurriculaBaseAsignada = boCurriculaBaseAsignada;
            ViewBag.ListaSecundaria         = Plan.ListarPlanSecundaria(IdCurricula);

            return(PartialView());
        }