Example #1
0
 public ActionResult Index()
 {
     ViewBag.Categories = _categoryContract.ParentSelectList("请选择品类").ToList();
     ViewBag.Brands     = CacheAccess.GetBrand(_brandContract, true);
     ViewBag.Colors     = CacheAccess.GetColorsName(_colorContract, true);
     return(View());
 }
Example #2
0
        public ActionResult VProduct()
        {
            ViewBag.Color    = CacheAccess.GetColorsName(_colorContract, true);
            ViewBag.Brand    = CacheAccess.GetBrand(_brandContract, true, false);
            ViewBag.Category = CacheAccess.GetCategory(_categoryContract, true);
            ViewBag.Season   = CacheAccess.GetSeason(_seasonContract, true);
            ViewBag.Crowds   = CacheAccess.GetProductCrowd(_productCrowdContract, true);

            return(PartialView());
        }
Example #3
0
        public ActionResult CreateDiscount()
        {
            ViewBag.Color = CacheAccess.GetColorsName(_colorContract);

            // ViewBag.Color = (_colorContract.SelectList("选择颜色").Select(m => new SelectListItem { Text = m.Key, Value = m.Value })).ToList();

            ViewBag.Brand    = CacheAccess.GetBrand(_brandContract);
            ViewBag.Category = CacheAccess.GetCategory(_categoryContract);

            ViewBag.Season = CacheAccess.GetSeason(_seasonContract, false);
            // ViewBag.Size = CacheAccess.GetSize(_sizeContract, _categoryContract);
            ViewBag.Discount = StaticHelper.DiscountList("选择折扣");
            ViewBag.OneCollo = CacheAccess.GetOneCollo(_productAttributeContract, false);
            return(View());
        }