示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <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);
     }
 }
示例#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);
     }
 }