/// <summary> ///获取所有(商品)期货_持仓限制 /// </summary> /// <param name="BreedClassName">品种名称</param> /// <param name="DeliveryMonthTypeID">交割月份类型标识</param> /// <param name="PositionBailTypeID">持仓和保证金控制类型标识</param> /// <param name="pageNo">当前页</param> /// <param name="pageSize">显示记录数</param> /// <param name="rowCount">总行数</param> /// <returns></returns> public static DataSet GetAllQHPositionLimitValue(string BreedClassName, int DeliveryMonthTypeID, int PositionBailTypeID, int pageNo, int pageSize, out int rowCount) { QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.GetAllQHPositionLimitValue(BreedClassName, DeliveryMonthTypeID, PositionBailTypeID, pageNo, pageSize, out rowCount)); }
/// <summary> /// 根据品种标识返回期货_持仓限制 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public List <Entity.QH_PositionLimitValue> GetPositionLimitValueByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8526根据品种标识返回期货_持仓限制方法名称:GetPositionLimitValueByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID))); } catch (Exception ex) { string errCode = "GL-8526"; 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_PositionLimitValue> GetAllQHPositionLimitValue() { try { LogHelper.WriteDebug("Debug-8525获取所有的期货_持仓限制方法名称:GetAllQHPositionLimitValue()" + DateTime.Now); QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8525"; string errMsg = "获取所有的期货_持仓限制失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 根据期货-持仓限制标识返回期货_持仓限制 /// </summary> /// <param name="positionLimitValueID">期货-持仓限制标识</param> /// <returns></returns> public Entity.QH_PositionLimitValue GetPositionLimitValueByPositionLimitValueID(int positionLimitValueID) { try { LogHelper.WriteDebug("Debug-8527根据期货-持仓限制标识返回期货_持仓限制方法名称:GetPositionLimitValueByPositionLimitValueID(int positionLimitValueID)参数是:" + positionLimitValueID + "时间是:" + DateTime.Now); QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); Entity.QH_PositionLimitValue qH_PositionLimitValue = qH_PositionLimitValueBLL.GetListArray(string.Format("PositionLimitValueID={0}", positionLimitValueID)) [0]; if (qH_PositionLimitValue != null) { return(qH_PositionLimitValue); } return(null); } catch (Exception ex) { string errCode = "GL-8527"; 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 static bool UpdateQHPositionLimitValue(ManagementCenter.Model.QH_PositionLimitValue model) { QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.UpdateQHPositionLimitValue(model)); }
/// <summary> /// 添加(商品)期货_持仓限制 /// </summary> /// <param name="model">(商品)期货_持仓限制实体</param> /// <returns></returns> public static int AddQHPositionLimitValue(ManagementCenter.Model.QH_PositionLimitValue model) { QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.AddQHPositionLimitValue(model)); }
//================================ (商品)期货_持仓限制 方法 ================================ #region 根据期货-持仓限制标识返回实体 /// <summary> /// 根据期货-持仓限制标识返回实体 /// </summary> /// <param name="PositionLimitValueID">期货-持仓限制标识</param> /// <returns></returns> public static ManagementCenter.Model.QH_PositionLimitValue GetQHPositionLimitValueModel(int PositionLimitValueID) { QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.GetQHPositionLimitValueModel(PositionLimitValueID)); }
/// <summary> /// 删除(商品)期货_持仓限制 /// </summary> /// <param name="PositionLimitValueID">(商品)期货_持仓限制ID</param> /// <returns></returns> public static bool DeleteQHPositionLimitValue(int PositionLimitValueID) { QH_PositionLimitValueBLL qH_PositionLimitValueBLL = new QH_PositionLimitValueBLL(); return(qH_PositionLimitValueBLL.DeleteQHPositionLimitValue(PositionLimitValueID)); }