コード例 #1
0
        /// <summary>
        /// 获取所有交易规则_交易方向_交易单位_交易量(最小交易单位)
        /// </summary>
        /// <param name="BreedClassName">品种名称</param>
        /// <param name="pageNo">当前页</param>
        /// <param name="pageSize">显示记录数</param>
        /// <param name="rowCount">总行数</param>
        /// <returns></returns>
        public static DataSet GetAllXHMinVolumeOfBusiness(string BreedClassName, int pageNo, int pageSize,
                                                          out int rowCount)
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.GetAllXHMinVolumeOfBusiness(BreedClassName, pageNo, pageSize, out rowCount));
        }
コード例 #2
0
 /// <summary>
 /// 根据品种标识返回交易规则_交易方向_交易单位_交易量(最小交易单位)
 /// </summary>
 /// <param name="breedClassID">品种标识</param>
 /// <returns></returns>
 public List <Entity.XH_MinVolumeOfBusiness> GetMinVolumeOfBusinessByBreedClassID(int breedClassID)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8403根据品种标识返回交易规则_交易方向_交易单位_交易量(最小交易单位)方法名称:GetMinVolumeOfBusinessByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now);
         XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();
         return(xH_MinVolumeOfBusinessBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8403";
         string      errMsg  = "根据品种标识返回交易规则_交易方向_交易单位_交易量(最小交易单位)失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
コード例 #3
0
 /// <summary>
 /// 获取所有的交易规则_交易方向_交易单位_交易量(最小交易单位)
 /// </summary>
 /// <returns></returns>
 public List <Entity.XH_MinVolumeOfBusiness> GetAllMinVolumeOfBusiness()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8402获取所有的交易规则_交易方向_交易单位_交易量(最小交易单位)方法名称:GetAllMinVolumeOfBusiness()" + DateTime.Now);
         XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();
         return(xH_MinVolumeOfBusinessBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8402";
         string      errMsg  = "获取所有的交易规则_交易方向_交易单位_交易量(最小交易单位)失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
コード例 #4
0
        /// <summary>
        /// 更新交易规则_交易方向_交易单位_交易量(最小交易单位)数据
        /// </summary>
        /// <param name="model">交易规则_交易方向_交易单位_交易量(最小交易单位)实体</param>
        public static bool UpdateXHMinVolumeOfBus(ManagementCenter.Model.XH_MinVolumeOfBusiness model)
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.UpdateXHMinVolumeOfBus(model));
        }
コード例 #5
0
        /// <summary>
        /// 根据交易规则_交易方向_交易单位_交易量(最小交易单位)ID,删除此数据
        /// </summary>
        /// <param name="minVolumeOfBusinessID">根据交易规则_交易方向_交易单位_交易量(最小交易单位)ID</param>
        /// <returns></returns>
        public static bool DeleteXHMinVolumeOfBusByID(int minVolumeOfBusinessID)
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.DeleteXHMinVolumeOfBusByID(minVolumeOfBusinessID));
        }
コード例 #6
0
        //================================ 交易规则_交易方向_交易单位_交易量(最小交易单位)方法 ================================

        #region 添加交易规则_交易方向_交易单位_交易量(最小交易单位)

        /// <summary>
        /// 添加交易规则_交易方向_交易单位_交易量(最小交易单位)
        /// </summary>
        /// <param name="xHMinVolumeOfBusiness"></param>
        /// <returns></returns>
        public static int AddXHMinVolumeOfBusiness(Entity.XH_MinVolumeOfBusiness xHMinVolumeOfBusiness)
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.Add(xHMinVolumeOfBusiness));
        }
コード例 #7
0
        /// <summary>
        /// 根据现货规则表和港股规则表中的品种标识获取品种名称
        /// </summary>
        /// <returns></returns>
        public static DataSet GetXHAndHKBreedClassNameByBreedClassID()
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.GetXHAndHKBreedClassNameByBreedClassID());
        }
コード例 #8
0
        /// <summary>
        /// 根据品种标识返回交易规则_交易方向_交易单位_交易量(最小交易单位)
        /// </summary>
        /// <param name="breedClassID">品种标识</param>
        /// <returns></returns>
        public static List <Entity.XH_MinVolumeOfBusiness> GetXHMinVolumeOfBusByBreedClassID(int breedClassID)
        {
            XH_MinVolumeOfBusinessBLL xH_MinVolumeOfBusinessBLL = new XH_MinVolumeOfBusinessBLL();

            return(xH_MinVolumeOfBusinessBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)));
        }