Hidistro.UI.Web/Admin/Goods/EditBrandCategory.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Goods
{
using Hidistro.ControlPanel.Commodities;
using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Entities.Commodities;
using Hidistro.Entities.Store;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using Hidistro.UI.Web.hieditor.ueditor.controls;
using Hishop.Components.Validation;
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
[PrivilegeCheck(Privilege.BrandCategories)]
public class EditBrandCategory : AdminPage
{
private int brandId;
protected Button btnUpdateBrandCategory;
protected ProductTypesCheckBoxList chlistProductTypes;
protected ucUeditor fckDescription;
protected TextBox txtBrandName;
protected TextBox txtCompanyUrl;
protected TextBox txtkeyword;
protected TextBox txtMetaDescription;
protected TextBox txtReUrl;
protected UpImg uploader1;
protected EditBrandCategory() : base("m02", "spp08")
{
}
protected void btnUpdateBrandCategory_Click(object sender, EventArgs e)
{
BrandCategoryInfo brandCategoryInfo = this.GetBrandCategoryInfo();
if (string.IsNullOrEmpty(brandCategoryInfo.Logo))
{
this.ShowMsg("请上传一张品牌LOGO图片", false);
}
else if (string.IsNullOrEmpty(brandCategoryInfo.BrandName))
{
this.ShowMsg("请输入品牌名称!", false);
}
else if (string.IsNullOrEmpty(brandCategoryInfo.Description))
{
this.ShowMsg("请输入品牌介绍!", false);
}
else if (CatalogHelper.UpdateBrandCategory(brandCategoryInfo))
{
base.Response.Redirect(Globals.GetAdminAbsolutePath("/Goods/BrandCategories.aspx"), true);
}
else
{
this.ShowMsg("编辑品牌分类失败", true);
}
}
private BrandCategoryInfo GetBrandCategoryInfo()
{
后面还有 93 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
