示例#1
0
        public List<Propuesta> ObtenerListaPropuestas(string tipoOperacion, int numeroDesde, int numeroHasta, string codigoEntidadOrigen, string estado, string sortExpression)
        {
            try
            {

                Pagos acceso = new Pagos();
                PC_ReportePropuestasListas.PC_ReportePropuestasLista2DataTable datos = acceso.ReportePropuestasLista(tipoOperacion, numeroDesde, numeroHasta, codigoEntidadOrigen, estado, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress);
                List<Propuesta> listaPropuestas = null;

                if (datos != null && datos.Count > 0 && datos.Rows.Count > 0)
                {
                    listaPropuestas = (from PC_ReportePropuestasListas.PC_ReportePropuestasLista2Row row in datos.Rows
                                       select new Propuesta
                                                  {

                                                      CodigoMoneda = row.CodigoMoneda,
                                                      CodigoServicio = row.CodigoServicio,
                                                      NumeroTransaccion = row.NumeroTransaccion,
                                                      CodigoConcepto = 1,
                                                      DescripcionGen = row.DescripcionGen,
                                                      EstadoEnvioSinpe = (EnumEstadosEnvios)row.EstadoEnvioSinpe[0],
                                                      FechaCiclo = row.FechaCiclo,
                                                      Monto = row.Monto,
                                                      NombreCentro = row.NombreCentro,
                                                      NumeroEnvio = row.NumeroEnvio,
                                                      TipoOperacion = row.TipoOperacion

                                                  }).ToList();
                }

                return listaPropuestas;
            }
            catch (Exception)
            {
                throw;
            }
        }