public ActionResult top() { //Bll_System_Menu Menu = new Bll_System_Menu(); //QX.Comm.MenuLocation local = QX.Comm.MenuLocation.TOP; //List<System_Menu> MenuList = Menu.GetMenu(local); //var model = TopInsatance.GetModel(" AND Menu_User='******' "); // ViewData["TopList"] = model != null ? model.Menu_Links : ""; //登录人信息 ViewData["UserName"] = !string.IsNullOrEmpty(SessionConfig.UserName()) ? SessionConfig.UserName() : "1"; ViewData["UserRole"] = !string.IsNullOrEmpty(SessionConfig.Stuff_LoginType()) ? instanceD.GetModel(" and Dict_Code='" + SessionConfig.Stuff_LoginType() + "'").Dict_Name: "2"; ViewData["IP"] = SessionConfig.CurrentIP(); return(View()); }
/// <summary> /// Action操作后处理:日志 /// </summary> /// <param name="filterContext"></param> public void OnActionExecuted(ActionExecutedContext filterContext) { //var f=filterContext.ActionDescriptor.GetParameters(); PlateLog.WriteOp(SessionConfig.UserId(), SessionConfig.UserName(), SessionConfig.CurrentIP(), HttpContext.Current.Request.Url.AbsoluteUri, filterContext.ActionDescriptor.ActionName, PlateLog.LogMessageType.Info, Module, ModuleName); }