From 929a0031e26e1f2df4c9eb14b9ebe3a013043d15 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Tue, 15 Apr 2025 20:08:25 +0800 Subject: [PATCH] 1 --- SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj | 8 + SUBQHSE/FineUIPro.Web/indexProjectOld.aspx | 1125 +++++++++++++++++ SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.cs | 798 ++++++++++++ .../indexProjectOld.aspx.designer.cs | 467 +++++++ 4 files changed, 2398 insertions(+) create mode 100644 SUBQHSE/FineUIPro.Web/indexProjectOld.aspx create mode 100644 SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.cs create mode 100644 SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.designer.cs diff --git a/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj b/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj index cd488e1..fad79cd 100644 --- a/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SUBQHSE/FineUIPro.Web/FineUIPro.Web.csproj @@ -1082,6 +1082,7 @@ + @@ -12242,6 +12243,13 @@ indexold.aspx + + indexProjectOld.aspx + ASPXCodeBehind + + + indexProjectOld.aspx + LocationSelect.aspx ASPXCodeBehind diff --git a/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx new file mode 100644 index 0000000..0aed2f9 --- /dev/null +++ b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx @@ -0,0 +1,1125 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="indexProjectOld.aspx.cs" Inherits="FineUIPro.Web.indexProjectOld" Async="true" AsyncTimeout="360000" %> + + + + + + + + QHSE管理数字化平台 + <%-- + + --%> + + + + + + + + + + +
+ + + + + <%--头部 开始--%> + +
+
+
+
+
北京
+
+ 多云 +
+
+
+
+ +
+
+
+
+ QHSE管理数字化平台(项目级) + + +
+
+ + + + + +
+ +
+ +
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • + +
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
+
+
+
+
+ <%--头部 结束--%> +
+ + + <%--自定义展开折叠工具图标--%> + + + + + + + <%--.f-tabstrip-noheader>.f-panel-header--%> + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ + + + diff --git a/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.cs b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.cs new file mode 100644 index 0000000..d1e1782 --- /dev/null +++ b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.cs @@ -0,0 +1,798 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Web; +using System.Web.UI.WebControls; +using System.Xml; + +namespace FineUIPro.Web +{ + public partial class indexProjectOld : 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.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"; + this.Tab1.IFrameUrl = "~/Workflow/WorkflowTodo.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 if (type == Const.Menu_PThreeYearAction) + { + this.Tab1.IFrameUrl = ""; + } + else if (type == Const.Menu_Person) + { + this.Tab1.IFrameUrl = ""; + } + else if (type == Const.Menu_Device) + { + this.Tab1.IFrameUrl = ""; + } + } + 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.aspx", "_top"); + } + else + { + this.MenuSwitchMethod(string.Empty); + } + } + + protected void btnPerson_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_Person); + } + + + protected void btnCQMS_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_CQMS); + } + + protected void btnPersonal_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_Personal); + } + + protected void btnProjectSet_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_ProjectSet); + } + protected void btnDevice_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_Device); + } + + protected void btnHSSE_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_HSSE); + } + + protected void btnHJGL_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_HJGL); + } + protected void btnToDoItem_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_ToDo); + } + + protected void btnVideo_Click(object sender, EventArgs e) + { + //this.MenuSwitchMethod(Const.Menu_PZHGL); + + this.leftPanel.Hidden = true; + this.Tab1.IFrameUrl = "~/Video/Video.aspx"; + + } + protected void btnThreeYearAction_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_PThreeYearAction); + } + protected void btnDigitalSite_Click(object sender, EventArgs e) + { + 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; + } + var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId); + string url = video_Url + "#/screen?username="+ project.ProjectCode+"&password="+project.MonitorPW; + Response.Write(""); + // this.MenuSwitchMethod(Const.Menu_DigitalSite); + } + } + + 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/indexProjectOld.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.designer.cs new file mode 100644 index 0000000..7a04b85 --- /dev/null +++ b/SUBQHSE/FineUIPro.Web/indexProjectOld.aspx.designer.cs @@ -0,0 +1,467 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web +{ + + + public partial class indexProjectOld + { + + /// + /// 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; + + /// + /// btnSysSet 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSysSet; + + /// + /// 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; + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + + /// + /// btnCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCQMS; + + /// + /// btnDevice 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDevice; + + /// + /// btnDigitalSite 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDigitalSite; + + /// + /// 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; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm1; + + /// + /// hfProjectCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfProjectCode; + + /// + /// hfMonitorPW 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfMonitorPW; + } +}