Ejemplo n.º 1
0
        public IActionResult IndexNovedades()
        {
            ReporteNovedadesViewModel reporte = new ReporteNovedadesViewModel();

            reporte.Inicio    = DateTime.Now;
            reporte.Fin       = DateTime.Now;
            reporte.novedades = null;
            reporte.Clientes  = _combosHelper.GetComboClientes();
            return(View(reporte));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> IndexNovedades(ReporteNovedadesViewModel model)
        {
            var inicio = model.Inicio;
            var fin    = model.Fin;

            //var reporte = await _analisisRepository.GetAnalisisReportesAsync(model.Inicio, model.Fin);
            ReporteNovedadesViewModel reporte = new ReporteNovedadesViewModel();

            reporte.Inicio = inicio;
            reporte.Fin    = fin;
            var novedadeslist = await _novedadesRepository.GetNovedadReportesAsync(model.Inicio, model.Fin, model.ClienteId);

            reporte.novedades = await TonewNovedades(novedadeslist.ToList());

            reporte.Clientes = _combosHelper.GetComboClientes();
            return(View(reporte));
        }