public ActionResult ListaEscalasAlocacao(int?AlocacaoID)
        {
            var _service = new EscalaService();

            ViewBag.AlocacaoID = AlocacaoID;
            return(PartialView("_EscalasAlocacao", _service.ListaEscalasAlocacao()));
        }
        public ActionResult Escalas(int?mes, int?AlocacaoID)
        {
            var _service = new EscalaService();

            var lista = _service.ListaEscalaPorAlocacao(mes, AlocacaoID);

            ViewBag.AlocacaoID = AlocacaoID;
            ViewBag.Mes        = mes;

            return(PartialView("_Escalas", lista));
        }
Example #3
0
        public void CargarItinerario(Itinerario itinerario)
        {
            dbAccess.iniciar_transaccion();
            this.Create(itinerario);
            int id = GetLastItinerarioInsertId();

            List <Escala> escalas       = new List <Escala>(itinerario.Escalas);
            EscalaService escalaService = new EscalaService();

            for (int i = 0; i < escalas.Count; i++)
            {
                escalas[i].IdItinerario = id;
                escalaService.Create(escalas[i]);
            }
            dbAccess.cerrar_transaccion();
        }
        public ActionResult ListaRelatorioAlocacao(int?mes, int?ano)
        {
            var _service = new EscalaService();

            return(PartialView("_RelatorioAlocacao", _service.ListaEscalasAlocacao()));
        }
Example #5
0
 public EscalaController(EscalaService service)
 {
     _service = service;
 }