public ActionResult Main(string url) { Session.Clear(); var ua = new UA(currentUser.userId); ViewData["url"] = string.IsNullOrEmpty(url) ? "" : SomeUtils.MyUrlDecoder(url); ViewData["powers"] = ua.GetUserPowers(); ViewData["username"] = currentUser.realName; ViewData["depName"] = ua.GetUserDepartmentName(); ViewData["copName"] = currentAccount.Equals("ele") ? "信利电子有限公司" : "信利仪器/工业有限公司"; return(View()); }