Hidistro.UI.SaleSystem.CodeBehind/VStorePromotion.cs

(开头部分) 2KB

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

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

    public class VStorePromotion : VshopTemplatedWebControl
    {
        private Literal litLinkurl;
        private Literal litStoreurl;
        private Literal litStroeDesc;
        private Literal litStroeName;
        private Literal liturl;
        private Image Logoimage;
        private int userId = 0;

        protected override void AttachChildControls()
        {
            PageTitle.AddSiteNameTitle("店铺推广");
            int num = Globals.RequestQueryNum("ReferralId");
            MemberInfo currentMember = MemberProcessor.GetCurrentMember();
            if ((num > 0) && (currentMember == null))
            {
                this.Page.Response.Redirect("/default.aspx?ReferralId=" + num);
                this.Page.Response.End();
            }
            if (!int.TryParse(this.Page.Request.QueryString["UserId"], out this.userId))
            {
                base.GotoResourceNotFound("");
            }
            DistributorsInfo userIdDistributors = DistributorsBrower.GetUserIdDistributors(this.userId);
            if (userIdDistributors == null)
            {
                base.GotoResourceNotFound("");
            }
            this.litStroeDesc = (Literal) this.FindControl("litStroeDesc");
            this.litLinkurl = (Literal) this.FindControl("litLinkurl");
            this.litStoreurl = (Literal) this.FindControl("litStoreurl");
            string str = Globals.FullPath("/Default.aspx?ReferralId=" + this.userId);
            this.litLinkurl.Text = str;
            this.litStoreurl.Text = str;
            this.Logoimage = (Image) this.FindControl("Logoimage");
            if (!string.IsNullOrEmpty(userIdDistributors.Logo))
            {
                this.Logoimage.ImageUrl = Globals.HostPath(this.Page.Request.Url) + userIdDistributors.Logo;
            }
            this.litStroeName = (Literal) this.FindControl("litStroeName");
            this.litStroeName.Text = userIdDistributors.StoreName;
            this.litStroeDesc.Text = userIdDistributors.StoreDescription;
        }

        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "Skin-VStorePromotion.html";
            }
后面还有 5 行代码,购买后查看完整代码

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

AI 解读 AI

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

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