Пример #1
0
 /// <summary>
 /// 根据品种标识返回品种_期货_交易费用
 /// </summary>
 /// <param name="breedClassID">品种标识</param>
 /// <returns></returns>
 public Entity.QH_FutureCosts GetFutureCostsByBreedClassID(int breedClassID)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8507根据品种标识返回品种_期货_交易费用方法名称:GetFutureCostsByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now);
         QH_FutureCostsBLL            qH_FutureCostsBLL  = new QH_FutureCostsBLL();
         List <Entity.QH_FutureCosts> qH_FutureCostsList =
             qH_FutureCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID));
         if (qH_FutureCostsList.Count > 0)
         {
             Entity.QH_FutureCosts qH_FutureCosts = qH_FutureCostsList[0];
             if (qH_FutureCosts != null)
             {
                 return(qH_FutureCosts);
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8507";
         string      errMsg  = "根据品种标识返回品种_期货_交易费用失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
Пример #2
0
 /// <summary>
 /// 获取所有的品种_期货_交易费用
 /// </summary>
 /// <returns></returns>
 public List <Entity.QH_FutureCosts> GetAllFutureCosts()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8506获取所有的品种_期货_交易费用方法名称:GetAllFutureCosts()" + DateTime.Now);
         QH_FutureCostsBLL qH_FutureCostsBLL = new QH_FutureCostsBLL();
         return(qH_FutureCostsBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8506";
         string      errMsg  = "获取所有的品种_期货_交易费用失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }