Hidistro.UI.Web/Admin/Goods/AddBrandCategory.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 AddBrandCategory : AdminPage
{
protected Button btnAddBrandCategory;
protected Button btnSave;
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 AddBrandCategory() : base("m02", "spp08")
{
}
protected void btnAddBrandCategory_Click(object sender, EventArgs e)
{
BrandCategoryInfo brandCategoryInfo = this.GetBrandCategoryInfo();
if (!string.IsNullOrEmpty(this.uploader1.UploadedImageUrl.ToString()))
{
brandCategoryInfo.Logo = this.uploader1.UploadedImageUrl;
}
else
{
this.ShowMsg("请上传图片!", false);
return;
}
if (string.IsNullOrEmpty(brandCategoryInfo.BrandName))
{
this.ShowMsg("请输入品牌名称!", false);
}
else if (string.IsNullOrEmpty(brandCategoryInfo.Description))
{
this.ShowMsg("请输入品牌介绍!", false);
}
else if (CatalogHelper.AddBrandCategory(brandCategoryInfo))
{
this.txtBrandName.Text = "";
this.txtCompanyUrl.Text = "";
this.txtkeyword.Text = "";
this.txtMetaDescription.Text = "";
this.txtReUrl.Text = "";
后面还有 95 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
