/// <summary>
 /// 根据品种标识返回港股_品种_交易规则
 /// </summary>
 /// <param name="breedClassID">品种标识</param>
 /// <returns></returns>
 public Entity.HK_SpotTradeRules GetHKSpotTradeRulesByBreedClassID(int breedClassID)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8611根据品种标识返回港股_品种_交易规则方法名称:GetHKSpotTradeRulesByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now);
         HK_SpotTradeRulesBLL hK_SpotTradeRulesBLL = new HK_SpotTradeRulesBLL();
         var list = hK_SpotTradeRulesBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID));
         if (list.Count > 0)
         {
             Entity.HK_SpotTradeRules hK_SpotTradeRules = list[0];
             if (hK_SpotTradeRules != null)
             {
                 return(hK_SpotTradeRules);
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8611";// "GL-8412";
         string      errMsg  = "根据品种标识返回港股_品种_交易规则失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
 /// <summary>
 /// 更新港股交易规则
 /// </summary>
 /// <param name="model">港股交易规则实体</param>
 /// <returns></returns>
 public bool UpdateHKSpotTradeRules(ManagementCenter.Model.HK_SpotTradeRules model)
 {
     try
     {
         return(hK_SpotTradeRulesDAL.Update(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-7952";
         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 UpdateHKSpotTradeRules(ManagementCenter.Model.HK_SpotTradeRules model)
        {
            HK_SpotTradeRulesBLL hK_SpotTradeRulesBLL = new HK_SpotTradeRulesBLL();

            return(hK_SpotTradeRulesBLL.UpdateHKSpotTradeRules(model));
        }