20250319 翻译

This commit is contained in:
2025-03-19 15:02:56 +08:00
parent 94b3b15b35
commit 15bbe21c67
18 changed files with 3900 additions and 618 deletions
+30 -2
View File
@@ -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());//刷新当前页面
}
}
}