public OnlineController(IStoreContract storeContract, IStorageContract storageContract, IGalleryContract galleryContract, IInventoryContract inventoryContract, IStoreCartContract storeCartContract, IProductContract prodcutContract, IAdministratorContract administratorContract, IStoreCartItemContract storeCartItemContract, IColorContract colorContract, IOnlinePurchaseProductContract oppContract, IProductContract productContract, IProductOrigNumberContract _productOrigNumberContract, IStoreTypeContract _storeTypeContract, IBrandContract _brandContract, ICategoryContract categoryContract) { _storeContract = storeContract; _storageContract = storageContract; //_galleryContract = galleryContract; //_inventoryContract = inventoryContract; _storeCartContract = storeCartContract; _productContract = prodcutContract; _storeCartItemContract = storeCartItemContract; _colorContract = colorContract; _categoryContract = categoryContract; _oppContract = oppContract; this._brandContract = _brandContract; this._administratorContract = administratorContract; this._productOrigNumberContract = _productOrigNumberContract; ViewBag.Color = _colorContract.ParentSelectList("请选择"); ViewBag.Category = CacheAccess.GetCategory(_categoryContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true); this._storeTypeContract = _storeTypeContract; }
public FactoryOnlineController(IStoreContract storeContract, IStorageContract storageContract, IGalleryContract galleryContract, IInventoryContract inventoryContract, IStoreCartContract storeCartContract, IProductContract prodcutContract, IAdministratorContract administratorContract, IStoreCartItemContract storeCartItemContract, IColorContract colorContract, IProductContract productContract, IProductOrigNumberContract _productOrigNumberContract, IBrandContract _brandContract, IPurchaseContract _purchaseContract, IDesignerContract _DesignerContract, IFactorysContract _factoryContract, ICategoryContract categoryContract) { _storeContract = storeContract; _storageContract = storageContract; _storeCartContract = storeCartContract; _productContract = prodcutContract; _storeCartItemContract = storeCartItemContract; _colorContract = colorContract; _categoryContract = categoryContract; this._brandContract = _brandContract; this._administratorContract = administratorContract; this._productOrigNumberContract = _productOrigNumberContract; ViewBag.Color = _colorContract.ParentSelectList("请选择"); ViewBag.Category = CacheAccess.GetCategory(_categoryContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true); this._purchaseContract = _purchaseContract; this._DesignerContract = _DesignerContract; this._factoryContract = _factoryContract; }
public ActionResult BitchProduct() { ViewBag.storages = CacheAccess.GetOrderStorages(_storageContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true); ViewBag.Categor = CacheAccess.GetCategory(_categoryContract, true); ViewBag.Season = CacheAccess.GetSeason(_seasonContract, true); return(PartialView()); }
/// <summary> /// 初始化商品列表界面 /// </summary> /// <returns></returns> public ActionResult Products() { ViewBag.Category = CacheAccess.GetCategory(_categoryContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true, false); ViewBag.Color = (_colorContract.SelectList("请选择").Select(m => new SelectListItem { Text = m.Key, Value = m.Value })).ToList(); return(PartialView()); }
public ActionResult GetProductsByStore(string storeId) { ViewBag.storeid = storeId; ViewBag.Season = CacheAccess.GetSeason(_seasonContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true); ViewBag.Categories = CacheAccess.GetCategory(_categoryContract, true); return(PartialView()); }
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()); }
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()); }