Example #1
0
        internal static decimal GetCurrencyRate(string fromCurrencyIso, string toCurrencyIso)
        {
            CurrencyExchangeList list     = CurrencyExchangeList.GetList(false);
            CurrencyExchangeInfo currency = list.GetItem(fromCurrencyIso, toCurrencyIso);

            return((currency != null) ? currency.Rate : 0);
        }
Example #2
0
        public void CopyValues(CurrencyExchangeInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);
        }
Example #3
0
        protected void CopyValues(CurrencyExchangeInfo source)
        {
            if (source == null)
            {
                return;
            }

            _base.CopyValues(source);
        }
Example #4
0
        protected virtual void CopyFrom(CurrencyExchangeInfo source)
        {
            if (source == null)
            {
                return;
            }

            Oid             = source.Oid;
            FromCurrencyIso = source.FromCurrency;
            ToCurrency      = source.ToCurrency;
            Rate            = source.Rate;
            Comments        = source.Comments;
        }