diff --git a/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(View_DCGLKeyProjectRectificationSituationLedger).sql b/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(View_DCGLKeyProjectRectificationSituationLedger).sql
new file mode 100644
index 00000000..b6ffc7cd
--- /dev/null
+++ b/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(View_DCGLKeyProjectRectificationSituationLedger).sql
@@ -0,0 +1,29 @@
+
+/*************ӣص㹤Ŀרжչ̨**************/
+CREATE VIEW [dbo].[View_DCGLKeyProjectRectificationSituationLedger]
+AS
+SELECT
+Report.Id,
+Report.UnitId,
+Report.Year,
+U.UnitName,
+Report.ReportDate,
+Report.UpState,
+Report.DutyPerson,
+Report.HandleState,
+Report.HandleMan,
+Report.HasPlan,
+Report.PlanDate,
+Report.HasWorkTeam,
+Report.TeamDate,
+Report.KeyProjectNum,
+Report.Remark,
+Report.CompileDate,
+Report.CompileMan,
+Report.CompileManName,
+US.UserName
+FROM dbo.DCGL_Report_KeyProjectRectificationSituationLedger AS Report
+LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId
+LEFT JOIN Sys_User AS US ON US.UserId=Report.HandleMan
+
+
diff --git a/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(重点工程项目质量专项整治行动开展情况台账).sql b/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(重点工程项目质量专项整治行动开展情况台账).sql
new file mode 100644
index 00000000..4d5e9b4a
--- /dev/null
+++ b/DataBase/版本日志/SUBQHSE_V2026-01-13-xiaj(重点工程项目质量专项整治行动开展情况台账).sql
@@ -0,0 +1,175 @@
+
+
+
+--˵ص㹤Ŀרжչ̨
+ IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '35BA8E89-4575-4A3F-9C22-98B323E67DA1')
+BEGIN
+INSERT INTO dbo.Sys_Menu (MenuId, MenuName,Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
+VALUES (N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'ص㹤Ŀרжչ̨', N'ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx', 40, N'8B9C0F42-D36F-4798-94AB-F56723E8B714', N'Menu_ZHGL', 1,1, 1);
+END
+GO
+IF NOT EXISTS (SELECT * FROM Sys_ButtonToMenu WHERE MenuId = '35BA8E89-4575-4A3F-9C22-98B323E67DA1')
+BEGIN
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'DCAC5651-BBCD-4F4E-9CBA-C9E8B609A083', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'', 1);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'696B1530-6589-4CA7-8A22-F6CF1326CC50', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'', 2);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'8C3DA868-D97D-4FAB-9CB9-7E45493C5DF1', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'ɾ', 3);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'633BBC47-09C3-44EB-A31E-4258F221444E', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'', 4);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'78FE11AA-3F4C-47C5-86ED-D25C4632312C', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'沢ϱ', 5);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'DC074886-CBA2-441D-B32B-08CAD84EC8E1', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'ύ', 6);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'7D1F9150-5836-40D0-8205-B8676B588E1D', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'', 7);
+INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex])
+VALUES (N'8AFB0A0C-57E8-4AE8-8D7C-226A40AE272E', N'35BA8E89-4575-4A3F-9C22-98B323E67DA1', N'ӡ', 8);
+END
+GO
+
+
+
+
+--ӣص㹤Ŀרжչ̨
+IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DCGL_Report_KeyProjectRectificationSituationLedger') AND type = N'U')
+BEGIN
+CREATE TABLE [dbo].[DCGL_Report_KeyProjectRectificationSituationLedger](
+ [Id] [nvarchar](50) NOT NULL,
+ [UnitId] [nvarchar](50) NULL,
+ [Year] [Int] NOT NULL,
+ [ReportDate] [datetime] NULL,
+ [DutyPerson] [nvarchar](50) NULL,
+ [UpState] [char](1) NULL,
+ [HandleState] [char](1) NULL,
+ [HandleMan] [nvarchar](50) NULL,
+ [HasPlan] [bit] NOT NULL,
+ [PlanDate] [datetime] NULL,
+ [HasWorkTeam] [bit] NOT NULL,
+ [TeamDate] [datetime] NULL,
+ [KeyProjectNum] [int] NOT NULL,
+ [StockCompanyKeyProjectCheckNum] [int] NOT NULL,
+ [StockCompanyKeyProjectProblemNum] [int] NOT NULL,
+ [StockCompanyKeyProjectProblemRectifiedNum] [int] NOT NULL,
+ [StockCompanyOtherProjectCheckNum] [int] NOT NULL,
+ [StockCompanyOtherProjectProblemNum] [int] NOT NULL,
+ [StockCompanyOtherProjectProblemRectifiedNum] [int] NOT NULL,
+ [BranchCompanyKeyProjectCheckNum] [int] NOT NULL,
+ [BranchCompanyKeyProjectProblemNum] [int] NOT NULL,
+ [BranchCompanyKeyProjectProblemRectifiedNum] [int] NOT NULL,
+ [BranchCompanyOtherProjectCheckNum] [int] NOT NULL,
+ [BranchCompanyOtherProjectProblemNum] [int] NOT NULL,
+ [BranchCompanyOtherProjectProblemRectifiedNum] [int] NOT NULL,
+ [ProjectSelfCheckNum] [int] NOT NULL,
+ [ProjectSelfCheckProblemNum] [int] NOT NULL,
+ [ProjectSelfCheckProblemRectifiedNum] [int] NOT NULL,
+ [KeyProjectProblemNumType1] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType1] [int] NOT NULL,
+ [KeyProjectProblemNumType2] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType2] [int] NOT NULL,
+ [KeyProjectProblemNumType3] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType3] [int] NOT NULL,
+ [KeyProjectProblemNumType4] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType4] [int] NOT NULL,
+ [KeyProjectProblemNumType5] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType5] [int] NOT NULL,
+ [KeyProjectProblemNumType6] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType6] [int] NOT NULL,
+ [KeyProjectProblemNumType7] [int] NOT NULL,
+ [KeyProjectProblemRectifiedNumType7] [int] NOT NULL,
+ [OtherProjectProblemNumType1] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType1] [int] NOT NULL,
+ [OtherProjectProblemNumType2] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType2] [int] NOT NULL,
+ [OtherProjectProblemNumType3] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType3] [int] NOT NULL,
+ [OtherProjectProblemNumType4] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType4] [int] NOT NULL,
+ [OtherProjectProblemNumType5] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType5] [int] NOT NULL,
+ [OtherProjectProblemNumType6] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType6] [int] NOT NULL,
+ [OtherProjectProblemNumType7] [int] NOT NULL,
+ [OtherProjectProblemRectifiedNumType7] [int] NOT NULL,
+ [Remark] [nvarchar](500) NULL,
+ [CompileMan] [nvarchar](50) NOT NULL,
+ [CompileManName] [nvarchar](50) NULL,
+ [CompileDate] [datetime] NOT NULL,
+ CONSTRAINT [PK_DCGL_Report_KeyProjectRectificationSituationLedger] PRIMARY KEY CLUSTERED
+(
+ [Id] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Id'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱλ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'UnitId'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Year'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ελϱʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ReportDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'DutyPerson'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ϱ״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'UpState'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HandleState'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'̴' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HandleMan'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ǷƶԲη' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HasPlan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƶηʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'PlanDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿר' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'HasWorkTeam'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'TeamDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ڽص㹤Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectNum'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-ص㹤Ŀ-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectCheckNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-ص㹤Ŀ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectProblemNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-ص㹤Ŀ-ĸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyKeyProjectProblemRectifiedNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-Ŀ-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectCheckNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-Ŀ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectProblemNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɷݹ˾㼶-Ŀ-ĸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'StockCompanyOtherProjectProblemRectifiedNum'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-ص㹤Ŀ-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectCheckNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-ص㹤Ŀ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectProblemNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-ص㹤Ŀ-ĸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyKeyProjectProblemRectifiedNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-Ŀ-Ŀ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectCheckNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-Ŀ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectProblemNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'˾㼶-Ŀ-ĸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'BranchCompanyOtherProjectProblemRectifiedNum'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ㼶Բ-ԲĿ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ㼶Բ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckProblemNum'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀ㼶Բ-ĸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'ProjectSelfCheckProblemRectifiedNum'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ʊܿ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType1'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ʊܿ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType1'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType2'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType2'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ʩ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType3'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ʩ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType3'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType4'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType4'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ְֹ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType5'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ְֹ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType5'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ʵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType6'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ʵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType6'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ѵҵԱ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemNumType7'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-ص㹤Ŀ-ѵҵԱ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'KeyProjectProblemRectifiedNumType7'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ʊܿ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType1'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ʊܿ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType1'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType2'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType2'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ʩ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType3'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ʩ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType3'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType4'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-Ϲ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType4'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ְֹ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType5'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ְֹ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType5'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ʵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType6'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ʵ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType6'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ѵҵԱ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemNumType7'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͻ-Ŀ-ѵҵԱ-' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'OtherProjectProblemRectifiedNumType7'
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'Remark'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileMan'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileManName'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger', @level2type=N'COLUMN',@level2name=N'CompileDate'
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӣص㹤Ŀרжչ̨' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'DCGL_Report_KeyProjectRectificationSituationLedger'
+END
+
+GO
+
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index 3972c642..29314d5b 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -876,6 +876,7 @@
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 92df866a..901ff015 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -1397,6 +1397,12 @@ namespace BLL
#endregion
#region 安全报表(集团)
+
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账
+ ///
+ public const string DCGLKeyProjectRectificationSituationLedgerMenuId = "35BA8E89-4575-4A3F-9C22-98B323E67DA1";
+
#region 安全信息上报
///
/// 百万工时安全统计月报表
diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
index 07cf59e6..b4d8f318 100644
--- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs
+++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs
@@ -3,19 +3,19 @@
using Apache.NMS.ActiveMQ.Commands;
using BLL.CNCECHSSEService;
using Newtonsoft.Json;
+ using Newtonsoft.Json.Linq;
using NPOI.POIFS.Crypt.Dsig;
+ using RestSharp;
using System;
+ using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
+ using System.Net;
//using System.Net.Http.Headers;
//using System.Net.Http;
using System.Web;
- using RestSharp;
- using System.Net;
- using System.Collections;
- using Newtonsoft.Json.Linq;
public static class CNCECHSSEWebService
{
@@ -81,6 +81,76 @@
}
#region 上报数据到集团
+
+ #region 督查大队:重点工程项目质量专项整治行动开展情况台账上报
+
+ ///
+ /// 督查大队:重点工程项目质量专项整治行动开展情况台账上报
+ ///
+ ///
+ ///
+ ///
+ public static string UpKeyProjectRectificationSituationLedger(string Id, Model.Sys_User CurrUser)
+ {
+ string code = "0";
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ try
+ {
+ var upReport = from x in db.DCGL_Report_KeyProjectRectificationSituationLedger
+ where x.Id == Id
+ select x;
+
+ code = UpApiKeyProjectRectificationSituationLedger(upReport).ToString();
+ if (code == "1")
+ {
+ foreach (var item in upReport.Select(p => p.Id))
+ {
+ var report = db.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == item);
+ if (report != null)
+ {
+ report.UpState = BLL.Const.UpState_3;
+ report.ReportDate = DateTime.Now;
+ db.SubmitChanges();
+ ////更新 当前人要处理的意见
+ ProjectDataFlowSetService.CloseFlowOperate(Const.DCGLKeyProjectRectificationSituationLedgerMenuId, item, string.Empty);
+ // //更新催报信息
+ //UrgeReportService.SetComplete(report.UnitId, Const.ReportType_1, report.Year.ToString());
+ }
+ }
+ LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ else
+ {
+ LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog("【重点工程项目质量专项整治行动开展情况台账】上传到服务器", ex);
+ LogService.AddSys_Log(CurrUser, "【重点工程项目质量专项整治行动开展情况台账】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources);
+ }
+ return code;
+ }
+ }
+
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账
+ ///
+ /// 主表
+ /// 明细表
+ ///
+ private static int UpApiKeyProjectRectificationSituationLedger(IQueryable upReport)
+ {
+ string baseurl = "/api/InformationData/SaveKeyProjectRectificationSituationLedger";
+ var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault());
+ resultJsonReport = "{\"InformationDataItems\":[" + (resultJsonReport).Replace("}{", ",") + "]}";
+ var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
+ return responeData.code;
+ }
+
+ #endregion
+
#region 百万工时上报
///
/// 百万工时上报
diff --git a/SGGL/BLL/ZHGL/Information/DCGL_KeyProjectRectificationSituationLedgerService.cs b/SGGL/BLL/ZHGL/Information/DCGL_KeyProjectRectificationSituationLedgerService.cs
new file mode 100644
index 00000000..4a32cea1
--- /dev/null
+++ b/SGGL/BLL/ZHGL/Information/DCGL_KeyProjectRectificationSituationLedgerService.cs
@@ -0,0 +1,215 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ public static class DCGL_KeyProjectRectificationSituationLedgerService
+ {
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账Id
+ /// 重点工程项目质量专项整治行动开展情况台账
+ public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerById(string Id)
+ {
+ return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
+ }
+
+ /////
+ ///// 重点工程项目质量专项整治行动开展情况台账
+ /////
+ ///// 单位Id
+ ///// 年度 param >
+ ///// 月份
+ ///// 重点工程项目质量专项整治行动开展情况台账
+ //public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdAndYearAndMonth(string unitId, int year, int month)
+ //{
+ // return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
+ //}
+
+ ///
+ /// 根据单位Id获取重点工程项目质量专项整治行动开展情况台账集合
+ ///
+ /// 单位Id
+ /// 重点工程项目质量专项整治行动开展情况台账集合
+ public static List GetMillionsMonthlyReportsByUnitId(string UnitId)
+ {
+ return (from x in Funs.DB.View_Information_MillionsMonthlyReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
+ }
+
+ ///
+ /// 增加重点工程项目质量专项整治行动开展情况台账
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账实体
+ public static void AddKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = new Model.DCGL_Report_KeyProjectRectificationSituationLedger
+ {
+ Id = model.Id,
+ UnitId = model.UnitId,
+ Year = model.Year,
+ UpState = model.UpState,
+ HandleState = model.HandleState,
+ HandleMan = model.HandleMan,
+ DutyPerson = model.DutyPerson,
+ CompileDate = model.CompileDate,
+ CompileMan = model.CompileMan,
+ CompileManName = model.CompileManName,
+ };
+ newModel.HasPlan = model.HasPlan;
+ newModel.PlanDate = model.PlanDate;
+ newModel.HasWorkTeam = model.HasWorkTeam;
+ newModel.TeamDate = model.TeamDate;
+ newModel.KeyProjectNum = model.KeyProjectNum;
+ newModel.Remark = model.Remark;
+ newModel.ReportDate = model.ReportDate;
+
+ newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
+ newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
+ newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
+ newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
+ newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
+ newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
+ newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
+ newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
+ newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
+ newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
+ newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
+ newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
+ newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
+ newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
+ newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
+
+ newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
+ newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
+ newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
+ newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
+ newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
+ newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
+ newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
+ newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
+ newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
+ newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
+ newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
+ newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
+ newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
+ newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
+
+ newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
+ newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
+ newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
+ newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
+ newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
+ newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
+ newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
+ newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
+ newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
+ newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
+ newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
+ newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
+ newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
+ newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
+ Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.InsertOnSubmit(newModel);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改重点工程项目质量专项整治行动开展情况台账
+ ///
+ /// 重点工程项目质量专项整治行动开展情况台账实体
+ public static void UpdateKeyProjectRectificationSituationLedger(Model.DCGL_Report_KeyProjectRectificationSituationLedger model)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == model.Id);
+ if (newModel != null)
+ {
+ newModel.UnitId = model.UnitId;
+ newModel.Year = model.Year;
+ newModel.UpState = model.UpState;
+ newModel.HandleState = model.HandleState;
+ newModel.HandleMan = model.HandleMan;
+ newModel.DutyPerson = model.DutyPerson;
+ newModel.ReportDate = model.ReportDate;
+ newModel.CompileDate = model.CompileDate;
+
+ newModel.HasPlan = model.HasPlan;
+ newModel.PlanDate = model.PlanDate;
+ newModel.HasWorkTeam = model.HasWorkTeam;
+ newModel.TeamDate = model.TeamDate;
+ newModel.KeyProjectNum = model.KeyProjectNum;
+ newModel.Remark = model.Remark;
+
+ newModel.StockCompanyKeyProjectCheckNum = model.StockCompanyKeyProjectCheckNum;
+ newModel.StockCompanyKeyProjectProblemNum = model.StockCompanyKeyProjectProblemNum;
+ newModel.StockCompanyKeyProjectProblemRectifiedNum = model.StockCompanyKeyProjectProblemRectifiedNum;
+ newModel.StockCompanyOtherProjectCheckNum = model.StockCompanyOtherProjectCheckNum;
+ newModel.StockCompanyOtherProjectProblemNum = model.StockCompanyOtherProjectProblemNum;
+ newModel.StockCompanyOtherProjectProblemRectifiedNum = model.StockCompanyOtherProjectProblemRectifiedNum;
+ newModel.BranchCompanyKeyProjectCheckNum = model.BranchCompanyKeyProjectCheckNum;
+ newModel.BranchCompanyKeyProjectProblemNum = model.BranchCompanyKeyProjectProblemNum;
+ newModel.BranchCompanyKeyProjectProblemRectifiedNum = model.BranchCompanyKeyProjectProblemRectifiedNum;
+ newModel.BranchCompanyOtherProjectCheckNum = model.BranchCompanyOtherProjectCheckNum;
+ newModel.BranchCompanyOtherProjectProblemNum = model.BranchCompanyOtherProjectProblemNum;
+ newModel.BranchCompanyOtherProjectProblemRectifiedNum = model.BranchCompanyOtherProjectProblemRectifiedNum;
+ newModel.ProjectSelfCheckNum = model.ProjectSelfCheckNum;
+ newModel.ProjectSelfCheckProblemNum = model.ProjectSelfCheckProblemNum;
+ newModel.ProjectSelfCheckProblemRectifiedNum = model.ProjectSelfCheckProblemRectifiedNum;
+
+ newModel.KeyProjectProblemNumType1 = model.KeyProjectProblemNumType1;
+ newModel.KeyProjectProblemRectifiedNumType1 = model.KeyProjectProblemRectifiedNumType1;
+ newModel.KeyProjectProblemNumType2 = model.KeyProjectProblemNumType2;
+ newModel.KeyProjectProblemRectifiedNumType2 = model.KeyProjectProblemRectifiedNumType2;
+ newModel.KeyProjectProblemNumType3 = model.KeyProjectProblemNumType3;
+ newModel.KeyProjectProblemRectifiedNumType3 = model.KeyProjectProblemRectifiedNumType3;
+ newModel.KeyProjectProblemNumType4 = model.KeyProjectProblemNumType4;
+ newModel.KeyProjectProblemRectifiedNumType4 = model.KeyProjectProblemRectifiedNumType4;
+ newModel.KeyProjectProblemNumType5 = model.KeyProjectProblemNumType5;
+ newModel.KeyProjectProblemRectifiedNumType5 = model.KeyProjectProblemRectifiedNumType5;
+ newModel.KeyProjectProblemNumType6 = model.KeyProjectProblemNumType6;
+ newModel.KeyProjectProblemRectifiedNumType6 = model.KeyProjectProblemRectifiedNumType6;
+ newModel.KeyProjectProblemNumType7 = model.KeyProjectProblemNumType7;
+ newModel.KeyProjectProblemRectifiedNumType7 = model.KeyProjectProblemRectifiedNumType7;
+
+ newModel.OtherProjectProblemNumType1 = model.OtherProjectProblemNumType1;
+ newModel.OtherProjectProblemRectifiedNumType1 = model.OtherProjectProblemRectifiedNumType1;
+ newModel.OtherProjectProblemNumType2 = model.OtherProjectProblemNumType2;
+ newModel.OtherProjectProblemRectifiedNumType2 = model.OtherProjectProblemRectifiedNumType2;
+ newModel.OtherProjectProblemNumType3 = model.OtherProjectProblemNumType3;
+ newModel.OtherProjectProblemRectifiedNumType3 = model.OtherProjectProblemRectifiedNumType3;
+ newModel.OtherProjectProblemNumType4 = model.OtherProjectProblemNumType4;
+ newModel.OtherProjectProblemRectifiedNumType4 = model.OtherProjectProblemRectifiedNumType4;
+ newModel.OtherProjectProblemNumType5 = model.OtherProjectProblemNumType5;
+ newModel.OtherProjectProblemRectifiedNumType5 = model.OtherProjectProblemRectifiedNumType5;
+ newModel.OtherProjectProblemNumType6 = model.OtherProjectProblemNumType6;
+ newModel.OtherProjectProblemRectifiedNumType6 = model.OtherProjectProblemRectifiedNumType6;
+ newModel.OtherProjectProblemNumType7 = model.OtherProjectProblemNumType7;
+ newModel.OtherProjectProblemRectifiedNumType7 = model.OtherProjectProblemRectifiedNumType7;
+
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据Id获取数据
+ ///
+ ///
+ public static void DeleteKeyProjectRectificationSituationLedgerById(string Id)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.Id == Id);
+ if (newModel != null)
+ {
+ Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.DeleteOnSubmit(newModel);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据报表单位,报表时间判断是否存在
+ ///
+ /// Id
+ ///
+ public static Model.DCGL_Report_KeyProjectRectificationSituationLedger GetKeyProjectRectificationSituationLedgerByUnitIdDate(string unitId, int year)
+ {
+ return Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == unitId && e.Year == year);
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 19217d5d..b9efa1de 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -2329,6 +2329,8 @@
+
+
@@ -19591,6 +19593,20 @@
AnalyseWorkTimeCost.aspx
+
+ DCGLKeyProjectRectificationSituationLedger.aspx
+ ASPXCodeBehind
+
+
+ DCGLKeyProjectRectificationSituationLedger.aspx
+
+
+ DCGLKeyProjectRectificationSituationLedgerSave.aspx
+ ASPXCodeBehind
+
+
+ DCGLKeyProjectRectificationSituationLedgerSave.aspx
+
DrillConductedQuarterlyReport.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx
new file mode 100644
index 00000000..6f4088cd
--- /dev/null
+++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx
@@ -0,0 +1,411 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DCGLKeyProjectRectificationSituationLedger.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Information.DCGLKeyProjectRectificationSituationLedger" %>
+
+
+
+
+
+
+ 重点工程项目质量专项整治行动开展情况台账
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.cs
new file mode 100644
index 00000000..4b0d9bfd
--- /dev/null
+++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.cs
@@ -0,0 +1,730 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Linq;
+using System.Text;
+using BLL;
+using AspNet = System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.ZHGL.Information
+{
+ public partial class DCGLKeyProjectRectificationSituationLedger : PageBase
+ {
+ #region 加载页面
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ //BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, false);
+ BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false);
+ this.drpUnit.DataTextField = "UnitName";
+ drpUnit.DataValueField = "UnitId";
+ drpUnit.DataSource = BLL.UnitService.GetThisUnitDropDownList();
+ drpUnit.DataBind();
+ this.drpUnit.Readonly = true;
+ ////取上个报表时间
+ DateTime showDate = System.DateTime.Now.AddYears(-1);
+ //DateTime showDate = System.DateTime.Now.AddMonths(-1);
+ //drpMonth.SelectedValue = showDate.Month.ToString();
+ drpYear.SelectedValue = showDate.Year.ToString();
+ GetValue();
+ }
+ }
+
+ #endregion
+
+ #region 获取记录值
+ private void GetValue()
+ {
+ this.GetButtonPower();
+ int year = Funs.GetNewIntOrZero(drpYear.SelectedValue);
+ //int month = Funs.GetNewIntOrZero(drpMonth.SelectedValue);
+ Model.View_DCGLKeyProjectRectificationSituationLedger report = Funs.DB.View_DCGLKeyProjectRectificationSituationLedger.FirstOrDefault(e => e.UnitId == drpUnit.SelectedValue && e.Year == year);
+ if (report != null)
+ {
+ string upState = string.Empty;
+ if (report.UpState == BLL.Const.UpState_3)
+ {
+ upState = "(已上报)";
+ this.btnUpdata.Hidden = true;
+ this.btnDelete.Hidden = true;
+ }
+ else
+ {
+ upState = "(未上报)";
+ }
+ this.SimpleForm1.Title = "重点工程项目质量专项整治行动开展情况台账" + upState;
+ this.lbUnitName.Text = "填报企业:" + report.UnitName;
+ if (report.CompileDate != null)
+ {
+ this.txtCompileDate.Text = "填报日期:" + string.Format("{0:yyyy-MM-dd}", report.CompileDate);
+ }
+ else
+ {
+ this.txtCompileDate.Text = "填报日期:";
+ }
+ this.txtDutyPerson.Text = "负责人:" + report.DutyPerson;
+ if (report.HandleState == BLL.Const.HandleState_1 || report.UpState == BLL.Const.UpState_3)
+ {
+ this.txtHandleMan.Hidden = true;
+ }
+ else
+ {
+ this.txtHandleMan.Hidden = false;
+ this.txtHandleMan.Text = "下一步办理人:" + report.UserName;
+ }
+ this.txtKeyProjectNum.Text = "在建国家重点工程项目数量:" + report.KeyProjectNum.ToString();
+ this.txtHasPlan.Text = "是否制定自查整治方案:" + (report.HasPlan ? "是" : "否");
+ this.txtPlanDate.Text = "制定日期:" + (report.PlanDate != null ? ((DateTime)report.PlanDate).ToString("yyyy-MM-dd") : "");
+ this.txtHasWorkTeam.Text = "是否成立工作专班:" + (report.HasWorkTeam ? "是" : "否");
+ this.txtTeamDate.Text = "成立日期:" + (report.TeamDate != null ? ((DateTime)report.TeamDate).ToString("yyyy-MM-dd") : "");
+
+ var items = (from x in Funs.DB.DCGL_Report_KeyProjectRectificationSituationLedger
+ where x.Id == report.Id
+ select x);
+ Grid1.DataSource = items;
+ Grid1.DataBind();
+
+ Grid2.DataSource = items;
+ Grid2.DataBind();
+
+ }
+ else
+ {
+ SetEmpty();
+ }
+ }
+
+
+ private void SetEmpty()
+ {
+ this.SimpleForm1.Title = string.Empty;
+ this.lbUnitName.Text = "填报企业:";
+ this.txtCompileDate.Text = "填报日期:";
+ this.txtDutyPerson.Text = "负责人:";
+ this.txtHasPlan.Text = "是否制定自查整治方案:";
+ this.txtPlanDate.Text = "制定日期:";
+ this.txtHasWorkTeam.Text = "是否成立工作专班:";
+ this.txtTeamDate.Text = "成立日期:";
+ this.txtKeyProjectNum.Text = "在建国家重点工程项目数量:";
+ //this.txtHandleMan.Text = string.Empty;
+ this.Grid1.DataSource = null;
+ this.Grid1.DataBind();
+ this.Grid2.DataSource = null;
+ this.Grid2.DataBind();
+ }
+
+ #endregion
+
+ #region 月份向前/向后
+ ///
+ /// 前一个月
+ ///
+ ///
+ ///
+ protected void BtnBulletLeft_Click(object sender, EventArgs e)
+ {
+ SetMonthChange("-");
+ }
+
+ ///
+ /// 后一个月
+ ///
+ ///
+ ///
+ protected void BulletRight_Click(object sender, EventArgs e)
+ {
+ SetMonthChange("+");
+ }
+
+ ///
+ /// 月份加减变化
+ ///
+ ///
+ private void SetMonthChange(string type)
+ {
+ //DateTime? nowDate = Funs.GetNewDateTime(this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue);
+ DateTime? nowDate = Funs.GetNewDateTime(this.drpYear.SelectedValue + "-01-01");
+ if (nowDate.HasValue)
+ {
+ DateTime showDate = new DateTime();
+ if (type == "+")
+ {
+ showDate = nowDate.Value.AddYears(1);
+ }
+ else
+ {
+ showDate = nowDate.Value.AddYears(-1);
+ }
+
+ this.drpYear.SelectedValue = showDate.Year.ToString();
+ //drpMonth.SelectedValue = showDate.Month.ToString();
+ ///值变化
+ GetValue();
+ }
+ }
+ #endregion
+
+ #region 关闭弹出窗口
+ ///
+ /// 关闭窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+
+ ///
+ /// 关闭导入弹出窗口
+ ///
+ ///
+ ///
+ protected void Window2_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+
+ ///
+ /// 关闭查看审批信息弹出窗口
+ ///
+ ///
+ ///
+ protected void Window4_Close(object sender, WindowCloseEventArgs e)
+ {
+ GetValue();
+ }
+ #endregion
+
+ #region 排序
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ Grid1.SortDirection = e.SortDirection;
+ Grid1.SortField = e.SortField;
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private void GetButtonPower()
+ {
+ var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DCGLKeyProjectRectificationSituationLedgerMenuId);
+ if (buttonList.Count() > 0)
+ {
+ if (buttonList.Contains(BLL.Const.BtnAdd))
+ {
+ this.btnNew.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnModify))
+ {
+ this.btnEdit.Hidden = false;
+ }
+ if (buttonList.Contains(BLL.Const.BtnDelete))
+ {
+ this.btnDelete.Hidden = false;
+ }
+ //if (buttonList.Contains(BLL.Const.BtnIn))
+ //{
+ // this.btnImport.Hidden = false;
+ //}
+ //if (buttonList.Contains(BLL.Const.BtnPrint))
+ //{
+ // this.btnPrint.Hidden = false;
+ //}
+ }
+
+ var getReport = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ this.btnAudit1.Hidden = true;
+ this.btnAudit2.Hidden = true;
+ this.btnUpdata.Hidden = true;
+ if (getReport != null)
+ {
+ this.btnNew.Hidden = true;
+ if (getReport.HandleMan == this.CurrUser.UserId)//当前人是下一步办理入
+ {
+ if (getReport.HandleState == BLL.Const.HandleState_2)
+ {
+ this.btnAudit1.Hidden = false;
+ this.btnEdit.Hidden = true;
+ }
+ else if (getReport.HandleState == BLL.Const.HandleState_3)
+ {
+ this.btnAudit2.Hidden = false;
+ this.btnEdit.Hidden = true;
+ }
+ else if (getReport.HandleState == BLL.Const.HandleState_4)
+ {
+ this.btnUpdata.Hidden = false;
+ this.btnEdit.Hidden = true;
+ }
+ }
+ }
+ }
+ #endregion
+
+ #region 增加、修改、审核、审批、上报、删除
+ ///
+ /// 增加
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DCGLKeyProjectRectificationSituationLedgerSave.aspx?UnitId={0}&&Year={1}", this.CurrUser.UnitId, this.drpYear.SelectedValue), "重点工程项目质量专项整治行动开展情况台账"));
+ }
+
+ ///
+ /// 修改
+ ///
+ ///
+ ///
+ protected void btnEdit_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DCGLKeyProjectRectificationSituationLedgerSave.aspx?Id={0}", report.Id, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 审核
+ ///
+ ///
+ ///
+ protected void btnAudit1_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DCGLKeyProjectRectificationSituationLedgerSave.aspx?Id={0}", report.Id, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 审批
+ ///
+ ///
+ ///
+ protected void btnAudit2_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DCGLKeyProjectRectificationSituationLedgerSave.aspx?Id={0}", report.Id, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 上报
+ ///
+ ///
+ ///
+ protected void btnUpdata_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DCGLKeyProjectRectificationSituationLedgerSave.aspx?Id={0}", report.Id, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!", MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// 删除
+ ///
+ ///
+ ///
+ protected void btnDelete_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString(), report.Id, BLL.Const.DCGLKeyProjectRectificationSituationLedgerMenuId, BLL.Const.BtnDelete);
+ BLL.ProjectDataFlowSetService.DeleteFlowSetByDataId(report.Id);
+ BLL.DCGL_KeyProjectRectificationSituationLedgerService.DeleteKeyProjectRectificationSituationLedgerById(report.Id);
+
+ //SetEmpty();
+ this.btnNew.Hidden = false;
+ ShowNotify("删除数据成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ ShowNotify("所选时间无报表记录!");
+ }
+ }
+ #endregion
+
+ #region 格式化字符串
+ ///
+ /// 把时间转换为文字形式
+ ///
+ ///
+ ///
+ protected string ConvertCompileDate(object CompileDate)
+ {
+ if (CompileDate != null)
+ {
+ return string.Format("{0:yyyy-MM-dd}", CompileDate);
+ }
+ return "";
+ }
+
+ ///
+ /// 把时间转换为文字形式
+ ///
+ ///
+ ///
+ protected string ConvertDate(object Id)
+ {
+ if (Id != null)
+ {
+ Model.Information_MillionsMonthlyReport report = BLL.MillionsMonthlyReportService.GetMillionsMonthlyReportByMillionsMonthlyReportId(Id.ToString());
+ if (report != null)
+ {
+ return report.Year + "年" + report.Month + "月";
+ }
+ }
+ return "";
+ }
+ #endregion
+
+ #region 单位下拉选择事件
+ ///
+ /// 单位下拉框联动事件
+ ///
+ ///
+ ///
+ protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ var units = BLL.UnitService.GetUnitDropDownList();
+ if (units != null && !string.IsNullOrEmpty(this.drpUnit.SelectedText))
+ {
+ var unit = units.FirstOrDefault(x => x.UnitName == this.drpUnit.SelectedText);
+ if (unit != null)
+ {
+ drpUnit.SelectedValue = unit.UnitId;
+ }
+ }
+
+ GetValue();
+ }
+ #endregion
+
+ #region 导入
+ ///
+ /// 导入按钮
+ ///
+ ///
+ ///
+ protected void btnImport_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../DataIn/MillionsMonthlyReportImport.aspx", "导入 - ")));
+ }
+ #endregion
+
+ #region 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ protected void btnPrint_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("../../ReportPrint/ExReportPrint.aspx?reportId={0}&&replaceParameter={1}&&varValue={2}", Const.DCGLKeyProjectRectificationSituationLedgerMenuId, report.Id, "", "打印 - ")));
+ }
+ }
+ #endregion
+
+ #region 月份向前/向后
+ /////
+ ///// 前一个月
+ /////
+ /////
+ /////
+ //protected void BtnBulletLeft_Click(object sender, EventArgs e)
+ //{
+ // SetMonthChange("-");
+ //}
+
+ /////
+ ///// 后一个月
+ /////
+ /////
+ /////
+ //protected void BulletRight_Click(object sender, EventArgs e)
+ //{
+ // SetMonthChange("+");
+ //}
+
+ /////
+ ///// 月份加减变化
+ /////
+ /////
+ //private void SetMonthChange(string type)
+ //{
+ // DateTime? nowDate = Funs.GetNewDateTime(this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue);
+ // if (nowDate.HasValue)
+ // {
+ // DateTime showDate = new DateTime();
+ // if (type == "+")
+ // {
+ // showDate = nowDate.Value.AddMonths(1);
+ // }
+ // else
+ // {
+ // showDate = nowDate.Value.AddMonths(-1);
+ // }
+
+ // this.drpYear.SelectedValue = showDate.Year.ToString();
+ // drpMonth.SelectedValue = showDate.Month.ToString();
+ // ///值变化
+ // GetValue();
+ // }
+ //}
+ #endregion
+
+ #region 查看审批信息
+ ///
+ /// 查看审批信息
+ ///
+ ///
+ ///
+ protected void btnSee_Click(object sender, EventArgs e)
+ {
+ Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue));
+ if (report != null)
+ {
+ PageContext.RegisterStartupScript(Window4.GetShowReference(String.Format("ReportAuditSee.aspx?Id={0}", report.Id, "查看 - ")));
+ }
+ else
+ {
+ ShowNotify("所选月份无记录!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ Response.ClearContent();
+ string filename = Funs.GetNewFileName();
+ Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("重点工程项目质量专项整治行动开展情况台账" + filename, System.Text.Encoding.UTF8) + ".xls");
+ Response.ContentType = "application/excel";
+ Response.ContentEncoding = System.Text.Encoding.UTF8;
+ Response.Write(GetGridTableHtml(Grid1));
+ Response.End();
+
+ }
+
+ ///
+ /// 导出方法
+ ///
+ ///
+ ///
+ private string GetGridTableHtml(Grid grid)
+ {
+ StringBuilder sb = new StringBuilder();
+ MultiHeaderTable mht = new MultiHeaderTable();
+ mht.ResolveMultiHeaderTable(Grid1.Columns);
+ sb.Append("");
+ sb.Append("");
+ foreach (List
");
+ return sb.ToString();
+ }
+
+ #region 多表头处理
+ ///
+ /// 多表头处理
+ ///
+ public class MultiHeaderTable
+ {
+ // 包含 rowspan,colspan 的多表头,方便生成 HTML 的 table 标签
+ public List> MultiTable = new List>();
+ // 最终渲染的列数组
+ public List Columns = new List();
+ public void ResolveMultiHeaderTable(GridColumnCollection columns)
+ {
+ List