Example #1
0
        public List<TransaccionEntidad> ObtenerTransaccionesEntidad(string tipoOperacion, DateTime fechaCicloIni, DateTime fechaCicloFin, int? codigoMoneda, int? codigoServicio, string modalidad, string entidad, string sortExpression)
        {
            try
            {

                Pagos acceso = new Pagos();
                PC_ReporteEntidades.PC_ReporteEntidadesDataTable datos = acceso.ReporteEntidades(tipoOperacion, fechaCicloIni, fechaCicloFin, modalidad, codigoServicio, codigoMoneda, entidad, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress);
                List<TransaccionEntidad> transaccionesEntidades = null;

                if (datos != null && datos.Count > 0 && datos.Rows.Count > 0)
                {
                    transaccionesEntidades = (from PC_ReporteEntidades.PC_ReporteEntidadesRow row in datos.Rows
                                              select new TransaccionEntidad
                                              {
                                                  NombreBanco = row.NombreBanco,
                                                  NombreMoneda = row.NombreMoneda,
                                                  NombreServicio = row.NombreServicio,
                                                  NumeroTransaccion = row.NumeroTransaccion,
                                                  CedulaPersona = row.CedulaPersona,
                                                  DescripcionGen = row.DescripcionGen,
                                                  EstadoEnvioSinpe = row.EstadoEnvioSinpe,
                                                  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 transaccionesEntidades;
            }
            catch (Exception)
            {
                throw;
            }
        }