/// <summary> /// 根据品种标识返回港股_交易费用 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public Entity.HK_SpotCosts GetHKSpotCostsByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8609根据品种标识返回港股_交易费用方法名称:GetHKSpotCostsByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); HK_SpotCostsBLL hK_SpotCostsBLL = new HK_SpotCostsBLL(); List <Entity.HK_SpotCosts> hK_SpotCostsList = hK_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)); if (hK_SpotCostsList.Count > 0) { Entity.HK_SpotCosts hK_SpotCosts = hK_SpotCostsList[0]; if (hK_SpotCosts != null) { return(hK_SpotCosts); } } return(null); } catch (Exception ex) { string errCode = "GL-8609";// "GL-8405"; string errMsg = "根据品种标识返回港股_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 获取所有的港股_交易费用 /// </summary> /// <returns></returns> public List <Entity.HK_SpotCosts> GetAllHKSpotCosts() { try { LogHelper.WriteDebug("Debug-8608获取所有的港股_交易费用方法名称:GetAllHKSpotCosts()" + DateTime.Now); HK_SpotCostsBLL hK_SpotCostsBLL = new HK_SpotCostsBLL(); return(hK_SpotCostsBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8608";// "GL-8404"; string errMsg = "获取所有的港股_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }