Hidistro.UI.SaleSystem.CodeBehind/VMyRanking.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.Data;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    [ParseChildren(true)]
    public class VMyRanking : VMemberTemplatedWebControl
    {
        private Literal liturl;
        private VshopTemplatedRepeater rptMyRanking;
        private VshopTemplatedRepeater rptMyRankingList;
        private VshopTemplatedRepeater rptMyTeamRankingList;
        private HtmlInputHidden txtTotal;

        protected override void AttachChildControls()
        {
            if (DistributorsBrower.GetCurrentDistributors(Globals.GetCurrentMemberUserId()).ReferralStatus != 0)
            {
                HttpContext.Current.Response.Redirect("MemberCenter.aspx");
            }
            else
            {
                string url = this.Page.Request.QueryString["returnUrl"];
                if (!string.IsNullOrWhiteSpace(this.Page.Request.QueryString["returnUrl"]))
                {
                    this.Page.Response.Redirect(url);
                }
                MemberInfo currentMember = MemberProcessor.GetCurrentMember();
                this.liturl = (Literal) this.FindControl("liturl");
                this.liturl.Text = Globals.HostPath(HttpContext.Current.Request.Url) + "/Default.aspx?ReferralId=" + currentMember.UserId;
                DataSet userRanking = DistributorsBrower.GetUserRanking(currentMember.UserId);
                this.rptMyRankingList = (VshopTemplatedRepeater) this.FindControl("rptMyRankingList");
                this.rptMyTeamRankingList = (VshopTemplatedRepeater) this.FindControl("rptMyTeamRankingList");
                this.rptMyRanking = (VshopTemplatedRepeater) this.FindControl("rptMyRanking");
                if (userRanking.Tables.Count == 3)
                {
                    this.rptMyRanking.DataSource = userRanking.Tables[0];
                    this.rptMyRanking.DataBind();
                    this.rptMyRankingList.DataSource = userRanking.Tables[1];
                    this.rptMyRankingList.DataBind();
                    this.rptMyTeamRankingList.DataSource = userRanking.Tables[2];
                    this.rptMyTeamRankingList.DataBind();
                }
                PageTitle.AddSiteNameTitle("查看排名");
            }
        }

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

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

AI 解读 AI

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

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