protected void Page_Load(object sender, EventArgs e) { SystemStatusInfo systemStatusInfo = accountsFacade.GetSystemStatusInfo("MedalExchangeRate"); rate = systemStatusInfo == null ? 1 : systemStatusInfo.StatusValue; if (!IsPostBack) { Message umsg = accountsFacade.GetUserGlobalInfo(Fetch.GetUserCookie().UserID, 0, ""); if (umsg.Success) { UserInfo user = umsg.EntityList[0] as UserInfo; lblAccounts.Text = user.Accounts; lblMedals.Text = user.UserMedal.ToString(); lblGameID.Text = user.GameID.ToString(); txtMedals.Text = user.UserMedal.ToString(); } GameScoreInfo scoreInfo = treasureFacade.GetTreasureInfo2(Fetch.GetUserCookie().UserID); if (scoreInfo != null) { this.lblInsureScore.Text = scoreInfo.InsureScore.ToString(); } } Themes.Standard.Common_Header sHeader = (Themes.Standard.Common_Header) this.FindControl("sHeader"); sHeader.title = "会员中心"; }
protected void Page_Load(object sender, EventArgs e) { SystemStatusInfo systemStatusInfo = accountsFacade.GetSystemStatusInfo("PresentExchangeRate"); rate = systemStatusInfo == null ? 1 : systemStatusInfo.StatusValue; if (!IsPostBack) { Message umsg = accountsFacade.GetUserGlobalInfo(Fetch.GetUserCookie().UserID, 0, ""); if (umsg.Success) { UserInfo user = umsg.EntityList[0] as UserInfo; this.lblAccounts.Text = user.Accounts; this.lblExchangeLoves.Text = user.Present.ToString(); this.lblGameID.Text = user.GameID.ToString(); this.lblTotalLoves.Text = user.LoveLiness.ToString(); this.lblUnExchangeLoves.Text = (user.LoveLiness - user.Present).ToString(); this.txtPresent.Text = (user.LoveLiness - user.Present).ToString(); } GameScoreInfo scoreInfo = treasureFacade.GetTreasureInfo2(Fetch.GetUserCookie().UserID); if (scoreInfo != null) { this.lblInsureScore.Text = scoreInfo.InsureScore.ToString(); } } }