20250319 翻译
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -25,7 +26,8 @@ namespace FineUIPro.Web
|
||||
{
|
||||
////////////////////////////////////////////////////////////////
|
||||
string themeStr = Request.QueryString["theme"];
|
||||
string menuStr = Request.QueryString["menu"];
|
||||
string menuStr = Request.QueryString["menu"];
|
||||
string https = ConfigurationManager.AppSettings["Https"];
|
||||
if (!String.IsNullOrEmpty(themeStr) || !String.IsNullOrEmpty(menuStr))
|
||||
{
|
||||
if (!String.IsNullOrEmpty(themeStr))
|
||||
@@ -43,6 +45,10 @@ namespace FineUIPro.Web
|
||||
{
|
||||
Expires = DateTime.Now.AddYears(1)
|
||||
};
|
||||
if (https == "true")
|
||||
{
|
||||
cookie.Secure = true;
|
||||
}
|
||||
Response.Cookies.Add(cookie);
|
||||
}
|
||||
|
||||
@@ -323,7 +329,15 @@ namespace FineUIPro.Web
|
||||
this.Tab1.IFrameUrl = "~/common/main2.aspx";
|
||||
this.hdHomePage.Text = "2";
|
||||
}
|
||||
|
||||
if (Request.Cookies["SelectLan"] != null)
|
||||
{
|
||||
HttpCookie lanCookie = Request.Cookies["SelectLan"];
|
||||
if (lanCookie["lan"] != null)
|
||||
{
|
||||
drpSelectLan.SelectedValue = lanCookie["lan"];
|
||||
}
|
||||
}
|
||||
this.lName.Text = BLL.UserService.GetUserNameByUserId(this.CurrUser.UserId);
|
||||
BindGrid(this.ckState.SelectedValue, this.txtProjectName.Text.Trim(), txtProjectCode.Text.Trim());
|
||||
}
|
||||
}
|
||||
@@ -601,5 +615,19 @@ namespace FineUIPro.Web
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
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