//管理员操作视图 public ActionResult AdminSet() { string NK = CookieHelper.GetCookie("NK"); if (NK != "") { ViewBag.NK = NK; DBase_Users model = buBll.GetKouLingModel(); DBase_Users modelResult = new DBase_Users { UserCode = model.UserCode, UserPassword = DESEncrypt.Decrypt(model.UserPassword) }; return(View(modelResult)); } else { return(Content("<div style=\"color:red;font-size:50px;text-align:center;margin-top:5%\">您没有选择年库!请选择年库!</div>", "text/html")); } }