protected void Page_Load(object sender, EventArgs e) { uinfo = DataLoadTool.GetCurrUserModel(); // txtScore.Text = uinfo.TotalScore.ToString(); bllUserScore = new BLLJIMP.BLLUserScore(uinfo.UserID); UserLevel = bllUserScore.GetUserLevelByTotalScore(uinfo.HistoryTotalScore); }
protected void Page_Load(object sender, EventArgs e) { try { UserId = Request["UserId"]; if (!string.IsNullOrEmpty(UserId)) { BLLJIMP.Model.UserInfo uinfo = bllUser.GetCurrentUserInfo(); bllUserScore = new BLLUserScore(uinfo.UserID); //uInfo = DataLoadTool.GetCurrUserModel(); GetTutor(UserId); GetTagStr(); // BLLJuActivity juActivityBll = new BLLJuActivity(); if (string.IsNullOrEmpty(uinfo.TrueName) || string.IsNullOrEmpty(uinfo.Phone)) { isUserRegistered = false; } } } catch (Exception ex) { Response.End(); } //if (!IsPostBack) //{ // } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { uinfo = DataLoadTool.GetCurrUserModel(); bllUserScore = new BLLJIMP.BLLUserScore(uinfo.UserID); BLLJIMP.BLL bll = new BLLJIMP.BLL(); txtCount.Text = bll.GetCount <BLLJIMP.Model.ForwardingRecord>(string.Format(" FUserID='{0}' and TypeName = '分享'", uinfo.UserID)).ToString(); IsShowRed = bll.GetCount <BLLJIMP.Model.ReviewInfo>(string.Format("ForeignkeyId='{0}' and IsRead <> 1", uinfo.UserID)) > 0 ? true : false; UserLevel = bllUserScore.GetUserLevelByTotalScore(uinfo.HistoryTotalScore); FlowerCount = bllUser.GetUserFlowerCount(uinfo.UserID); AttentionCount = bllUser.GetUserAttentionCount(uinfo.UserID); IsHaveUnReadMessage = bllNotice.IsHaveUnReadMessage(bll.GetCurrentUserInfo().UserID).ToString(); IsTutor = bllUser.IsTutor(uinfo); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetBanner(); } isWeixinFollower = IsWeixinFollower(); if (isWeixinFollower) { ZentCloud.BLLJIMP.Model.UserInfo userInfo = bllweixin.GetCurrentUserInfo(); if (userInfo.ISWXmpScoreAdded != 1) { ZentCloud.BLLJIMP.BLLUserScore bllUserScore = new BLLJIMP.BLLUserScore(userInfo.UserID); userInfo.TotalScore += bllUserScore.UpdateUserScoreWithWXTMNotify(bllUserScore.GetDefinedUserScore(ZentCloud.BLLJIMP.BLLUserScore.UserScoreType.SubscriteWXMP), bllweixin.GetAccessToken()); userInfo.ISWXmpScoreAdded = 1; bll.Update(userInfo); } } IsHaveUnReadMessage = bllNotice.IsHaveUnReadMessage(bll.GetCurrentUserInfo().UserID).ToString(); }
protected void Page_Load(object sender, EventArgs e) { uinfo = DataLoadTool.GetCurrUserModel(); bllUserScore = new BLLJIMP.BLLUserScore(uinfo.UserID); UserLevel = bllUserScore.GetUserLevelByTotalScore(uinfo.HistoryTotalScore); NextUserLevel = bllUserScore.Get <UserLevelConfig>(string.Format("LevelNumber={0}", UserLevel + 1)); if (NextUserLevel == null) { NextUserLevel = new UserLevelConfig(); NextUserLevel.LevelNumber = 1; NextUserLevel.FromHistoryScore = 0; } Percent = (int)((uinfo.HistoryTotalScore / NextUserLevel.FromHistoryScore) * 100); if (Percent < 0) { Percent = 0; } if (Percent > 100) { Percent = 100; } }