public List<PropuestaDetallada> ObtenerListaPropuestasDetallado(string tipoOperacion, int numeroDesde, int numeroHasta, string codigoEntidadOrigen, string sortExpression) { try { Pagos acceso = new Pagos(); PC_ReportePropuestas.PC_ReportePropuestasDataTable datos = acceso.ReportePropuestas(tipoOperacion, numeroDesde, numeroHasta, codigoEntidadOrigen, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress); List<PropuestaDetallada> listaPropuestas = null; if (datos != null && datos.Count > 0 && datos.Rows.Count > 0) { listaPropuestas = (from PC_ReportePropuestas.PC_ReportePropuestasRow row in datos.Rows select new PropuestaDetallada { NombreMoneda = row.NombreMoneda, NombreServicio = row.NombreServicio, NumeroTransaccion = row.NumeroTransaccion, CedulaPersona = row.CedulaPersona, DescripcionGen = row.DescripcionGen, EstadoEnvioSinpe = (EnumEstadosEnvios)row.EstadoEnvioSinpe[0], FechaCiclo = row.FechaCiclo, Monto = row.Monto, EstadoTran = (EnumEstadosTransaccionCGP)row.EstadoTran[0], NumeroEnvio = row.NumeroEnvio, TipoOperacion = row.TipoOperacion, NombrePersona = row.NombrePersona, NumeroDocumento = row.NumeroDocumento, NombreConcepto = row.NombreConcepto, DescMotivoRechazo = row.DescMotivoRechazo, CodMotivoRechazo = row.CodMotivoRechazo, AbreviaturaBanco = row.AbreviaturaBanco, CuentaClienteOrigen = row.CuentaClienteOrigen, CedulaClienteOrigen = row.CedulaClienteOrigen, CuentaCliente = row.CuentaCliente, }).ToList(); } return listaPropuestas; } catch (Exception) { throw; } }