Example #1
0
        public List<Transaccion> TraerListaTranPorEnvioCentroCosto2(string TipoOperacion, string NumeroEnvio, string CodigoCentro,string sortExpression )
        {
            try
            {
                Dat_PC_Transacciones acceso = new Dat_PC_Transacciones();
                DataSet datos = acceso.TraerListaTranPorEnvioCentroCosto(TipoOperacion, NumeroEnvio, CodigoCentro, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress);
                List<Transaccion> transacciones = new List<Transaccion>();

                foreach (DataRow row in datos.Tables[0].Rows)
                {
                    Transaccion tran = new Transaccion();
                    tran.Monto = decimal.Parse(row["Monto"].ToString());
                    tran.MontoCC = decimal.Parse(row["Monto"].ToString());
                    tran.TipoOperacion = (EnumTiposOperacion)char.Parse(row["TipoOperacion"].ToString());
                    tran.NumeroTransaccion = int.Parse(row["NumeroTransaccion"].ToString());
                    tran.NumeroOrden = int.Parse(row["NumeroOrden"].ToString());
                    tran.CedulaPersona = row["CedulaPersona"].ToString();
                    tran.NombrePersona = row["NombrePersona"].ToString();
                    tran.CCNegocio = row["CuentaCliente"].ToString();
                    tran.NombreMoneda = row["NombreMoneda"].ToString();
                    tran.Importado = row["Importado"].ToString().Equals("N") ? false : true;
                    tran.NumeroDocumento = row["NumeroDocumento"].ToString();
                    tran.NumeroServicio = row["NumeroServicio"].ToString();
                    tran.NomCortoServicio = row["NomCortoServicio"].ToString();
                    tran.CodigoServicio =int.Parse ( row["CodigoServicio"].ToString());
                    tran.NombreCentro = row["NombreCentro"].ToString();
                    tran.NombreConcepto = row["NombreConcepto"].ToString();
                    tran.Moneda = (EnumMonedas)int.Parse(row["CodigoMoneda"].ToString());
                    tran.CedulaClienteOrigen = row["CedulaClienteOrigen"].ToString();
                    tran.CuentaCliente = row["CuentaClienteOrigen"].ToString();
                    tran.CodigoReferencia = row["CodigoReferencia"].ToString();
                    tran.FechaRegistro = DateTime.Parse(row["FechaRegistro"].ToString());
                  //  tran.IdCanal = int.Parse(row["ID_Canal"].ToString());
                    transacciones.Add(tran);
                }

                    return transacciones;

            }
            catch (Exception)
            {
                throw;
            }
        }
Example #2
0
 public DataSet TraerListaTranPorEnvioCentroCosto(string TipoOperacion, string NumeroEnvio, string CodigoCentro)
 {
     try
     {
         Dat_PC_Transacciones acceso = new Dat_PC_Transacciones();
         DataSet datos = acceso.TraerListaTranPorEnvioCentroCosto(TipoOperacion, NumeroEnvio, CodigoCentro, System.Web.HttpContext.Current.User.Identity.Name, System.Web.HttpContext.Current.Request.UserHostAddress);
         return datos;
     }
     catch (Exception)
     {
         throw;
     }
 }