protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                UserInfo userInfo = accountsFacade.GetUserBaseInfoByUserID(Fetch.GetUserCookie().UserID);
                this.lblAccounts.Text = userInfo.Accounts;
                this.lblGameID.Text   = userInfo.GameID.ToString();

                Message umsg = treasureFacade.GetUserSpreadInfo(Fetch.GetUserCookie().UserID);
                if (umsg.Success)
                {
                    RecordSpreadInfo spreader = umsg.EntityList[0] as RecordSpreadInfo;
                    this.lblInsure.Text = spreader.InsureScore.ToString();
                    this.lblRecord.Text = spreader.RecordID.ToString();
                    this.lblScore.Text  = spreader.Score.ToString();

                    this.txtScore.Text = spreader.RecordID.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 = "会员中心";
        }
Exemplo n.º 2
0
        /// <summary>
        /// 根据用户ID获取用户名
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        public string GetAccountsByUserID(int userID)
        {
            UserInfo user = accountsFacade.GetUserBaseInfoByUserID(userID);

            if (user == null)
            {
                return("");
            }
            return(user.Accounts);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 根据用户ID获取用户名
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        public string GetNickNameByUserID(int userID)
        {
            UserInfo user = accountsFacade.GetUserBaseInfoByUserID(userID);

            if (user == null)
            {
                return("");
            }
            return(user.NickName.ToString());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                UserInfo user = accountsFacade.GetUserBaseInfoByUserID(Fetch.GetUserCookie( ).UserID);
                this.lblAccounts.Text   = user.Accounts;
                lblGameID.Text          = user.GameID.ToString( );
                ddlGender.SelectedValue = user.Gender.ToString( );
                txtUnderWrite.Text      = user.UnderWrite;

                IndividualDatum contact = accountsFacade.GetUserContactInfoByUserID(Fetch.GetUserCookie( ).UserID);
                this.txtAddress.Text      = contact.DwellingPlace;
                this.txtCompellation.Text = contact.Compellation;
                this.txtEmail.Text        = contact.EMail;
                this.txtMobilePhone.Text  = contact.MobilePhone;
                this.txtQQ.Text           = contact.QQ;
                this.txtSeatPhone.Text    = contact.SeatPhone;
                this.txtUserNote.Text     = contact.UserNote;
            }

            Themes.Standard.Common_Header sHeader = (Themes.Standard.Common_Header) this.FindControl("sHeader");
            sHeader.title = "会员中心";
        }
Exemplo n.º 5
0
 public string GetGameIDByUserID(int userID)
 {
     return(accountsFacade.GetUserBaseInfoByUserID(userID) == null ? "0" : accountsFacade.GetUserBaseInfoByUserID(userID).GameID.ToString());
 }