Hidistro.UI.Web/Admin/zbGoods/CategoryEdit.cs

(开头部分) 14KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace Hidistro.UI.Web.Admin.zbGoods
{
    using Hidistro.ControlPanel.zbCommodities;
    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 Hishop.Components.Validation;
    using System;
    using System.Collections.Generic;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    [PrivilegeCheck(Privilege.AddProductCategory)]
    public class CategoryEdit : AdminPage
    {
        protected HtmlForm aspnetForm;
        protected Button btnSaveAddCategory;
        protected Button btnSaveCategory;
        protected int categoryid;
        protected zbProductCategoriesDropDownList dropCategories;
        protected ProductTypeDownList dropProductTypes;
        protected HtmlGenericControl liURL;
        protected string operatorName;
        protected string reurl;
        protected TextBox txtCategoryName;
        protected TextBox txtfirst;
        protected TextBox txtPageDesc;
        protected TextBox txtPageKeyTitle;
        protected TextBox txtPageKeyWords;
        protected TextBox txtRewriteName;
        protected TextBox txtsecond;
        protected TextBox txtSKUPrefix;
        protected TextBox txtthird;
        protected UpImg uploader1;
        protected int userid;
        

        protected CategoryEdit() : base("m11", "zbspp06")
        {
            this.reurl = Globals.RequestQueryStr("reurl");
            this.categoryid = Globals.RequestQueryNum("categoryId");
            this.operatorName = "添加";
        }

        private void BindCategoryInfo(CategoryInfo categoryInfo)
        {
            if (categoryInfo != null)
            {
                this.txtCategoryName.Text = categoryInfo.Name;
                this.dropProductTypes.SelectedValue = categoryInfo.AssociatedProductType;
                this.txtSKUPrefix.Text = categoryInfo.SKUPrefix;
                this.txtRewriteName.Text = categoryInfo.RewriteName;
                this.txtPageKeyTitle.Text = categoryInfo.MetaTitle;
                this.txtPageKeyWords.Text = categoryInfo.MetaKeywords;
                this.txtPageDesc.Text = categoryInfo.MetaDescription;
                this.txtfirst.Text = string.IsNullOrEmpty(categoryInfo.FirstCommission) ? "0" : categoryInfo.FirstCommission;
                this.txtsecond.Text = string.IsNullOrEmpty(categoryInfo.SecondCommission) ? "0" : categoryInfo.SecondCommission;
后面还有 269 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。