public override void Render() { PropertyBag["isLogin"] = this.isLogin; UserService us = RailsContext.GetService <UserService>(); U_UserInfo u = Session["logonUser"] as U_UserInfo; PropertyBag["newMsgCount"] = us.MessageBll.GetNewMsgCount(u.UserId); base.Render(); }
public override void Render() { PropertyBag["userInfo"] = this.userInfo; if (this.userInfo != null) { UserService us = RailsContext.GetService <UserService>(); U_UserInfo u = Session["logonUser"] as U_UserInfo; PropertyBag["newMsgCount"] = us.MessageBll.GetNewMsgCount(u.UserId); //账户余额 PropertyBag["accountBalance"] = us.MAccountBll.GetByUserId(u.UserId).Amount; } if (this.headType == 1) { base.Render(); } else { RenderView("docHead"); } }
public override void Render() { PropertyBag[this.showCurNavFlag] = true; UserService us = RailsContext.GetService <UserService>(); U_UserInfo u = Session["logonUser"] as U_UserInfo; Hashtable p = new Hashtable(); p.Add("RecieverId", u.UserId); p.Add("Mtype", (int)Model.Enums.MessageType.Message); p.Add("IsRead", 0); int unReadMsgCount = us.MessageBll.GetCount(p); PropertyBag["unReadMsgCount"] = unReadMsgCount; // p.Clear(); p.Add("RecieverId", u.UserId); p.Add("Mtype", (int)Model.Enums.MessageType.Inform); p.Add("IsRead", 0); p.Add("RecieveDeleteFlag", 0); int unReadInformCount = us.MessageBll.GetCount(p); PropertyBag["unReadInformCount"] = unReadInformCount; base.Render(); }
public override void Render() { Service.SystemService sysService = RailsContext.GetService <Service.SystemService>(); PropertyBag["friendLinks"] = sysService.SFriendLinkBll.GetList(); base.Render(); }