Example #1
0
        private void LoadCouponType()
        {
            List <SelectListItem> userRankList = new List <SelectListItem>();

            foreach (UserRankInfo userRankInfo in AdminUserRanks.GetCustomerUserRankList())
            {
                userRankList.Add(new SelectListItem()
                {
                    Text = userRankInfo.Title, Value = userRankInfo.UserRid.ToString()
                });
            }
            ViewData["userRankList"] = userRankList;

            List <SelectListItem> storeClassList = new List <SelectListItem>();

            storeClassList.Add(new SelectListItem()
            {
                Text = "无限制", Value = "0"
            });
            foreach (StoreClassInfo storeClassInfo in AdminStores.GetStoreClassList(WorkContext.StoreId))
            {
                storeClassList.Add(new SelectListItem()
                {
                    Text = storeClassInfo.Name, Value = storeClassInfo.StoreCid.ToString()
                });
            }
            ViewData["storeClassList"] = storeClassList;

            ViewData["referer"] = MallUtils.GetStoreAdminRefererCookie();
        }
Example #2
0
        /// <summary>
        /// 会员等级列表
        /// </summary>
        /// <returns></returns>
        public ActionResult List()
        {
            UserRankListModel model = new UserRankListModel()
            {
                UserRankList = AdminUserRanks.GetCustomerUserRankList()
            };

            MallUtils.SetAdminRefererCookie(Url.Action("list"));
            return(View(model));
        }
Example #3
0
        private void LoadCouponType()
        {
            List <SelectListItem> userRankList = new List <SelectListItem>();

            foreach (UserRankInfo userRankInfo in AdminUserRanks.GetCustomerUserRankList())
            {
                userRankList.Add(new SelectListItem()
                {
                    Text = userRankInfo.Title, Value = userRankInfo.UserRid.ToString()
                });
            }
            ViewData["userRankList"] = userRankList;

            ViewData["referer"] = MallUtils.GetMallAdminRefererCookie();
        }