From 4b5543ef74818542ea8e91d6852f24da1392e868 Mon Sep 17 00:00:00 2001
From: 10191 <506754232@qq.com>
Date: Sat, 7 Mar 2026 09:01:15 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=8E=AF=E5=A2=83=E9=A2=84?=
=?UTF-8?q?=E7=AE=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DataBase/版本日志/SGGLDB_V2026-3-07-lc.sql | 34 ++
SGGL/BLL/Common/Const.cs | 4 +-
SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs | 1 +
SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 42 +-
.../HJGL/DataIn/DataInTable.aspx | 5 +-
.../SafeEnvBudget/SafeEnvBudget.aspx | 166 +++++++
.../SafeEnvBudget/SafeEnvBudget.aspx.cs | 327 ++++++++++++
.../SafeEnvBudget.aspx.designer.cs | 188 +++++++
.../SafeEnvBudget/SafeEnvBudgetEdit.aspx | 135 +++++
.../SafeEnvBudget/SafeEnvBudgetEdit.aspx.cs | 429 ++++++++++++++++
.../SafeEnvBudgetEdit.aspx.designer.cs | 242 +++++++++
.../SafeEnvBudget/SafeEnvBudgetIn.aspx | 100 ++++
.../SafeEnvBudget/SafeEnvBudgetIn.aspx.cs | 469 ++++++++++++++++++
.../SafeEnvBudgetIn.aspx.designer.cs | 143 ++++++
.../SafeEnvBudget/SafeEnvBudgetTotal.aspx | 90 ++++
.../SafeEnvBudget/SafeEnvBudgetTotal.aspx.cs | 294 +++++++++++
.../SafeEnvBudgetTotal.aspx.designer.cs | 98 ++++
.../SafeEnvBudget/SafeEnvBudgetView.aspx | 98 ++++
.../SafeEnvBudget/SafeEnvBudgetView.aspx.cs | 189 +++++++
.../SafeEnvBudgetView.aspx.designer.cs | 125 +++++
SGGL/Model/Model.cs | 385 ++++++++++++++
21 files changed, 3558 insertions(+), 6 deletions(-)
create mode 100644 DataBase/版本日志/SGGLDB_V2026-3-07-lc.sql
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudget.aspx
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudget.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudget.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetEdit.aspx
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetEdit.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetEdit.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetIn.aspx
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetIn.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetIn.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx.designer.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetView.aspx
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetView.aspx.cs
create mode 100644 SGGL/FineUIPro.Web/ReportManage/SafeEnvBudget/SafeEnvBudgetView.aspx.designer.cs
diff --git a/DataBase/版本日志/SGGLDB_V2026-3-07-lc.sql b/DataBase/版本日志/SGGLDB_V2026-3-07-lc.sql
new file mode 100644
index 00000000..70b7c133
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2026-3-07-lc.sql
@@ -0,0 +1,34 @@
+ INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'安全环保预算表', NULL, N'/ReportManage/SafeEnvBudget/SafeEnvBudget.aspx', '10', N'0D988FA5-352F-460B-927A-C4EE5AD81B1E', N'Menu_Report', '0', '1', '1');
+INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'FBBA0E65-105E-42FA-BD77-5FA7B1E00BE7', N'安全环保预算表', NULL, N'/ReportManage/SafeEnvBudget/SafeEnvBudgetTotal.aspx', '10', N'224F8F8B-C5E7-4763-AEE1-1C54909F0C1A', N'Menu_S_Report', '1', '1', '1');
+
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'44B69065-8E5C-4F31-9724-D63F88466B7E', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'删除', '3');
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'4E18C10B-949B-4E6A-BA27-63E29EDF513A', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'增加', '1');
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'848341D1-CA09-4F4A-82FE-E78FCB8C5744', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'保存', '4');
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'C5ECFC86-EC2B-4C97-A542-AC5070B40CCA', N'43763381-A158-4FC9-8A20-0499D8F8BD8B', N'修改', '2');
+
+
+CREATE TABLE [dbo].[SafeEnvBudget](
+ [BudgetId] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Subject1] [nvarchar](50) NULL,
+ [Subject2] [nvarchar](50) NULL,
+ [Subject3] [nvarchar](50) NULL,
+ [Subject4] [nvarchar](50) NULL,
+ [Subject5] [nvarchar](50) NULL,
+ [Year] [nvarchar](5) NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [BudgetAmount] [numeric](18, 2) NULL,
+ [UserId] [nvarchar](50) NULL,
+ [CreateDate] [date] NULL,
+ [Remark] [nvarchar](500) NULL,
+ [State] [nvarchar](1) NULL,
+ [RealAmount] [numeric](18, 2) NULL,
+ CONSTRAINT [PK_SafeEnvBudget] PRIMARY KEY CLUSTERED
+(
+ [BudgetId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 2416a9f0..df9c9466 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -3354,7 +3354,9 @@ namespace BLL
#endregion
-
+ #region 报表管理
+ public const string ProjectSafeEnvBudgetMenuId = "43763381-A158-4FC9-8A20-0499D8F8BD8B";
+ #endregion
///
/// 一般工器具导入模板
///
diff --git a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
index ee13d049..bf68bc3f 100644
--- a/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
+++ b/SGGL/BLL/HSSE/EduTrain/TrainingPlanService.cs
@@ -123,6 +123,7 @@ namespace BLL
///
public static void DeletePlanById(string planId)
{
+ var db = Funs.DB;
Model.Training_Plan plan = db.Training_Plan.FirstOrDefault(e => e.PlanId == planId);
if (plan != null)
{
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 86f8a0bd..8e6bcea7 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -2549,6 +2549,11 @@
+
+
+
+
+
@@ -17268,6 +17273,41 @@
ProjectPageDataSave.aspx
+
+ SafeEnvBudgetIn.aspx
+ ASPXCodeBehind
+
+
+ SafeEnvBudgetIn.aspx
+
+
+ SafeEnvBudgetTotal.aspx
+ ASPXCodeBehind
+
+
+ SafeEnvBudgetTotal.aspx
+
+
+ SafeEnvBudget.aspx
+ ASPXCodeBehind
+
+
+ SafeEnvBudget.aspx
+
+
+ SafeEnvBudgetView.aspx
+ ASPXCodeBehind
+
+
+ SafeEnvBudgetView.aspx
+
+
+ SafeEnvBudgetEdit.aspx
+ ASPXCodeBehind
+
+
+ SafeEnvBudgetEdit.aspx
+
PrintDesigner.aspx
ASPXCodeBehind
@@ -19997,7 +20037,7 @@
-
+
diff --git a/SGGL/FineUIPro.Web/HJGL/DataIn/DataInTable.aspx b/SGGL/FineUIPro.Web/HJGL/DataIn/DataInTable.aspx
index 85bad336..974c84c2 100644
--- a/SGGL/FineUIPro.Web/HJGL/DataIn/DataInTable.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/DataIn/DataInTable.aspx
@@ -18,10 +18,7 @@
-
+
+
+
+
+
+