// fin de la seccion del maejo de las semasna.... //Inicio e la seccion del manejo de anio..... // public ActionResult IndexAnio() { var anioBLL = new AnioBLL(); List <tblAnio> listaAnio = anioBLL.RetrieveAll(); return(View(listaAnio)); }
public ActionResult CreateAnioMes() { var amBLL = new AnioBLL(); List <tblAnio> listaAnio = amBLL.RetrieveAll(); ViewBag.idAnio = new SelectList(listaAnio, "idAnio", "Anio"); var MesBLL = new MesBLL(); List <tblMe> listaMes = MesBLL.RetrieveAll(); ViewBag.idMes = new SelectList(listaMes, "idMes", "Mes"); return(View()); }
public ActionResult CreateHorarios(int id) { var colBLL = new ColaboradorBLL(); tblColaboradore objColaborador = colBLL.RetrieveColaboradorByID(id); var diasBLL = new DiaBLL(); List <tblDia> listaDias = diasBLL.RetrieveAll(); var mesBLL = new MesBLL(); List <tblMe> listaSemanas = mesBLL.RetrieveAll(); var anioBLL = new AnioBLL(); List <tblAnio> listaAnios = anioBLL.RetrieveAll(); ViewBag.idColaborador = objColaborador.idColaborador; ViewBag.NombreColaborador = objColaborador.nombreColaborador; ViewBag.HoraInicial = objColaborador.horarioInicio.ToShortTimeString(); ViewBag.HoraFinal = objColaborador.horaFin.ToShortTimeString(); ViewBag.idDias = new SelectList(listaDias, "idDias", "dia"); ViewBag.idMes = new SelectList(listaSemanas, "idMes", "Mes"); ViewBag.idAnio = new SelectList(listaAnios, "idAnio", "anio"); return(View()); }