示例#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>
 /// <param name="model">品种_期货_交易费用实体</param>
 /// <returns></returns>
 public bool UpdateQHFutureCosts(ManagementCenter.Model.QH_FutureCosts model)
 {
     try
     {
         return(qH_FutureCostsDAL.Update(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6302";
         string      errMsg    = "修改品种_期货_交易费用失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return(false);
     }
 }
        /// <summary>
        /// 修改品种_期货_交易费用
        /// </summary>
        /// <param name="model">品种_期货_交易费用实体</param>
        /// <returns></returns>
        public static bool UpdateQHFutureCosts(ManagementCenter.Model.QH_FutureCosts model)
        {
            QH_FutureCostsBLL qH_FutureCostsBLL = new QH_FutureCostsBLL();

            return(qH_FutureCostsBLL.UpdateQHFutureCosts(model));
        }