diff --git a/DataBase/版本日志/SGGLDB_2025-04-07-xiaj.sql b/DataBase/版本日志/SGGLDB_2025-04-07-xiaj.sql
index 398bca9..5edbacb 100644
--- a/DataBase/版本日志/SGGLDB_2025-04-07-xiaj.sql
+++ b/DataBase/版本日志/SGGLDB_2025-04-07-xiaj.sql
@@ -142,3 +142,107 @@ set SuperMenu='A6AE443A-66B5-42E3-8BC0-2E6D446E5A7F'
where MenuName like '%ΣԴ%'
GO
+
+
+--1֪ͨ
+IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = 'BE6F2B37-3937-4865-A40F-7E81B922388A')
+BEGIN
+ --֪ͨ
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('BE6F2B37-3937-4865-A40F-7E81B922388A','֪ͨ','',5,'0','Menu_SJTB',0,0,1)
+END
+GO
+update Sys_Menu
+set MenuType='Menu_SJTB' , SuperMenu='BE6F2B37-3937-4865-A40F-7E81B922388A'
+where MenuType='Menu_Notice'
+GO
+
+
+
+
+
+--ɫ˵Ȩ
+
+--Ա
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT 'E938AE80-EAB2-4EDF-BBC8-FE3F8B14C2BE', 'Menu_Person', 'Ա',1,'MenuType_S'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = 'E938AE80-EAB2-4EDF-BBC8-FE3F8B14C2BE' AND GroupId='MenuType_S');
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT '8FBB9221-CD12-4FCE-BE79-A08FB4314A4E', 'Menu_Person', 'Ա',1,'MenuType_P'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = '8FBB9221-CD12-4FCE-BE79-A08FB4314A4E' AND GroupId='MenuType_P');
+GO
+
+--ȫ
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT 'C9216A7E-17CF-4A7D-AFCD-E3529179AD1F', 'Menu_HSSE', 'ȫ',2,'MenuType_S'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = 'C9216A7E-17CF-4A7D-AFCD-E3529179AD1F' AND GroupId='MenuType_S');
+UPDATE Sys_Const SET SortIndex=2 WHERE ConstText = 'ȫ' AND GroupId='MenuType_P'
+GO
+
+--ж
+UPDATE Sys_Const SET SortIndex=3 WHERE ConstText = 'ж' AND GroupId in ('MenuType_S','MenuType_P')
+GO
+
+--
+UPDATE Sys_Const SET SortIndex=4 WHERE ConstText = '' AND GroupId='MenuType_P'
+GO
+
+--Դ
+UPDATE Sys_Const SET SortIndex=4 WHERE ConstText = 'Դ' AND GroupId='MenuType_S'
+GO
+--豸
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT '358B5285-C816-46E0-BF5B-EA9FD034DA71', 'Menu_Device', '豸',6,'MenuType_S'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = '358B5285-C816-46E0-BF5B-EA9FD034DA71' AND GroupId='MenuType_S');
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT '39ED2EBB-106F-42AD-B547-31C6D32C419D', 'Menu_Device', '豸',5,'MenuType_P'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = '39ED2EBB-106F-42AD-B547-31C6D32C419D' AND GroupId='MenuType_P');
+GO
+--
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT 'CF6A55DD-C4D4-411C-AB88-A956AA147533', 'Menu_CQMS', '',5,'MenuType_S'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = 'CF6A55DD-C4D4-411C-AB88-A956AA147533' AND GroupId='MenuType_S');
+GO
+--Ƶ
+UPDATE Sys_Const SET SortIndex=6 WHERE ConstText = 'Ƶ' AND GroupId='MenuType_P'
+GO
+
+--豸
+UPDATE Sys_Const SET SortIndex=6,ConstValue='Menu_Device' WHERE ConstText = '豸' AND GroupId='MenuType_S'
+UPDATE Sys_Const SET SortIndex=5,ConstValue='Menu_Device' WHERE ConstText = '豸' AND GroupId='MenuType_P'
+GO
+--豸
+UPDATE Sys_Const SET SortIndex=5 WHERE ConstText = '' AND GroupId='MenuType_S'
+GO
+--Ƶ
+INSERT INTO Sys_Const(ID,ConstValue,ConstText,SortIndex,GroupId)
+SELECT '5E30E46E-4872-47EA-BC46-6C3F3C880F8D', 'Menu_DigitalSite', 'Ƶ',7,'MenuType_S'
+WHERE NOT EXISTS (SELECT 1 FROM Sys_Const WHERE ID = '5E30E46E-4872-47EA-BC46-6C3F3C880F8D' AND GroupId='MenuType_S');
+GO
+
+--ͬ
+UPDATE Sys_Const SET SortIndex=8,ConstText = 'ݹ' WHERE ConstText = 'ͬ' AND GroupId='MenuType_S'
+GO
+
+
+
+
+--Ŀ
+UPDATE Sys_Const SET SortIndex=99 WHERE ConstText = 'Ŀ' AND GroupId='MenuType_P'
+GO
+--ϵͳ
+UPDATE Sys_Const SET SortIndex=99 WHERE ConstText = 'ϵͳ' AND GroupId='MenuType_S'
+GO
+--ӹ
+DELETE Sys_Const WHERE ConstText = 'ӹ' AND GroupId='MenuType_P'
+--ֳ
+DELETE Sys_Const WHERE ConstText = 'ֳ' AND GroupId='MenuType_P'
+--ʵҵ
+DELETE Sys_Const WHERE ConstText = 'ʵҵ' AND GroupId='MenuType_P'
+--Ŀ
+DELETE Sys_Const WHERE ConstText = 'Ŀ' AND GroupId='MenuType_S'
+--ۺϹ
+DELETE Sys_Const WHERE ConstText = 'ۺϹ' AND GroupId='MenuType_S'
+--֪ͨ
+DELETE Sys_Const WHERE ConstText = '֪ͨ' AND GroupId='MenuType_S'
+GO
diff --git a/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj b/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj
index 5ed2cb5..5133352 100644
--- a/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1510,15 +1510,12 @@
-
-
-
@@ -14730,13 +14727,6 @@
indexProject_three.aspx
-
- indexProject_ZJ.aspx
- ASPXCodeBehind
-
-
- indexProject_ZJ.aspx
-
index_three.aspx
ASPXCodeBehind
@@ -14744,13 +14734,6 @@
index_three.aspx
-
- index_ZJ.aspx
- ASPXCodeBehind
-
-
- index_ZJ.aspx
-
indexProjectShiYe.aspx
ASPXCodeBehind
@@ -14786,13 +14769,6 @@
index_gateway.aspx
-
- Login_ZJ.aspx
- ASPXCodeBehind
-
-
- Login_ZJ.aspx
-
Login.aspx
ASPXCodeBehind
diff --git a/SUBQHSE/FineUIPro.Web/LogOff.aspx.cs b/SUBQHSE/FineUIPro.Web/LogOff.aspx.cs
index aba8344..e6cfdd5 100644
--- a/SUBQHSE/FineUIPro.Web/LogOff.aspx.cs
+++ b/SUBQHSE/FineUIPro.Web/LogOff.aspx.cs
@@ -14,19 +14,8 @@ namespace FineUIPro.Web
{
if (!IsPostBack)
{
-
- string loginform = ConfigurationManager.AppSettings["LoginForm"];
- if (string.IsNullOrEmpty(loginform))
- {
- HyperLink1.NavigateUrl = "Login.aspx";
- return;
- }
- else
- {
- HyperLink1.NavigateUrl = "Login_ZJ.aspx";
-
- return;
- }
+ HyperLink1.NavigateUrl = "Login.aspx";
+ return;
}
}
}
diff --git a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx b/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx
deleted file mode 100644
index 9425022..0000000
--- a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx
+++ /dev/null
@@ -1,335 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="Login_ZJ.aspx.cs" Inherits="FineUIPro.Web.Login_ZJ" %>
-
-
-
-
-
-
- QHSE管理数字化平台V2.0
-
-
-
-
-
-
-

-
-
-
-

-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.cs b/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.cs
deleted file mode 100644
index f1fbcf9..0000000
--- a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.cs
+++ /dev/null
@@ -1,315 +0,0 @@
-using BLL;
-using BLL.Oauth;
-using Model;
-using System;
-using System.Linq;
-using System.Text;
-using System.Web;
-using System.Web.Security;
-using System.Web.Services;
-using System.Web.UI;
-
-namespace FineUIPro.Web
-{
- public partial class Login_ZJ : PageBase
- {
-
- #region
- ///
- /// 是否本部
- ///
- public string IsOffice
- {
- get
- {
- return (string)ViewState["IsOffice"];
- }
- set
- {
- ViewState["IsOffice"] = value;
- }
- }
- ///
- /// 菜单类型
- ///
- public string MenuType
- {
- get
- {
- return (string)ViewState["MenuType"];
- }
- set
- {
- ViewState["MenuType"] = value;
- }
- }
- ///
- /// 项目ID
- ///
- public string ProjectId
- {
- get
- {
- return (string)ViewState["ProjectId"];
- }
- set
- {
- ViewState["ProjectId"] = value;
- }
- }
- #endregion
-
- #region 页面加载
- ///
- /// 页面加载
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- bool IsSSO = false;
- Sys_User user=new Sys_User();
- string message="";
- IOauthService IoauthService;
-
- var ThisUnit = CommonService.GetIsThisUnit();
- string token;
- switch (ThisUnit.CollCropCode)
- {
- case "913201001349030968":
-
- token = Request.Params["token"];
- if (string.IsNullOrEmpty(token)) return;
- IsSSO = true;
- IoauthService = new OauthService_14HJ();
- user = IoauthService.GetLoginInfo(token, ref message);
- break;
- }
-
- if (IsSSO )
- {
- if (message != "")
- {
- Response.Write("");
- }
- else
- {
- if (LoginService.UserLogOn(user.Account, true, this.Page))
- {
- string url = "";
- //Funs.SystemUrl = "http://" + HttpContext.Current.Request.Url.Host + ":" + HttpContext.Current.Request.Url.Port + "/cncechsse/";
- BLL.LogService.AddLog(this.CurrUser.UserId, "登录成功!");
- if (this.CurrUser.IsOffice==true) //本部人员跳转到公司级
- {
- url = "index_ZJ.aspx";
- }
- else //非本部人员跳转到项目级
- {
- if (string.IsNullOrEmpty(this.CurrUser.LastProjectId))
- {
- var puser = Funs.DB.Project_ProjectUser.FirstOrDefault(x => x.UserId == this.CurrUser.UserId);
- if (puser != null)
- {
- this.CurrUser.LastProjectId = puser.ProjectId;
- }
- }
-
- this.CurrUser.LoginProjectId = this.CurrUser.LastProjectId;
- //// 项目菜单
- url = "indexProject_ZJ.aspx?projectId=" + this.CurrUser.LastProjectId;
- }
-
-
- HttpContext.Current.Response.Write("");
- HttpContext.Current.Response.End();
- // Response.Redirect( url);
- // Server.Execute( url);
- // Response.Write("");
- }
- }
-
- }
-
- }
- }
- #endregion
-
- [WebMethod]
- public static string LoginPost(string user, string pwd,string rbSys)
- {
- return new Login_ZJ().btnLogin_Click(user, pwd, rbSys);
- }
-
- private string btnLogin_Click(string user, string pwd, string rbSys)
- {
-
- string url = "";
- string error = "";
- var sysUser = Funs.DB.Sys_User.FirstOrDefault(x => x.Account == user && x.IsPost == true);
- if (sysUser != null)
- {
- if (sysUser.LockTime.HasValue && sysUser.LockTime.Value > DateTime.Now)
- {
- error = "账号锁定10分钟!";
- }
- else
- {
- if (sysUser.Password.ToUpper() != Funs.EncryptionPassword(pwd).ToUpper())
- {
- if (sysUser.LockTime.HasValue && sysUser.LockTime.Value < DateTime.Now)
- {
- sysUser.ErrorTimes = null;
- sysUser.LockTime = null;
-
- UserService.UpdateSysUser(sysUser);
- }
- if (sysUser.ErrorTimes.HasValue && sysUser.ErrorTimes.Value >= 4)
- {
- sysUser.ErrorTimes = sysUser.ErrorTimes.Value + 1;
- sysUser.LockTime = DateTime.Now.AddMinutes(10);
- UserService.UpdateSysUser(sysUser);
- error = "账号锁定10分钟!";
- }
- else if (sysUser.ErrorTimes.HasValue)
- {
- sysUser.ErrorTimes = sysUser.ErrorTimes.Value + 1;
- UserService.UpdateSysUser(sysUser);
- // error = "密码错误" + sysUser.ErrorTimes + "次,超过5次将锁定10分钟!";
- error = "用户名或密码错误,请重新输入";
-
- }
- else
- {
- sysUser.ErrorTimes = 1;
- UserService.UpdateSysUser(sysUser);
- error = "用户名或密码错误,请重新输入";
- // error = "密码错误" + sysUser.ErrorTimes + "次,超过5次将锁定10分钟!";
- }
-
- }
- else
- {
- sysUser.ErrorTimes = null;
- sysUser.LockTime = null;
-
- UserService.UpdateSysUser(sysUser);
-
- string accValue = HttpUtility.UrlEncode(user);
- FormsAuthentication.SetAuthCookie(accValue, false);
- Page.Session[SessionName.CurrUser] = sysUser;
- // var user = x.First();
-
- this.CurrUser.RoleType = RoleService.GetRoleTypeByRoleId(this.CurrUser.RoleId);
- //if (!this.CurrUser.LastIsOffice.HasValue)
- //{
- // this.CurrUser.LastIsOffice = this.CurrUser.IsOffice;
- //}
- //if (this.CurrUser.LastIsOffice == true)
- //{
- // this.CurrUser.LoginProjectId = null;
- // ////本部菜单
- // url = "index_ZJ.aspx";
- //}
- //else
- {
-
- if (string.IsNullOrEmpty(this.CurrUser.LastProjectId))
- {
- var puser = Funs.DB.Project_ProjectUser.FirstOrDefault(x => x.UserId == this.CurrUser.UserId);
- if (puser != null)
- {
- this.CurrUser.LastProjectId = puser.ProjectId;
- }
- }
-
- this.CurrUser.LoginProjectId = this.CurrUser.LastProjectId;
- //// 项目菜单
- url = "indexProject_ZJ.aspx?projectId=" + this.CurrUser.LastProjectId;
- }
-
- LogService.AddSys_Log(this.CurrUser, this.CurrUser.UserName, this.CurrUser.UserId, Const.UserMenuId, Const.BtnLogin);
- }
- }
- }
- else
- {
- error = "用户名或密码错误,请重新输入!";
- }
-
- //if (LoginService.UserLogOn(user, pwd, true, this.Page))
- //{
-
- //}
- if (rbSys == "工程")
- {
- this.SysType = "GONGCHENG";
- }
- else if (rbSys == "公司/分公司")
- {
- url = "index_ZJ.aspx";
- this.SysType = "GONGCHENG";
- }
- else if (rbSys == "实业")
- {
- this.SysType = "SHIYE";
-
- url = "indexProjectShiYe.aspx";
- //Dictionary parameters = new Dictionary();
- //parameters.Add("user", user);
- //parameters.Add("pwd", pwd);
- //parameters.Add("rbSys", rbSys);
- //string res = CommonService.sendHttp("https://lygcgs.com.cn/subqhse/Login.aspx/LoginPost", JsonConvert.SerializeObject(parameters), "post");
- //var resDic = JsonConvert.DeserializeObject>(res);
- //url = "https://lygcgs.com.cn/subqhse/" + resDic["d"];
-
- }
- if (string.IsNullOrEmpty(error))
- {
- return url;
- }
- else
- {
- return error;
- }
- }
- private string ConvertToHex(byte[] binary)
- {
- return binary.Aggregate(
- new StringBuilder(),
- (acc, c) => acc.AppendFormat("{0:x2}", c),
- acc => acc.ToString());
- }
-
-
- [WebMethod]
- public static string ResetPost(string accout, string name, string idcard)
- {
-
- Model.Sys_User sysUser = (from y in Funs.DB.Sys_User
- where y.Account == accout && y.IsPost == true
- select y).FirstOrDefault();
- if (sysUser ==null)
- {
- return "用户名或密码错误,请重新输入";
- }
- else if (string.IsNullOrEmpty(sysUser.IdentityCard))
- {
- return "用户名或密码错误,请重新输入";
- }
- else if(name != sysUser.UserName)
- {
- return "用户名或密码错误,请重新输入";
- }
- else if (idcard != sysUser.IdentityCard)
- {
- return "用户名或密码错误,请重新输入";
- }
- sysUser.RawPassword = "cncec." + idcard.Substring(idcard.Length - 4, 4);
- sysUser.Password = Funs.EncryptionPassword(sysUser.RawPassword);
- Funs.DB.SubmitChanges();
- return "重置成功,默认密码是 cncec+'.'+身份证号码后四位,请登录";
- }
- }
-}
diff --git a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.designer.cs
deleted file mode 100644
index 4755139..0000000
--- a/SUBQHSE/FineUIPro.Web/Login_ZJ.aspx.designer.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web
-{
-
-
- public partial class Login_ZJ
- {
- }
-}
diff --git a/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs b/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs
index f838296..f2da203 100644
--- a/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs
+++ b/SUBQHSE/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx.cs
@@ -15,12 +15,6 @@ namespace FineUIPro.Web.ZHGL.Information
{
if (!IsPostBack)
{
- string loginform = ConfigurationManager.AppSettings["LoginForm"];
- if (!string.IsNullOrWhiteSpace(loginform) &&loginform == "Login_ZJ.aspx")
- {//判断是否是重机客户,如果是重定向页面
- Response.Redirect("MillionsMonthlyReportZJ.aspx");
- }
-
BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, false);
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false);
diff --git a/SUBQHSE/FineUIPro.Web/common/PageBase.cs b/SUBQHSE/FineUIPro.Web/common/PageBase.cs
index 21f97db..0e1c492 100644
--- a/SUBQHSE/FineUIPro.Web/common/PageBase.cs
+++ b/SUBQHSE/FineUIPro.Web/common/PageBase.cs
@@ -142,21 +142,9 @@ namespace FineUIPro.Web
if (!IsDataShowPage && !IsSafeReferer)
{
- string loginform = ConfigurationManager.AppSettings["LoginForm"];
- if (string.IsNullOrEmpty(loginform))
- {
- if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login.aspx")
- Response.Redirect("~/Login.aspx");
- return;
- }
- else
- {
- if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login_ZJ.aspx")
- Response.Redirect("~/Login_ZJ.aspx");
- return;
- }
-
-
+ if (this.Page.Request.AppRelativeCurrentExecutionFilePath != "~/Login.aspx")
+ Response.Redirect("~/Login.aspx");
+ return;
}
}
diff --git a/SUBQHSE/FineUIPro.Web/index.aspx b/SUBQHSE/FineUIPro.Web/index.aspx
index 1246278..d59fbf9 100644
--- a/SUBQHSE/FineUIPro.Web/index.aspx
+++ b/SUBQHSE/FineUIPro.Web/index.aspx
@@ -257,18 +257,6 @@
EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" OnClientClick="parent.removeActiveTab();">
- <%--
-
-
- --%>
- <%--
-
-
-
-
- --%>
diff --git a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx b/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx
deleted file mode 100644
index 34fb327..0000000
--- a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx
+++ /dev/null
@@ -1,1103 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="indexProject_ZJ.aspx.cs" Inherits="FineUIPro.Web.indexProject_ZJ" Async="true" AsyncTimeout="360000" %>
-
-
-
-
-
-
-
- QHSE管理数字化平台
-
- <%--
-
-
-
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.cs b/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.cs
deleted file mode 100644
index 83a7874..0000000
--- a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.cs
+++ /dev/null
@@ -1,760 +0,0 @@
-using BLL;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Text;
-using System.Threading;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Xml;
-
-namespace FineUIPro.Web
-{
- public partial class indexProject_ZJ : PageBase
- {
- #region Page_Init
-
- private string _menuType = "menu";
- public string cssMessage = "";
- private int _examplesCount = 0;
- private string _searchText = "";
- #region Page_Init
-
- ///
- ///
- ///
- ///
- ///
- protected void Page_Init(object sender, EventArgs e)
- {
- ////////////////////////////////////////////////////////////////
- string themeStr = Request.QueryString["theme"];
- string menuStr = Request.QueryString["menu"];
- if (!String.IsNullOrEmpty(themeStr) || !String.IsNullOrEmpty(menuStr))
- {
- if (!String.IsNullOrEmpty(themeStr))
- {
- HttpCookie cookie = new HttpCookie("Theme_Pro", "Cupertino")
- {
- Expires = DateTime.Now.AddYears(1)
- };
- Response.Cookies.Add(cookie);
- }
-
- if (!String.IsNullOrEmpty(menuStr))
- {
- HttpCookie cookie = new HttpCookie("MenuStyle_Pro", menuStr)
- {
- Expires = DateTime.Now.AddYears(1)
- };
- Response.Cookies.Add(cookie);
- }
-
- PageContext.Redirect("~/default.aspx");
- return;
- }
- ////////////////////////////////////////////////////////////////
- if (!IsPostBack)
- {
-
- }
- }
-
- #endregion
-
- #region InitTreeMenu
- ///
- ///
- ///
- ///
- private Tree InitTreeMenu()
- {
- Tree treeMenu = new Tree
- {
- ID = "treeMenu",
- ShowBorder = false,
- ShowHeader = false,
- EnableIcons = true,
- AutoScroll = true,
- EnableSingleClickExpand = true
- };
- if (_menuType == "tree" || _menuType == "tree_minimode")
- {
- treeMenu.HideHScrollbar = true;
- treeMenu.ExpanderToRight = true;
- treeMenu.HeaderStyle = true;
- if (_menuType == "tree_minimode")
- {
- treeMenu.MiniMode = true;
- treeMenu.MiniModePopWidth = Unit.Pixel(300);
-
- leftPanelToolGear.Hidden = true;
- leftPanelToolCollapse.IconFont = IconFont.ChevronCircleRight;
- leftPanel.Width = Unit.Pixel(50);
- leftPanel.CssClass = "minimodeinside";
- }
- }
-
- leftPanel.Items.Add(treeMenu);
- XmlDocument doc = XmlDataSource1.GetXmlDocument();
- ResolveXmlDocument(doc);
- // 绑定 XML 数据源到树控件
- treeMenu.NodeDataBound += treeMenu_NodeDataBound;
- treeMenu.PreNodeDataBound += treeMenu_PreNodeDataBound;
- treeMenu.DataSource = doc;
- treeMenu.DataBind();
- return treeMenu;
- }
-
- #endregion
-
- #region ResolveXmlDocument
-
- private void ResolveXmlDocument(XmlDocument doc)
- {
- ResolveXmlDocument(doc, doc.DocumentElement.ChildNodes);
- }
-
- private int ResolveXmlDocument(XmlDocument doc, XmlNodeList nodes)
- {
- // nodes 中渲染到页面上的节点个数
- int nodeVisibleCount = 0;
- foreach (XmlNode node in nodes)
- {
- // Only process Xml elements (ignore comments, etc)
- if (node.NodeType == XmlNodeType.Element)
- {
- XmlAttribute removedAttr;
- // 是否叶子节点
- bool isLeaf = node.ChildNodes.Count == 0;
- // 所有过滤条件均是对叶子节点而言,而是否显示目录,要看是否存在叶子节点
- if (isLeaf)
- {
- // 存在搜索关键字
- if (!String.IsNullOrEmpty(_searchText))
- {
- XmlAttribute textAttr = node.Attributes["Text"];
- if (textAttr != null)
- {
- if (!textAttr.Value.Contains(_searchText) && isLeaf)
- {
- removedAttr = doc.CreateAttribute("Removed");
- removedAttr.Value = "true";
- node.Attributes.Append(removedAttr);
- }
- }
- }
- }
-
- // 存在子节点
- if (!isLeaf)
- {
- // 递归
- int childVisibleCount = ResolveXmlDocument(doc, node.ChildNodes);
-
- if (childVisibleCount == 0)
- {
- removedAttr = doc.CreateAttribute("Removed");
- removedAttr.Value = "true";
-
- node.Attributes.Append(removedAttr);
- }
- }
-
- removedAttr = node.Attributes["Removed"];
- if (removedAttr == null)
- {
- nodeVisibleCount++;
- }
- }
- }
-
- return nodeVisibleCount;
- }
- #endregion
-
- #region treeMenu_NodeDataBound treeMenu_PreNodeDataBound
- ///
- /// 树节点的绑定后事件
- ///
- ///
- ///
- private void treeMenu_NodeDataBound(object sender, TreeNodeEventArgs e)
- {
- // 是否叶子节点
- bool isLeaf = e.XmlNode.ChildNodes.Count == 0;
- if (!String.IsNullOrEmpty(e.Node.Text))
- {
- if (GetIsNewHtml(e.XmlNode))
- {
- e.Node.Text = "" + e.Node.Text + "";
- if (e.Node.ParentNode != null)
- {
- e.Node.ParentNode.Text = "" + e.Node.ParentNode.Text + "";
- }
- }
- }
-
- if (isLeaf)
- {
- // 设置节点的提示信息
- e.Node.ToolTip = e.Node.Text;
- }
- // 如果仅显示最新示例,或者存在搜索文本
- if (!String.IsNullOrEmpty(_searchText))
- {
- e.Node.Expanded = true;
- }
- }
-
- ///
- /// 树节点的预绑定事件
- ///
- ///
- ///
- private void treeMenu_PreNodeDataBound(object sender, TreePreNodeEventArgs e)
- {
- // 是否叶子节点
- bool isLeaf = e.XmlNode.ChildNodes.Count == 0;
- XmlAttribute removedAttr = e.XmlNode.Attributes["Removed"];
- if (removedAttr != null)
- {
- e.Cancelled = true;
- }
-
- bool isShow = GetIsPowerMenu(e.XmlNode);
- if (!isShow)
- {
- e.Cancelled = true;
- }
-
- if (isLeaf && !e.Cancelled)
- {
- _examplesCount++;
- }
- }
- #endregion
-
- #region 该节点是否显示
- ///
- /// 该节点是否显示
- ///
- ///
- ///
- private bool GetIsPowerMenu(XmlNode node)
- {
- bool result = true;
- XmlAttribute isNewAttr = node.Attributes["id"];
- if (isNewAttr != null)
- {
- result = BLL.CommonService.ReturnMenuByUserIdMenuId(this.CurrUser.UserId, isNewAttr.Value.ToString(), this.CurrUser.LoginProjectId);
- }
-
- return result;
- }
- #endregion
-
- #region GetIsNewHtml 是否必填项
- ///
- /// 是否必填项
- ///
- ///
- ///
- private bool GetIsNewHtml(XmlNode xmlNode)
- {
- bool isShow = false;
- if (xmlNode.Attributes["Text"].Value.Contains("*"))
- {
- isShow = true;
- }
- else
- {
-
- }
-
- return isShow;
- }
- #endregion
-
- #endregion
-
- #region Page_Load
- ///
- /// 加载页面
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- var getDataList = Funs.DB.Sp_Main_GetToDoItems(this.CurrUser.UserId, CurrUser.LoginProjectId);
- if (getDataList.Count() == 0)
- {
- cssMessage = "style='display: none'";
- }
- if (!IsPostBack)
- {
- string needProjectId = "";
- if (!string.IsNullOrEmpty(Request.Params["projectId"]))
- {
- needProjectId = Request.Params["projectId"];
- }
- BLL.UnitService.InitBranchUnitDropDownList(this.drpUnit,false);
- Funs.FineUIPleaseSelect(this.drpUnit,"请选择所属单位");
- //if (this.CurrUser.UnitId != null)
- //{
- // this.drpUnit.SelectedValue = this.CurrUser.UnitId;
- //}
- if (!string.IsNullOrEmpty(Request.Params["state"]))
- {
- this.ckState.SelectedValue = Request.Params["state"];
- }
- BindGrid(this.CurrUser.UserId, needProjectId, "GONGCHENG", this.ckState.SelectedValue, this.txtProjectName.Text.Trim(), this.drpUnit.SelectedValue);
- if (!string.IsNullOrEmpty(Request.Params["projectId"]))
- {
- this.drpProject.Value = Request.Params["projectId"];
- }
- else if (this.Grid1.Rows.Count() > 0)
- {
- this.drpProject.Value = this.Grid1.Rows[0].DataKeys[0].ToString();
- }
-
- if (!string.IsNullOrEmpty(Request.Params["projectName"]))
- {
- var getproject = ProjectService.GetProjectByProjectName(Request.Params["projectName"]);
- if (getproject != null)
- {
- this.drpProject.Value = getproject.ProjectId;
- }
- }
- if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
- {
- this.drpProject.Value = this.CurrUser.LoginProjectId;
- }
- if (!string.IsNullOrEmpty(needProjectId))
- {
- this.drpProject.Value = needProjectId;
- }
- var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value);
- if (project != null && !string.IsNullOrEmpty(project.ProjectCode))
- {
- this.hfProjectCode.Text = project.ProjectCode;
- }
- if (project != null && !string.IsNullOrEmpty(project.MonitorPW))
- {
- this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW);
- }
- else
- {
- this.hfMonitorPW.Text = "";
- }
- if (CurrUser.UserId == Const.hfnbdId)
- {
- var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault();
- if (sysSet17 != null)
- {
- this.hfProjectCode.Text = "admin";
- this.hfMonitorPW.Text = Funs.EncryptionPassword(sysSet17.SetValue);
- }
- }
- this.MenuSwitchMethod(Request.Params["menuType"]);
- this.InitMenuStyleButton();
- this.InitMenuModeButton();
- this.InitLangMenuButton();
- this.userName.InnerText = this.CurrUser.UserName;
- }
- }
-
- #region 项目下拉框绑定数据
- ///
- /// 绑定数据
- ///
- private void BindGrid(string userId, string projectId, string ProjectAttribute, string projectState, string projectName, string unitId)
- {
- var projectlist = BLL.ProjectService.GetUnEndProjectByUserIdDropDownList(userId, projectId, ProjectAttribute, projectState, projectName);
- if (unitId != BLL.Const._Null)
- {
- projectlist = projectlist.Where(x => x.UnitId == unitId).ToList();
- }
- foreach (var item in projectlist)
- {
- item.ProjectAddress = BLL.UnitService.GetUnitCodeByUnitId(item.UnitId);
- item.UnitId = BLL.UnitService.GetUnitNameByUnitId(item.UnitId);
-
- }
- projectlist= projectlist.OrderBy(x => x.ProjectAddress).ToList();
- Grid1.RecordCount = projectlist.Count;
- Grid1.DataSource = projectlist;
- Grid1.DataBind();
- }
- #endregion
-
- ///
- /// Http (GET/POST)
- ///
- /// 请求URL
- /// 请求参数
- /// 请求方法
- /// 响应内容
- static string sendPost(string url, IDictionary parameters, string method)
- {
- if (method.ToLower() == "post")
- {
- HttpWebRequest req = null;
- HttpWebResponse rsp = null;
- System.IO.Stream reqStream = null;
- try
- {
- req = (HttpWebRequest)WebRequest.Create(url);
- req.Method = method;
- req.KeepAlive = false;
- req.ProtocolVersion = HttpVersion.Version10;
- req.Timeout = 5000;
- req.ContentType = "application/x-www-form-urlencoded;charset=utf-8";
- byte[] postData = Encoding.UTF8.GetBytes(BuildQuery(parameters, "utf8"));
- reqStream = req.GetRequestStream();
- reqStream.Write(postData, 0, postData.Length);
- rsp = (HttpWebResponse)req.GetResponse();
- Encoding encoding = Encoding.GetEncoding(rsp.CharacterSet);
- return GetResponseAsString(rsp, encoding);
- }
- catch (Exception ex)
- {
- return ex.Message;
- }
- finally
- {
- if (reqStream != null) reqStream.Close();
- if (rsp != null) rsp.Close();
- }
- }
- else
- {
- //创建请求
- HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url + "?" + BuildQuery(parameters, "utf8"));
-
- //GET请求
- request.Method = "GET";
- request.ReadWriteTimeout = 5000;
- request.ContentType = "text/html;charset=UTF-8";
- HttpWebResponse response = (HttpWebResponse)request.GetResponse();
- Stream myResponseStream = response.GetResponseStream();
- StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8"));
-
- //返回内容
- string retString = myStreamReader.ReadToEnd();
- return retString;
- }
- }
-
- ///
- /// 组装普通文本请求参数。
- ///
- /// Key-Value形式请求参数字典
- /// URL编码后的请求数据
- static string BuildQuery(IDictionary parameters, string encode)
- {
- StringBuilder postData = new StringBuilder();
- bool hasParam = false;
- IEnumerator> dem = parameters.GetEnumerator();
- while (dem.MoveNext())
- {
- string name = dem.Current.Key;
- string value = dem.Current.Value;
- // 忽略参数名或参数值为空的参数
- if (!string.IsNullOrEmpty(name))//&& !string.IsNullOrEmpty(value)
- {
- if (hasParam)
- {
- postData.Append("&");
- }
- postData.Append(name);
- postData.Append("=");
- if (encode == "gb2312")
- {
- postData.Append(HttpUtility.UrlEncode(value, Encoding.GetEncoding("gb2312")));
- }
- else if (encode == "utf8")
- {
- postData.Append(HttpUtility.UrlEncode(value, Encoding.UTF8));
- }
- else
- {
- postData.Append(value);
- }
- hasParam = true;
- }
- }
- return postData.ToString();
- }
-
- ///
- /// 把响应流转换为文本。
- ///
- /// 响应流对象
- /// 编码方式
- /// 响应文本
- static string GetResponseAsString(HttpWebResponse rsp, Encoding encoding)
- {
- System.IO.Stream stream = null;
- StreamReader reader = null;
- try
- {
- // 以字符流的方式读取HTTP响应
- stream = rsp.GetResponseStream();
- reader = new StreamReader(stream, encoding);
- return reader.ReadToEnd();
- }
- finally
- {
- // 释放资源
- if (reader != null) reader.Close();
- if (stream != null) stream.Close();
- if (rsp != null) rsp.Close();
- }
- }
-
- ///
- /// 菜单树样式
- ///
- private void InitMenuStyleButton()
- {
- string menuStyle = "tree";
- HttpCookie menuStyleCookie = Request.Cookies["MenuStyle_Pro"];
- if (menuStyleCookie != null)
- {
- menuStyle = menuStyleCookie.Value;
- }
-
- SetSelectedMenuItem(MenuStyle, menuStyle);
- }
-
- ///
- ///
- ///
- private void InitMenuModeButton()
- {
- string menuMode = "normal";
- HttpCookie menuModeCookie = Request.Cookies["MenuMode_Pro"];
- if (menuModeCookie != null)
- {
- menuMode = menuModeCookie.Value;
- }
-
- SetSelectedMenuItem(MenuMode, menuMode);
- }
-
- ///
- /// 加载菜单语言
- ///
- private void InitLangMenuButton()
- {
- string language = "zh_CN";
- HttpCookie languageCookie = Request.Cookies["Language_Pro"];
- if (languageCookie != null)
- {
- language = languageCookie.Value;
- }
-
- SetSelectedMenuItem(MenuLang, language);
- }
-
- ///
- /// 过滤菜单
- ///
- ///
- ///
- private void SetSelectedMenuItem(MenuButton menuButton, string selectedDataTag)
- {
- foreach (MenuItem item in menuButton.Menu.Items)
- {
- MenuCheckBox checkBox = (item as MenuCheckBox);
- if (checkBox != null)
- {
- checkBox.Checked = checkBox.AttributeDataTag == selectedDataTag;
- }
- }
- }
- #endregion
-
- protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
- {
- this.Tab1.RefreshIFrame();
- this.CurrUser.LoginProjectId = this.drpProject.Value;
- PageContext.RegisterStartupScript("parent.removeActiveTab();");
- MenuSwitchMethod(this.CurrUser.LastMenuType);
-
- var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value);
- if (project != null && !string.IsNullOrEmpty(project.ProjectCode))
- {
- this.hfProjectCode.Text = project.ProjectCode;
- }
- if (project != null && !string.IsNullOrEmpty(project.MonitorPW))
- {
- this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW);
- }
- else
- {
- this.hfMonitorPW.Text = "";
- }
-
- if (CurrUser.UserId==Const.hfnbdId)
- {
- var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault();
- if (sysSet17 != null)
- {
- this.hfProjectCode.Text = "admin";
- this.hfMonitorPW.Text = Funs.EncryptionPassword(sysSet17.SetValue);
- }
- }
- }
-
- ///
- /// 功能模块切换方法
- ///
- ///
- protected void MenuSwitchMethod(string type)
- {
- this.CurrUser.LoginProjectId = this.drpProject.Value;
- this.XmlDataSource1.DataFile = "common/Menu_Personal.xml";
- this.leftPanel.Hidden = true;
- this.Tab1.IFrameUrl = "~/common/mainProject_ZJ.aspx";
- this.CurrUser.LastProjectId = null;
- if (!string.IsNullOrEmpty(type))
- {
- this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
- if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_ToDo) //
- {
- this.XmlDataSource1.DataFile = "common/" + type + ".xml";
- this.leftPanel.Hidden = false;
- /*this.Tab1.IFrameUrl = "~/common/main" + type + ".aspx";
- if (type == Const.Menu_Personal)
- {
- this.Tab1.IFrameUrl = "~/Personal/PersonalInfo.aspx";
- }
- else if (type == Const.Menu_ProjectSet)
- {
- this.Tab1.IFrameUrl = "~/ProjectData/ProjectSetView.aspx";
- }
- else if (type == Const.Menu_ToDo)
- {
- this.Tab1.IFrameUrl = "~/common/todolist.aspx";
- }*/
- }
- else
- {
- Alert.ShowInParent("您没有此模块操作权限,请联系管理员授权!", MessageBoxIcon.Warning);
- return;
- }
- }
-
- this.CurrUser.LastMenuType = type;
- UserService.UpdateLastUserInfo(this.CurrUser.UserId, type, false, this.CurrUser.LoginProjectId);
- InitTreeMenu();
- }
-
- protected void btnHome_Click(object sender, EventArgs e)
- {
-
- if (string.IsNullOrEmpty(this.CurrUser.LastProjectId) && CommonService.IsMainOrSubUnitOrAdmin(this.CurrUser.UserId))
- {
- UserService.UpdateLastUserInfo(this.CurrUser.UserId, this.CurrUser.LastMenuType, false, this.CurrUser.LoginProjectId);
- this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
- PageContext.Redirect("~/index_ZJ.aspx", "_top");
- }
- else
- {
- this.MenuSwitchMethod(string.Empty);
- }
- }
-
- protected void btnPerson_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_Person);
- }
-
- protected void btnHSSE_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_HSSE);
- }
-
- protected void btnCQMS_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_CQMS);
- }
-
-
-
- protected void btnEnvironmentalPro_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_EnvironmentalPro);
- }
-
- protected void btnDevice_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_Device);
- }
- protected void btnZHGL_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_ZHGL);
- }
-
- protected void btnSJTB_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_SJTB);
- }
- protected void btnSysSet_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_P_SysSet);
- }
- protected void btnPersonal_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.Menu_Personal);
- }
-
- protected string VideoURL
- {
- get
- {
- if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite, this.drpProject.Value))
- {
- string video_Url = string.Empty;
- var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault();
- if (sysSet16 != null)
- {
- video_Url = sysSet16.SetValue;
- }
- return video_Url;
- }
- else
- {
- return null;
- }
- }
- }
- protected void btnPDigData_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.Menu_PDigData);
- }
-
- #region 查询
- ///
- /// 查询
- ///
- ///
- ///
- protected void TextBox_TextChanged(object sender, EventArgs e)
- {
- string needProjectId = "";
- if (!string.IsNullOrEmpty(Request.Params["projectId"]))
- {
- needProjectId = Request.Params["projectId"];
- }
- BindGrid(this.CurrUser.UserId, needProjectId, "GONGCHENG", this.ckState.SelectedValue, this.txtProjectName.Text.Trim(), this.drpUnit.SelectedValue);
- //this.drpProject.SelectedIndex = 0;
- this.CurrUser.LoginProjectId = this.drpProject.Value;
- }
- #endregion
- }
-}
diff --git a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.designer.cs
deleted file mode 100644
index cbdcda8..0000000
--- a/SUBQHSE/FineUIPro.Web/indexProject_ZJ.aspx.designer.cs
+++ /dev/null
@@ -1,494 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web
-{
-
-
- public partial class indexProject_ZJ
- {
-
- ///
- /// Head1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
- ///
- /// form1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// PageManager1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.PageManager PageManager1;
-
- ///
- /// Panel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel Panel1;
-
- ///
- /// topPanel 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ContentPanel topPanel;
-
- ///
- /// ContentPanel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ContentPanel ContentPanel1;
-
- ///
- /// divWeather 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWeather;
-
- ///
- /// spDate 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl spDate;
-
- ///
- /// userName 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl userName;
-
- ///
- /// btnPersonal 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnPersonal;
-
- ///
- /// btnHome 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnHome;
-
- ///
- /// drpProject 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownBox drpProject;
-
- ///
- /// Grid1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Grid Grid1;
-
- ///
- /// Toolbar2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Toolbar Toolbar2;
-
- ///
- /// txtProjectName 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtProjectName;
-
- ///
- /// drpUnit 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownList drpUnit;
-
- ///
- /// ckState 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.RadioButtonList ckState;
-
- ///
- /// Div1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl Div1;
-
- ///
- /// btnPerson 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnPerson;
-
- ///
- /// btnDigData 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnDigData;
-
- ///
- /// btnCQMS 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnCQMS;
-
- ///
- /// btnEnvironmentalPro 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnEnvironmentalPro;
-
- ///
- /// btnDevice 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnDevice;
-
- ///
- /// btnZHGL 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnZHGL;
-
- ///
- /// btnSJTB 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSJTB;
-
- ///
- /// btnSet 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSet;
-
- ///
- /// leftPanel 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel leftPanel;
-
- ///
- /// leftPanelToolCollapse 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool leftPanelToolCollapse;
-
- ///
- /// leftPanelToolGear 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool leftPanelToolGear;
-
- ///
- /// btnExpandAll 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnExpandAll;
-
- ///
- /// btnCollapseAll 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnCollapseAll;
-
- ///
- /// MenuSeparator1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuSeparator MenuSeparator1;
-
- ///
- /// MenuMode 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuMode;
-
- ///
- /// MenuModeNormal 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeNormal;
-
- ///
- /// MenuModeCompact 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeCompact;
-
- ///
- /// MenuModeLarge 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeLarge;
-
- ///
- /// MenuStyle 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuStyle;
-
- ///
- /// MenuStyleTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStyleTree;
-
- ///
- /// MenuStyleMiniModeTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree;
-
- ///
- /// MenuStylePlainTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStylePlainTree;
-
- ///
- /// MenuLang 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuLang;
-
- ///
- /// MenuLangZHCN 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuLangZHCN;
-
- ///
- /// mainTabStrip 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TabStrip mainTabStrip;
-
- ///
- /// Tab1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tab Tab1;
-
- ///
- /// toolRefresh 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolRefresh;
-
- ///
- /// toolNewWindow 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolNewWindow;
-
- ///
- /// toolMaximize 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolMaximize;
-
- ///
- /// toolSignOut 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolSignOut;
-
- ///
- /// windowCustomQuery 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window windowCustomQuery;
-
- ///
- /// XmlDataSource1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1;
-
- ///
- /// SimpleForm1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.SimpleForm SimpleForm1;
-
- ///
- /// hfProjectCode 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hfProjectCode;
-
- ///
- /// hfMonitorPW 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.HiddenField hfMonitorPW;
- }
-}
diff --git a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx b/SUBQHSE/FineUIPro.Web/index_ZJ.aspx
deleted file mode 100644
index d02d6f7..0000000
--- a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx
+++ /dev/null
@@ -1,735 +0,0 @@
-<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index_ZJ.aspx.cs" Inherits="FineUIPro.Web.index_ZJ" %>
-
-
-
-
-
-
-
- QHSE管理数字化平台
-
- <%--
-
-
-
- --%>
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.cs b/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.cs
deleted file mode 100644
index 40701a2..0000000
--- a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.cs
+++ /dev/null
@@ -1,526 +0,0 @@
-using BLL;
-using System;
-using System.Web;
-using System.Web.UI.WebControls;
-using System.Xml;
-using System.Linq;
-using System.Configuration;
-
-namespace FineUIPro.Web
-{
- public partial class index_ZJ : PageBase
- {
- #region Page_Init
-
- private string _menuType = "menu";
- private int _examplesCount = 0;
- private string _searchText = "";
- #region Page_Init
-
- ///
- ///
- ///
- ///
- ///
- protected void Page_Init(object sender, EventArgs e)
- {
- ////////////////////////////////////////////////////////////////
- string themeStr = Request.QueryString["theme"];
- string menuStr = Request.QueryString["menu"];
- if (!String.IsNullOrEmpty(themeStr) || !String.IsNullOrEmpty(menuStr))
- {
- if (!String.IsNullOrEmpty(themeStr))
- {
- HttpCookie cookie = new HttpCookie("Theme_Pro", "Cupertino")
- {
- Expires = DateTime.Now.AddYears(1)
- };
- Response.Cookies.Add(cookie);
- }
-
- if (!String.IsNullOrEmpty(menuStr))
- {
- HttpCookie cookie = new HttpCookie("MenuStyle_Pro", menuStr)
- {
- Expires = DateTime.Now.AddYears(1)
- };
- Response.Cookies.Add(cookie);
- }
-
- PageContext.Redirect("~/default.aspx");
- return;
- }
- ////////////////////////////////////////////////////////////////
-
- if (!IsPostBack)
- {
- this.CurrUser.LoginProjectId = null;
- }
- }
-
- #endregion
-
- #region InitTreeMenu
- ///
- ///
- ///
- ///
- private Tree InitTreeMenu()
- {
- Tree treeMenu = new Tree
- {
- ID = "treeMenu",
- ShowBorder = false,
- ShowHeader = false,
- EnableIcons = true,
- AutoScroll = true,
- EnableSingleClickExpand = true
- };
- if (_menuType == "tree" || _menuType == "tree_minimode")
- {
- treeMenu.HideHScrollbar = true;
- treeMenu.ExpanderToRight = true;
- treeMenu.HeaderStyle = true;
- if (_menuType == "tree_minimode")
- {
- treeMenu.MiniMode = true;
- treeMenu.MiniModePopWidth = Unit.Pixel(300);
-
- leftPanelToolGear.Hidden = true;
- leftPanelToolCollapse.IconFont = IconFont.ChevronCircleRight;
- leftPanel.Width = Unit.Pixel(50);
- leftPanel.CssClass = "minimodeinside";
- }
- }
-
- leftPanel.Items.Add(treeMenu);
- XmlDocument doc = XmlDataSource1.GetXmlDocument();
- ResolveXmlDocument(doc);
- // 绑定 XML 数据源到树控件
- treeMenu.NodeDataBound += treeMenu_NodeDataBound;
- treeMenu.PreNodeDataBound += treeMenu_PreNodeDataBound;
- treeMenu.DataSource = doc;
- treeMenu.DataBind();
- return treeMenu;
- }
-
- #endregion
-
- #region ResolveXmlDocument
-
- private void ResolveXmlDocument(XmlDocument doc)
- {
- ResolveXmlDocument(doc, doc.DocumentElement.ChildNodes);
- }
-
- private int ResolveXmlDocument(XmlDocument doc, XmlNodeList nodes)
- {
- // nodes 中渲染到页面上的节点个数
- int nodeVisibleCount = 0;
- foreach (XmlNode node in nodes)
- {
- // Only process Xml elements (ignore comments, etc)
- if (node.NodeType == XmlNodeType.Element)
- {
- XmlAttribute removedAttr;
- // 是否叶子节点
- bool isLeaf = node.ChildNodes.Count == 0;
- // 所有过滤条件均是对叶子节点而言,而是否显示目录,要看是否存在叶子节点
- if (isLeaf)
- {
- // 存在搜索关键字
- if (!String.IsNullOrEmpty(_searchText))
- {
- XmlAttribute textAttr = node.Attributes["Text"];
- if (textAttr != null)
- {
- if (!textAttr.Value.Contains(_searchText) && isLeaf)
- {
- removedAttr = doc.CreateAttribute("Removed");
- removedAttr.Value = "true";
- node.Attributes.Append(removedAttr);
- }
- }
- }
- }
-
- // 存在子节点
- if (!isLeaf)
- {
- // 递归
- int childVisibleCount = ResolveXmlDocument(doc, node.ChildNodes);
-
- if (childVisibleCount == 0)
- {
- removedAttr = doc.CreateAttribute("Removed");
- removedAttr.Value = "true";
-
- node.Attributes.Append(removedAttr);
- }
- }
-
- removedAttr = node.Attributes["Removed"];
- if (removedAttr == null)
- {
- nodeVisibleCount++;
- }
- }
- }
-
- return nodeVisibleCount;
- }
- #endregion
-
- #region treeMenu_NodeDataBound treeMenu_PreNodeDataBound
- ///
- /// 树节点的绑定后事件
- ///
- ///
- ///
- private void treeMenu_NodeDataBound(object sender, TreeNodeEventArgs e)
- {
- // 是否叶子节点
- bool isLeaf = e.XmlNode.ChildNodes.Count == 0;
- if (!String.IsNullOrEmpty(e.Node.Text))
- {
- if (GetIsNewHtml(e.XmlNode))
- {
- e.Node.Text = "" + e.Node.Text + "";
- if (e.Node.ParentNode != null)
- {
- e.Node.ParentNode.Text = "" + e.Node.ParentNode.Text + "";
- }
- }
- }
-
- if (isLeaf)
- {
- // 设置节点的提示信息
- e.Node.ToolTip = e.Node.Text;
- }
- // 如果仅显示最新示例,或者存在搜索文本
- if (!String.IsNullOrEmpty(_searchText))
- {
- e.Node.Expanded = true;
- }
- }
-
- ///
- /// 树节点的预绑定事件
- ///
- ///
- ///
- private void treeMenu_PreNodeDataBound(object sender, TreePreNodeEventArgs e)
- {
- // 是否叶子节点
- bool isLeaf = e.XmlNode.ChildNodes.Count == 0;
- XmlAttribute removedAttr = e.XmlNode.Attributes["Removed"];
- if (removedAttr != null)
- {
- e.Cancelled = true;
- }
-
- bool isShow = GetIsPowerMenu(e.XmlNode);
- if (!isShow)
- {
- e.Cancelled = true;
- }
-
- if (isLeaf && !e.Cancelled)
- {
- _examplesCount++;
- }
- }
- #endregion
-
- #region 该节点是否显示
- ///
- /// 该节点是否显示
- ///
- ///
- ///
- private bool GetIsPowerMenu(XmlNode node)
- {
- bool result = true;
- XmlAttribute isNewAttr = node.Attributes["id"];
- if (isNewAttr != null)
- {
- result = BLL.CommonService.ReturnMenuByUserIdMenuId(this.CurrUser.UserId, isNewAttr.Value.ToString(), this.CurrUser.LoginProjectId);
- }
-
- return result;
- }
- #endregion
-
- #region GetIsNewHtml 是否必填项
- ///
- /// 是否必填项
- ///
- ///
- ///
- private bool GetIsNewHtml(XmlNode xmlNode)
- {
- bool isShow = false;
- if (xmlNode.Attributes["Text"].Value.Contains("*"))
- {
- isShow = true;
- }
- else
- {
-
- }
-
- return isShow;
- }
- #endregion
-
- #endregion
-
- #region Page_Load
- ///
- /// 加载页面
- ///
- ///
- ///
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- this.MenuSwitchMethod(Request.Params["menuType"]);
- this.InitMenuStyleButton();
- this.InitMenuModeButton();
- this.InitLangMenuButton();
- this.btnRetweet.Hidden = true;
- if (this.CurrUser.UserId == Const.hfnbdId)
- {
- this.btnRetweet.Hidden = false;
- }
- this.userName.InnerText= this.CurrUser.UserName;
- this.spDate.InnerText = DateTime.Now.ToLongDateString().ToString()+" "+WeekDayService.CaculateWeekDayT(DateTime.Now);
-
- var getW = WeatherService.GetWeather(null);
- if (getW != null)
- {
- divWeather.InnerHtml = getW.WeatherRef + " " + getW.CurrTem+ "°C";
- }
-
- if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && this.CurrUser.UnitId != CommonService.GetThisUnitId())
- {
- this.divTitle.InnerHtml = "中化重机数字化项目管理平台(分公司级)";
- }
- else
- {
- this.divTitle.InnerHtml = "中化重机数字化项目管理平台(公司级)";
- }
- }
- }
-
-
- ///
- /// 菜单树样式
- ///
- private void InitMenuStyleButton()
- {
- string menuStyle = "tree";
- HttpCookie menuStyleCookie = Request.Cookies["MenuStyle_Pro"];
- if (menuStyleCookie != null)
- {
- menuStyle = menuStyleCookie.Value;
- }
-
- SetSelectedMenuItem(MenuStyle, menuStyle);
- }
-
- ///
- ///
- ///
- private void InitMenuModeButton()
- {
- string menuMode = "normal";
- HttpCookie menuModeCookie = Request.Cookies["MenuMode_Pro"];
- if (menuModeCookie != null)
- {
- menuMode = menuModeCookie.Value;
- }
-
- SetSelectedMenuItem(MenuMode, menuMode);
- }
-
- ///
- /// 加载菜单语言
- ///
- private void InitLangMenuButton()
- {
- string language = "zh_CN";
- HttpCookie languageCookie = Request.Cookies["Language_Pro"];
- if (languageCookie != null)
- {
- language = languageCookie.Value;
- }
-
- SetSelectedMenuItem(MenuLang, language);
- }
-
- ///
- /// 过滤菜单
- ///
- ///
- ///
- private void SetSelectedMenuItem(MenuButton menuButton, string selectedDataTag)
- {
- foreach (MenuItem item in menuButton.Menu.Items)
- {
- MenuCheckBox checkBox = (item as MenuCheckBox);
- if (checkBox != null)
- {
- checkBox.Checked = checkBox.AttributeDataTag == selectedDataTag;
- }
- }
- }
- #endregion
-
- ///
- /// 功能模块切换方法
- ///
- ///
- protected void MenuSwitchMethod(string type)
- {
- if (!string.IsNullOrEmpty(type))
- {
- if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal) //|| type == Const.Menu_ToDo
- {
- this.leftPanel.Hidden = false;
- this.XmlDataSource1.DataFile = "common/" + type + ".xml";
- this.Tab1.IFrameUrl = "";
- if (type == Const.Menu_Project)
- {
- this.Tab1.IFrameUrl = "ProjectData/ProjectList.aspx";
- }
- }
- else
- {
- Alert.ShowInParent("您没有此模块操作权限,请联系管理员授权!", MessageBoxIcon.Warning);
- return;
- }
- }
- else
- {
- this.leftPanel.Hidden = true;
- this.XmlDataSource1.DataFile = "common/Menu_Personal.xml";
- this.Tab1.IFrameUrl = "~/common/mainMenu_ZJ.aspx";
- }
-
- UserService.UpdateLastUserInfo(this.CurrUser.UserId, type, true, string.Empty);
- InitTreeMenu();
- }
-
- protected void btnHome_Click(object sender, EventArgs e)
- {
- if (this.leftPanel.Hidden)
- {
- var currUser = Funs.DB.Sys_User.FirstOrDefault(x => x.UserId == this.CurrUser.UserId);
- if (SysType== "SHIYE")
- {
- string url = "~/indexProjectShiYe.aspx?projectId=" + this.CurrUser.LastProjectId;
- UserService.UpdateLastUserInfo(this.CurrUser.UserId, Const.Menu_SHIYE, false, this.CurrUser.LastProjectId);
- PageContext.Redirect(url, "_top");
- }
- else
- {
- string url = "~/indexProject_ZJ.aspx?projectId=" + this.CurrUser.LastProjectId;
- UserService.UpdateLastUserInfo(this.CurrUser.UserId, null, false, this.CurrUser.LastProjectId);
- PageContext.Redirect(url, "_top");
- }
- }
- else
- {
- this.MenuSwitchMethod(string.Empty);
- }
- }
-
- protected void btnPerson_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_Person);
- }
-
- protected void btnHSSE_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_HSSE);
- }
-
- protected void btnCQMS_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_CQMS);
- }
-
-
-
- protected void btnEnvironmentalPro_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_EnvironmentalPro);
- }
-
- protected void btnDevice_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_Device);
- }
- protected void btnZHGL_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_ZHGL);
- }
-
- protected void btnSJTB_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_SJTB);
- }
- protected void btnSysSet_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.ZJ_Menu_S_SysSet);
- }
- protected void btnPersonal_Click(object sender, EventArgs e)
- {
- this.MenuSwitchMethod(Const.Menu_Personal);
- }
- protected string VideoURL
- {
- get
- {
- string video_Url = string.Empty;
- var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault();
- if (sysSet16 != null)
- {
- video_Url = sysSet16.SetValue;
- }
- var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault();
- if (sysSet17 != null)
- {
- return video_Url + "#/screen?username=admin&password=" + Funs.EncryptionPassword(sysSet17.SetValue);
- }
- else
- {
- return "";
- }
- }
- }
- ///
- /// 重新生成系统菜单
- ///
- ///
- ///
- protected void btnRetweet_Click(object sender, EventArgs e)
- {
- ////设置菜单
- CreateMenuXML.getMenuXML();
- MenuSwitchMethod(string.Empty);
- ShowNotify("菜单刷新完成!", MessageBoxIcon.Success);
- //var users = from x in Funs.DB.Sys_User where x.RawPassword == null || x.RawPassword == "TCC.1234" select x;
- //if (users.Count() > 0)
- //{
- // foreach (var item in users)
- // {
- // BLL.UserService.UpdatePassword(item.UserId);
- // }
- //}
- }
- }
-}
diff --git a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.designer.cs
deleted file mode 100644
index dc51531..0000000
--- a/SUBQHSE/FineUIPro.Web/index_ZJ.aspx.designer.cs
+++ /dev/null
@@ -1,404 +0,0 @@
-//------------------------------------------------------------------------------
-// <自动生成>
-// 此代码由工具生成。
-//
-// 对此文件的更改可能导致不正确的行为,如果
-// 重新生成代码,则所做更改将丢失。
-// 自动生成>
-//------------------------------------------------------------------------------
-
-namespace FineUIPro.Web
-{
-
-
- public partial class index_ZJ
- {
-
- ///
- /// form1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// PageManager1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.PageManager PageManager1;
-
- ///
- /// Panel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel Panel1;
-
- ///
- /// topPanel 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ContentPanel topPanel;
-
- ///
- /// ContentPanel1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.ContentPanel ContentPanel1;
-
- ///
- /// divWeather 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWeather;
-
- ///
- /// spDate 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl spDate;
-
- ///
- /// userName 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl userName;
-
- ///
- /// btnPersonal 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnPersonal;
-
- ///
- /// btnRetweet 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnRetweet;
-
- ///
- /// divTitle 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.HtmlControls.HtmlGenericControl divTitle;
-
- ///
- /// btnHome 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnHome;
-
- ///
- /// btnPerson 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnPerson;
-
- ///
- /// btnDigData 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnDigData;
-
- ///
- /// btnCQMS 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnCQMS;
-
- ///
- /// btnEnvironmentalPro 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnEnvironmentalPro;
-
- ///
- /// btnDevice 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnDevice;
-
- ///
- /// btnZHGL 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnZHGL;
-
- ///
- /// btnSJTB 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSJTB;
-
- ///
- /// btnSet 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Button btnSet;
-
- ///
- /// leftPanel 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Panel leftPanel;
-
- ///
- /// leftPanelToolCollapse 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool leftPanelToolCollapse;
-
- ///
- /// leftPanelToolGear 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool leftPanelToolGear;
-
- ///
- /// btnExpandAll 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnExpandAll;
-
- ///
- /// btnCollapseAll 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton btnCollapseAll;
-
- ///
- /// MenuMode 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuMode;
-
- ///
- /// MenuModeNormal 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeNormal;
-
- ///
- /// MenuModeCompact 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeCompact;
-
- ///
- /// MenuModeLarge 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuModeLarge;
-
- ///
- /// MenuStyle 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuStyle;
-
- ///
- /// MenuStyleTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStyleTree;
-
- ///
- /// MenuStyleMiniModeTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree;
-
- ///
- /// MenuStylePlainTree 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuStylePlainTree;
-
- ///
- /// MenuLang 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuButton MenuLang;
-
- ///
- /// MenuLangZHCN 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.MenuCheckBox MenuLangZHCN;
-
- ///
- /// mainTabStrip 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TabStrip mainTabStrip;
-
- ///
- /// Tab1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tab Tab1;
-
- ///
- /// toolRefresh 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolRefresh;
-
- ///
- /// toolNewWindow 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolNewWindow;
-
- ///
- /// toolMaximize 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolMaximize;
-
- ///
- /// toolSignOut 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Tool toolSignOut;
-
- ///
- /// windowCustomQuery 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.Window windowCustomQuery;
-
- ///
- /// XmlDataSource1 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1;
- }
-}