Exemple #1
0
        }//CurrencyType

        public string CurrencyType(string funcPara)
        {
            string _inputValue = string.Format("<InputValue UserID=\"{0}\" Session=\"{1}\"  />", session.UserID, session.Session);

            ServiceREF.Cash.CurrencyService objCurr  = new ServiceREF.Cash.CurrencyService();
            ServiceREF.Cash.COutputValue    pageinfo = new  ServiceREF.Cash.COutputValue();
            ServiceREF.Cash.CCurrency[]     lst      = objCurr.GetCurrencyList(_inputValue, ref pageinfo);
            StringBuilder ret = new StringBuilder();

            ret.Append("[");
            foreach (var cp in lst)
            {
                ret.Append("{");
                ret.AppendFormat("'ExchangeRate':'{0}',", cp.ExchangeRate);
                ret.AppendFormat("'text':'{0}',", cp.Code);
                ret.AppendFormat("'value':'{0}'", cp.ID);
                ret.Append("}");
                if (cp != lst[lst.Length - 1])
                {
                    ret.Append(",");
                }
            }
            ret.Append("]");
            return(ret.ToString());
        }//
Exemple #2
0
 public CCurrencyUI()
 {
     service = new ServiceREF.Cash.CurrencyService();
 }