Exemplo n.º 1
0
        /// <summary>
        /// 门店商品管理
        /// </summary>
        /// <param name="shopBranchId"></param>
        /// <returns></returns>
        public ActionResult ProductManagement(long shopBranchId)
        {
            var shopBranch = ShopBranchApplication.GetShopBranchById(shopBranchId);

            ViewBag.ShopBranchName = shopBranch.ShopBranchName;
            ViewBag.ShopCategorys  = ShopCategoryApplication.GetShopCategory(shopBranch.ShopId);
            return(View());
        }
Exemplo n.º 2
0
        private ProductCreateModel InitCreateModel(ProductCreateModel model = null)
        {
            if (model == null)
            {
                model = new ProductCreateModel();
            }
            long id = base.CurrentShop.Id;

            model.ShopCategorys = ShopCategoryApplication.GetShopCategory(id);
            return(model);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 门店商品管理
        /// </summary>
        /// <param name="shopBranchId"></param>
        /// <returns></returns>
        public ActionResult ProductManagement(long shopBranchId)
        {
            var shopBranch     = ShopBranchApplication.GetShopBranchById(shopBranchId);
            var shopBranchName = string.Empty;

            if (shopBranch != null)
            {
                shopBranchName = shopBranch.ShopBranchName;
            }
            ViewBag.ShopBranchName = shopBranchName;
            ViewBag.ShopCategorys  = ShopCategoryApplication.GetShopCategory(CurrentSellerManager.ShopId);
            return(View());
        }