/// <summary> /// 根据商品期货-保证金比例标识返回商品期货_保证金比例 /// </summary> /// <param name="cFBailScaleValueID">商品期货-保证金比例标识</param> /// <returns></returns> public Entity.QH_CFBailScaleValue GetCFBailScaleValueByCFBailScaleValueID(int cFBailScaleValueID) { try { LogHelper.WriteDebug("Debug-8523根据商品期货-保证金比例标识返回商品期货_保证金比例:GetCFBailScaleValueByCFBailScaleValueID(int cFBailScaleValueID)参数是:" + cFBailScaleValueID + "时间是:" + DateTime.Now); QH_CFBailScaleValueBLL qH_CFBailScaleValueBLL = new QH_CFBailScaleValueBLL(); List <Entity.QH_CFBailScaleValue> qH_CFBailScaleValueList = qH_CFBailScaleValueBLL.GetListArray(string.Format("CFBailScaleValueID={0}", cFBailScaleValueID)); if (qH_CFBailScaleValueList.Count > 0) { Entity.QH_CFBailScaleValue qH_CFBailScaleValue = qH_CFBailScaleValueList[0]; if (qH_CFBailScaleValue != null) { return(qH_CFBailScaleValue); } } return(null); } catch (Exception ex) { string errCode = "GL-8523"; string errMsg = "根据商品期货-保证金比例标识返回商品期货_保证金比例失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 根据品种标识返回商品期货_保证金比例 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public List <Entity.QH_CFBailScaleValue> GetCFBailScaleValueByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8522根据品种标识返回商品期货_保证金比例方法名称:GetCFBailScaleValueByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); QH_CFBailScaleValueBLL qH_CFBailScaleValueBLL = new QH_CFBailScaleValueBLL(); return(qH_CFBailScaleValueBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID))); } catch (Exception ex) { string errCode = "GL-8522"; string errMsg = "根据品种标识返回商品期货_保证金比例失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 获取所有的商品期货_保证金比例 /// </summary> /// <returns></returns> public List <Entity.QH_CFBailScaleValue> GetAllCFBailScaleValue() { try { LogHelper.WriteDebug("Debug-8521获取所有的商品期货_保证金比例方法名称:GetAllCFBailScaleValue()" + DateTime.Now); QH_CFBailScaleValueBLL qH_CFBailScaleValueBLL = new QH_CFBailScaleValueBLL(); return(qH_CFBailScaleValueBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8521"; string errMsg = "获取所有的商品期货_保证金比例失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }