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 + ///// 年度 + ///// 月份 + ///// 重点工程项目质量专项整治行动开展情况台账 + //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 rows in mht.MultiTable) + { + sb.Append(""); + foreach (object[] cell in rows) + { + int rowspan = Convert.ToInt32(cell[0]); + int colspan = Convert.ToInt32(cell[1]); + GridColumn column = cell[2] as GridColumn; + + sb.AppendFormat("{3}", + rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "", + colspan != 1 ? " colspan=\"" + colspan + "\"" : "", + colspan != 1 ? " style=\"text-align:center;\"" : "", + column.HeaderText); + } + sb.Append(""); + } + foreach (GridRow row in grid.Rows) + { + sb.Append(""); + foreach (GridColumn column in mht.Columns) + { + string html = row.Values[column.ColumnIndex].ToString(); + if (column.ColumnID == "tfNumber") + { + html = (row.FindControl("lblNumber") as AspNet.Label).Text; + } + sb.AppendFormat("", html); + } + sb.Append(""); + } + sb.Append("
{0}
"); + 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 row = new List(); + foreach (GridColumn column in columns) + { + object[] cell = new object[4]; + cell[0] = 1; // rowspan + cell[1] = 1; // colspan + cell[2] = column; + cell[3] = null; + row.Add(cell); + } + ResolveMultiTable(row, 0); + ResolveColumns(row); + } + + private void ResolveColumns(List row) + { + foreach (object[] cell in row) + { + GroupField groupField = cell[2] as GroupField; + if (groupField != null && groupField.Columns.Count > 0) + { + List subrow = new List(); + foreach (GridColumn column in groupField.Columns) + { + subrow.Add(new object[] + { + 1, + 1, + column, + groupField + }); + } + ResolveColumns(subrow); + } + else + { + Columns.Add(cell[2] as GridColumn); + } + } + } + + private void ResolveMultiTable(List row, int level) + { + List nextrow = new List(); + + foreach (object[] cell in row) + { + GroupField groupField = cell[2] as GroupField; + if (groupField != null && groupField.Columns.Count > 0) + { + // 如果当前列包含子列,则更改当前列的 colspan,以及增加父列(向上递归)的colspan + cell[1] = Convert.ToInt32(groupField.Columns.Count); + PlusColspan(level - 1, cell[3] as GridColumn, groupField.Columns.Count - 1); + + foreach (GridColumn column in groupField.Columns) + { + nextrow.Add(new object[] + { + 1, + 1, + column, + groupField + }); + } + } + } + MultiTable.Add(row); + // 如果当前下一行,则增加上一行(向上递归)中没有子列的列的 rowspan + if (nextrow.Count > 0) + { + PlusRowspan(level); + ResolveMultiTable(nextrow, level + 1); + } + } + + private void PlusRowspan(int level) + { + if (level < 0) + { + return; + } + foreach (object[] cells in MultiTable[level]) + { + GroupField groupField = cells[2] as GroupField; + if (groupField != null && groupField.Columns.Count > 0) + { + // ... + } + else + { + cells[0] = Convert.ToInt32(cells[0]) + 1; + } + } + PlusRowspan(level - 1); + } + + private void PlusColspan(int level, GridColumn parent, int plusCount) + { + if (level < 0) + { + return; + } + + foreach (object[] cells in MultiTable[level]) + { + GridColumn column = cells[2] as GridColumn; + if (column == parent) + { + cells[1] = Convert.ToInt32(cells[1]) + plusCount; + + PlusColspan(level - 1, cells[3] as GridColumn, plusCount); + } + } + } + } + #endregion + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.designer.cs new file mode 100644 index 00000000..c4eed219 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedger.aspx.designer.cs @@ -0,0 +1,323 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Information +{ + + + public partial class DCGLKeyProjectRectificationSituationLedger + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// RegionPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RegionPanel RegionPanel1; + + /// + /// Region2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Region Region2; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// drpYear 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpYear; + + /// + /// BtnBulletLeft 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button BtnBulletLeft; + + /// + /// BtnBulletRight 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button BtnBulletRight; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// btnAudit1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit1; + + /// + /// btnAudit2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit2; + + /// + /// btnUpdata 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnUpdata; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + + /// + /// lbUnitName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lbUnitName; + + /// + /// txtCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtCompileDate; + + /// + /// txtDutyPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtDutyPerson; + + /// + /// txtHandleMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtHandleMan; + + /// + /// txtHasPlan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtHasPlan; + + /// + /// txtPlanDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtPlanDate; + + /// + /// txtHasWorkTeam 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtHasWorkTeam; + + /// + /// txtTeamDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtTeamDate; + + /// + /// txtKeyProjectNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label txtKeyProjectNum; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Grid2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid2; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + + /// + /// Window5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window5; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx new file mode 100644 index 00000000..8dedf128 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx @@ -0,0 +1,404 @@ +<%@ Page Language="C#" AutoEventWireup="true" Async="true" CodeBehind="DCGLKeyProjectRectificationSituationLedgerSave.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Information.DCGLKeyProjectRectificationSituationLedgerSave" %> + + + + + + + + + + + +
+ + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.cs new file mode 100644 index 00000000..e29e9a8a --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.cs @@ -0,0 +1,615 @@ +using BLL; +using Model; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web.Services; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.ZHGL.Information +{ + public partial class DCGLKeyProjectRectificationSituationLedgerSave : PageBase + { + #region 定义变量 + /// + /// 报表主键Id + /// + public string Id + { + get + { + return (string)ViewState["Id"]; + } + set + { + ViewState["Id"] = value; + } + } + + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.GetButtonPower(); + //BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, ConstValue.Group_0009, false); + BLL.ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false); + //是否制定自查整治方案 + BLL.ConstValue.InitConstValueRadioButtonList(this.rblHasPlan, ConstValue.Group_0001, "False"); + //是否成立工作专班 + BLL.ConstValue.InitConstValueRadioButtonList(this.rblHasWorkTeam, ConstValue.Group_0001, "False"); + this.drpUnit.DataTextField = "UnitName"; + this.drpUnit.DataValueField = "UnitId"; + this.drpUnit.DataSource = BLL.UnitService.GetThisUnitDropDownList(); + this.drpUnit.DataBind(); + this.drpUnit.Readonly = true; + string unitId = Request.QueryString["UnitId"]; + string year = Request.QueryString["Year"]; + this.Id = Request.QueryString["Id"]; + + if (!string.IsNullOrEmpty(this.Id)) + { + var report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerById(Id); + if (report != null) + { + this.btnSave.Hidden = true; + this.btnSubmit.Hidden = true; + //this.btnCopy.Hidden = true; + if (report.HandleState == BLL.Const.HandleState_4) + { + this.btnUpdata.Hidden = false; + } + else + { + if (report.HandleMan == this.CurrUser.UserId || this.CurrUser.UserId == BLL.Const.sysglyId) + { + this.btnSave.Hidden = false; + this.btnSubmit.Hidden = false; + } + } + if (report.UpState == BLL.Const.UpState_3) + { + this.btnSave.Hidden = true; + this.btnUpdata.Hidden = true; + } + //drpMonth.SelectedValue = report.Month.ToString(); + drpYear.SelectedValue = report.Year.ToString(); + drpUnit.SelectedValue = report.UnitId; + if (report.CompileDate != null) + { + this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", report.CompileDate); + } + this.txtDutyPerson.Text = report.DutyPerson; + this.rblHasPlan.SelectedValue = report.HasPlan ? "True" : "False"; + if (report.PlanDate != null) + { + this.txtPlanDate.Text = string.Format("{0:yyyy-MM-dd}", report.PlanDate); + } + this.rblHasWorkTeam.SelectedValue = report.HasWorkTeam ? "True" : "False"; + if (report.TeamDate != null) + { + this.txtTeamDate.Text = string.Format("{0:yyyy-MM-dd}", report.TeamDate); + } + this.txtKeyProjectNum.Text = report.KeyProjectNum.ToString(); + this.txtRemark.Text = report.Remark; + + this.txtStockCompanyKeyProjectCheckNum.Text = report.StockCompanyKeyProjectCheckNum.ToString(); + this.txtStockCompanyKeyProjectProblemNum.Text = report.StockCompanyKeyProjectProblemNum.ToString(); + this.txtStockCompanyKeyProjectProblemRectifiedNum.Text = report.StockCompanyKeyProjectProblemRectifiedNum.ToString(); + + this.txtStockCompanyOtherProjectCheckNum.Text = report.StockCompanyOtherProjectCheckNum.ToString(); + this.txtStockCompanyOtherProjectProblemNum.Text = report.StockCompanyOtherProjectProblemNum.ToString(); + this.txtStockCompanyOtherProjectProblemRectifiedNum.Text = report.StockCompanyOtherProjectProblemRectifiedNum.ToString(); + + this.txtBranchCompanyKeyProjectCheckNum.Text = report.BranchCompanyKeyProjectCheckNum.ToString(); + this.txtBranchCompanyKeyProjectProblemNum.Text = report.BranchCompanyKeyProjectProblemNum.ToString(); + this.txtBranchCompanyKeyProjectProblemRectifiedNum.Text = report.BranchCompanyKeyProjectProblemRectifiedNum.ToString(); + + this.txtBranchCompanyOtherProjectCheckNum.Text = report.BranchCompanyOtherProjectCheckNum.ToString(); + this.txtBranchCompanyOtherProjectProblemNum.Text = report.BranchCompanyOtherProjectProblemNum.ToString(); + this.txtBranchCompanyOtherProjectProblemRectifiedNum.Text = report.BranchCompanyOtherProjectProblemRectifiedNum.ToString(); + + this.txtProjectSelfCheckNum.Text = report.ProjectSelfCheckNum.ToString(); + this.txtProjectSelfCheckProblemNum.Text = report.ProjectSelfCheckProblemNum.ToString(); + this.txtProjectSelfCheckProblemRectifiedNum.Text = report.ProjectSelfCheckProblemRectifiedNum.ToString(); + + this.txtKeyProjectProblemNumType1.Text = report.KeyProjectProblemNumType1.ToString(); + this.txtKeyProjectProblemRectifiedNumType1.Text = report.KeyProjectProblemRectifiedNumType1.ToString(); + this.txtKeyProjectProblemNumType2.Text = report.KeyProjectProblemNumType2.ToString(); + this.txtKeyProjectProblemRectifiedNumType2.Text = report.KeyProjectProblemRectifiedNumType2.ToString(); + this.txtKeyProjectProblemNumType3.Text = report.KeyProjectProblemNumType3.ToString(); + this.txtKeyProjectProblemRectifiedNumType3.Text = report.KeyProjectProblemRectifiedNumType3.ToString(); + this.txtKeyProjectProblemNumType4.Text = report.KeyProjectProblemNumType4.ToString(); + this.txtKeyProjectProblemRectifiedNumType4.Text = report.KeyProjectProblemRectifiedNumType4.ToString(); + this.txtKeyProjectProblemNumType5.Text = report.KeyProjectProblemNumType5.ToString(); + this.txtKeyProjectProblemRectifiedNumType5.Text = report.KeyProjectProblemRectifiedNumType5.ToString(); + this.txtKeyProjectProblemNumType6.Text = report.KeyProjectProblemNumType6.ToString(); + this.txtKeyProjectProblemRectifiedNumType6.Text = report.KeyProjectProblemRectifiedNumType6.ToString(); + this.txtKeyProjectProblemNumType7.Text = report.KeyProjectProblemNumType7.ToString(); + this.txtKeyProjectProblemRectifiedNumType7.Text = report.KeyProjectProblemRectifiedNumType7.ToString(); + + this.txtOtherProjectProblemNumType1.Text = report.OtherProjectProblemNumType1.ToString(); + this.txtOtherProjectProblemRectifiedNumType1.Text = report.OtherProjectProblemRectifiedNumType1.ToString(); + this.txtOtherProjectProblemNumType2.Text = report.OtherProjectProblemNumType2.ToString(); + this.txtOtherProjectProblemRectifiedNumType2.Text = report.OtherProjectProblemRectifiedNumType2.ToString(); + this.txtOtherProjectProblemNumType3.Text = report.OtherProjectProblemNumType3.ToString(); + this.txtOtherProjectProblemRectifiedNumType3.Text = report.OtherProjectProblemRectifiedNumType3.ToString(); + this.txtOtherProjectProblemNumType4.Text = report.OtherProjectProblemNumType4.ToString(); + this.txtOtherProjectProblemRectifiedNumType4.Text = report.OtherProjectProblemRectifiedNumType4.ToString(); + this.txtOtherProjectProblemNumType5.Text = report.OtherProjectProblemNumType5.ToString(); + this.txtOtherProjectProblemRectifiedNumType5.Text = report.OtherProjectProblemRectifiedNumType5.ToString(); + this.txtOtherProjectProblemNumType6.Text = report.OtherProjectProblemNumType6.ToString(); + this.txtOtherProjectProblemRectifiedNumType6.Text = report.OtherProjectProblemRectifiedNumType6.ToString(); + this.txtOtherProjectProblemNumType7.Text = report.OtherProjectProblemNumType7.ToString(); + this.txtOtherProjectProblemRectifiedNumType7.Text = report.OtherProjectProblemRectifiedNumType7.ToString(); + } + } + else + { + //this.btnCopy.Hidden = false; + //drpMonth.SelectedValue = months; + drpYear.SelectedValue = year; + this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); + this.txtDutyPerson.Text = this.CurrUser.UserName; + + + //this.txtRecordableIncidentRate.Text = "0"; + //this.txtLostTimeRate.Text = "0"; + //this.txtLostTimeInjuryRate.Text = "0"; + //this.txtDeathAccidentFrequency.Text = "0"; + //this.txtAccidentMortality.Text = "0"; + } + } + } + #endregion + + #region 关闭窗口 + /// + /// 关闭窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerById(Id); + if (report.HandleMan == this.CurrUser.UserId) + { + this.btnSave.Hidden = false; + this.btnSubmit.Hidden = false; + } + else + { + this.btnSave.Hidden = true; + this.btnSubmit.Hidden = true; + } + } + #endregion + + #region 保存、提交、上报 + /// + /// 保存数据 + /// + /// + private void Save(string type) + { + Model.DCGL_Report_KeyProjectRectificationSituationLedger report = new DCGL_Report_KeyProjectRectificationSituationLedger(); + report.UnitId = drpUnit.SelectedValue; + report.Year = Funs.GetNewIntOrZero(drpYear.SelectedValue); + report.HasPlan = this.rblHasPlan.SelectedValue == "True"; + report.HasWorkTeam = this.rblHasWorkTeam.SelectedValue == "True"; + if (!string.IsNullOrEmpty(txtPlanDate.Text.Trim())) + { + report.PlanDate = Convert.ToDateTime(txtPlanDate.Text.Trim()); + } + if (!string.IsNullOrEmpty(txtTeamDate.Text.Trim())) + { + report.TeamDate = Convert.ToDateTime(txtTeamDate.Text.Trim()); + } + if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim())) + { + report.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim()); + } + report.DutyPerson = this.txtDutyPerson.Text.Trim(); + report.Remark = this.txtRemark.Text.Trim(); + + report.KeyProjectNum = Funs.GetNewIntOrZero(this.txtKeyProjectNum.Text.Trim()); + + report.StockCompanyKeyProjectCheckNum = Funs.GetNewIntOrZero(this.txtStockCompanyKeyProjectCheckNum.Text.Trim()); + report.StockCompanyKeyProjectProblemNum = Funs.GetNewIntOrZero(this.txtStockCompanyKeyProjectProblemNum.Text.Trim()); + report.StockCompanyKeyProjectProblemRectifiedNum = Funs.GetNewIntOrZero(this.txtStockCompanyKeyProjectProblemRectifiedNum.Text.Trim()); + + report.StockCompanyOtherProjectCheckNum = Funs.GetNewIntOrZero(this.txtStockCompanyOtherProjectCheckNum.Text.Trim()); + report.StockCompanyOtherProjectProblemNum = Funs.GetNewIntOrZero(this.txtStockCompanyOtherProjectProblemNum.Text.Trim()); + report.StockCompanyOtherProjectProblemRectifiedNum = Funs.GetNewIntOrZero(this.txtStockCompanyOtherProjectProblemRectifiedNum.Text.Trim()); + + report.BranchCompanyKeyProjectCheckNum = Funs.GetNewIntOrZero(this.txtBranchCompanyKeyProjectCheckNum.Text.Trim()); + report.BranchCompanyKeyProjectProblemNum = Funs.GetNewIntOrZero(this.txtBranchCompanyKeyProjectProblemNum.Text.Trim()); + report.BranchCompanyKeyProjectProblemRectifiedNum = Funs.GetNewIntOrZero(this.txtBranchCompanyKeyProjectProblemRectifiedNum.Text.Trim()); + + report.BranchCompanyOtherProjectCheckNum = Funs.GetNewIntOrZero(this.txtBranchCompanyOtherProjectCheckNum.Text.Trim()); + report.BranchCompanyOtherProjectProblemNum = Funs.GetNewIntOrZero(this.txtBranchCompanyOtherProjectProblemNum.Text.Trim()); + report.BranchCompanyOtherProjectProblemRectifiedNum = Funs.GetNewIntOrZero(this.txtBranchCompanyOtherProjectProblemRectifiedNum.Text.Trim()); + + report.ProjectSelfCheckNum = Funs.GetNewIntOrZero(this.txtProjectSelfCheckNum.Text.Trim()); + report.ProjectSelfCheckProblemNum = Funs.GetNewIntOrZero(this.txtProjectSelfCheckProblemNum.Text.Trim()); + report.ProjectSelfCheckProblemRectifiedNum = Funs.GetNewIntOrZero(this.txtProjectSelfCheckProblemRectifiedNum.Text.Trim()); + + report.KeyProjectProblemNumType1 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType1.Text.Trim()); + report.KeyProjectProblemRectifiedNumType1 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType1.Text.Trim()); + + report.KeyProjectProblemNumType2 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType2.Text.Trim()); + report.KeyProjectProblemRectifiedNumType2 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType2.Text.Trim()); + + report.KeyProjectProblemNumType3 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType3.Text.Trim()); + report.KeyProjectProblemRectifiedNumType3 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType3.Text.Trim()); + + report.KeyProjectProblemNumType4 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType4.Text.Trim()); + report.KeyProjectProblemRectifiedNumType4 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType5.Text.Trim()); + + report.KeyProjectProblemNumType5 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType5.Text.Trim()); + report.KeyProjectProblemRectifiedNumType5 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType5.Text.Trim()); + + report.KeyProjectProblemNumType6 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType6.Text.Trim()); + report.KeyProjectProblemRectifiedNumType6 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType6.Text.Trim()); + + report.KeyProjectProblemNumType7 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemNumType7.Text.Trim()); + report.KeyProjectProblemRectifiedNumType7 = Funs.GetNewIntOrZero(this.txtKeyProjectProblemRectifiedNumType7.Text.Trim()); + + report.OtherProjectProblemNumType1 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType1.Text.Trim()); + report.OtherProjectProblemRectifiedNumType1 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType1.Text.Trim()); + + report.OtherProjectProblemNumType2 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType2.Text.Trim()); + report.OtherProjectProblemRectifiedNumType2 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType2.Text.Trim()); + + report.OtherProjectProblemNumType3 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType3.Text.Trim()); + report.OtherProjectProblemRectifiedNumType3 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType3.Text.Trim()); + + report.OtherProjectProblemNumType4 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType4.Text.Trim()); + report.OtherProjectProblemRectifiedNumType4 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType4.Text.Trim()); + + report.OtherProjectProblemNumType5 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType5.Text.Trim()); + report.OtherProjectProblemRectifiedNumType5 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType5.Text.Trim()); + + report.OtherProjectProblemNumType6 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType6.Text.Trim()); + report.OtherProjectProblemRectifiedNumType6 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType6.Text.Trim()); + + report.OtherProjectProblemNumType7 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemNumType7.Text.Trim()); + report.OtherProjectProblemRectifiedNumType7 = Funs.GetNewIntOrZero(this.txtOtherProjectProblemRectifiedNumType7.Text.Trim()); + if (string.IsNullOrEmpty(Id)) + { + DCGL_Report_KeyProjectRectificationSituationLedger old = DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(drpUnit.SelectedValue, Funs.GetNewIntOrZero(drpYear.SelectedValue)); + if (old == null) + { + report.Id = SQLHelper.GetNewID(typeof(Model.DCGL_Report_KeyProjectRectificationSituationLedger)); + report.UpState = BLL.Const.UpState_2; + report.CompileManName = this.CurrUser.UserName; + report.CompileMan = this.CurrUser.UserId; + report.CompileDate = DateTime.Now; + report.HandleState = BLL.Const.HandleState_1; + report.HandleMan = this.CurrUser.UserId; + BLL.DCGL_KeyProjectRectificationSituationLedgerService.AddKeyProjectRectificationSituationLedger(report); + BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString(), report.Id, BLL.Const.DCGLKeyProjectRectificationSituationLedgerMenuId, BLL.Const.BtnAdd); + } + else + { + ShowNotify("该年份记录已存在!", MessageBoxIcon.Warning); + return; + } + } + else + { + Model.DCGL_Report_KeyProjectRectificationSituationLedger oldReport = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerById(Id); + if (oldReport != null) + { + report.HandleMan = oldReport.HandleMan; + report.HandleState = oldReport.HandleState; + } + report.Id = Id; + report.UpState = BLL.Const.UpState_2; + BLL.DCGL_KeyProjectRectificationSituationLedgerService.UpdateKeyProjectRectificationSituationLedger(report); + BLL.LogService.AddSys_Log(this.CurrUser, report.Year.ToString(), report.Id, BLL.Const.DCGLKeyProjectRectificationSituationLedgerMenuId, BLL.Const.BtnModify); + } + Id = report.Id; + + if (type == "updata") //数据同步 + { + if (report.UpState == BLL.Const.UpState_2) + { + string code = CNCECHSSEWebService.UpKeyProjectRectificationSituationLedger(report.Id, this.CurrUser); + if (code == "1") + { + //WorkflowTodoitemsService.DoneWorkflow_TodoItems(report.Id, this.CurrUser.UserId);//完成当前人待办 + ShowNotify("同步成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + else + { + Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error); + } + } + else + { + ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning); + return; + } + } + else if (type == "submit") + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ReportSubmit.aspx?Type=KeyProjectRectificationSituationLedger&Id={0}", report.Id, "编辑 - "))); + } + else if (type == "add") + { + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + return; + } + } + + protected void btnSave_Click(object sender, EventArgs e) + { + Save("add"); + } + + protected void btnUpdata_Click(object sender, EventArgs e) + { + Save("updata"); + } + + protected void btnSubmit_Click(object sender, EventArgs e) + { + Save("submit"); + } + + #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.BtnSave)) + { + this.btnSave.Hidden = false; + //this.btnCopy.Hidden = false; + } + //if (buttonList.Contains(BLL.Const.BtnSaveUp)) + //{ + // this.btnUpdata.Hidden = false; + //} + if (buttonList.Contains(BLL.Const.BtnSubmit)) + { + this.btnSubmit.Hidden = false; + //this.btnCopy.Hidden = false; + } + } + } + #endregion + + #region 复制上个月数据 + /// + /// 复制上个月的数据 + /// + /// + /// + protected void btnCopy_Click(object sender, EventArgs e) + { + //DateTime? nowDate = Funs.GetNewDateTime(this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue); + //if (nowDate.HasValue) + //{ + // DateTime showDate = new DateTime(); + // showDate = nowDate.Value.AddMonths(-1); + // Model.DCGL_Report_KeyProjectRectificationSituationLedger report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerByUnitIdDate(this.drpUnit.SelectedValue, showDate.Year); + // if (report != null) + // { + // Model.DCGL_Report_KeyProjectRectificationSituationLedger newModel = new DCGL_Report_KeyProjectRectificationSituationLedger(); + // this.Id = SQLHelper.GetNewID(typeof(Model.DCGL_Report_KeyProjectRectificationSituationLedger)); + // newModel.Id = this.Id; + // newModel.UnitId = this.drpUnit.SelectedValue; + // newModel.Year = Convert.ToInt32(this.drpYear.SelectedValue); + // newModel.Month = Convert.ToInt32(this.drpMonth.SelectedValue); + // newModel.FillingMan = this.CurrUser.UserName; + // newModel.FillingDate = DateTime.Now; + // newModel.DutyPerson = this.CurrUser.UserName; + // newModel.RecordableIncidentRate = report.RecordableIncidentRate; + // newModel.LostTimeRate = report.LostTimeRate; + // newModel.LostTimeInjuryRate = report.LostTimeInjuryRate; + // newModel.DeathAccidentFrequency = report.DeathAccidentFrequency; + // newModel.AccidentMortality = report.AccidentMortality; + // newModel.UpState = BLL.Const.UpState_2; + // newModel.HandleState = BLL.Const.HandleState_1; + // newModel.HandleMan = this.CurrUser.UserId; + // newModel.InputCosts = report.InputCosts; + // newModel.TrainNum = report.TrainNum; + // newModel.GeneralHazardNum = report.GeneralHazardNum; + // newModel.MajorHazardNum = report.MajorHazardNum; + // newModel.NotProofLargeProjectNum = report.NotProofLargeProjectNum; + // newModel.ProofLargeProjectNum = report.ProofLargeProjectNum; + // newModel.FireLicenseNum = report.FireLicenseNum; + // newModel.LimitLicenseNum = report.LimitLicenseNum; + // newModel.HighLicenseNum = report.HighLicenseNum; + // newModel.HoistingLicenseNum = report.HoistingLicenseNum; + // newModel.BreakGroundLicenseNum = report.BreakGroundLicenseNum; + // newModel.ElectricityLicenseNum = report.ElectricityLicenseNum; + // newModel.RTLicenseNum = report.RTLicenseNum; + // newModel.NightLicenseNum = report.NightLicenseNum; + // newModel.CommissionerNum = report.CommissionerNum; + // newModel.SoleDutyNum = report.SoleDutyNum; + // BLL.DCGL_KeyProjectRectificationSituationLedgerService.AddMillionsMonthlyReport(newModel); + + // items = BLL.MillionsMonthlyReportItemService.GetItems(report.Id); + // if (items.Count > 0) + // { + // foreach (var item in items) + // { + // if (item.Affiliation != "本月合计" || item.Name != "本月合计") + // { + // Model.Information_MillionsMonthlyReportItem newItem = new Information_MillionsMonthlyReportItem + // { + // MillionsMonthlyReportItemId = SQLHelper.GetNewID(typeof(Model.Information_MillionsMonthlyReportItem)), + // Id = this.Id, + // SortIndex = item.SortIndex, + // Affiliation = item.Affiliation, + // Name = item.Name, + // PostPersonNum = item.PostPersonNum, + // SnapPersonNum = item.SnapPersonNum, + // ContractorNum = item.ContractorNum, + // SumPersonNum = item.SumPersonNum, + // TotalWorkNum = item.TotalWorkNum, + // SeriousInjuriesNum = item.SeriousInjuriesNum, + // SeriousInjuriesPersonNum = item.SeriousInjuriesPersonNum, + // SeriousInjuriesLossHour = item.SeriousInjuriesLossHour, + // MinorAccidentNum = item.MinorAccidentNum, + // MinorAccidentPersonNum = item.MinorAccidentPersonNum, + // MinorAccidentLossHour = item.MinorAccidentLossHour, + // DeathAccidentNum = item.DeathAccidentNum, + // DeathAccidentPersonNum = item.DeathAccidentPersonNum, + // DeathAccidentLossHour = item.DeathAccidentLossHour, + // RestrictedWorkPersonNum = item.RestrictedWorkPersonNum, + // RestrictedWorkLossHour = item.RestrictedWorkLossHour, + // MedicalTreatmentPersonNum = item.MedicalTreatmentPersonNum, + // MedicalTreatmentLossHour = item.MedicalTreatmentLossHour, + // FireNum = item.FireNum, + // EnvironmenNum = item.EnvironmenNum, + // TrafficNum = item.TrafficNum, + // EquipmentNum = item.EquipmentNum, + // QualityNum = item.QualityNum, + // OtherNum = item.OtherNum, + // FirstAidDressingsNum = item.FirstAidDressingsNum, + // AttemptedEventNum = item.AttemptedEventNum, + // LossDayNum = item.LossDayNum + // }; + // BLL.MillionsMonthlyReportItemService.AddMillionsMonthlyReportItem(newItem); + // } + // } + // } + + // GetValues(newModel.Id); + // } + //} + } + + /// + /// 获取复制的值绑定到文本中 + /// + private void GetValues(string Id) + { + var report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerById(Id); + //if (report != null) + //{ + // drpMonth.SelectedValue = report.Month.ToString(); + // drpYear.SelectedValue = report.Year.ToString(); + // drpUnit.SelectedValue = report.UnitId; + // if (report.FillingDate != null) + // { + // txtReportDate.Text = string.Format("{0:yyyy-MM-dd}", report.FillingDate); + // } + // txtDutyPerson.Text = report.DutyPerson; + // if (report.RecordableIncidentRate != null) + // { + // txtRecordableIncidentRate.Text = report.RecordableIncidentRate.ToString(); + // } + // if (report.LostTimeRate != null) + // { + // txtLostTimeRate.Text = report.LostTimeRate.ToString(); + // } + // if (report.LostTimeInjuryRate != null) + // { + // txtLostTimeInjuryRate.Text = report.LostTimeInjuryRate.ToString(); + // } + // if (report.DeathAccidentFrequency != null) + // { + // txtDeathAccidentFrequency.Text = report.DeathAccidentFrequency.ToString(); + // } + // if (report.AccidentMortality != null) + // { + // txtAccidentMortality.Text = report.AccidentMortality.ToString(); + // } + // if (report.InputCosts != null) + // { + // this.txtInputCosts.Text = Convert.ToString(report.InputCosts); + // } + // if (report.TrainNum != null) + // { + // this.txtTrainNum.Text = Convert.ToString(report.TrainNum); + // } + // if (report.GeneralHazardNum != null) + // { + // this.txtGeneralHazardNum.Text = Convert.ToString(report.GeneralHazardNum); + // } + // if (report.MajorHazardNum != null) + // { + // this.txtMajorHazardNum.Text = Convert.ToString(report.MajorHazardNum); + // } + // if (report.NotProofLargeProjectNum != null) + // { + // this.txtNotProofLargeProjectNum.Text = Convert.ToString(report.NotProofLargeProjectNum); + // } + // if (report.ProofLargeProjectNum != null) + // { + // this.txtProofLargeProjectNum.Text = Convert.ToString(report.ProofLargeProjectNum); + // } + // if (report.FireLicenseNum != null) + // { + // this.txtFireLicenseNum.Text = Convert.ToString(report.FireLicenseNum); + // } + // if (report.LimitLicenseNum != null) + // { + // this.txtLimitLicenseNum.Text = Convert.ToString(report.LimitLicenseNum); + // } + // if (report.HighLicenseNum != null) + // { + // this.txtHighLicenseNum.Text = Convert.ToString(report.HighLicenseNum); + // } + // if (report.HoistingLicenseNum != null) + // { + // this.txtHoistingLicenseNum.Text = Convert.ToString(report.HoistingLicenseNum); + // } + // if (report.BreakGroundLicenseNum != null) + // { + // this.txtBreakGroundLicenseNum.Text = Convert.ToString(report.BreakGroundLicenseNum); + // } + // if (report.ElectricityLicenseNum != null) + // { + // this.txtElectricityLicenseNum.Text = Convert.ToString(report.ElectricityLicenseNum); + // } + // if (report.RTLicenseNum != null) + // { + // this.txtRTLicenseNum.Text = Convert.ToString(report.RTLicenseNum); + // } + // if (report.NightLicenseNum != null) + // { + // this.txtNightLicenseNum.Text = Convert.ToString(report.NightLicenseNum); + // } + // if (report.CommissionerNum != null) + // { + // this.txtCommissionerNum.Text = Convert.ToString(report.CommissionerNum); + // } + // if (report.SoleDutyNum != null) + // { + // this.txtSoleDutyNum.Text = Convert.ToString(report.SoleDutyNum); + // } + // items = BLL.MillionsMonthlyReportItemService.GetItems(Id); + // this.Grid1.DataSource = items; + // this.Grid1.DataBind(); + //} + } + #endregion + + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.designer.cs new file mode 100644 index 00000000..09f4fb59 --- /dev/null +++ b/SGGL/FineUIPro.Web/ZHGL/Information/DCGLKeyProjectRectificationSituationLedgerSave.aspx.designer.cs @@ -0,0 +1,737 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.ZHGL.Information +{ + + + public partial class DCGLKeyProjectRectificationSituationLedgerSave + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// drpYear 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpYear; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + + /// + /// txtCompileDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtCompileDate; + + /// + /// txtDutyPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDutyPerson; + + /// + /// rblHasPlan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblHasPlan; + + /// + /// txtPlanDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtPlanDate; + + /// + /// txtKeyProjectNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectNum; + + /// + /// rblHasWorkTeam 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rblHasWorkTeam; + + /// + /// txtTeamDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtTeamDate; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// GroupPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel1; + + /// + /// GroupPanel7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel7; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// txtStockCompanyKeyProjectCheckNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyKeyProjectCheckNum; + + /// + /// txtStockCompanyKeyProjectProblemNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyKeyProjectProblemNum; + + /// + /// txtStockCompanyKeyProjectProblemRectifiedNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyKeyProjectProblemRectifiedNum; + + /// + /// GroupPanel2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel2; + + /// + /// Form3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form3; + + /// + /// txtStockCompanyOtherProjectCheckNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyOtherProjectCheckNum; + + /// + /// txtStockCompanyOtherProjectProblemNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyOtherProjectProblemNum; + + /// + /// txtStockCompanyOtherProjectProblemRectifiedNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtStockCompanyOtherProjectProblemRectifiedNum; + + /// + /// GroupPanel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel3; + + /// + /// GroupPanel4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel4; + + /// + /// Form4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form4; + + /// + /// txtBranchCompanyKeyProjectCheckNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyKeyProjectCheckNum; + + /// + /// txtBranchCompanyKeyProjectProblemNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyKeyProjectProblemNum; + + /// + /// txtBranchCompanyKeyProjectProblemRectifiedNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyKeyProjectProblemRectifiedNum; + + /// + /// GroupPanel8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel8; + + /// + /// Form8 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form8; + + /// + /// txtBranchCompanyOtherProjectCheckNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyOtherProjectCheckNum; + + /// + /// txtBranchCompanyOtherProjectProblemNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyOtherProjectProblemNum; + + /// + /// txtBranchCompanyOtherProjectProblemRectifiedNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBranchCompanyOtherProjectProblemRectifiedNum; + + /// + /// GroupPanel5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel5; + + /// + /// Form6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form6; + + /// + /// txtProjectSelfCheckNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtProjectSelfCheckNum; + + /// + /// txtProjectSelfCheckProblemNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtProjectSelfCheckProblemNum; + + /// + /// txtProjectSelfCheckProblemRectifiedNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtProjectSelfCheckProblemRectifiedNum; + + /// + /// GroupPanel6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel6; + + /// + /// GroupPanel9 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel9; + + /// + /// Form5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form5; + + /// + /// txtKeyProjectProblemNumType1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType1; + + /// + /// txtKeyProjectProblemRectifiedNumType1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType1; + + /// + /// txtKeyProjectProblemNumType2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType2; + + /// + /// txtKeyProjectProblemRectifiedNumType2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType2; + + /// + /// txtKeyProjectProblemNumType3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType3; + + /// + /// txtKeyProjectProblemRectifiedNumType3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType3; + + /// + /// txtKeyProjectProblemNumType4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType4; + + /// + /// txtKeyProjectProblemRectifiedNumType4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType4; + + /// + /// txtKeyProjectProblemNumType5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType5; + + /// + /// txtKeyProjectProblemRectifiedNumType5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType5; + + /// + /// txtKeyProjectProblemNumType6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType6; + + /// + /// txtKeyProjectProblemRectifiedNumType6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType6; + + /// + /// txtKeyProjectProblemNumType7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemNumType7; + + /// + /// txtKeyProjectProblemRectifiedNumType7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtKeyProjectProblemRectifiedNumType7; + + /// + /// GroupPanel10 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GroupPanel10; + + /// + /// Form7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form7; + + /// + /// txtOtherProjectProblemNumType1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType1; + + /// + /// txtOtherProjectProblemRectifiedNumType1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType1; + + /// + /// txtOtherProjectProblemNumType2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType2; + + /// + /// txtOtherProjectProblemRectifiedNumType2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType2; + + /// + /// txtOtherProjectProblemNumType3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType3; + + /// + /// txtOtherProjectProblemRectifiedNumType3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType3; + + /// + /// txtOtherProjectProblemNumType4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType4; + + /// + /// txtOtherProjectProblemRectifiedNumType4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType4; + + /// + /// txtOtherProjectProblemNumType5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType5; + + /// + /// txtOtherProjectProblemRectifiedNumType5 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType5; + + /// + /// txtOtherProjectProblemNumType6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType6; + + /// + /// txtOtherProjectProblemRectifiedNumType6 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType6; + + /// + /// txtOtherProjectProblemNumType7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemNumType7; + + /// + /// txtOtherProjectProblemRectifiedNumType7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtOtherProjectProblemRectifiedNumType7; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnSubmit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSubmit; + + /// + /// btnUpdata 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnUpdata; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + } +} diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/ReportSubmit.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Information/ReportSubmit.aspx.cs index 873881e6..d3fc6b32 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/ReportSubmit.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Information/ReportSubmit.aspx.cs @@ -106,7 +106,20 @@ namespace FineUIPro.Web.ZHGL.Information string handleStates = (this.cbNext.SelectedValue == "0") ? BLL.Const.HandleState_4 : BLL.Const.HandleState_3; if (!string.IsNullOrEmpty(handleMan) && handleMan != Const._Null) { - + #region 督查大队:重点工程项目质量专项整治行动开展情况台账 + if (Type == "KeyProjectRectificationSituationLedger")//督查大队:重点工程项目质量专项整治行动开展情况台账 + { + var report = BLL.DCGL_KeyProjectRectificationSituationLedgerService.GetKeyProjectRectificationSituationLedgerById(Id); + if (report != null) + { + SetFlowData(Const.DCGLKeyProjectRectificationSituationLedgerMenuId, this.Id, handleMan); + report.HandleState = handleStates; + report.HandleMan = handleMan; + BLL.DCGL_KeyProjectRectificationSituationLedgerService.UpdateKeyProjectRectificationSituationLedger(report); + } + } + #endregion + #region 企业安全数据统计月报 if (Type == "MillionsMonthlyReport")//企业安全数据统计月报 { diff --git a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml index 52ffa4ab..0d682ed3 100644 --- a/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml +++ b/SGGL/FineUIPro.Web/common/Menu_ZHGL.xml @@ -49,6 +49,7 @@ + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 2dc4d72b..75e0bcbe 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -752,6 +752,9 @@ namespace Model partial void InsertDCGL_Check_CheckRectifyItem(DCGL_Check_CheckRectifyItem instance); partial void UpdateDCGL_Check_CheckRectifyItem(DCGL_Check_CheckRectifyItem instance); partial void DeleteDCGL_Check_CheckRectifyItem(DCGL_Check_CheckRectifyItem instance); + partial void InsertDCGL_Report_KeyProjectRectificationSituationLedger(DCGL_Report_KeyProjectRectificationSituationLedger instance); + partial void UpdateDCGL_Report_KeyProjectRectificationSituationLedger(DCGL_Report_KeyProjectRectificationSituationLedger instance); + partial void DeleteDCGL_Report_KeyProjectRectificationSituationLedger(DCGL_Report_KeyProjectRectificationSituationLedger instance); partial void InsertDigData_HSEDataCollect(DigData_HSEDataCollect instance); partial void UpdateDigData_HSEDataCollect(DigData_HSEDataCollect instance); partial void DeleteDigData_HSEDataCollect(DigData_HSEDataCollect instance); @@ -4800,6 +4803,14 @@ namespace Model } } + public System.Data.Linq.Table DCGL_Report_KeyProjectRectificationSituationLedger + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table DigData_HSEDataCollect { get @@ -10216,6 +10227,14 @@ namespace Model } } + public System.Data.Linq.Table View_DCGLKeyProjectRectificationSituationLedger + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_DriverGoods_GoodsBuyItem { get @@ -127822,6 +127841,1484 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.DCGL_Report_KeyProjectRectificationSituationLedger")] + public partial class DCGL_Report_KeyProjectRectificationSituationLedger : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _UnitId; + + private int _Year; + + private System.Nullable _ReportDate; + + private string _DutyPerson; + + private string _UpState; + + private string _HandleState; + + private string _HandleMan; + + private bool _HasPlan; + + private System.Nullable _PlanDate; + + private bool _HasWorkTeam; + + private System.Nullable _TeamDate; + + private int _KeyProjectNum; + + private int _StockCompanyKeyProjectCheckNum; + + private int _StockCompanyKeyProjectProblemNum; + + private int _StockCompanyKeyProjectProblemRectifiedNum; + + private int _StockCompanyOtherProjectCheckNum; + + private int _StockCompanyOtherProjectProblemNum; + + private int _StockCompanyOtherProjectProblemRectifiedNum; + + private int _BranchCompanyKeyProjectCheckNum; + + private int _BranchCompanyKeyProjectProblemNum; + + private int _BranchCompanyKeyProjectProblemRectifiedNum; + + private int _BranchCompanyOtherProjectCheckNum; + + private int _BranchCompanyOtherProjectProblemNum; + + private int _BranchCompanyOtherProjectProblemRectifiedNum; + + private int _ProjectSelfCheckNum; + + private int _ProjectSelfCheckProblemNum; + + private int _ProjectSelfCheckProblemRectifiedNum; + + private int _KeyProjectProblemNumType1; + + private int _KeyProjectProblemRectifiedNumType1; + + private int _KeyProjectProblemNumType2; + + private int _KeyProjectProblemRectifiedNumType2; + + private int _KeyProjectProblemNumType3; + + private int _KeyProjectProblemRectifiedNumType3; + + private int _KeyProjectProblemNumType4; + + private int _KeyProjectProblemRectifiedNumType4; + + private int _KeyProjectProblemNumType5; + + private int _KeyProjectProblemRectifiedNumType5; + + private int _KeyProjectProblemNumType6; + + private int _KeyProjectProblemRectifiedNumType6; + + private int _KeyProjectProblemNumType7; + + private int _KeyProjectProblemRectifiedNumType7; + + private int _OtherProjectProblemNumType1; + + private int _OtherProjectProblemRectifiedNumType1; + + private int _OtherProjectProblemNumType2; + + private int _OtherProjectProblemRectifiedNumType2; + + private int _OtherProjectProblemNumType3; + + private int _OtherProjectProblemRectifiedNumType3; + + private int _OtherProjectProblemNumType4; + + private int _OtherProjectProblemRectifiedNumType4; + + private int _OtherProjectProblemNumType5; + + private int _OtherProjectProblemRectifiedNumType5; + + private int _OtherProjectProblemNumType6; + + private int _OtherProjectProblemRectifiedNumType6; + + private int _OtherProjectProblemNumType7; + + private int _OtherProjectProblemRectifiedNumType7; + + private string _Remark; + + private string _CompileMan; + + private string _CompileManName; + + private System.DateTime _CompileDate; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnYearChanging(int value); + partial void OnYearChanged(); + partial void OnReportDateChanging(System.Nullable value); + partial void OnReportDateChanged(); + partial void OnDutyPersonChanging(string value); + partial void OnDutyPersonChanged(); + partial void OnUpStateChanging(string value); + partial void OnUpStateChanged(); + partial void OnHandleStateChanging(string value); + partial void OnHandleStateChanged(); + partial void OnHandleManChanging(string value); + partial void OnHandleManChanged(); + partial void OnHasPlanChanging(bool value); + partial void OnHasPlanChanged(); + partial void OnPlanDateChanging(System.Nullable value); + partial void OnPlanDateChanged(); + partial void OnHasWorkTeamChanging(bool value); + partial void OnHasWorkTeamChanged(); + partial void OnTeamDateChanging(System.Nullable value); + partial void OnTeamDateChanged(); + partial void OnKeyProjectNumChanging(int value); + partial void OnKeyProjectNumChanged(); + partial void OnStockCompanyKeyProjectCheckNumChanging(int value); + partial void OnStockCompanyKeyProjectCheckNumChanged(); + partial void OnStockCompanyKeyProjectProblemNumChanging(int value); + partial void OnStockCompanyKeyProjectProblemNumChanged(); + partial void OnStockCompanyKeyProjectProblemRectifiedNumChanging(int value); + partial void OnStockCompanyKeyProjectProblemRectifiedNumChanged(); + partial void OnStockCompanyOtherProjectCheckNumChanging(int value); + partial void OnStockCompanyOtherProjectCheckNumChanged(); + partial void OnStockCompanyOtherProjectProblemNumChanging(int value); + partial void OnStockCompanyOtherProjectProblemNumChanged(); + partial void OnStockCompanyOtherProjectProblemRectifiedNumChanging(int value); + partial void OnStockCompanyOtherProjectProblemRectifiedNumChanged(); + partial void OnBranchCompanyKeyProjectCheckNumChanging(int value); + partial void OnBranchCompanyKeyProjectCheckNumChanged(); + partial void OnBranchCompanyKeyProjectProblemNumChanging(int value); + partial void OnBranchCompanyKeyProjectProblemNumChanged(); + partial void OnBranchCompanyKeyProjectProblemRectifiedNumChanging(int value); + partial void OnBranchCompanyKeyProjectProblemRectifiedNumChanged(); + partial void OnBranchCompanyOtherProjectCheckNumChanging(int value); + partial void OnBranchCompanyOtherProjectCheckNumChanged(); + partial void OnBranchCompanyOtherProjectProblemNumChanging(int value); + partial void OnBranchCompanyOtherProjectProblemNumChanged(); + partial void OnBranchCompanyOtherProjectProblemRectifiedNumChanging(int value); + partial void OnBranchCompanyOtherProjectProblemRectifiedNumChanged(); + partial void OnProjectSelfCheckNumChanging(int value); + partial void OnProjectSelfCheckNumChanged(); + partial void OnProjectSelfCheckProblemNumChanging(int value); + partial void OnProjectSelfCheckProblemNumChanged(); + partial void OnProjectSelfCheckProblemRectifiedNumChanging(int value); + partial void OnProjectSelfCheckProblemRectifiedNumChanged(); + partial void OnKeyProjectProblemNumType1Changing(int value); + partial void OnKeyProjectProblemNumType1Changed(); + partial void OnKeyProjectProblemRectifiedNumType1Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType1Changed(); + partial void OnKeyProjectProblemNumType2Changing(int value); + partial void OnKeyProjectProblemNumType2Changed(); + partial void OnKeyProjectProblemRectifiedNumType2Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType2Changed(); + partial void OnKeyProjectProblemNumType3Changing(int value); + partial void OnKeyProjectProblemNumType3Changed(); + partial void OnKeyProjectProblemRectifiedNumType3Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType3Changed(); + partial void OnKeyProjectProblemNumType4Changing(int value); + partial void OnKeyProjectProblemNumType4Changed(); + partial void OnKeyProjectProblemRectifiedNumType4Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType4Changed(); + partial void OnKeyProjectProblemNumType5Changing(int value); + partial void OnKeyProjectProblemNumType5Changed(); + partial void OnKeyProjectProblemRectifiedNumType5Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType5Changed(); + partial void OnKeyProjectProblemNumType6Changing(int value); + partial void OnKeyProjectProblemNumType6Changed(); + partial void OnKeyProjectProblemRectifiedNumType6Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType6Changed(); + partial void OnKeyProjectProblemNumType7Changing(int value); + partial void OnKeyProjectProblemNumType7Changed(); + partial void OnKeyProjectProblemRectifiedNumType7Changing(int value); + partial void OnKeyProjectProblemRectifiedNumType7Changed(); + partial void OnOtherProjectProblemNumType1Changing(int value); + partial void OnOtherProjectProblemNumType1Changed(); + partial void OnOtherProjectProblemRectifiedNumType1Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType1Changed(); + partial void OnOtherProjectProblemNumType2Changing(int value); + partial void OnOtherProjectProblemNumType2Changed(); + partial void OnOtherProjectProblemRectifiedNumType2Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType2Changed(); + partial void OnOtherProjectProblemNumType3Changing(int value); + partial void OnOtherProjectProblemNumType3Changed(); + partial void OnOtherProjectProblemRectifiedNumType3Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType3Changed(); + partial void OnOtherProjectProblemNumType4Changing(int value); + partial void OnOtherProjectProblemNumType4Changed(); + partial void OnOtherProjectProblemRectifiedNumType4Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType4Changed(); + partial void OnOtherProjectProblemNumType5Changing(int value); + partial void OnOtherProjectProblemNumType5Changed(); + partial void OnOtherProjectProblemRectifiedNumType5Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType5Changed(); + partial void OnOtherProjectProblemNumType6Changing(int value); + partial void OnOtherProjectProblemNumType6Changed(); + partial void OnOtherProjectProblemRectifiedNumType6Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType6Changed(); + partial void OnOtherProjectProblemNumType7Changing(int value); + partial void OnOtherProjectProblemNumType7Changed(); + partial void OnOtherProjectProblemRectifiedNumType7Changing(int value); + partial void OnOtherProjectProblemRectifiedNumType7Changed(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileManNameChanging(string value); + partial void OnCompileManNameChanged(); + partial void OnCompileDateChanging(System.DateTime value); + partial void OnCompileDateChanged(); + #endregion + + public DCGL_Report_KeyProjectRectificationSituationLedger() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="Int NOT NULL")] + public int Year + { + get + { + return this._Year; + } + set + { + if ((this._Year != value)) + { + this.OnYearChanging(value); + this.SendPropertyChanging(); + this._Year = value; + this.SendPropertyChanged("Year"); + this.OnYearChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")] + public System.Nullable ReportDate + { + get + { + return this._ReportDate; + } + set + { + if ((this._ReportDate != value)) + { + this.OnReportDateChanging(value); + this.SendPropertyChanging(); + this._ReportDate = value; + this.SendPropertyChanged("ReportDate"); + this.OnReportDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DutyPerson", DbType="NVarChar(50)")] + public string DutyPerson + { + get + { + return this._DutyPerson; + } + set + { + if ((this._DutyPerson != value)) + { + this.OnDutyPersonChanging(value); + this.SendPropertyChanging(); + this._DutyPerson = value; + this.SendPropertyChanged("DutyPerson"); + this.OnDutyPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpState", DbType="Char(1)")] + public string UpState + { + get + { + return this._UpState; + } + set + { + if ((this._UpState != value)) + { + this.OnUpStateChanging(value); + this.SendPropertyChanging(); + this._UpState = value; + this.SendPropertyChanged("UpState"); + this.OnUpStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleState", DbType="Char(1)")] + public string HandleState + { + get + { + return this._HandleState; + } + set + { + if ((this._HandleState != value)) + { + this.OnHandleStateChanging(value); + this.SendPropertyChanging(); + this._HandleState = value; + this.SendPropertyChanged("HandleState"); + this.OnHandleStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleMan", DbType="NVarChar(50)")] + public string HandleMan + { + get + { + return this._HandleMan; + } + set + { + if ((this._HandleMan != value)) + { + this.OnHandleManChanging(value); + this.SendPropertyChanging(); + this._HandleMan = value; + this.SendPropertyChanged("HandleMan"); + this.OnHandleManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasPlan", DbType="Bit NOT NULL")] + public bool HasPlan + { + get + { + return this._HasPlan; + } + set + { + if ((this._HasPlan != value)) + { + this.OnHasPlanChanging(value); + this.SendPropertyChanging(); + this._HasPlan = value; + this.SendPropertyChanged("HasPlan"); + this.OnHasPlanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanDate", DbType="DateTime")] + public System.Nullable PlanDate + { + get + { + return this._PlanDate; + } + set + { + if ((this._PlanDate != value)) + { + this.OnPlanDateChanging(value); + this.SendPropertyChanging(); + this._PlanDate = value; + this.SendPropertyChanged("PlanDate"); + this.OnPlanDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasWorkTeam", DbType="Bit NOT NULL")] + public bool HasWorkTeam + { + get + { + return this._HasWorkTeam; + } + set + { + if ((this._HasWorkTeam != value)) + { + this.OnHasWorkTeamChanging(value); + this.SendPropertyChanging(); + this._HasWorkTeam = value; + this.SendPropertyChanged("HasWorkTeam"); + this.OnHasWorkTeamChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamDate", DbType="DateTime")] + public System.Nullable TeamDate + { + get + { + return this._TeamDate; + } + set + { + if ((this._TeamDate != value)) + { + this.OnTeamDateChanging(value); + this.SendPropertyChanging(); + this._TeamDate = value; + this.SendPropertyChanged("TeamDate"); + this.OnTeamDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectNum", DbType="Int NOT NULL")] + public int KeyProjectNum + { + get + { + return this._KeyProjectNum; + } + set + { + if ((this._KeyProjectNum != value)) + { + this.OnKeyProjectNumChanging(value); + this.SendPropertyChanging(); + this._KeyProjectNum = value; + this.SendPropertyChanged("KeyProjectNum"); + this.OnKeyProjectNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyKeyProjectCheckNum", DbType="Int NOT NULL")] + public int StockCompanyKeyProjectCheckNum + { + get + { + return this._StockCompanyKeyProjectCheckNum; + } + set + { + if ((this._StockCompanyKeyProjectCheckNum != value)) + { + this.OnStockCompanyKeyProjectCheckNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyKeyProjectCheckNum = value; + this.SendPropertyChanged("StockCompanyKeyProjectCheckNum"); + this.OnStockCompanyKeyProjectCheckNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyKeyProjectProblemNum", DbType="Int NOT NULL")] + public int StockCompanyKeyProjectProblemNum + { + get + { + return this._StockCompanyKeyProjectProblemNum; + } + set + { + if ((this._StockCompanyKeyProjectProblemNum != value)) + { + this.OnStockCompanyKeyProjectProblemNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyKeyProjectProblemNum = value; + this.SendPropertyChanged("StockCompanyKeyProjectProblemNum"); + this.OnStockCompanyKeyProjectProblemNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyKeyProjectProblemRectifiedNum", DbType="Int NOT NULL")] + public int StockCompanyKeyProjectProblemRectifiedNum + { + get + { + return this._StockCompanyKeyProjectProblemRectifiedNum; + } + set + { + if ((this._StockCompanyKeyProjectProblemRectifiedNum != value)) + { + this.OnStockCompanyKeyProjectProblemRectifiedNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyKeyProjectProblemRectifiedNum = value; + this.SendPropertyChanged("StockCompanyKeyProjectProblemRectifiedNum"); + this.OnStockCompanyKeyProjectProblemRectifiedNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyOtherProjectCheckNum", DbType="Int NOT NULL")] + public int StockCompanyOtherProjectCheckNum + { + get + { + return this._StockCompanyOtherProjectCheckNum; + } + set + { + if ((this._StockCompanyOtherProjectCheckNum != value)) + { + this.OnStockCompanyOtherProjectCheckNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyOtherProjectCheckNum = value; + this.SendPropertyChanged("StockCompanyOtherProjectCheckNum"); + this.OnStockCompanyOtherProjectCheckNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyOtherProjectProblemNum", DbType="Int NOT NULL")] + public int StockCompanyOtherProjectProblemNum + { + get + { + return this._StockCompanyOtherProjectProblemNum; + } + set + { + if ((this._StockCompanyOtherProjectProblemNum != value)) + { + this.OnStockCompanyOtherProjectProblemNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyOtherProjectProblemNum = value; + this.SendPropertyChanged("StockCompanyOtherProjectProblemNum"); + this.OnStockCompanyOtherProjectProblemNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockCompanyOtherProjectProblemRectifiedNum", DbType="Int NOT NULL")] + public int StockCompanyOtherProjectProblemRectifiedNum + { + get + { + return this._StockCompanyOtherProjectProblemRectifiedNum; + } + set + { + if ((this._StockCompanyOtherProjectProblemRectifiedNum != value)) + { + this.OnStockCompanyOtherProjectProblemRectifiedNumChanging(value); + this.SendPropertyChanging(); + this._StockCompanyOtherProjectProblemRectifiedNum = value; + this.SendPropertyChanged("StockCompanyOtherProjectProblemRectifiedNum"); + this.OnStockCompanyOtherProjectProblemRectifiedNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyKeyProjectCheckNum", DbType="Int NOT NULL")] + public int BranchCompanyKeyProjectCheckNum + { + get + { + return this._BranchCompanyKeyProjectCheckNum; + } + set + { + if ((this._BranchCompanyKeyProjectCheckNum != value)) + { + this.OnBranchCompanyKeyProjectCheckNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyKeyProjectCheckNum = value; + this.SendPropertyChanged("BranchCompanyKeyProjectCheckNum"); + this.OnBranchCompanyKeyProjectCheckNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyKeyProjectProblemNum", DbType="Int NOT NULL")] + public int BranchCompanyKeyProjectProblemNum + { + get + { + return this._BranchCompanyKeyProjectProblemNum; + } + set + { + if ((this._BranchCompanyKeyProjectProblemNum != value)) + { + this.OnBranchCompanyKeyProjectProblemNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyKeyProjectProblemNum = value; + this.SendPropertyChanged("BranchCompanyKeyProjectProblemNum"); + this.OnBranchCompanyKeyProjectProblemNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyKeyProjectProblemRectifiedNum", DbType="Int NOT NULL")] + public int BranchCompanyKeyProjectProblemRectifiedNum + { + get + { + return this._BranchCompanyKeyProjectProblemRectifiedNum; + } + set + { + if ((this._BranchCompanyKeyProjectProblemRectifiedNum != value)) + { + this.OnBranchCompanyKeyProjectProblemRectifiedNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyKeyProjectProblemRectifiedNum = value; + this.SendPropertyChanged("BranchCompanyKeyProjectProblemRectifiedNum"); + this.OnBranchCompanyKeyProjectProblemRectifiedNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyOtherProjectCheckNum", DbType="Int NOT NULL")] + public int BranchCompanyOtherProjectCheckNum + { + get + { + return this._BranchCompanyOtherProjectCheckNum; + } + set + { + if ((this._BranchCompanyOtherProjectCheckNum != value)) + { + this.OnBranchCompanyOtherProjectCheckNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyOtherProjectCheckNum = value; + this.SendPropertyChanged("BranchCompanyOtherProjectCheckNum"); + this.OnBranchCompanyOtherProjectCheckNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyOtherProjectProblemNum", DbType="Int NOT NULL")] + public int BranchCompanyOtherProjectProblemNum + { + get + { + return this._BranchCompanyOtherProjectProblemNum; + } + set + { + if ((this._BranchCompanyOtherProjectProblemNum != value)) + { + this.OnBranchCompanyOtherProjectProblemNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyOtherProjectProblemNum = value; + this.SendPropertyChanged("BranchCompanyOtherProjectProblemNum"); + this.OnBranchCompanyOtherProjectProblemNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchCompanyOtherProjectProblemRectifiedNum", DbType="Int NOT NULL")] + public int BranchCompanyOtherProjectProblemRectifiedNum + { + get + { + return this._BranchCompanyOtherProjectProblemRectifiedNum; + } + set + { + if ((this._BranchCompanyOtherProjectProblemRectifiedNum != value)) + { + this.OnBranchCompanyOtherProjectProblemRectifiedNumChanging(value); + this.SendPropertyChanging(); + this._BranchCompanyOtherProjectProblemRectifiedNum = value; + this.SendPropertyChanged("BranchCompanyOtherProjectProblemRectifiedNum"); + this.OnBranchCompanyOtherProjectProblemRectifiedNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSelfCheckNum", DbType="Int NOT NULL")] + public int ProjectSelfCheckNum + { + get + { + return this._ProjectSelfCheckNum; + } + set + { + if ((this._ProjectSelfCheckNum != value)) + { + this.OnProjectSelfCheckNumChanging(value); + this.SendPropertyChanging(); + this._ProjectSelfCheckNum = value; + this.SendPropertyChanged("ProjectSelfCheckNum"); + this.OnProjectSelfCheckNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSelfCheckProblemNum", DbType="Int NOT NULL")] + public int ProjectSelfCheckProblemNum + { + get + { + return this._ProjectSelfCheckProblemNum; + } + set + { + if ((this._ProjectSelfCheckProblemNum != value)) + { + this.OnProjectSelfCheckProblemNumChanging(value); + this.SendPropertyChanging(); + this._ProjectSelfCheckProblemNum = value; + this.SendPropertyChanged("ProjectSelfCheckProblemNum"); + this.OnProjectSelfCheckProblemNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSelfCheckProblemRectifiedNum", DbType="Int NOT NULL")] + public int ProjectSelfCheckProblemRectifiedNum + { + get + { + return this._ProjectSelfCheckProblemRectifiedNum; + } + set + { + if ((this._ProjectSelfCheckProblemRectifiedNum != value)) + { + this.OnProjectSelfCheckProblemRectifiedNumChanging(value); + this.SendPropertyChanging(); + this._ProjectSelfCheckProblemRectifiedNum = value; + this.SendPropertyChanged("ProjectSelfCheckProblemRectifiedNum"); + this.OnProjectSelfCheckProblemRectifiedNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType1", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType1 + { + get + { + return this._KeyProjectProblemNumType1; + } + set + { + if ((this._KeyProjectProblemNumType1 != value)) + { + this.OnKeyProjectProblemNumType1Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType1 = value; + this.SendPropertyChanged("KeyProjectProblemNumType1"); + this.OnKeyProjectProblemNumType1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType1", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType1 + { + get + { + return this._KeyProjectProblemRectifiedNumType1; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType1 != value)) + { + this.OnKeyProjectProblemRectifiedNumType1Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType1 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType1"); + this.OnKeyProjectProblemRectifiedNumType1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType2", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType2 + { + get + { + return this._KeyProjectProblemNumType2; + } + set + { + if ((this._KeyProjectProblemNumType2 != value)) + { + this.OnKeyProjectProblemNumType2Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType2 = value; + this.SendPropertyChanged("KeyProjectProblemNumType2"); + this.OnKeyProjectProblemNumType2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType2", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType2 + { + get + { + return this._KeyProjectProblemRectifiedNumType2; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType2 != value)) + { + this.OnKeyProjectProblemRectifiedNumType2Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType2 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType2"); + this.OnKeyProjectProblemRectifiedNumType2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType3", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType3 + { + get + { + return this._KeyProjectProblemNumType3; + } + set + { + if ((this._KeyProjectProblemNumType3 != value)) + { + this.OnKeyProjectProblemNumType3Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType3 = value; + this.SendPropertyChanged("KeyProjectProblemNumType3"); + this.OnKeyProjectProblemNumType3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType3", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType3 + { + get + { + return this._KeyProjectProblemRectifiedNumType3; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType3 != value)) + { + this.OnKeyProjectProblemRectifiedNumType3Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType3 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType3"); + this.OnKeyProjectProblemRectifiedNumType3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType4", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType4 + { + get + { + return this._KeyProjectProblemNumType4; + } + set + { + if ((this._KeyProjectProblemNumType4 != value)) + { + this.OnKeyProjectProblemNumType4Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType4 = value; + this.SendPropertyChanged("KeyProjectProblemNumType4"); + this.OnKeyProjectProblemNumType4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType4", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType4 + { + get + { + return this._KeyProjectProblemRectifiedNumType4; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType4 != value)) + { + this.OnKeyProjectProblemRectifiedNumType4Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType4 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType4"); + this.OnKeyProjectProblemRectifiedNumType4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType5", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType5 + { + get + { + return this._KeyProjectProblemNumType5; + } + set + { + if ((this._KeyProjectProblemNumType5 != value)) + { + this.OnKeyProjectProblemNumType5Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType5 = value; + this.SendPropertyChanged("KeyProjectProblemNumType5"); + this.OnKeyProjectProblemNumType5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType5", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType5 + { + get + { + return this._KeyProjectProblemRectifiedNumType5; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType5 != value)) + { + this.OnKeyProjectProblemRectifiedNumType5Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType5 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType5"); + this.OnKeyProjectProblemRectifiedNumType5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType6", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType6 + { + get + { + return this._KeyProjectProblemNumType6; + } + set + { + if ((this._KeyProjectProblemNumType6 != value)) + { + this.OnKeyProjectProblemNumType6Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType6 = value; + this.SendPropertyChanged("KeyProjectProblemNumType6"); + this.OnKeyProjectProblemNumType6Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType6", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType6 + { + get + { + return this._KeyProjectProblemRectifiedNumType6; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType6 != value)) + { + this.OnKeyProjectProblemRectifiedNumType6Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType6 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType6"); + this.OnKeyProjectProblemRectifiedNumType6Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemNumType7", DbType="Int NOT NULL")] + public int KeyProjectProblemNumType7 + { + get + { + return this._KeyProjectProblemNumType7; + } + set + { + if ((this._KeyProjectProblemNumType7 != value)) + { + this.OnKeyProjectProblemNumType7Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemNumType7 = value; + this.SendPropertyChanged("KeyProjectProblemNumType7"); + this.OnKeyProjectProblemNumType7Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectProblemRectifiedNumType7", DbType="Int NOT NULL")] + public int KeyProjectProblemRectifiedNumType7 + { + get + { + return this._KeyProjectProblemRectifiedNumType7; + } + set + { + if ((this._KeyProjectProblemRectifiedNumType7 != value)) + { + this.OnKeyProjectProblemRectifiedNumType7Changing(value); + this.SendPropertyChanging(); + this._KeyProjectProblemRectifiedNumType7 = value; + this.SendPropertyChanged("KeyProjectProblemRectifiedNumType7"); + this.OnKeyProjectProblemRectifiedNumType7Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType1", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType1 + { + get + { + return this._OtherProjectProblemNumType1; + } + set + { + if ((this._OtherProjectProblemNumType1 != value)) + { + this.OnOtherProjectProblemNumType1Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType1 = value; + this.SendPropertyChanged("OtherProjectProblemNumType1"); + this.OnOtherProjectProblemNumType1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType1", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType1 + { + get + { + return this._OtherProjectProblemRectifiedNumType1; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType1 != value)) + { + this.OnOtherProjectProblemRectifiedNumType1Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType1 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType1"); + this.OnOtherProjectProblemRectifiedNumType1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType2", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType2 + { + get + { + return this._OtherProjectProblemNumType2; + } + set + { + if ((this._OtherProjectProblemNumType2 != value)) + { + this.OnOtherProjectProblemNumType2Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType2 = value; + this.SendPropertyChanged("OtherProjectProblemNumType2"); + this.OnOtherProjectProblemNumType2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType2", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType2 + { + get + { + return this._OtherProjectProblemRectifiedNumType2; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType2 != value)) + { + this.OnOtherProjectProblemRectifiedNumType2Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType2 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType2"); + this.OnOtherProjectProblemRectifiedNumType2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType3", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType3 + { + get + { + return this._OtherProjectProblemNumType3; + } + set + { + if ((this._OtherProjectProblemNumType3 != value)) + { + this.OnOtherProjectProblemNumType3Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType3 = value; + this.SendPropertyChanged("OtherProjectProblemNumType3"); + this.OnOtherProjectProblemNumType3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType3", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType3 + { + get + { + return this._OtherProjectProblemRectifiedNumType3; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType3 != value)) + { + this.OnOtherProjectProblemRectifiedNumType3Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType3 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType3"); + this.OnOtherProjectProblemRectifiedNumType3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType4", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType4 + { + get + { + return this._OtherProjectProblemNumType4; + } + set + { + if ((this._OtherProjectProblemNumType4 != value)) + { + this.OnOtherProjectProblemNumType4Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType4 = value; + this.SendPropertyChanged("OtherProjectProblemNumType4"); + this.OnOtherProjectProblemNumType4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType4", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType4 + { + get + { + return this._OtherProjectProblemRectifiedNumType4; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType4 != value)) + { + this.OnOtherProjectProblemRectifiedNumType4Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType4 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType4"); + this.OnOtherProjectProblemRectifiedNumType4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType5", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType5 + { + get + { + return this._OtherProjectProblemNumType5; + } + set + { + if ((this._OtherProjectProblemNumType5 != value)) + { + this.OnOtherProjectProblemNumType5Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType5 = value; + this.SendPropertyChanged("OtherProjectProblemNumType5"); + this.OnOtherProjectProblemNumType5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType5", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType5 + { + get + { + return this._OtherProjectProblemRectifiedNumType5; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType5 != value)) + { + this.OnOtherProjectProblemRectifiedNumType5Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType5 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType5"); + this.OnOtherProjectProblemRectifiedNumType5Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType6", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType6 + { + get + { + return this._OtherProjectProblemNumType6; + } + set + { + if ((this._OtherProjectProblemNumType6 != value)) + { + this.OnOtherProjectProblemNumType6Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType6 = value; + this.SendPropertyChanged("OtherProjectProblemNumType6"); + this.OnOtherProjectProblemNumType6Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType6", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType6 + { + get + { + return this._OtherProjectProblemRectifiedNumType6; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType6 != value)) + { + this.OnOtherProjectProblemRectifiedNumType6Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType6 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType6"); + this.OnOtherProjectProblemRectifiedNumType6Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemNumType7", DbType="Int NOT NULL")] + public int OtherProjectProblemNumType7 + { + get + { + return this._OtherProjectProblemNumType7; + } + set + { + if ((this._OtherProjectProblemNumType7 != value)) + { + this.OnOtherProjectProblemNumType7Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemNumType7 = value; + this.SendPropertyChanged("OtherProjectProblemNumType7"); + this.OnOtherProjectProblemNumType7Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherProjectProblemRectifiedNumType7", DbType="Int NOT NULL")] + public int OtherProjectProblemRectifiedNumType7 + { + get + { + return this._OtherProjectProblemRectifiedNumType7; + } + set + { + if ((this._OtherProjectProblemRectifiedNumType7 != value)) + { + this.OnOtherProjectProblemRectifiedNumType7Changing(value); + this.SendPropertyChanging(); + this._OtherProjectProblemRectifiedNumType7 = value; + this.SendPropertyChanged("OtherProjectProblemRectifiedNumType7"); + this.OnOtherProjectProblemRectifiedNumType7Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileManName", DbType="NVarChar(50)")] + public string CompileManName + { + get + { + return this._CompileManName; + } + set + { + if ((this._CompileManName != value)) + { + this.OnCompileManNameChanging(value); + this.SendPropertyChanging(); + this._CompileManName = value; + this.SendPropertyChanged("CompileManName"); + this.OnCompileManNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime NOT NULL")] + public System.DateTime CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.DigData_HSEDataCollect")] public partial class DigData_HSEDataCollect : INotifyPropertyChanging, INotifyPropertyChanged { @@ -431170,6 +432667,357 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_DCGLKeyProjectRectificationSituationLedger")] + public partial class View_DCGLKeyProjectRectificationSituationLedger + { + + private string _Id; + + private string _UnitId; + + private int _Year; + + private string _UnitName; + + private System.Nullable _ReportDate; + + private string _UpState; + + private string _DutyPerson; + + private string _HandleState; + + private string _HandleMan; + + private bool _HasPlan; + + private System.Nullable _PlanDate; + + private bool _HasWorkTeam; + + private System.Nullable _TeamDate; + + private int _KeyProjectNum; + + private string _Remark; + + private System.DateTime _CompileDate; + + private string _CompileMan; + + private string _CompileManName; + + private string _UserName; + + public View_DCGLKeyProjectRectificationSituationLedger() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this._Id = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this._UnitId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="Int NOT NULL")] + public int Year + { + get + { + return this._Year; + } + set + { + if ((this._Year != value)) + { + this._Year = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(200)")] + public string UnitName + { + get + { + return this._UnitName; + } + set + { + if ((this._UnitName != value)) + { + this._UnitName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime")] + public System.Nullable ReportDate + { + get + { + return this._ReportDate; + } + set + { + if ((this._ReportDate != value)) + { + this._ReportDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpState", DbType="Char(1)")] + public string UpState + { + get + { + return this._UpState; + } + set + { + if ((this._UpState != value)) + { + this._UpState = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DutyPerson", DbType="NVarChar(50)")] + public string DutyPerson + { + get + { + return this._DutyPerson; + } + set + { + if ((this._DutyPerson != value)) + { + this._DutyPerson = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleState", DbType="Char(1)")] + public string HandleState + { + get + { + return this._HandleState; + } + set + { + if ((this._HandleState != value)) + { + this._HandleState = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleMan", DbType="NVarChar(50)")] + public string HandleMan + { + get + { + return this._HandleMan; + } + set + { + if ((this._HandleMan != value)) + { + this._HandleMan = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasPlan", DbType="Bit NOT NULL")] + public bool HasPlan + { + get + { + return this._HasPlan; + } + set + { + if ((this._HasPlan != value)) + { + this._HasPlan = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanDate", DbType="DateTime")] + public System.Nullable PlanDate + { + get + { + return this._PlanDate; + } + set + { + if ((this._PlanDate != value)) + { + this._PlanDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HasWorkTeam", DbType="Bit NOT NULL")] + public bool HasWorkTeam + { + get + { + return this._HasWorkTeam; + } + set + { + if ((this._HasWorkTeam != value)) + { + this._HasWorkTeam = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamDate", DbType="DateTime")] + public System.Nullable TeamDate + { + get + { + return this._TeamDate; + } + set + { + if ((this._TeamDate != value)) + { + this._TeamDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyProjectNum", DbType="Int NOT NULL")] + public int KeyProjectNum + { + get + { + return this._KeyProjectNum; + } + set + { + if ((this._KeyProjectNum != value)) + { + this._KeyProjectNum = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this._Remark = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime NOT NULL")] + public System.DateTime CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this._CompileDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this._CompileMan = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileManName", DbType="NVarChar(50)")] + public string CompileManName + { + get + { + return this._CompileManName; + } + set + { + if ((this._CompileManName != value)) + { + this._CompileManName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(50)")] + public string UserName + { + get + { + return this._UserName; + } + set + { + if ((this._UserName != value)) + { + this._UserName = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_DriverGoods_GoodsBuyItem")] public partial class View_DriverGoods_GoodsBuyItem {