20250314 中英文切换
This commit is contained in:
@@ -33,6 +33,7 @@ namespace FineUIPro.Web
|
||||
////////////////////////////////////////////////////////////////
|
||||
string themeStr = Request.QueryString["theme"];
|
||||
string menuStr = Request.QueryString["menu"];
|
||||
string https = ConfigurationManager.AppSettings["Https"];
|
||||
if (!String.IsNullOrEmpty(themeStr) || !String.IsNullOrEmpty(menuStr))
|
||||
{
|
||||
if (!String.IsNullOrEmpty(themeStr))
|
||||
@@ -50,6 +51,10 @@ namespace FineUIPro.Web
|
||||
{
|
||||
Expires = DateTime.Now.AddYears(1)
|
||||
};
|
||||
if (https == "true")
|
||||
{
|
||||
cookie.Secure = true;
|
||||
}
|
||||
Response.Cookies.Add(cookie);
|
||||
}
|
||||
|
||||
@@ -312,6 +317,7 @@ namespace FineUIPro.Web
|
||||
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
}
|
||||
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
|
||||
this.lblName.Text = BLL.UserService.GetUserNameByUserId(this.CurrUser.UserId);
|
||||
this.MenuSwitchMethod(Request.Params["menuType"]);
|
||||
this.InitMenuStyleButton();
|
||||
this.InitMenuModeButton();
|
||||
@@ -341,8 +347,17 @@ namespace FineUIPro.Web
|
||||
this.hfMonitorPW.Text = Funs.EncryptionPassword(sysSet17.SetValue);
|
||||
}
|
||||
}
|
||||
//GetWeather();
|
||||
}
|
||||
//GetWeather();
|
||||
|
||||
if (Request.Cookies["SelectLan"] != null)
|
||||
{
|
||||
HttpCookie lanCookie = Request.Cookies["SelectLan"];
|
||||
if (lanCookie["lan"] != null)
|
||||
{
|
||||
drpSelectLan.SelectedValue = lanCookie["lan"];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void GetWeather()
|
||||
@@ -901,5 +916,19 @@ namespace FineUIPro.Web
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Work/ToDoList.aspx")));
|
||||
}
|
||||
|
||||
protected void drpSelectLan_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string https = ConfigurationManager.AppSettings["Https"];
|
||||
HttpCookie lanCookie = Request.Cookies["SelectLan"];
|
||||
lanCookie["lan"] = drpSelectLan.SelectedValue;
|
||||
lanCookie.Expires = DateTime.Now.AddDays(1);
|
||||
if (https == "true")
|
||||
{
|
||||
lanCookie.Secure = true;
|
||||
}
|
||||
Response.Cookies.Add(lanCookie);
|
||||
Response.Redirect(Request.UrlReferrer.ToString());//刷新当前页面
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user