示例#1
0
        public double toUSD(double v, DateTime d)
        {
            string cry = getSettleCurrency();

            if (cry == "USD")
            {
                return(v);
            }
            else
            {
                return(v * CHelp.toUSD(cry, d));
            }
        }
示例#2
0
        public double toCuy(double dollar, DateTime d)
        {
            string cry = getSettleCurrency();

            if (cry == "USD")
            {
                return(dollar);
            }
            else
            {
                return(dollar / CHelp.toUSD(cry, d));
            }
        }