/// <summary>
 /// 添加(商品)期货_持仓限制
 /// </summary>
 /// <param name="model">(商品)期货_持仓限制实体</param>
 /// <returns></returns>
 public int AddQHPositionLimitValue(ManagementCenter.Model.QH_PositionLimitValue model)
 {
     try
     {
         QH_PositionLimitValueDAL qHPositionLimitValueDAL = new QH_PositionLimitValueDAL();
         return(qHPositionLimitValueDAL.Add(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6620";
         string      errMsg    = "添加(商品)期货_持仓限制失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return(AppGlobalVariable.INIT_INT);
     }
 }
 /// <summary>
 /// 修改(商品)期货_持仓限制
 /// </summary>
 /// <param name="model">(商品)期货_持仓限制实体</param>
 /// <returns></returns>
 public bool UpdateQHPositionLimitValue(ManagementCenter.Model.QH_PositionLimitValue model)
 {
     try
     {
         QH_PositionLimitValueDAL qHPositionLimitValueDAL = new QH_PositionLimitValueDAL();
         return(qHPositionLimitValueDAL.Update(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-6621";
         string      errMsg    = "修改(商品)期货_持仓限制失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return(false);
     }
 }
Ejemplo n.º 3
0
 /// <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));
        }