/// <summary> /// 根据交易规则委托量标识返回交易规则委托量 /// </summary> /// <param name="consignQuantumID">交易规则委托量标识</param> /// <returns></returns> public Entity.QH_ConsignQuantum GetConsignQuantumByConsignQuantumID(int consignQuantumID) { try { LogHelper.WriteDebug("Debug-8505根据交易规则委托量标识返回交易规则委托量方法名称:GetConsignQuantumByConsignQuantumID(int consignQuantumID)参数是:" + consignQuantumID + "时间是:" + DateTime.Now); QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); List <Entity.QH_ConsignQuantum> qH_ConsignQuantumList = qH_ConsignQuantumBLL.GetListArray(string.Format("ConsignQuantumID={0}", consignQuantumID)); if (qH_ConsignQuantumList.Count > 0) { Entity.QH_ConsignQuantum qH_ConsignQuantum = qH_ConsignQuantumList[0]; if (qH_ConsignQuantum != null) { return(qH_ConsignQuantum); } } return(null); } catch (Exception ex) { string errCode = "GL-8505"; string errMsg = "根据交易规则委托量标识返回交易规则委托量失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 更新交易规则和单笔最大委托量 /// </summary> /// <param name="qHConsignQuantum">交易规则实体</param> /// <param name="qHSingleRequestQuantity1">单笔最大委托量实体</param> /// <param name="qHSingleRequestQuantity2">单笔最大委托量实体</param> /// <returns></returns> public static bool UpdateQHConsignQuantumAndSingle(QH_ConsignQuantum qHConsignQuantum, QH_SingleRequestQuantity qHSingleRequestQuantity1, QH_SingleRequestQuantity qHSingleRequestQuantity2) { QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); return(qH_ConsignQuantumBLL.UpdateQHConsignQuantumAndSingle(qHConsignQuantum, qHSingleRequestQuantity1, qHSingleRequestQuantity2)); }
//================================ (期货_品种_交易规则--交易规则委托量和单笔委托量) 方法 ================================ #region 添加交易规则和单笔最大委托量 /// <summary> /// 添加交易规则和单笔最大委托量 /// </summary> /// <param name="qHConsignQuantum">交易规则实体</param> /// <param name="qHSingleRequestQuantityl">单笔最大委托量实体</param> /// <param name="qHSingleRequestQuantity2">单笔最大委托量实体</param> /// <returns></returns> public static int AddQHConsignQuantumAndSingle(QH_ConsignQuantum qHConsignQuantum, QH_SingleRequestQuantity qHSingleRequestQuantityl, QH_SingleRequestQuantity qHSingleRequestQuantity2) { QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); return(qH_ConsignQuantumBLL.AddQHConsignQuantumAndSingle(qHConsignQuantum, qHSingleRequestQuantityl, qHSingleRequestQuantity2)); }
/// <summary> /// 获取所有的交易规则委托量 /// </summary> /// <returns></returns> public List <Entity.QH_ConsignQuantum> GetAllConsignQuantum() { try { LogHelper.WriteDebug("Debug-8504获取所有的交易规则委托量方法名称:GetAllConsignQuantum()" + DateTime.Now); QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); return(qH_ConsignQuantumBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8504"; string errMsg = "获取所有的交易规则委托量失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 根据交易规则委托量ID,获取委托量实体 /// </summary> /// <param name="ConsignQuantumID">交易规则委托量ID</param> /// <returns></returns> public static Entity.QH_ConsignQuantum GetQHConsignQuantumModel(int ConsignQuantumID) { QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); return(qH_ConsignQuantumBLL.GetQHConsignQuantumModel(ConsignQuantumID)); }
/// <summary> /// 根据交易规则委托量标识删除交易规则和单笔最大委托量 /// </summary> /// <param name="ConsignQuantumID">交易规则委托量ID</param> /// <returns></returns> public static bool DeleteQHConsignQuantumAndSingle(int ConsignQuantumID) { QH_ConsignQuantumBLL qH_ConsignQuantumBLL = new QH_ConsignQuantumBLL(); return(qH_ConsignQuantumBLL.DeleteQHConsignQuantumAndSingle(ConsignQuantumID)); }