Hidistro.UI.SaleSystem.Tags/Common_Footer.cs

(开头部分) 2KB

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

namespace Hidistro.UI.SaleSystem.Tags
{
    using Hidistro.Core;
    using Hidistro.Core.Entities;
    using Hidistro.Entities.Members;
    using Hidistro.SaleSystem.Vshop;
    using Hidistro.UI.Common.Controls;
    using System;
    using System.Web.UI.WebControls;

    public class Common_Footer : VshopTemplatedWebControl
    {
        private HyperLink hyperindex;
        private Literal lblStyle;
        private Literal litDistrbutorTitle;
        private Literal litDistrbutorUrl;
        private Panel paneldistributor;

        protected override void AttachChildControls()
        {
            this.hyperindex = (HyperLink) this.FindControl("hyperindex");
            this.litDistrbutorTitle = (Literal) this.FindControl("litDistrbutorTitle");
            this.litDistrbutorUrl = (Literal) this.FindControl("litDistrbutorUrl");
            MemberInfo currentMember = MemberProcessor.GetCurrentMember();
            this.litDistrbutorUrl.Text = "/Vshop/DistributorRegCheck.aspx";
            this.lblStyle = (Literal) this.FindControl("lblStyle");
            this.paneldistributor = (Panel) this.FindControl("paneldistributor");
            if (this.Page.Session["stylestatus"] != null)
            {
                this.lblStyle.Text = this.Page.Session["stylestatus"].ToString();
            }
            if (currentMember != null)
            {
                DistributorsInfo userIdDistributors = DistributorsBrower.GetUserIdDistributors(currentMember.UserId);
                if ((userIdDistributors != null) && (userIdDistributors.UserId > 0))
                {
                    this.litDistrbutorTitle.Text = "店铺管理";
                    this.litDistrbutorUrl.Text = "/Vshop/DistributorValid.aspx";
                }
            }
            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
            MemberInfo info3 = MemberProcessor.GetCurrentMember();
            decimal expenditure = 0M;
            DistributorsInfo info4 = null;
            if ((info3 != null) && (info3.UserId > 0))
            {
                info4 = DistributorsBrower.GetUserIdDistributors(info3.UserId);
                expenditure = info3.Expenditure;
            }
            this.paneldistributor.Visible = (masterSettings.IsRequestDistributor && (expenditure >= masterSettings.FinishedOrderMoney)) || ((info4 != null) && (info4.UserId > 0));
            int currentDistributorId = Globals.GetCurrentDistributorId();
            if ((this.hyperindex != null) && (currentDistributorId > 0))
            {
                this.hyperindex.NavigateUrl = "/Default.aspx?ReferralId=" + currentDistributorId;
            }
        }

        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
后面还有 8 行代码,购买后查看完整代码

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

AI 解读 AI

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

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