protected void Page_Load(object sender, EventArgs e) { siteUrl = SiteConfig.SiteInfo.SiteUrl; if (siteUrl.Substring(siteUrl.Length - 1, 1) == "/") { siteUrl = siteUrl.Substring(0, siteUrl.Length - 1); } info = buser.GetLogin(); UserNameLb.Text = info.UserName; uName.Text = info.UserName; double GradeVar = info.UserExp; M_PointGrounp pointmod = pointBll.SelectPintGroup((int)info.UserExp); if (string.IsNullOrEmpty(pointmod.GroupName)) { UserLvLb.Text = ""; } else { UserLvLb.Text = "[" + pointmod.GroupName + "]"; } LvIcon_Span.Attributes["class"] = pointmod.ImgUrl; GroupPic gp = new GroupPic(); M_Uinfo binfo = buser.GetUserBaseByuserid(info.UserID); UserAddressLb.Text = binfo.Address; UserSignLb.Text = binfo.Sign; UserRegTimeLb.Text = info.RegTime.ToString(); UserYeLb.Text = info.Purse.ToString(); UserJfLb.Text = info.UserExp.ToString(); UserJbLb.Text = info.SilverCoin.ToString(); imgUserPic.ImageUrl = getproimg(binfo.UserFace); MyBind(); MyDataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { M_UserInfo mu = buser.GetLogin(false); this.LblUser.Text = mu.UserName; this.LblEmail.Text = mu.Email; this.LblGroup.Text = bgp.GetByID(mu.GroupID).GroupName; this.LblJoinTime.Text = mu.JoinTime.ToString(); this.LblRegTime.Text = mu.RegTime.ToString(); this.LblLoginTimes.Text = mu.LoginTimes.ToString(); this.LblLastLogin.Text = mu.LastLoginTimes.ToString(); this.LblLastIP.Text = IPScaner.IPLocation(mu.LastLoginIP); this.LblLastModify.Text = (mu.LastPwdChangeTime == mu.RegTime) ? "" : mu.LastPwdChangeTime.ToString(); this.LblLastLock.Text = (mu.LastLockTime == mu.RegTime) ? "" : mu.LastLockTime.ToString(); this.Purse_L.Text = mu.Purse.ToString(); this.Point_L.Text = mu.UserExp.ToString(); Sicon_L.Text = mu.SilverCoin.ToString(); UserPoint_L.Text = mu.UserPoint.ToString(); this.LblboffExp.Text = mu.boffExp.ToString(); this.LblConsumeExp.Text = mu.ConsumeExp.ToString(); this.DummyPurse_L.Text = mu.DummyPurse.ToString(); M_PointGrounp pointmod = pointBll.SelectPintGroup(mu.UserExp); gradeTxt.Text = ""; if (pointmod != null) { gradeTxt.Text = pointmod.GroupName; LvIcon_Span.Attributes["class"] = pointmod.ImgUrl; } if (DataConvert.CLng(mu.ParentUserID) > 0) { M_UserInfo usinfo = buser.GetSelect(Convert.ToInt32(mu.ParentUserID)); LblParentUserID.Text = string.IsNullOrEmpty(usinfo.UserName) ? "" : usinfo.UserName; } int UserModelID = DataConverter.CLng(bgp.GetGroupModel(mu.GroupID)); if (UserModelID > 0) { GroupModelField_Li.Text = Fll.InputallHtml(UserModelID, 0, new ModelConfig() { ValueDT = bmodel.SelUserModelField(UserModelID, mu.UserID) }); } } }
public ActionResult Index() { if (!B_User.CheckIsLogged(Request.RawUrl)) { return(null); } M_UserInfo mu = buser.GetLogin(); if (!B_User.CheckUserStatus(mu, ref err)) { function.WriteErrMsg(err); return(null); } B_PointGrounp pgBll = new B_PointGrounp(); B_Search shBll = new B_Search(); M_Uinfo basemu = buser.GetUserBaseByuserid(mu.UserID); //-------------------------------------------------- DataTable dt = shBll.SelByUserGroup(mu.GroupID); string userapptlp = "<div class='col-lg-2 col-md-3 col-sm-4 col-xs-4 padding10'><div class='user_menu'><a target='@target' href='@fileUrl'>@ico<br/>@name</a></div></div>"; string onthertlp = "<li><a target='@target' href='@fileUrl'>@ico<span>@name</span></a></li>"; string userhtml = ""; string ontherhtml = ""; for (int i = 0; i < dt.Rows.Count; i++) { string targetlink = GetLinkTarget(dt.Rows[i]["OpenType"].ToString()); if (DataConverter.CLng(dt.Rows[i]["EliteLevel"]) == 1)//抽出推荐应用 { userhtml += ReplaceData(userapptlp, dt.Rows[i]).Replace("@target", targetlink); continue; } else { ontherhtml += ReplaceData(onthertlp, dt.Rows[i]).Replace("@target", targetlink); } } //--------------------- ViewBag.userhtml = MvcHtmlString.Create(userhtml); ViewBag.ontherhtml = MvcHtmlString.Create(ontherhtml); ViewBag.pgMod = pgBll.SelectPintGroup((int)mu.UserExp); ViewBag.basemu = basemu; return(View(mu)); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { M_UserInfo uinfo = buser.GetLogin(false); this.LblUser.Text = uinfo.UserName; this.LblEmail.Text = uinfo.Email; this.LblGroup.Text = bgp.GetByID(uinfo.GroupID).GroupName; this.LblJoinTime.Text = uinfo.JoinTime.ToString(); this.LblRegTime.Text = uinfo.RegTime.ToString(); this.LblLoginTimes.Text = uinfo.LoginTimes.ToString(); this.LblLastLogin.Text = uinfo.LastLoginTimes.ToString(); this.LblLastIP.Text = uinfo.LastLoginIP; this.LblLastModify.Text = (uinfo.LastPwdChangeTime == uinfo.RegTime) ? "" : uinfo.LastPwdChangeTime.ToString(); this.LblLastLock.Text = (uinfo.LastLockTime == uinfo.RegTime) ? "" : uinfo.LastLockTime.ToString(); this.Purse_L.Text = uinfo.Purse.ToString(); this.Point_L.Text = uinfo.UserExp.ToString(); Sicon_L.Text = uinfo.SilverCoin.ToString(); UserPoint_L.Text = uinfo.UserPoint.ToString(); this.LblboffExp.Text = uinfo.boffExp.ToString(); this.LblConsumeExp.Text = uinfo.ConsumeExp.ToString(); this.DummyPurse_L.Text = uinfo.DummyPurse.ToString(); M_PointGrounp pointmod = pointBll.SelectPintGroup(uinfo.UserExp); gradeTxt.Text = ""; if (pointmod != null) { gradeTxt.Text = pointmod.GroupName; LvIcon_Span.Attributes["class"] = pointmod.ImgUrl; } if (DataConvert.CLng(uinfo.ParentUserID) > 0) { M_UserInfo usinfo = buser.GetSelect(Convert.ToInt32(uinfo.ParentUserID)); LblParentUserID.Text = string.IsNullOrEmpty(uinfo.UserName) ? "" : uinfo.UserName; } int UserModelID = DataConverter.CLng(bgp.GetGroupModel(uinfo.GroupID)); if (UserModelID > 0) { GroupModelField_Li.Text = Fll.GetUpdateHtmlUser(UserModelID, 0, bmodel.SelUserModelField(UserModelID, uinfo.UserID)); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { siteUrl = SiteConfig.SiteInfo.SiteUrl; if (siteUrl.Substring(siteUrl.Length - 1, 1) == "/") { siteUrl = siteUrl.Substring(0, siteUrl.Length - 1); } info = buser.GetLogin(); UserNameLb.Text = info.UserName; //uName.Text = info.UserName; double GradeVar = info.UserExp; M_PointGrounp pointmod = pointBll.SelectPintGroup((int)info.UserExp); if (string.IsNullOrEmpty(pointmod.GroupName)) { UserLvLb.Text = ""; } else { UserLvLb.Text = "[" + pointmod.GroupName + "]"; } LvIcon_Li.Text = StringHelper.GetItemIcon(pointmod.ImgUrl); GroupPic gp = new GroupPic(); M_Uinfo binfo = buser.GetUserBaseByuserid(info.UserID); //if (string.IsNullOrEmpty(binfo.Mobile)) // mobile_yan.Visible = true; UserAddressLb.Text = binfo.Address; UserSignLb.Text = binfo.Sign; UserRegTimeLb.Text = info.RegTime.ToString(); UserYeLb.Text = info.Purse.ToString(); UserJfLb.Text = info.UserExp.ToString(); UserJbLb.Text = info.SilverCoin.ToString(); imgUserPic.ImageUrl = getproimg(info.UserFace); MyBind(); } }
public ActionResult Index() { ViewBag.gpMod = gpBll.SelReturnModel(mu.GroupID); ViewBag.pointMod = pointBll.SelectPintGroup(mu.UserExp); return(View()); }