Exemplo n.º 1
0
        public ActionResult Reporte(string asParametros)
        {
            dtoReporteDerivacion loDto = JsonConvert.DeserializeObject <dtoReporteDerivacion>(asParametros);

            if (string.IsNullOrEmpty(loDto.UsuarioSecretaria))
            {
                loDto.UsuarioSecretaria = "%25";
            }

            if (string.IsNullOrEmpty(loDto.EstadoDocumento))
            {
                loDto.EstadoDocumento = "%25";
            }

            Dictionary <string, string> loParametros = new Dictionary <string, string>();

            loParametros.Add("ADT_FECHA_INICIO", loDto.FechaInicio.Value.ToShortDateString());
            loParametros.Add("ADT_FECHA_FIN", loDto.FechaFin.Value.ToShortDateString());
            loParametros.Add("AVCH_USUARIO", loDto.UsuarioSecretaria);
            loParametros.Add("AVCH_ESTADO", loDto.EstadoDocumento);
            string lsRuta = new FormateadorRutaServidorReportes("ADC_DC_001", "SAD")
                            .ObtenerRuta(loParametros, true, false);

            return(Redirect(lsRuta));
        }
Exemplo n.º 2
0
 public InicioViewModel()
 {
     ObjetoReporte         = new dtoReporteDerivacion();
     ListaEstadoDerivacion = new List <dtoEstadoDerivacion>();
 }