From 023e3d33cf98f792b8dfb9419d70274cf5ad8f66 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Wed, 9 Apr 2025 19:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=85=AC=E5=8F=B8=E7=BA=A7?= =?UTF-8?q?=E5=88=AB=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CNCCG/HSSE/Check/SafetyOfficerCheck.aspx | 202 +++++------ .../HSSE/Check/SafetyOfficerCheck.aspx.cs | 60 +++- .../Check/SafetyOfficerCheck.aspx.designer.cs | 36 ++ .../ZJ/HSSE/Hazard/HazardInfo.aspx | 234 +++++++------ .../ZJ/HSSE/Hazard/HazardInfo.aspx.cs | 35 +- .../HSSE/Hazard/HazardInfo.aspx.designer.cs | 36 ++ .../ZJ/HSSE/Hazard/HazardList.aspx | 232 +++++++------ .../ZJ/HSSE/Hazard/HazardList.aspx.cs | 36 +- .../HSSE/Hazard/HazardList.aspx.designer.cs | 36 ++ .../HJGL/HotProcessHard/HardTrustEdit.aspx.cs | 2 +- .../HSSE/ActionPlan/ActionPlanList.aspx | 203 +++++------ .../HSSE/ActionPlan/ActionPlanList.aspx.cs | 103 +++--- .../ActionPlanList.aspx.designer.cs | 90 +++-- .../HSSE/ActionPlan/CompanyManageRule.aspx | 171 +++++----- .../HSSE/ActionPlan/CompanyManageRule.aspx.cs | 59 +++- .../CompanyManageRule.aspx.designer.cs | 92 +++-- .../HSSE/ActionPlan/ManagerRule.aspx | 260 ++++++++------- .../HSSE/ActionPlan/ManagerRule.aspx.cs | 75 ++++- .../ActionPlan/ManagerRule.aspx.designer.cs | 96 ++++-- .../HSSE/ActionPlan/ManagerRuleList.aspx | 214 ++++++------ .../HSSE/ActionPlan/ManagerRuleList.aspx.cs | 52 ++- .../ManagerRuleList.aspx.designer.cs | 90 +++-- .../HSSE/ActionPlan/ProjectManageRule.aspx | 165 ++++----- .../HSSE/ActionPlan/ProjectManageRule.aspx.cs | 55 ++- .../ProjectManageRule.aspx.designer.cs | 90 +++-- .../HSSE/Check/CheckSpecial.aspx.cs | 17 +- .../HSSE/Check/CheckSpecialRecord.aspx.cs | 26 +- .../FineUIPro.Web/HSSE/Check/ContactList.aspx | 221 ++++++------ .../HSSE/Check/ContactList.aspx.cs | 51 ++- .../HSSE/Check/ContactList.aspx.designer.cs | 84 +++-- .../FineUIPro.Web/HSSE/Check/OfficeCheck.aspx | 30 +- .../HSSE/Check/OfficeCheck.aspx.cs | 42 ++- .../HSSE/Check/OfficeCheck.aspx.designer.cs | 64 +++- .../FineUIPro.Web/HSSE/Check/PauseNotice.aspx | 214 ++++++------ .../HSSE/Check/PauseNotice.aspx.cs | 115 ++++--- .../HSSE/Check/PauseNotice.aspx.designer.cs | 86 +++-- .../HSSE/Check/ProjectLeaderCheck.aspx | 188 ++++++----- .../HSSE/Check/ProjectLeaderCheck.aspx.cs | 35 +- .../Check/ProjectLeaderCheck.aspx.designer.cs | 92 +++-- .../HSSE/Check/RectifyNotices.aspx | 234 +++++++------ .../HSSE/Check/RectifyNotices.aspx.cs | 32 +- .../Check/RectifyNotices.aspx.designer.cs | 98 ++++-- .../HSSE/Check/RectifyNoticesFinalDoc.aspx | 234 +++++++------ .../HSSE/Check/RectifyNoticesFinalDoc.aspx.cs | 72 +++- .../RectifyNoticesFinalDoc.aspx.designer.cs | 36 ++ .../HSSE/Hazard/EnvironmentalRiskList.aspx | 247 +++++++------- .../HSSE/Hazard/EnvironmentalRiskList.aspx.cs | 48 ++- .../EnvironmentalRiskList.aspx.designer.cs | 96 ++++-- .../FineUIPro.Web/HSSE/Hazard/HazardInfo.aspx | 292 ++++++++-------- .../HSSE/Hazard/HazardInfo.aspx.cs | 34 +- .../HSSE/Hazard/HazardInfo.aspx.designer.cs | 36 ++ .../FineUIPro.Web/HSSE/Hazard/HazardList.aspx | 232 +++++++------ .../HSSE/Hazard/HazardList.aspx.cs | 43 ++- .../HSSE/Hazard/HazardList.aspx.designer.cs | 92 +++-- .../HSSE/Hazard/MajorHazardList.aspx | 218 ++++++------ .../HSSE/Hazard/MajorHazardList.aspx.cs | 32 ++ .../Hazard/MajorHazardList.aspx.designer.cs | 74 ++++- .../HSSE/Hazard/OtherHazard.aspx | 150 +++++---- .../HSSE/Hazard/OtherHazard.aspx.cs | 57 +++- .../HSSE/Hazard/OtherHazard.aspx.designer.cs | 80 +++-- .../HSSE/Hazard/RiskControl.aspx | 314 +++++++++--------- .../HSSE/Hazard/RiskControl.aspx.cs | 36 +- .../HSSE/Hazard/RiskControl.aspx.designer.cs | 94 ++++-- .../HSSE/Hazard/RoutingInspection.aspx | 274 ++++++++------- .../HSSE/Hazard/RoutingInspection.aspx.cs | 33 +- .../Hazard/RoutingInspection.aspx.designer.cs | 86 +++-- .../HiddenRectificationList.aspx | 5 +- .../HiddenRectificationList.aspx.cs | 2 +- .../ConstructionStandardIdentify.aspx | 192 ++++++----- .../ConstructionStandardIdentify.aspx.cs | 65 +++- ...structionStandardIdentify.aspx.designer.cs | 86 +++-- .../LawRegulationIdentify.aspx | 175 +++++----- .../LawRegulationIdentify.aspx.cs | 42 ++- .../LawRegulationIdentify.aspx.designer.cs | 80 +++-- .../HSSE/License/HSETechnical.aspx.cs | 124 +++---- .../HSSE/QualityAudit/InUnit.aspx | 223 +++++++------ .../HSSE/QualityAudit/InUnit.aspx.cs | 61 +++- .../HSSE/QualityAudit/InUnit.aspx.designer.cs | 84 +++-- .../HSSE/QualityAudit/ProjectRecord.aspx | 164 ++++----- .../HSSE/QualityAudit/ProjectRecord.aspx.cs | 43 ++- .../ProjectRecord.aspx.designer.cs | 86 +++-- .../SubcontractLeasingProtocol.aspx.cs | 49 +-- .../HSSE/Solution/ExpertArgumentList.aspx | 179 +++++----- .../HSSE/Solution/ExpertArgumentList.aspx.cs | 60 +++- .../ExpertArgumentList.aspx.designer.cs | 80 +++-- .../FireGasSafety/SafetyOrganization.aspx.cs | 6 +- 86 files changed, 5694 insertions(+), 3375 deletions(-) diff --git a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx index 30e3b88..48ccfc4 100644 --- a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx +++ b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx @@ -1,119 +1,135 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SafetyOfficerCheck.aspx.cs" Inherits="FineUIPro.Web.Customization.CNCCG.HSSE.Check.SafetyOfficerCheck" %> +<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %> + - + 群安员巡检 -
- - - - - - - - + + + + + + + + + + + + + + + + - + - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + - \ No newline at end of file + diff --git a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.cs b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.cs index 475bece..ae55e72 100644 --- a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.cs @@ -9,6 +9,23 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check { public partial class SafetyOfficerCheck : PageBase { + #region 项目主键 + /// + /// 项目主键 + /// + public string ProjectId + { + get + { + return (string)ViewState["ProjectId"]; + } + set + { + ViewState["ProjectId"] = value; + } + } + #endregion + /// /// 页面加载 /// @@ -18,8 +35,21 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check { if (!IsPostBack) { - ////权限按钮方法 - this.GetButtonPower(); + this.ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId) + { + this.ProjectId = Request.Params["projectId"]; + } + + this.ucTree.UnitId = this.CurrUser.UnitId; + this.ucTree.ProjectId = this.ProjectId; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + this.panelLeftRegion.Hidden = true; + ////权限按钮方法 + this.GetButtonPower(); + } + this.btnNew.OnClientClick = Window1.GetShowReference("SafetyOfficerCheckEdit.aspx") + "return false;"; if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) { @@ -30,6 +60,22 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check this.BindGrid(); } } + /// + /// 公司级树加载 + /// + /// + /// + protected void changeTree(object sender, EventArgs e) + { + this.ProjectId = this.ucTree.ProjectId; + this.BindGrid(); + + this.GetButtonPower(); + if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + btnNew.Hidden = true; + } + } #region 获取按钮权限 /// @@ -45,7 +91,7 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check } var menuid = Const.Check_SafetyOfficerCheckMenuId; - var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, menuid); + var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, menuid); if (buttonList.Count() > 0) { if (buttonList.Contains(BLL.Const.BtnAdd)) @@ -98,6 +144,10 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check /// private void BindGrid() { + if (string.IsNullOrEmpty(this.ProjectId)) + { + return; + } string strSql = @"SELECT CASE WHEN State='0' then '待提交' when State='1' then '待生成日常巡检' when State='2' then '已生成日常巡检' END as StatesNr,F.State,F.CompileDate,F.SafetyOfficerCheckId,F.ImageUrl,F.HandleIdea, @@ -108,9 +158,9 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check left join Project_ProjectUser AS PUser on F.ReceiveMan=PUser.UserId WHERE 1=1 "; var userId = CurrUser.UserId; - if (!string.IsNullOrEmpty(CurrUser.LoginProjectId)) + if (!string.IsNullOrEmpty(ProjectId)) { - strSql += " and PUser.ProjectId='" + CurrUser.LoginProjectId + "' "; + strSql += " and PUser.ProjectId='" + ProjectId + "' "; } List listStr = new List(); diff --git a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.designer.cs index 49456d0..fec5f71 100644 --- a/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.designer.cs +++ b/SUBQHSE/FineUIPro.Web/Customization/CNCCG/HSSE/Check/SafetyOfficerCheck.aspx.designer.cs @@ -41,6 +41,42 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.Check /// protected global::FineUIPro.Panel Panel1; + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// ucTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + /// /// Grid1 控件。 /// diff --git a/SUBQHSE/FineUIPro.Web/Customization/ZJ/HSSE/Hazard/HazardInfo.aspx b/SUBQHSE/FineUIPro.Web/Customization/ZJ/HSSE/Hazard/HazardInfo.aspx index 9926119..8fd5dc2 100644 --- a/SUBQHSE/FineUIPro.Web/Customization/ZJ/HSSE/Hazard/HazardInfo.aspx +++ b/SUBQHSE/FineUIPro.Web/Customization/ZJ/HSSE/Hazard/HazardInfo.aspx @@ -1,5 +1,7 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HazardInfo.aspx.cs" Inherits="FineUIPro.Web.Customization.ZJ.HSSE.Hazard.HazardInfo" %> +<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %> + @@ -10,121 +12,135 @@
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<%-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- --%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +