/// <summary>
        /// 获取币种类型列表
        /// </summary>
        /// <returns></returns>
        public static List <UComboItem> GetCurrencyTypeList()
        {
            UComboItem        item;
            List <UComboItem> listUComboItem = new List <UComboItem>();

            try
            {
                CM_CurrencyTypeBLL     cM_CurrencyTypeBLL = new CM_CurrencyTypeBLL();
                List <CM_CurrencyType> l = cM_CurrencyTypeBLL.GetListArray(string.Empty);
                if (l == null)
                {
                    return(null);
                }
                foreach (CM_CurrencyType _cMCurrencyType in l)
                {
                    item = new UComboItem(_cMCurrencyType.CurrencyName, _cMCurrencyType.CurrencyTypeID);
                    listUComboItem.Add(item);
                }
            }
            catch
            {
                return(null);
            }
            return(listUComboItem);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 获取所有品种和币种的对应关系
 /// </summary>
 /// <returns></returns>
 public List <Entity.CM_CurrencyBreedClassType> GetListCurrencyBreedClass()
 {
     try
     {
         CM_CurrencyTypeBLL CurrencyTypeBLL = new CM_CurrencyTypeBLL();
         return(CurrencyTypeBLL.GetListCurrencyBreedClass());
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8244";
         string      errMsg  = "获取所有品种和币种的对应关系失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 根据品种找到币种
 /// </summary>
 /// <param name="BreedClassID"></param>
 /// <returns></returns>
 public Entity.CM_CurrencyBreedClassType GetCurrencyByBreedClassID(int BreedClassID)
 {
     try
     {
         CM_CurrencyTypeBLL CurrencyTypeBLL = new CM_CurrencyTypeBLL();
         return(CurrencyTypeBLL.GetCurrencyByBreedClassID(BreedClassID));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8243";
         string      errMsg  = "根据品种找到币种失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取所有的交易货币类型
 /// </summary>
 /// <returns></returns>
 public List <Entity.CM_CurrencyType> GetAllCurrencyType()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8211获取所有的交易货币类型方法名称:GetAllCurrencyType()" + DateTime.Now);
         CM_CurrencyTypeBLL cM_CurrencyType = new CM_CurrencyTypeBLL();
         return(cM_CurrencyType.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8211";
         string      errMsg  = "获取所有的交易货币类型失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }