예제 #1
0
        /// <summary>
        /// 根据品种标识返回现货_品种_交易规则
        /// </summary>
        /// <param name="breedClassID">品种标识</param>
        /// <returns></returns>
        public Entity.XH_SpotTradeRules GetSpotTradeRulesByBreedClassID(int breedClassID)
        {
            try
            {
                LogHelper.WriteDebug("Debug-8412根据品种标识返回现货_品种_交易规则方法名称:GetSpotTradeRulesByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now);
                XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();
                var list = xH_SpotTradeRulesBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID));

                if (list.Count > 0)
                {
                    Entity.XH_SpotTradeRules xH_SpotTradeRules = list[0];
                    if (xH_SpotTradeRules != null)
                    {
                        return(xH_SpotTradeRules);
                    }
                }

                return(null);
            }
            catch (Exception ex)
            {
                string      errCode = "GL-8412";
                string      errMsg  = "根据品种标识返回现货_品种_交易规则失败";
                VTException vte     = new VTException(errCode, errMsg, ex);
                LogHelper.WriteError(vte.ToString(), vte.InnerException);
                return(null);
            }
        }
예제 #2
0
        /// <summary>
        /// 获取所有现货交易规则
        /// </summary>
        /// <param name="BreedClassName">品种名称</param>
        /// <param name="pageNo">当前页</param>
        /// <param name="pageSize">显示记录数</param>
        /// <param name="rowCount">总行数</param>
        /// <returns></returns>
        public static DataSet GetAllSpotTradeRules(string BreedClassName, int pageNo, int pageSize,
                                                   out int rowCount)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.GetAllSpotTradeRules(BreedClassName, pageNo, pageSize,
                                                             out rowCount));
        }
예제 #3
0
 /// <summary>
 /// 获取所有的现货_品种_交易规则
 /// </summary>
 /// <returns></returns>
 public List <Entity.XH_SpotTradeRules> GetAllSpotTradeRules()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8411获取所有的现货_品种_交易规则方法名称:GetAllSpotTradeRules()" + DateTime.Now);
         XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();
         return(xH_SpotTradeRulesBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8411";
         string      errMsg  = "获取所有的现货_品种_交易规则失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
예제 #4
0
        /// <summary>
        /// 根据品种ID返回现货规则明细(此品种的涨跌幅和有效申报)数据
        /// </summary>
        /// <param name="BreedClassID">品种ID</param>
        /// <returns></returns>
        public static DataSet GetSpotTradeRulesDetail(int BreedClassID)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.GetSpotTradeRulesDetail(BreedClassID));
        }
예제 #5
0
        /// <summary>
        /// 更新现货交易规则
        /// </summary>
        /// <param name="model">现货交易规则实体</param>
        /// <returns></returns>
        public static bool UpdateSpotTradeRules(ManagementCenter.Model.XH_SpotTradeRules model)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.UpdateSpotTradeRules(model));
        }
예제 #6
0
        /// <summary>
        /// 根据品种ID返回现货交易规则实体
        /// </summary>
        /// <param name="BreedClassID"></param>
        /// <returns></returns>
        public static Entity.XH_SpotTradeRules GetModel(int BreedClassID)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.GetModel(BreedClassID));
        }
예제 #7
0
        /// <summary>
        /// 根据现货规则表中的品种ID获取品种名称
        /// </summary>
        /// <returns></returns>
        public static DataSet GetBreedClassNameByBreedClassID()
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.GetBreedClassNameByBreedClassID());
        }
예제 #8
0
        /// <summary>
        ///根据品种标识,品种涨跌幅标识,品种有效申报标识,删除现货品种交易规则(规则相关表全部删除)
        /// </summary>
        /// <param name="BreedClassID">品种标识</param>
        ///// <param name="BreedClassHighLowID">品种涨跌幅标识</param>
        ///// <param name="BreedClassValidID">品种有效申报标识</param>
        /// <returns></returns>
        public static bool DeleteSpotTradeRulesAboutAll(int BreedClassID)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.DeleteSpotTradeRulesAboutAll(BreedClassID));
        }
예제 #9
0
        /// <summary>
        ///根据品种标识,品种涨跌幅标识,品种有效申报标识,删除现货品种交易规则
        /// </summary>
        /// <param name="BreedClassID">品种标识</param>
        /// <param name="BreedClassHighLowID">品种涨跌幅标识</param>
        /// <param name="BreedClassValidID">品种有效申报标识</param>
        /// <returns></returns>
        public static bool DeleteSpotTradeRules(int BreedClassID, int BreedClassHighLowID, int BreedClassValidID)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.DeleteSpotTradeRules(BreedClassID, BreedClassHighLowID, BreedClassValidID));
        }
예제 #10
0
        //public static int R;

        /// <summary>
        /// 根据品种ID判断现货交易规则是否存在
        /// </summary>
        /// <param name="BreedClassID"></param>
        /// <returns></returns>
        public static bool ExistsSpotTradeRules(int BreedClassID)
        {
            XH_SpotTradeRulesBLL xH_SpotTradeRulesBLL = new XH_SpotTradeRulesBLL();

            return(xH_SpotTradeRulesBLL.Exists(BreedClassID));
        }