public ActionResult Index() { ViewData["contextPath"] = Parameter.VIRTURE_DIRECT; string language = UtilRequest.getCookieValue(Request, "UserSettings", "language"); if (language == null) { language = "zh-cn"; } ViewData["lang"] = language; return(this.View("logon")); }
public ActionResult Index() { GetRootDirect(); string language = UtilRequest.getCookieValue(Request, "UserSettings", "language"); if (language == null) { language = "zh-cn"; } StSystemConfig sysCfg = new stsyscfgBll().GetSystemSetting(); Parameter.CURRENT_SYSTEM_CONFIG = sysCfg; this.ViewData["sysCfg"] = JavaScriptConvert.SerializeObject(Parameter.CURRENT_SYSTEM_CONFIG); Parameter.CURRENT_USER_OPEN_MODE = "Normal"; if (sysCfg.ScSBAD == "Y") { if (User.Identity.Name.ToString().Equals("")) { return(this.RedirectToAction("Index", "Error")); } if (this.HttpContext.Session[Constant.SESSION_CURRENT_USER] == null) { this.HttpContext.Session[Constant.SESSION_CURRENT_USER] = User.Identity.Name.ToString(); //get current AD user } } else { if (this.HttpContext.Session[Constant.SESSION_CURRENT_USER] == null) { return(this.RedirectToAction("Index", "Logon")); } } if (this.HttpContext.Session[Constant.SESSION_AUTHORIZATION] == null) { this.HttpContext.Session[Constant.SESSION_AUTHORIZATION] = new AuthorizationBll().GetAuthorization(Function.GetCurrentUser(), Parameter.APPLICATION_NAME);; this.HttpContext.Session[Constant.SESSION_CURRENT_STAFF] = ((AuthorizationMdl)this.HttpContext.Session[Constant.SESSION_AUTHORIZATION]).User.sfid; } this.HttpContext.Session[Constant.SESSION_CURRENT_MUF] = new MenuConfigBll().getMUFForSession(); ViewData["lang"] = language; ViewData["contextPath"] = Parameter.VIRTURE_DIRECT; ViewData["currentEnvironment"] = Common.ConfigReader.getEnvironmentName(); this.render(); return(View("Index")); }
public ActionResult Index(string msg) { //string msg = this.ReadFromRequest("msg"); ViewData["contextPath"] = Parameter.VIRTURE_DIRECT; string language = UtilRequest.getCookieValue(Request, "UserSettings", "language"); if (language == null) { language = "zh-cn"; } ViewData["lang"] = language; ViewData["config"] = "{msg:\"" + msg.EscapeHtml() + "\"}"; return(this.View("Error")); }
public ActionResult Timeout() { //string msg = this.ReadFromRequest("msg"); string msg = HRMSRes.ResourceManager.GetString("Public_Message_SessionTimeOut"); ViewData["contextPath"] = Parameter.VIRTURE_DIRECT; string language = UtilRequest.getCookieValue(Request, "UserSettings", "language"); if (language == null) { language = "zh-cn"; } ViewData["lang"] = language; ViewData["config"] = "{msg:\"" + msg.EscapeHtml() + "\"}"; return(this.View("Error")); }