Exemple #1
0
        /// <summary>
        /// 获取会员等级对应的折扣
        /// </summary>
        /// <param name="pUserLevel">会员等级</param>
        /// <returns></returns>
        public static double GetLevelDiscount(int pUserLevel)
        {
            DataTable dt = PubData.GetDataTable("user_level");
            //DataTable dt = SCWCache.GetDataTable(SCWCache.CacheKey.User_Level);

            object obj = Fn.GetDataTableFind(dt, pUserLevel, "ls_Discount");

            if (obj.ToString() == string.Empty)
            {
                //obj一般情况不可能为空,需要添加日志 需要优化
                return(1);
            }

            return(Convert.ToDouble(obj));
        }
Exemple #2
0
 public User_LevelL()
 {
     this.dtUser_Level = PubData.GetDataTable("user_level");
 }
Exemple #3
0
 /// <summary>
 /// 获取商家名称
 /// </summary>
 /// <param name="pID"></param>
 /// <returns></returns>
 public static object GetJoinName(int pID)
 {
     return(Fn.GetDataTableFind(PubData.GetDataTable("join_info"), pID, "JoinName"));
 }