From 66c6168020b61b0a858cf4de594986c4565486dc Mon Sep 17 00:00:00 2001
From: Zones <765289303@qq.com>
Date: Sat, 15 Aug 2026 10:35:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E9=A1=B9=E6=96=BD=E5=B7=A5=E6=96=B9?=
=?UTF-8?q?=E6=A1=88=E5=88=97=E8=A1=A8=E9=99=84=E4=BB=B6=E6=9F=A5=E7=9C=8B?=
=?UTF-8?q?=E5=8F=82=E8=80=83=E6=96=BD=E5=B7=A5=E6=96=B9=E6=A1=88=E5=AE=9A?=
=?UTF-8?q?=E7=A8=BF=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../HSSE/HazardousMG/SpecialPlan.aspx | 121 ++++++++++++
.../HSSE/HazardousMG/SpecialPlan.aspx.cs | 178 +++++++++++++++++
.../HazardousMG/SpecialPlan.aspx.designer.cs | 179 ++++++++++++++++++
3 files changed, 478 insertions(+)
create mode 100644 SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx
create mode 100644 SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.designer.cs
diff --git a/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx
new file mode 100644
index 0000000..d652826
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx
@@ -0,0 +1,121 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpecialPlan.aspx.cs" Inherits="FineUIPro.Web.HSSE.HazardousMG.SpecialPlan" %>
+
+
+
+
+
+
+ 专项施工方案
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.cs b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.cs
new file mode 100644
index 0000000..df40091
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.cs
@@ -0,0 +1,178 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+
+namespace FineUIPro.Web.HSSE.HazardousMG
+{
+ ///
+ /// 专项施工方案页面
+ ///
+ public partial class SpecialPlan : PageBase
+ {
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ this.BindGrid();
+ }
+ }
+
+ ///
+ /// 新增按钮事件
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ if (this.CurrUser == null || string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ Alert.ShowInTop("请先选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ PageContext.RegisterStartupScript(Window1.GetShowReference("SpecialPlanEdit.aspx"));
+ }
+ #endregion
+
+ #region 数据绑定
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ if (this.CurrUser == null || string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ Alert.ShowInTop("请先登录或选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ List list = BLL.SpecialPlanService.GetList(this.CurrUser.LoginProjectId);
+ ////查询条件过滤
+ string projectName = this.txtProjectName.Text.Trim();
+ if (!string.IsNullOrEmpty(projectName))
+ {
+ list = list.Where(x => x.HazardProjectName.Contains(projectName)).ToList();
+ }
+ string planName = this.txtPlanName.Text.Trim();
+ if (!string.IsNullOrEmpty(planName))
+ {
+ list = list.Where(x => x.PlanName.Contains(planName)).ToList();
+ }
+ Grid1.RecordCount = list.Count;
+ var table = this.GetPagedDataTable(Grid1, list);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ ///
+ /// 分页事件
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ this.BindGrid();
+ }
+
+ ///
+ /// 每页记录数改变事件
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
+ this.BindGrid();
+ }
+
+ ///
+ /// 排序事件
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 编辑
+ ///
+ /// 双击行编辑事件
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 右键菜单编辑事件
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditData()
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ string id = Grid1.SelectedRowID;
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SpecialPlanEdit.aspx?PlanId={0}", id)));
+ }
+ #endregion
+
+ #region 删除
+ ///
+ /// 右键菜单删除事件
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ BLL.SpecialPlanService.Delete(rowID);
+ }
+ this.BindGrid();
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ }
+
+ ///
+ /// 编辑窗口关闭事件
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 附件查看
+ ///
+ /// 附件查看(参考施工方案定稿文件列表,弹出附件列表窗口)
+ ///
+ protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
+ {
+ if (e.CommandName == "attchUrl")
+ {
+ PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&path=FileUpload/SpecialPlan&menuId={2}",
+ -1, e.RowID, BLL.Const.SpecialSchemeMenuId)));
+ }
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.designer.cs
new file mode 100644
index 0000000..d23e20d
--- /dev/null
+++ b/SGGL/FineUIPro.Web/HSSE/HazardousMG/SpecialPlan.aspx.designer.cs
@@ -0,0 +1,179 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HSSE.HazardousMG
+{
+
+
+ public partial class SpecialPlan
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// txtProjectName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProjectName;
+
+ ///
+ /// txtPlanName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPlanName;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// lblNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// WindowAtt 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowAtt;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+ }
+}