Hidistro.UI.Web/Admin/Settings/ManageShippingTemplates.cs

(开头部分) 5KB

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

namespace Hidistro.UI.Web.Admin.Settings
{
    using ASPNET.WebControls;
    using Hidistro.ControlPanel.Settings;
    using Hidistro.Entities;
    using Hidistro.Entities.Settings;
    using Hidistro.UI.Common.Controls;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.Collections.Generic;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class ManageShippingTemplates : AdminPage
    {
        private Dictionary<int, string> AllRegionIds;
        protected Repeater ListTemplates;
        protected ImageLinkButton lkbDeleteCheck;
        protected Pager pager1;
        protected HtmlGenericControl TablefFooter;
        protected HtmlForm thisForm;

        protected ManageShippingTemplates() : base("m09", "szp06")
        {
        }

        public void BindTemplates()
        {
            if (this.AllRegionIds == null)
            {
                this.AllRegionIds = RegionHelper.GetAllCitys();
            }
            IList<FreightTemplate> freightTemplates = SettingsHelper.GetFreightTemplates();
            this.ListTemplates.DataSource = freightTemplates;
            this.ListTemplates.DataBind();
            if (freightTemplates.Count < 1)
            {
                this.TablefFooter.Visible = false;
            }
        }

        private void DeleteCheck()
        {
            string templateIds = "";
            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                templateIds = base.Request["CheckBoxGroup"];
            }
            if (templateIds.Length <= 0)
            {
                this.ShowMsg("请先选择要删除的运费模板", false);
            }
            else
            {
                int num = SettingsHelper.DeleteShippingTemplates(templateIds);
                this.ShowMsg(string.Format("成功删除了{0}条模板关联数据", num), true);
                this.BindTemplates();
            }
        }

后面还有 97 行代码,购买后查看完整代码

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

AI 解读 AI

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

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