// // GET: /SE_MDBeautyPartConfig/Edit/5 public ActionResult Edit(int id = 0) { SE_MDBeautyPartConfigModel model = new SE_MDBeautyPartConfigModel(); model.Soft = 1; if (id > 0) { model = SE_MDBeautyPartConfigBLL.Select(id); } ViewBag.InteriorCategorys = InteriorCategorysTreeJson(model.InteriorCategorys); ViewBag.ExternalCategorys = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJsonForPart(model.ExternalCategorys, model.ExcludePids, true); return(View(model)); }
public ActionResult Edit(int id = 0, int parentId = 0) { SE_MDBeautyBrandConfigModel model = new SE_MDBeautyBrandConfigModel() { ParentId = parentId }; if (id > 0) { model = SE_MDBeautyBrandConfigBLL.Select(id) ?? new SE_MDBeautyBrandConfigModel(); } ViewBag.ZTreeJsonEdit = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJson(model.CategoryIds, true); return(View(model)); }
// // GET: /SE_MDBeautyCategoryProductConfig/Edit/5 public ActionResult Edit(int id = 0) { SE_MDBeautyCategoryProductConfigModel model = new SE_MDBeautyCategoryProductConfigModel(); model.RecommendCar = 4; //默认选项 if (id > 0) { model = SE_MDBeautyCategoryProductConfigBLL.Select(id); } ViewBag.ZTreeJsonForCategory = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJson(model.CategoryIds, true); //ViewBag.ZTreeJsonForBrand = SE_MDBeautyBrandConfigController.SE_MDBeautyBrandTreeJson(model.Brands, true); ViewBag.ZTreeJsonForBrand = id > 0 ? SE_MDBeautyBrandTreeForCategoryIdJson(model.CategoryIds, model.Brands, true) : "[]"; return(View(model)); }
public ActionResult Edit(int id = 0) { ViewBag.ProvinceList = MeiRongAcitivityConfigManager.GetRegion(0); ViewBag.ShopService = MeiRongAcitivityConfigManager.GetShopCosmetologyServers(0); if (id == 0) { ViewBag.ZTreeJsonForCategory = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJson("", true); MeiRongAcitivityConfig model = new MeiRongAcitivityConfig(); model.PlanStartTime = DateTime.Now; model.ActivityEndTime = DateTime.Now.AddDays(30); model.SignUpEndTime = DateTime.Now.AddDays(30); model.SignUpStartTime = DateTime.Now; return(View(model)); } else { MeiRongAcitivityConfig model = MeiRongAcitivityConfigManager.GetMeiRongAcitivityConfigById(id); model.RegionList = MeiRongAcitivityConfigManager.GetRegionRelation(model.Id, 1); ViewBag.ZTreeJsonForCategory = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJson(model.CategoryId.ToString(), true); return(View(model)); } }
// // GET: /SE_MDBeautyCategoryProductConfig/Edit/5 public ActionResult Edit(int id = 0) { SE_MDBeautyCategoryProductConfigModel model = new SE_MDBeautyCategoryProductConfigModel(); model.RecommendCar = 4; //默认选项 if (id > 0) { model = SE_MDBeautyCategoryProductConfigBLL.Select(id); if (!string.IsNullOrEmpty(model.ProdcutId)) { var imageUrl = (ProductService.GetProductBaseInfo(model.ProdcutId))?.Image; model.Image_filename = imageUrl; } } ViewBag.ZTreeJsonForCategory = SE_MDBeautyCategoryConfigController.SE_MDBeautyCategoryTreeJson(model.CategoryIds, true); //ViewBag.ZTreeJsonForBrand = SE_MDBeautyBrandConfigController.SE_MDBeautyBrandTreeJson(model.Brands, true); ViewBag.ZTreeJsonForBrand = id > 0 ? SE_MDBeautyBrandTreeForCategoryIdJson(model.CategoryIds, model.Brands, true) : "[]"; return(View(model)); }