From c96394016aaf79818120bbcf7572704672a80cd4 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Thu, 14 Sep 2023 10:43:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=BD=E5=B7=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_V2023-09-13.sql | 348 +++ SGGL/BLL/BLL.csproj | 4 + .../ConstructionLogMachineService.cs | 70 + .../ConstructionLogManagementService.cs | 67 + .../ConstructionLogPersonService.cs | 70 + .../ConstructionLogProblemService.cs | 13 + .../ConstructionLogService.cs | 36 +- .../ConstructionLogEdit.aspx.cs | 28 +- .../ConstructionLogView.aspx.cs | 20 +- SGGL/FineUIPro.Web/indexProject.aspx.cs | 7 + SGGL/Model/Model.cs | 1857 +++++++++++++++-- 11 files changed, 2347 insertions(+), 173 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2023-09-13.sql create mode 100644 SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs create mode 100644 SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs create mode 100644 SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs create mode 100644 SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs diff --git a/DataBase/版本日志/SGGLDB_V2023-09-13.sql b/DataBase/版本日志/SGGLDB_V2023-09-13.sql new file mode 100644 index 00000000..8aa599fb --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-09-13.sql @@ -0,0 +1,348 @@ +drop table ZHGL_ConstructionLog +GO + + +CREATE TABLE [dbo].[ZHGL_ConstructionLog]( + [ConstructionLogId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Weather] [nvarchar](10) NULL, + [Temperature] [nvarchar](30) NULL, + [ContractNo] [nvarchar](50) NULL, + [UnitWorks] [nvarchar](500) NULL, + [Professional] [nvarchar](50) NULL, + [CompileMan] [nvarchar](50) NULL, + [CompileDate] [datetime] NULL, + [State] [char](1) NULL, + [Remark] [nvarchar](500) NULL, + [HSETodaySummary] [nvarchar](3000) NULL, + [HSETodaySummaryRemark] [nvarchar](500) NULL, + [HSETomorrowPlan] [nvarchar](3000) NULL, + [HSETomorrowPlanRemark] [nvarchar](500) NULL, + [CQMSTodaySummary] [nvarchar](3000) NULL, + [CQMSTodaySummaryRemark] [nvarchar](500) NULL, + [CQMSTomorrowPlan] [nvarchar](3000) NULL, + [CQMSTomorrowPlanRemark] [nvarchar](500) NULL, + CONSTRAINT [PK_ZHGL_ConstructionLog] PRIMARY KEY CLUSTERED +( + [ConstructionLogId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +SET ANSI_PADDING OFF +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLog] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLog_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLog] CHECK CONSTRAINT [FK_ZHGL_ConstructionLog_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'Weather' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'¶' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'Temperature' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͬ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'ContractNo' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'UnitWorks' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'רҵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'Professional' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CompileMan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CompileDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'State' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'Remark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫС' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'HSETodaySummary' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫСᱸע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'HSETodaySummaryRemark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫռƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'HSETomorrowPlan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȫռƻע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'HSETomorrowPlanRemark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'С' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CQMSTodaySummary' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Сᱸע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CQMSTodaySummaryRemark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CQMSTomorrowPlan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռƻע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog', @level2type=N'COLUMN',@level2name=N'CQMSTomorrowPlanRemark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ŀʩ־' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLog' +GO + + + +CREATE TABLE [dbo].[ZHGL_ConstructionLogMachine]( + [ConstructionLogMachineId] [nvarchar](50) NOT NULL, + [ConstructionLogId] [nvarchar](50) NULL, + [UnitWorkId] [nvarchar](50) NULL, + [WJNum] [int] NULL, + [DCNum] [int] NULL, + [DZJNum] [int] NULL, + [GCNum] [int] NULL, + [BCNum] [int] NULL, + [BengCNum] [int] NULL, + CONSTRAINT [PK_ZHGL_ConstructionLogMachine] PRIMARY KEY CLUSTERED +( + [ConstructionLogMachineId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogMachine] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId]) +REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogMachine] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'ConstructionLogMachineId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'UnitWorkId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ڻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'WJNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'DCNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'׮' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'DZJNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'޳' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'GCNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'峵' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'BCNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ó' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'BengCNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־еϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine' +GO + + + +CREATE TABLE [dbo].[ZHGL_ConstructionLogManagement]( + [ConstructionLogManagementId] [nvarchar](50) NOT NULL, + [ConstructionLogId] [nvarchar](50) NULL, + [UnitWorkId] [nvarchar](50) NULL, + [TodayWork] [nvarchar](500) NULL, + [TomorrowWork] [nvarchar](500) NULL, + [Remark] [nvarchar](100) NULL, + CONSTRAINT [PK_ZHGL_ConstructionLogManagement] PRIMARY KEY CLUSTERED +( + [ConstructionLogManagementId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogManagement] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogManagement_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId]) +REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogManagement] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogManagement_ZHGL_ConstructionLog] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'ConstructionLogManagementId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'UnitWorkId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'TodayWork' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'TomorrowWork' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement', @level2type=N'COLUMN',@level2name=N'Remark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־רҵϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogManagement' +GO + + + +CREATE TABLE [dbo].[ZHGL_ConstructionLogPerson]( + [ConstructionLogPersonId] [nvarchar](50) NOT NULL, + [ConstructionLogId] [nvarchar](50) NULL, + [UnitWorkId] [nvarchar](50) NULL, + [WGNum] [int] NULL, + [GJGNum] [int] NULL, + [MGNum] [int] NULL, + [HNTGNum] [int] NULL, + [HGNum] [int] NULL, + [JZGNum] [int] NULL, + CONSTRAINT [PK_ZHGL_ConstructionLogPerson] PRIMARY KEY CLUSTERED +( + [ConstructionLogPersonId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogPerson] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId]) +REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogPerson] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'ConstructionLogPersonId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'UnitWorkId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'߹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'WGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ֽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'GJGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ľ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'MGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'HNTGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'HGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'JZGNum' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־ҵԱϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson' +GO + + + +CREATE TABLE [dbo].[ZHGL_ConstructionLogProblem]( + [ConstructionLogProblemId] [nvarchar](50) NOT NULL, + [ConstructionLogId] [nvarchar](50) NULL, + [UnitWorkId] [nvarchar](50) NULL, + [MainProblem] [nvarchar](500) NULL, + [HandlingMeasures] [nvarchar](500) NULL, + [WorkPackageId] [nvarchar](50) NULL, + [ImportanceLevel] [nvarchar](10) NULL, + CONSTRAINT [PK_ZHGL_ConstructionLogProblem] PRIMARY KEY CLUSTERED +( + [ConstructionLogProblemId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogProblem] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogProblem_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId]) +REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogProblem] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogProblem_ZHGL_ConstructionLog] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'ConstructionLogProblemId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'UnitWorkId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ҫ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'MainProblem' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'HandlingMeasures' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'WBS' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'WorkPackageId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ҪԵȼ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem', @level2type=N'COLUMN',@level2name=N'ImportanceLevel' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־ҪЭϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogProblem' +GO + + + +CREATE TABLE [dbo].[ZHGL_ConstructionLogRecord]( + [ConstructionLogRecordId] [nvarchar](50) NOT NULL, + [ConstructionLogId] [nvarchar](50) NULL, + [Record] [nvarchar](1000) NULL, + [Remark] [nvarchar](300) NULL, + CONSTRAINT [PK_ZHGL_ConstructionLogRecord] PRIMARY KEY CLUSTERED +( + [ConstructionLogRecordId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogRecord] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogRecord_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId]) +REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId]) +GO + +ALTER TABLE [dbo].[ZHGL_ConstructionLogRecord] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogRecord_ZHGL_ConstructionLog] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogRecord', @level2type=N'COLUMN',@level2name=N'ConstructionLogRecordId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogRecord', @level2type=N'COLUMN',@level2name=N'ConstructionLogId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ؼ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogRecord', @level2type=N'COLUMN',@level2name=N'Record' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogRecord', @level2type=N'COLUMN',@level2name=N'Remark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־ʩؼ¼ϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogRecord' +GO + + diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index ee33415a..b1cfa731 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -642,6 +642,10 @@ + + + + diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs new file mode 100644 index 00000000..2e4a852c --- /dev/null +++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs @@ -0,0 +1,70 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + public class ConstructionLogMachineService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 获取施工日志机械明细列表 + /// + /// + /// + /// + public static List getListData(string ConstructionLogId) + { + return (from x in db.ZHGL_ConstructionLogMachine + where x.ConstructionLogId == ConstructionLogId + select x).ToList(); + } + + /// + /// 增加施工日志机械明细 + /// + /// 施工日志机械明细实体 + public static void AddConstructionLogMachine(Model.ZHGL_ConstructionLogMachine constructionLogMachine) + { + Model.SGGLDB db = Funs.DB; + Model.ZHGL_ConstructionLogMachine newConstructionLogMachine = new Model.ZHGL_ConstructionLogMachine(); + newConstructionLogMachine.ConstructionLogMachineId = constructionLogMachine.ConstructionLogMachineId; + newConstructionLogMachine.ConstructionLogId = constructionLogMachine.ConstructionLogId; + newConstructionLogMachine.UnitWorkId = constructionLogMachine.UnitWorkId; + newConstructionLogMachine.WJNum = constructionLogMachine.WJNum; + newConstructionLogMachine.DCNum = constructionLogMachine.DCNum; + newConstructionLogMachine.DZJNum = constructionLogMachine.DZJNum; + newConstructionLogMachine.GCNum = constructionLogMachine.GCNum; + newConstructionLogMachine.BCNum = constructionLogMachine.BCNum; + newConstructionLogMachine.BengCNum = constructionLogMachine.BengCNum; + + db.ZHGL_ConstructionLogMachine.InsertOnSubmit(newConstructionLogMachine); + db.SubmitChanges(); + } + + /// + /// 根据月报id删除对应的所有施工日志机械明细 + /// + /// 施工日志机械明细编号 + public static void DeleteConstructionLogMachinesByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + var q = (from x in db.ZHGL_ConstructionLogMachine where x.ConstructionLogId == ConstructionLogId select x).ToList(); + if (q.Count() > 0) + { + db.ZHGL_ConstructionLogMachine.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 根据月报id获取对应的所有施工日志机械明细 + /// + /// 施工日志机械明细编号 + public static List GetConstructionLogMachinesByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + return (from x in db.ZHGL_ConstructionLogMachine where x.ConstructionLogId == ConstructionLogId select x).ToList(); + } + } +} diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs new file mode 100644 index 00000000..c4f97068 --- /dev/null +++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs @@ -0,0 +1,67 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + public class ConstructionLogManagementService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 获取施工日志专业管理明细列表 + /// + /// + /// + /// + public static List getListData(string ConstructionLogId) + { + return (from x in db.ZHGL_ConstructionLogManagement + where x.ConstructionLogId == ConstructionLogId + select x).ToList(); + } + + /// + /// 增加施工日志专业管理明细 + /// + /// 施工日志专业管理明细实体 + public static void AddConstructionLogManagement(Model.ZHGL_ConstructionLogManagement constructionLogManagement) + { + Model.SGGLDB db = Funs.DB; + Model.ZHGL_ConstructionLogManagement newConstructionLogManagement = new Model.ZHGL_ConstructionLogManagement(); + newConstructionLogManagement.ConstructionLogManagementId = constructionLogManagement.ConstructionLogManagementId; + newConstructionLogManagement.ConstructionLogId = constructionLogManagement.ConstructionLogId; + newConstructionLogManagement.UnitWorkId = constructionLogManagement.UnitWorkId; + newConstructionLogManagement.TodayWork = constructionLogManagement.TodayWork; + newConstructionLogManagement.TomorrowWork = constructionLogManagement.TomorrowWork; + newConstructionLogManagement.Remark = constructionLogManagement.Remark; + + db.ZHGL_ConstructionLogManagement.InsertOnSubmit(newConstructionLogManagement); + db.SubmitChanges(); + } + + /// + /// 根据月报id删除对应的所有施工日志专业管理明细 + /// + /// 施工日志专业管理明细编号 + public static void DeleteConstructionLogManagementsByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + var q = (from x in db.ZHGL_ConstructionLogManagement where x.ConstructionLogId == ConstructionLogId select x).ToList(); + if (q.Count() > 0) + { + db.ZHGL_ConstructionLogManagement.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 根据月报id获取对应的所有施工日志专业管理明细 + /// + /// 施工日志专业管理明细编号 + public static List GetConstructionLogManagementsByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + return (from x in db.ZHGL_ConstructionLogManagement where x.ConstructionLogId == ConstructionLogId select x).ToList(); + } + } +} diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs new file mode 100644 index 00000000..3fc0990e --- /dev/null +++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs @@ -0,0 +1,70 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + public class ConstructionLogPersonService + { + public static Model.SGGLDB db = Funs.DB; + + /// + /// 获取施工日志作业人员明细列表 + /// + /// + /// + /// + public static List getListData(string ConstructionLogId) + { + return (from x in db.ZHGL_ConstructionLogPerson + where x.ConstructionLogId == ConstructionLogId + select x).ToList(); + } + + /// + /// 增加施工日志作业人员明细 + /// + /// 施工日志作业人员明细实体 + public static void AddConstructionLogPerson(Model.ZHGL_ConstructionLogPerson constructionLogPerson) + { + Model.SGGLDB db = Funs.DB; + Model.ZHGL_ConstructionLogPerson newConstructionLogPerson = new Model.ZHGL_ConstructionLogPerson(); + newConstructionLogPerson.ConstructionLogPersonId = constructionLogPerson.ConstructionLogPersonId; + newConstructionLogPerson.ConstructionLogId = constructionLogPerson.ConstructionLogId; + newConstructionLogPerson.UnitWorkId = constructionLogPerson.UnitWorkId; + newConstructionLogPerson.WGNum = constructionLogPerson.WGNum; + newConstructionLogPerson.GJGNum = constructionLogPerson.GJGNum; + newConstructionLogPerson.MGNum = constructionLogPerson.MGNum; + newConstructionLogPerson.HNTGNum = constructionLogPerson.HNTGNum; + newConstructionLogPerson.HGNum = constructionLogPerson.HGNum; + newConstructionLogPerson.JZGNum = constructionLogPerson.JZGNum; + + db.ZHGL_ConstructionLogPerson.InsertOnSubmit(newConstructionLogPerson); + db.SubmitChanges(); + } + + /// + /// 根据月报id删除对应的所有施工日志作业人员明细 + /// + /// 施工日志作业人员明细编号 + public static void DeleteConstructionLogPersonsByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + var q = (from x in db.ZHGL_ConstructionLogPerson where x.ConstructionLogId == ConstructionLogId select x).ToList(); + if (q.Count() > 0) + { + db.ZHGL_ConstructionLogPerson.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } + } + + /// + /// 根据月报id获取对应的所有施工日志作业人员明细 + /// + /// 施工日志作业人员明细编号 + public static List GetConstructionLogPersonsByConstructionLogId(string ConstructionLogId) + { + Model.SGGLDB db = Funs.DB; + return (from x in db.ZHGL_ConstructionLogPerson where x.ConstructionLogId == ConstructionLogId select x).ToList(); + } + } +} diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs new file mode 100644 index 00000000..73c1da33 --- /dev/null +++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class ConstructionLogProblemService + { + + } +} diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs index 1e96eaeb..136fa252 100644 --- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs +++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs @@ -44,13 +44,22 @@ namespace BLL ConstructionLogId = ConstructionLog.ConstructionLogId, ProjectId = ConstructionLog.ProjectId, Weather = ConstructionLog.Weather, - TemperatureMax = ConstructionLog.TemperatureMax, - TemperatureMin = ConstructionLog.TemperatureMin, - MainWork = ConstructionLog.MainWork, - MainProblems = ConstructionLog.MainProblems, - Remark = ConstructionLog.Remark, + Temperature = ConstructionLog.Temperature, + ContractNo = ConstructionLog.ContractNo, + UnitWorks = ConstructionLog.UnitWorks, + Professional = ConstructionLog.Professional, CompileMan = ConstructionLog.CompileMan, CompileDate = ConstructionLog.CompileDate, + State= ConstructionLog.State, + Remark= ConstructionLog.Remark, + HSETodaySummary= ConstructionLog.HSETodaySummary, + HSETodaySummaryRemark = ConstructionLog.HSETodaySummaryRemark, + HSETomorrowPlan = ConstructionLog.HSETomorrowPlan, + HSETomorrowPlanRemark = ConstructionLog.HSETomorrowPlanRemark, + CQMSTodaySummary = ConstructionLog.CQMSTodaySummary, + CQMSTodaySummaryRemark = ConstructionLog.CQMSTodaySummaryRemark, + CQMSTomorrowPlan = ConstructionLog.CQMSTomorrowPlan, + CQMSTomorrowPlanRemark = ConstructionLog.CQMSTomorrowPlanRemark, }; db.ZHGL_ConstructionLog.InsertOnSubmit(newConstructionLog); db.SubmitChanges(); @@ -67,11 +76,20 @@ namespace BLL if (newConstructionLog != null) { newConstructionLog.Weather = ConstructionLog.Weather; - newConstructionLog.TemperatureMax = ConstructionLog.TemperatureMax; - newConstructionLog.TemperatureMin = ConstructionLog.TemperatureMin; - newConstructionLog.MainWork = ConstructionLog.MainWork; - newConstructionLog.MainProblems = ConstructionLog.MainProblems; + newConstructionLog.Temperature = ConstructionLog.Temperature; + newConstructionLog.ContractNo = ConstructionLog.ContractNo; + newConstructionLog.UnitWorks = ConstructionLog.UnitWorks; + newConstructionLog.Professional = ConstructionLog.Professional; + newConstructionLog.State = ConstructionLog.State; newConstructionLog.Remark = ConstructionLog.Remark; + newConstructionLog.HSETodaySummary = ConstructionLog.HSETodaySummary; + newConstructionLog.HSETodaySummaryRemark = ConstructionLog.HSETodaySummaryRemark; + newConstructionLog.HSETomorrowPlan = ConstructionLog.HSETomorrowPlan; + newConstructionLog.HSETomorrowPlanRemark = ConstructionLog.HSETomorrowPlanRemark; + newConstructionLog.CQMSTodaySummary = ConstructionLog.CQMSTodaySummary; + newConstructionLog.CQMSTodaySummaryRemark = ConstructionLog.CQMSTodaySummaryRemark; + newConstructionLog.CQMSTomorrowPlan = ConstructionLog.CQMSTomorrowPlan; + newConstructionLog.CQMSTomorrowPlanRemark = ConstructionLog.CQMSTomorrowPlanRemark; db.SubmitChanges(); } } diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogEdit.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogEdit.aspx.cs index a55f2c8d..ac89dbeb 100644 --- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogEdit.aspx.cs @@ -53,20 +53,20 @@ namespace FineUIPro.Web.PZHGL.InformationProject { this.drpWeather.SelectedValue = constructionLog.Weather; } - if (constructionLog.TemperatureMin != null) - { - this.txtTemperatureMin.Text = constructionLog.TemperatureMin.ToString(); - } - if (constructionLog.TemperatureMax != null) - { - this.txtTemperatureMax.Text = constructionLog.TemperatureMax.ToString(); - } + //if (constructionLog.TemperatureMin != null) + //{ + // this.txtTemperatureMin.Text = constructionLog.TemperatureMin.ToString(); + //} + //if (constructionLog.TemperatureMax != null) + //{ + // this.txtTemperatureMax.Text = constructionLog.TemperatureMax.ToString(); + //} if (constructionLog.CompileDate != null) { this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", constructionLog.CompileDate); } - this.txtMainWork.Text = constructionLog.MainWork; - this.txtMainProblems.Text = constructionLog.MainProblems; + //this.txtMainWork.Text = constructionLog.MainWork; + //this.txtMainProblems.Text = constructionLog.MainProblems; this.txtRemark.Text = constructionLog.Remark; } @@ -152,11 +152,11 @@ namespace FineUIPro.Web.PZHGL.InformationProject Model.ZHGL_ConstructionLog constructionLog = new Model.ZHGL_ConstructionLog(); constructionLog.Weather = drpWeather.SelectedValue; constructionLog.ProjectId = CurrUser.LoginProjectId; - constructionLog.TemperatureMin = Funs.GetNewInt(this.txtTemperatureMin.Text.Trim()); - constructionLog.TemperatureMax = Funs.GetNewInt(this.txtTemperatureMax.Text.Trim()); + //constructionLog.TemperatureMin = Funs.GetNewInt(this.txtTemperatureMin.Text.Trim()); + //constructionLog.TemperatureMax = Funs.GetNewInt(this.txtTemperatureMax.Text.Trim()); constructionLog.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text.Trim()); - constructionLog.MainWork = this.txtMainWork.Text; - constructionLog.MainProblems = this.txtMainProblems.Text; + //constructionLog.MainWork = this.txtMainWork.Text; + //constructionLog.MainProblems = this.txtMainProblems.Text; constructionLog.Remark = this.txtRemark.Text; if (!string.IsNullOrEmpty(ConstructionLogId) && ConstructionLogService.GetConstructionLogById(Request.Params["ConstructionLogId"]) != null) { diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogView.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogView.aspx.cs index 5b033868..a21caefe 100644 --- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogView.aspx.cs +++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLogView.aspx.cs @@ -48,20 +48,20 @@ namespace FineUIPro.Web.PZHGL.InformationProject { this.txtWeather.Text = constructionLog.Weather; } - if (constructionLog.TemperatureMin != null) - { - this.txtTemperatureMin.Text = constructionLog.TemperatureMin.ToString(); - } - if (constructionLog.TemperatureMax != null) - { - this.txtTemperatureMax.Text = constructionLog.TemperatureMax.ToString(); - } + //if (constructionLog.TemperatureMin != null) + //{ + // this.txtTemperatureMin.Text = constructionLog.TemperatureMin.ToString(); + //} + //if (constructionLog.TemperatureMax != null) + //{ + // this.txtTemperatureMax.Text = constructionLog.TemperatureMax.ToString(); + //} if (constructionLog.CompileDate != null) { this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", constructionLog.CompileDate); } - this.txtMainWork.Text = constructionLog.MainWork; - this.txtMainProblems.Text = constructionLog.MainProblems; + //this.txtMainWork.Text = constructionLog.MainWork; + //this.txtMainProblems.Text = constructionLog.MainProblems; this.txtRemark.Text = constructionLog.Remark; } else diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs index de957f77..c52ef372 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs @@ -326,6 +326,13 @@ namespace FineUIPro.Web if (!string.IsNullOrEmpty(Request.Params["projectId"])) { + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(Request.Params["projectId"]); + if (!projectlist.Contains(project)) + { + projectlist.Add(project); + this.drpProject.DataSource = projectlist; + this.drpProject.DataBind(); + } this.drpProject.SelectedValue = Request.Params["projectId"]; } diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 8e5405e0..1961cba2 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1715,6 +1715,21 @@ namespace Model partial void InsertZHGL_ConstructionLog(ZHGL_ConstructionLog instance); partial void UpdateZHGL_ConstructionLog(ZHGL_ConstructionLog instance); partial void DeleteZHGL_ConstructionLog(ZHGL_ConstructionLog instance); + partial void InsertZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance); + partial void UpdateZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance); + partial void DeleteZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance); + partial void InsertZHGL_ConstructionLogManagement(ZHGL_ConstructionLogManagement instance); + partial void UpdateZHGL_ConstructionLogManagement(ZHGL_ConstructionLogManagement instance); + partial void DeleteZHGL_ConstructionLogManagement(ZHGL_ConstructionLogManagement instance); + partial void InsertZHGL_ConstructionLogPerson(ZHGL_ConstructionLogPerson instance); + partial void UpdateZHGL_ConstructionLogPerson(ZHGL_ConstructionLogPerson instance); + partial void DeleteZHGL_ConstructionLogPerson(ZHGL_ConstructionLogPerson instance); + partial void InsertZHGL_ConstructionLogProblem(ZHGL_ConstructionLogProblem instance); + partial void UpdateZHGL_ConstructionLogProblem(ZHGL_ConstructionLogProblem instance); + partial void DeleteZHGL_ConstructionLogProblem(ZHGL_ConstructionLogProblem instance); + partial void InsertZHGL_ConstructionLogRecord(ZHGL_ConstructionLogRecord instance); + partial void UpdateZHGL_ConstructionLogRecord(ZHGL_ConstructionLogRecord instance); + partial void DeleteZHGL_ConstructionLogRecord(ZHGL_ConstructionLogRecord instance); partial void InsertZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance); partial void UpdateZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance); partial void DeleteZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance); @@ -7043,6 +7058,46 @@ namespace Model } } + public System.Data.Linq.Table ZHGL_ConstructionLogMachine + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ZHGL_ConstructionLogManagement + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ZHGL_ConstructionLogPerson + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ZHGL_ConstructionLogProblem + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ZHGL_ConstructionLogRecord + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table ZHGL_ConstructionMonthReport { get @@ -12451,7 +12506,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(500)")] public string ProjectId { get @@ -156347,8 +156402,6 @@ namespace Model private EntitySet _Wx_PageData; - private EntitySet _ZHGL_ConstructionLog; - private EntitySet _ZHGL_ConstructionMonthReport; private EntitySet _ZHGL_ConstructionPlan; @@ -156730,7 +156783,6 @@ namespace Model this._Welder_WelderQualify = new EntitySet(new Action(this.attach_Welder_WelderQualify), new Action(this.detach_Welder_WelderQualify)); this._WPQ_WPQList = new EntitySet(new Action(this.attach_WPQ_WPQList), new Action(this.detach_WPQ_WPQList)); this._Wx_PageData = new EntitySet(new Action(this.attach_Wx_PageData), new Action(this.detach_Wx_PageData)); - this._ZHGL_ConstructionLog = new EntitySet(new Action(this.attach_ZHGL_ConstructionLog), new Action(this.detach_ZHGL_ConstructionLog)); this._ZHGL_ConstructionMonthReport = new EntitySet(new Action(this.attach_ZHGL_ConstructionMonthReport), new Action(this.detach_ZHGL_ConstructionMonthReport)); this._ZHGL_ConstructionPlan = new EntitySet(new Action(this.attach_ZHGL_ConstructionPlan), new Action(this.detach_ZHGL_ConstructionPlan)); this._ZHGL_ConstructionPlanApprove = new EntitySet(new Action(this.attach_ZHGL_ConstructionPlanApprove), new Action(this.detach_ZHGL_ConstructionPlanApprove)); @@ -161105,19 +161157,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLog_Person_Persons_CompileMan", Storage="_ZHGL_ConstructionLog", ThisKey="PersonId", OtherKey="CompileMan", DeleteRule="NO ACTION")] - public EntitySet ZHGL_ConstructionLog - { - get - { - return this._ZHGL_ConstructionLog; - } - set - { - this._ZHGL_ConstructionLog.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionMonthReport_Person_Persons", Storage="_ZHGL_ConstructionMonthReport", ThisKey="PersonId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet ZHGL_ConstructionMonthReport { @@ -163966,18 +164005,6 @@ namespace Model entity.Person_Persons = null; } - private void attach_ZHGL_ConstructionLog(ZHGL_ConstructionLog entity) - { - this.SendPropertyChanging(); - entity.Person_Persons = this; - } - - private void detach_ZHGL_ConstructionLog(ZHGL_ConstructionLog entity) - { - this.SendPropertyChanging(); - entity.Person_Persons = null; - } - private void attach_ZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport entity) { this.SendPropertyChanging(); @@ -292101,7 +292128,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(101)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")] public string Name { get @@ -294829,10 +294856,10 @@ namespace Model private string _WBSCode; - private System.Nullable _PlanCost; - private string _WorkPackageIds; + private System.Nullable _PlanCost; + private EntityRef _WBS_WorkPackage; #region 可扩展性方法定义 @@ -294883,10 +294910,10 @@ namespace Model partial void OnRealEndDateChanged(); partial void OnWBSCodeChanging(string value); partial void OnWBSCodeChanged(); - partial void OnPlanCostChanging(System.Nullable value); - partial void OnPlanCostChanged(); partial void OnWorkPackageIdsChanging(string value); partial void OnWorkPackageIdsChanged(); + partial void OnPlanCostChanging(System.Nullable value); + partial void OnPlanCostChanged(); #endregion public WBS_ControlItemAndCycle() @@ -295339,26 +295366,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanCost", DbType="Decimal(9,2)")] - public System.Nullable PlanCost - { - get - { - return this._PlanCost; - } - set - { - if ((this._PlanCost != value)) - { - this.OnPlanCostChanging(value); - this.SendPropertyChanging(); - this._PlanCost = value; - this.SendPropertyChanged("PlanCost"); - this.OnPlanCostChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageIds", DbType="NVarChar(2000)")] public string WorkPackageIds { @@ -295379,6 +295386,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanCost", DbType="Decimal(9,2)")] + public System.Nullable PlanCost + { + get + { + return this._PlanCost; + } + set + { + if ((this._PlanCost != value)) + { + this.OnPlanCostChanging(value); + this.SendPropertyChanging(); + this._PlanCost = value; + this.SendPropertyChanged("PlanCost"); + this.OnPlanCostChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_ControlItemAndCycle_WBS_ControlItemAndCycle", Storage="_WBS_WorkPackage", ThisKey="WorkPackageId", OtherKey="WorkPackageId", IsForeignKey=true)] public WBS_WorkPackage WBS_WorkPackage { @@ -303212,23 +303239,49 @@ namespace Model private string _Weather; - private System.Nullable _TemperatureMax; + private string _Temperature; - private System.Nullable _TemperatureMin; + private string _ContractNo; - private string _MainWork; + private string _UnitWorks; - private string _MainProblems; - - private string _Remark; + private string _Professional; private string _CompileMan; private System.Nullable _CompileDate; + private string _State; + + private string _Remark; + + private string _HSETodaySummary; + + private string _HSETodaySummaryRemark; + + private string _HSETomorrowPlan; + + private string _HSETomorrowPlanRemark; + + private string _CQMSTodaySummary; + + private string _CQMSTodaySummaryRemark; + + private string _CQMSTomorrowPlan; + + private string _CQMSTomorrowPlanRemark; + private EntityRef _Base_Project; - private EntityRef _Person_Persons; + private EntitySet _ZHGL_ConstructionLogMachine; + + private EntitySet _ZHGL_ConstructionLogManagement; + + private EntitySet _ZHGL_ConstructionLogPerson; + + private EntitySet _ZHGL_ConstructionLogProblem; + + private EntitySet _ZHGL_ConstructionLogRecord; #region 可扩展性方法定义 partial void OnLoaded(); @@ -303240,26 +303293,48 @@ namespace Model partial void OnProjectIdChanged(); partial void OnWeatherChanging(string value); partial void OnWeatherChanged(); - partial void OnTemperatureMaxChanging(System.Nullable value); - partial void OnTemperatureMaxChanged(); - partial void OnTemperatureMinChanging(System.Nullable value); - partial void OnTemperatureMinChanged(); - partial void OnMainWorkChanging(string value); - partial void OnMainWorkChanged(); - partial void OnMainProblemsChanging(string value); - partial void OnMainProblemsChanged(); - partial void OnRemarkChanging(string value); - partial void OnRemarkChanged(); + partial void OnTemperatureChanging(string value); + partial void OnTemperatureChanged(); + partial void OnContractNoChanging(string value); + partial void OnContractNoChanged(); + partial void OnUnitWorksChanging(string value); + partial void OnUnitWorksChanged(); + partial void OnProfessionalChanging(string value); + partial void OnProfessionalChanged(); partial void OnCompileManChanging(string value); partial void OnCompileManChanged(); partial void OnCompileDateChanging(System.Nullable value); partial void OnCompileDateChanged(); + partial void OnStateChanging(string value); + partial void OnStateChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnHSETodaySummaryChanging(string value); + partial void OnHSETodaySummaryChanged(); + partial void OnHSETodaySummaryRemarkChanging(string value); + partial void OnHSETodaySummaryRemarkChanged(); + partial void OnHSETomorrowPlanChanging(string value); + partial void OnHSETomorrowPlanChanged(); + partial void OnHSETomorrowPlanRemarkChanging(string value); + partial void OnHSETomorrowPlanRemarkChanged(); + partial void OnCQMSTodaySummaryChanging(string value); + partial void OnCQMSTodaySummaryChanged(); + partial void OnCQMSTodaySummaryRemarkChanging(string value); + partial void OnCQMSTodaySummaryRemarkChanged(); + partial void OnCQMSTomorrowPlanChanging(string value); + partial void OnCQMSTomorrowPlanChanged(); + partial void OnCQMSTomorrowPlanRemarkChanging(string value); + partial void OnCQMSTomorrowPlanRemarkChanged(); #endregion public ZHGL_ConstructionLog() { this._Base_Project = default(EntityRef); - this._Person_Persons = default(EntityRef); + this._ZHGL_ConstructionLogMachine = new EntitySet(new Action(this.attach_ZHGL_ConstructionLogMachine), new Action(this.detach_ZHGL_ConstructionLogMachine)); + this._ZHGL_ConstructionLogManagement = new EntitySet(new Action(this.attach_ZHGL_ConstructionLogManagement), new Action(this.detach_ZHGL_ConstructionLogManagement)); + this._ZHGL_ConstructionLogPerson = new EntitySet(new Action(this.attach_ZHGL_ConstructionLogPerson), new Action(this.detach_ZHGL_ConstructionLogPerson)); + this._ZHGL_ConstructionLogProblem = new EntitySet(new Action(this.attach_ZHGL_ConstructionLogProblem), new Action(this.detach_ZHGL_ConstructionLogProblem)); + this._ZHGL_ConstructionLogRecord = new EntitySet(new Action(this.attach_ZHGL_ConstructionLogRecord), new Action(this.detach_ZHGL_ConstructionLogRecord)); OnCreated(); } @@ -303327,102 +303402,82 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemperatureMax", DbType="Int")] - public System.Nullable TemperatureMax + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Temperature", DbType="NVarChar(30)")] + public string Temperature { get { - return this._TemperatureMax; + return this._Temperature; } set { - if ((this._TemperatureMax != value)) + if ((this._Temperature != value)) { - this.OnTemperatureMaxChanging(value); + this.OnTemperatureChanging(value); this.SendPropertyChanging(); - this._TemperatureMax = value; - this.SendPropertyChanged("TemperatureMax"); - this.OnTemperatureMaxChanged(); + this._Temperature = value; + this.SendPropertyChanged("Temperature"); + this.OnTemperatureChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemperatureMin", DbType="Int")] - public System.Nullable TemperatureMin + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractNo", DbType="NVarChar(50)")] + public string ContractNo { get { - return this._TemperatureMin; + return this._ContractNo; } set { - if ((this._TemperatureMin != value)) + if ((this._ContractNo != value)) { - this.OnTemperatureMinChanging(value); + this.OnContractNoChanging(value); this.SendPropertyChanging(); - this._TemperatureMin = value; - this.SendPropertyChanged("TemperatureMin"); - this.OnTemperatureMinChanged(); + this._ContractNo = value; + this.SendPropertyChanged("ContractNo"); + this.OnContractNoChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainWork", DbType="NVarChar(3000)")] - public string MainWork + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorks", DbType="NVarChar(500)")] + public string UnitWorks { get { - return this._MainWork; + return this._UnitWorks; } set { - if ((this._MainWork != value)) + if ((this._UnitWorks != value)) { - this.OnMainWorkChanging(value); + this.OnUnitWorksChanging(value); this.SendPropertyChanging(); - this._MainWork = value; - this.SendPropertyChanged("MainWork"); - this.OnMainWorkChanged(); + this._UnitWorks = value; + this.SendPropertyChanged("UnitWorks"); + this.OnUnitWorksChanged(); } } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainProblems", DbType="NVarChar(3000)")] - public string MainProblems + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Professional", DbType="NVarChar(50)")] + public string Professional { get { - return this._MainProblems; + return this._Professional; } set { - if ((this._MainProblems != value)) + if ((this._Professional != value)) { - this.OnMainProblemsChanging(value); + this.OnProfessionalChanging(value); this.SendPropertyChanging(); - this._MainProblems = value; - this.SendPropertyChanged("MainProblems"); - this.OnMainProblemsChanged(); - } - } - } - - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(3000)")] - 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(); + this._Professional = value; + this.SendPropertyChanged("Professional"); + this.OnProfessionalChanged(); } } } @@ -303438,10 +303493,6 @@ namespace Model { if ((this._CompileMan != value)) { - if (this._Person_Persons.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnCompileManChanging(value); this.SendPropertyChanging(); this._CompileMan = value; @@ -303471,6 +303522,206 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Char(1)")] + public string State + { + get + { + return this._State; + } + set + { + if ((this._State != value)) + { + this.OnStateChanging(value); + this.SendPropertyChanging(); + this._State = value; + this.SendPropertyChanged("State"); + this.OnStateChanged(); + } + } + } + + [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="_HSETodaySummary", DbType="NVarChar(3000)")] + public string HSETodaySummary + { + get + { + return this._HSETodaySummary; + } + set + { + if ((this._HSETodaySummary != value)) + { + this.OnHSETodaySummaryChanging(value); + this.SendPropertyChanging(); + this._HSETodaySummary = value; + this.SendPropertyChanged("HSETodaySummary"); + this.OnHSETodaySummaryChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETodaySummaryRemark", DbType="NVarChar(500)")] + public string HSETodaySummaryRemark + { + get + { + return this._HSETodaySummaryRemark; + } + set + { + if ((this._HSETodaySummaryRemark != value)) + { + this.OnHSETodaySummaryRemarkChanging(value); + this.SendPropertyChanging(); + this._HSETodaySummaryRemark = value; + this.SendPropertyChanged("HSETodaySummaryRemark"); + this.OnHSETodaySummaryRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETomorrowPlan", DbType="NVarChar(3000)")] + public string HSETomorrowPlan + { + get + { + return this._HSETomorrowPlan; + } + set + { + if ((this._HSETomorrowPlan != value)) + { + this.OnHSETomorrowPlanChanging(value); + this.SendPropertyChanging(); + this._HSETomorrowPlan = value; + this.SendPropertyChanged("HSETomorrowPlan"); + this.OnHSETomorrowPlanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HSETomorrowPlanRemark", DbType="NVarChar(500)")] + public string HSETomorrowPlanRemark + { + get + { + return this._HSETomorrowPlanRemark; + } + set + { + if ((this._HSETomorrowPlanRemark != value)) + { + this.OnHSETomorrowPlanRemarkChanging(value); + this.SendPropertyChanging(); + this._HSETomorrowPlanRemark = value; + this.SendPropertyChanged("HSETomorrowPlanRemark"); + this.OnHSETomorrowPlanRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CQMSTodaySummary", DbType="NVarChar(3000)")] + public string CQMSTodaySummary + { + get + { + return this._CQMSTodaySummary; + } + set + { + if ((this._CQMSTodaySummary != value)) + { + this.OnCQMSTodaySummaryChanging(value); + this.SendPropertyChanging(); + this._CQMSTodaySummary = value; + this.SendPropertyChanged("CQMSTodaySummary"); + this.OnCQMSTodaySummaryChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CQMSTodaySummaryRemark", DbType="NVarChar(500)")] + public string CQMSTodaySummaryRemark + { + get + { + return this._CQMSTodaySummaryRemark; + } + set + { + if ((this._CQMSTodaySummaryRemark != value)) + { + this.OnCQMSTodaySummaryRemarkChanging(value); + this.SendPropertyChanging(); + this._CQMSTodaySummaryRemark = value; + this.SendPropertyChanged("CQMSTodaySummaryRemark"); + this.OnCQMSTodaySummaryRemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CQMSTomorrowPlan", DbType="NVarChar(3000)")] + public string CQMSTomorrowPlan + { + get + { + return this._CQMSTomorrowPlan; + } + set + { + if ((this._CQMSTomorrowPlan != value)) + { + this.OnCQMSTomorrowPlanChanging(value); + this.SendPropertyChanging(); + this._CQMSTomorrowPlan = value; + this.SendPropertyChanged("CQMSTomorrowPlan"); + this.OnCQMSTomorrowPlanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CQMSTomorrowPlanRemark", DbType="NVarChar(500)")] + public string CQMSTomorrowPlanRemark + { + get + { + return this._CQMSTomorrowPlanRemark; + } + set + { + if ((this._CQMSTomorrowPlanRemark != value)) + { + this.OnCQMSTomorrowPlanRemarkChanging(value); + this.SendPropertyChanging(); + this._CQMSTomorrowPlanRemark = value; + this.SendPropertyChanged("CQMSTomorrowPlanRemark"); + this.OnCQMSTomorrowPlanRemarkChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLog_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -303505,36 +303756,1362 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLog_Person_Persons_CompileMan", Storage="_Person_Persons", ThisKey="CompileMan", OtherKey="PersonId", IsForeignKey=true)] - public Person_Persons Person_Persons + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogMachine", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")] + public EntitySet ZHGL_ConstructionLogMachine { get { - return this._Person_Persons.Entity; + return this._ZHGL_ConstructionLogMachine; } set { - Person_Persons previousValue = this._Person_Persons.Entity; + this._ZHGL_ConstructionLogMachine.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogManagement_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogManagement", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")] + public EntitySet ZHGL_ConstructionLogManagement + { + get + { + return this._ZHGL_ConstructionLogManagement; + } + set + { + this._ZHGL_ConstructionLogManagement.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogPerson", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")] + public EntitySet ZHGL_ConstructionLogPerson + { + get + { + return this._ZHGL_ConstructionLogPerson; + } + set + { + this._ZHGL_ConstructionLogPerson.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogProblem_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogProblem", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")] + public EntitySet ZHGL_ConstructionLogProblem + { + get + { + return this._ZHGL_ConstructionLogProblem; + } + set + { + this._ZHGL_ConstructionLogProblem.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogRecord_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogRecord", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")] + public EntitySet ZHGL_ConstructionLogRecord + { + get + { + return this._ZHGL_ConstructionLogRecord; + } + set + { + this._ZHGL_ConstructionLogRecord.Assign(value); + } + } + + 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)); + } + } + + private void attach_ZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = this; + } + + private void detach_ZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = null; + } + + private void attach_ZHGL_ConstructionLogManagement(ZHGL_ConstructionLogManagement entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = this; + } + + private void detach_ZHGL_ConstructionLogManagement(ZHGL_ConstructionLogManagement entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = null; + } + + private void attach_ZHGL_ConstructionLogPerson(ZHGL_ConstructionLogPerson entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = this; + } + + private void detach_ZHGL_ConstructionLogPerson(ZHGL_ConstructionLogPerson entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = null; + } + + private void attach_ZHGL_ConstructionLogProblem(ZHGL_ConstructionLogProblem entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = this; + } + + private void detach_ZHGL_ConstructionLogProblem(ZHGL_ConstructionLogProblem entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = null; + } + + private void attach_ZHGL_ConstructionLogRecord(ZHGL_ConstructionLogRecord entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = this; + } + + private void detach_ZHGL_ConstructionLogRecord(ZHGL_ConstructionLogRecord entity) + { + this.SendPropertyChanging(); + entity.ZHGL_ConstructionLog = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_ConstructionLogMachine")] + public partial class ZHGL_ConstructionLogMachine : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConstructionLogMachineId; + + private string _ConstructionLogId; + + private string _UnitWorkId; + + private System.Nullable _WJNum; + + private System.Nullable _DCNum; + + private System.Nullable _DZJNum; + + private System.Nullable _GCNum; + + private System.Nullable _BCNum; + + private System.Nullable _BengCNum; + + private EntityRef _ZHGL_ConstructionLog; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConstructionLogMachineIdChanging(string value); + partial void OnConstructionLogMachineIdChanged(); + partial void OnConstructionLogIdChanging(string value); + partial void OnConstructionLogIdChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnWJNumChanging(System.Nullable value); + partial void OnWJNumChanged(); + partial void OnDCNumChanging(System.Nullable value); + partial void OnDCNumChanged(); + partial void OnDZJNumChanging(System.Nullable value); + partial void OnDZJNumChanged(); + partial void OnGCNumChanging(System.Nullable value); + partial void OnGCNumChanged(); + partial void OnBCNumChanging(System.Nullable value); + partial void OnBCNumChanged(); + partial void OnBengCNumChanging(System.Nullable value); + partial void OnBengCNumChanged(); + #endregion + + public ZHGL_ConstructionLogMachine() + { + this._ZHGL_ConstructionLog = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogMachineId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConstructionLogMachineId + { + get + { + return this._ConstructionLogMachineId; + } + set + { + if ((this._ConstructionLogMachineId != value)) + { + this.OnConstructionLogMachineIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogMachineId = value; + this.SendPropertyChanged("ConstructionLogMachineId"); + this.OnConstructionLogMachineIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")] + public string ConstructionLogId + { + get + { + return this._ConstructionLogId; + } + set + { + if ((this._ConstructionLogId != value)) + { + if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnConstructionLogIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogId = value; + this.SendPropertyChanged("ConstructionLogId"); + this.OnConstructionLogIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WJNum", DbType="Int")] + public System.Nullable WJNum + { + get + { + return this._WJNum; + } + set + { + if ((this._WJNum != value)) + { + this.OnWJNumChanging(value); + this.SendPropertyChanging(); + this._WJNum = value; + this.SendPropertyChanged("WJNum"); + this.OnWJNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DCNum", DbType="Int")] + public System.Nullable DCNum + { + get + { + return this._DCNum; + } + set + { + if ((this._DCNum != value)) + { + this.OnDCNumChanging(value); + this.SendPropertyChanging(); + this._DCNum = value; + this.SendPropertyChanged("DCNum"); + this.OnDCNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DZJNum", DbType="Int")] + public System.Nullable DZJNum + { + get + { + return this._DZJNum; + } + set + { + if ((this._DZJNum != value)) + { + this.OnDZJNumChanging(value); + this.SendPropertyChanging(); + this._DZJNum = value; + this.SendPropertyChanged("DZJNum"); + this.OnDZJNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GCNum", DbType="Int")] + public System.Nullable GCNum + { + get + { + return this._GCNum; + } + set + { + if ((this._GCNum != value)) + { + this.OnGCNumChanging(value); + this.SendPropertyChanging(); + this._GCNum = value; + this.SendPropertyChanged("GCNum"); + this.OnGCNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BCNum", DbType="Int")] + public System.Nullable BCNum + { + get + { + return this._BCNum; + } + set + { + if ((this._BCNum != value)) + { + this.OnBCNumChanging(value); + this.SendPropertyChanging(); + this._BCNum = value; + this.SendPropertyChanged("BCNum"); + this.OnBCNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BengCNum", DbType="Int")] + public System.Nullable BengCNum + { + get + { + return this._BengCNum; + } + set + { + if ((this._BengCNum != value)) + { + this.OnBengCNumChanging(value); + this.SendPropertyChanging(); + this._BengCNum = value; + this.SendPropertyChanged("BengCNum"); + this.OnBengCNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)] + public ZHGL_ConstructionLog ZHGL_ConstructionLog + { + get + { + return this._ZHGL_ConstructionLog.Entity; + } + set + { + ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity; if (((previousValue != value) - || (this._Person_Persons.HasLoadedOrAssignedValue == false))) + || (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false))) { this.SendPropertyChanging(); if ((previousValue != null)) { - this._Person_Persons.Entity = null; - previousValue.ZHGL_ConstructionLog.Remove(this); + this._ZHGL_ConstructionLog.Entity = null; + previousValue.ZHGL_ConstructionLogMachine.Remove(this); } - this._Person_Persons.Entity = value; + this._ZHGL_ConstructionLog.Entity = value; if ((value != null)) { - value.ZHGL_ConstructionLog.Add(this); - this._CompileMan = value.PersonId; + value.ZHGL_ConstructionLogMachine.Add(this); + this._ConstructionLogId = value.ConstructionLogId; } else { - this._CompileMan = default(string); + this._ConstructionLogId = default(string); } - this.SendPropertyChanged("Person_Persons"); + this.SendPropertyChanged("ZHGL_ConstructionLog"); + } + } + } + + 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.ZHGL_ConstructionLogManagement")] + public partial class ZHGL_ConstructionLogManagement : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConstructionLogManagementId; + + private string _ConstructionLogId; + + private string _UnitWorkId; + + private string _TodayWork; + + private string _TomorrowWork; + + private string _Remark; + + private EntityRef _ZHGL_ConstructionLog; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConstructionLogManagementIdChanging(string value); + partial void OnConstructionLogManagementIdChanged(); + partial void OnConstructionLogIdChanging(string value); + partial void OnConstructionLogIdChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnTodayWorkChanging(string value); + partial void OnTodayWorkChanged(); + partial void OnTomorrowWorkChanging(string value); + partial void OnTomorrowWorkChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public ZHGL_ConstructionLogManagement() + { + this._ZHGL_ConstructionLog = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogManagementId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConstructionLogManagementId + { + get + { + return this._ConstructionLogManagementId; + } + set + { + if ((this._ConstructionLogManagementId != value)) + { + this.OnConstructionLogManagementIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogManagementId = value; + this.SendPropertyChanged("ConstructionLogManagementId"); + this.OnConstructionLogManagementIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")] + public string ConstructionLogId + { + get + { + return this._ConstructionLogId; + } + set + { + if ((this._ConstructionLogId != value)) + { + if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnConstructionLogIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogId = value; + this.SendPropertyChanged("ConstructionLogId"); + this.OnConstructionLogIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TodayWork", DbType="NVarChar(500)")] + public string TodayWork + { + get + { + return this._TodayWork; + } + set + { + if ((this._TodayWork != value)) + { + this.OnTodayWorkChanging(value); + this.SendPropertyChanging(); + this._TodayWork = value; + this.SendPropertyChanged("TodayWork"); + this.OnTodayWorkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TomorrowWork", DbType="NVarChar(500)")] + public string TomorrowWork + { + get + { + return this._TomorrowWork; + } + set + { + if ((this._TomorrowWork != value)) + { + this.OnTomorrowWorkChanging(value); + this.SendPropertyChanging(); + this._TomorrowWork = value; + this.SendPropertyChanged("TomorrowWork"); + this.OnTomorrowWorkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(100)")] + 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.AssociationAttribute(Name="FK_ZHGL_ConstructionLogManagement_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)] + public ZHGL_ConstructionLog ZHGL_ConstructionLog + { + get + { + return this._ZHGL_ConstructionLog.Entity; + } + set + { + ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity; + if (((previousValue != value) + || (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ZHGL_ConstructionLog.Entity = null; + previousValue.ZHGL_ConstructionLogManagement.Remove(this); + } + this._ZHGL_ConstructionLog.Entity = value; + if ((value != null)) + { + value.ZHGL_ConstructionLogManagement.Add(this); + this._ConstructionLogId = value.ConstructionLogId; + } + else + { + this._ConstructionLogId = default(string); + } + this.SendPropertyChanged("ZHGL_ConstructionLog"); + } + } + } + + 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.ZHGL_ConstructionLogPerson")] + public partial class ZHGL_ConstructionLogPerson : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConstructionLogPersonId; + + private string _ConstructionLogId; + + private string _UnitWorkId; + + private System.Nullable _WGNum; + + private System.Nullable _GJGNum; + + private System.Nullable _MGNum; + + private System.Nullable _HNTGNum; + + private System.Nullable _HGNum; + + private System.Nullable _JZGNum; + + private EntityRef _ZHGL_ConstructionLog; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConstructionLogPersonIdChanging(string value); + partial void OnConstructionLogPersonIdChanged(); + partial void OnConstructionLogIdChanging(string value); + partial void OnConstructionLogIdChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnWGNumChanging(System.Nullable value); + partial void OnWGNumChanged(); + partial void OnGJGNumChanging(System.Nullable value); + partial void OnGJGNumChanged(); + partial void OnMGNumChanging(System.Nullable value); + partial void OnMGNumChanged(); + partial void OnHNTGNumChanging(System.Nullable value); + partial void OnHNTGNumChanged(); + partial void OnHGNumChanging(System.Nullable value); + partial void OnHGNumChanged(); + partial void OnJZGNumChanging(System.Nullable value); + partial void OnJZGNumChanged(); + #endregion + + public ZHGL_ConstructionLogPerson() + { + this._ZHGL_ConstructionLog = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogPersonId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConstructionLogPersonId + { + get + { + return this._ConstructionLogPersonId; + } + set + { + if ((this._ConstructionLogPersonId != value)) + { + this.OnConstructionLogPersonIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogPersonId = value; + this.SendPropertyChanged("ConstructionLogPersonId"); + this.OnConstructionLogPersonIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")] + public string ConstructionLogId + { + get + { + return this._ConstructionLogId; + } + set + { + if ((this._ConstructionLogId != value)) + { + if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnConstructionLogIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogId = value; + this.SendPropertyChanged("ConstructionLogId"); + this.OnConstructionLogIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WGNum", DbType="Int")] + public System.Nullable WGNum + { + get + { + return this._WGNum; + } + set + { + if ((this._WGNum != value)) + { + this.OnWGNumChanging(value); + this.SendPropertyChanging(); + this._WGNum = value; + this.SendPropertyChanged("WGNum"); + this.OnWGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GJGNum", DbType="Int")] + public System.Nullable GJGNum + { + get + { + return this._GJGNum; + } + set + { + if ((this._GJGNum != value)) + { + this.OnGJGNumChanging(value); + this.SendPropertyChanging(); + this._GJGNum = value; + this.SendPropertyChanged("GJGNum"); + this.OnGJGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MGNum", DbType="Int")] + public System.Nullable MGNum + { + get + { + return this._MGNum; + } + set + { + if ((this._MGNum != value)) + { + this.OnMGNumChanging(value); + this.SendPropertyChanging(); + this._MGNum = value; + this.SendPropertyChanged("MGNum"); + this.OnMGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HNTGNum", DbType="Int")] + public System.Nullable HNTGNum + { + get + { + return this._HNTGNum; + } + set + { + if ((this._HNTGNum != value)) + { + this.OnHNTGNumChanging(value); + this.SendPropertyChanging(); + this._HNTGNum = value; + this.SendPropertyChanged("HNTGNum"); + this.OnHNTGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HGNum", DbType="Int")] + public System.Nullable HGNum + { + get + { + return this._HGNum; + } + set + { + if ((this._HGNum != value)) + { + this.OnHGNumChanging(value); + this.SendPropertyChanging(); + this._HGNum = value; + this.SendPropertyChanged("HGNum"); + this.OnHGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JZGNum", DbType="Int")] + public System.Nullable JZGNum + { + get + { + return this._JZGNum; + } + set + { + if ((this._JZGNum != value)) + { + this.OnJZGNumChanging(value); + this.SendPropertyChanging(); + this._JZGNum = value; + this.SendPropertyChanged("JZGNum"); + this.OnJZGNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)] + public ZHGL_ConstructionLog ZHGL_ConstructionLog + { + get + { + return this._ZHGL_ConstructionLog.Entity; + } + set + { + ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity; + if (((previousValue != value) + || (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ZHGL_ConstructionLog.Entity = null; + previousValue.ZHGL_ConstructionLogPerson.Remove(this); + } + this._ZHGL_ConstructionLog.Entity = value; + if ((value != null)) + { + value.ZHGL_ConstructionLogPerson.Add(this); + this._ConstructionLogId = value.ConstructionLogId; + } + else + { + this._ConstructionLogId = default(string); + } + this.SendPropertyChanged("ZHGL_ConstructionLog"); + } + } + } + + 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.ZHGL_ConstructionLogProblem")] + public partial class ZHGL_ConstructionLogProblem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConstructionLogProblemId; + + private string _ConstructionLogId; + + private string _UnitWorkId; + + private string _MainProblem; + + private string _HandlingMeasures; + + private string _WorkPackageId; + + private string _ImportanceLevel; + + private EntityRef _ZHGL_ConstructionLog; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConstructionLogProblemIdChanging(string value); + partial void OnConstructionLogProblemIdChanged(); + partial void OnConstructionLogIdChanging(string value); + partial void OnConstructionLogIdChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnMainProblemChanging(string value); + partial void OnMainProblemChanged(); + partial void OnHandlingMeasuresChanging(string value); + partial void OnHandlingMeasuresChanged(); + partial void OnWorkPackageIdChanging(string value); + partial void OnWorkPackageIdChanged(); + partial void OnImportanceLevelChanging(string value); + partial void OnImportanceLevelChanged(); + #endregion + + public ZHGL_ConstructionLogProblem() + { + this._ZHGL_ConstructionLog = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogProblemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConstructionLogProblemId + { + get + { + return this._ConstructionLogProblemId; + } + set + { + if ((this._ConstructionLogProblemId != value)) + { + this.OnConstructionLogProblemIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogProblemId = value; + this.SendPropertyChanged("ConstructionLogProblemId"); + this.OnConstructionLogProblemIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")] + public string ConstructionLogId + { + get + { + return this._ConstructionLogId; + } + set + { + if ((this._ConstructionLogId != value)) + { + if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnConstructionLogIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogId = value; + this.SendPropertyChanged("ConstructionLogId"); + this.OnConstructionLogIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainProblem", DbType="NVarChar(500)")] + public string MainProblem + { + get + { + return this._MainProblem; + } + set + { + if ((this._MainProblem != value)) + { + this.OnMainProblemChanging(value); + this.SendPropertyChanging(); + this._MainProblem = value; + this.SendPropertyChanged("MainProblem"); + this.OnMainProblemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandlingMeasures", DbType="NVarChar(500)")] + public string HandlingMeasures + { + get + { + return this._HandlingMeasures; + } + set + { + if ((this._HandlingMeasures != value)) + { + this.OnHandlingMeasuresChanging(value); + this.SendPropertyChanging(); + this._HandlingMeasures = value; + this.SendPropertyChanged("HandlingMeasures"); + this.OnHandlingMeasuresChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageId", DbType="NVarChar(50)")] + public string WorkPackageId + { + get + { + return this._WorkPackageId; + } + set + { + if ((this._WorkPackageId != value)) + { + this.OnWorkPackageIdChanging(value); + this.SendPropertyChanging(); + this._WorkPackageId = value; + this.SendPropertyChanged("WorkPackageId"); + this.OnWorkPackageIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImportanceLevel", DbType="NVarChar(10)")] + public string ImportanceLevel + { + get + { + return this._ImportanceLevel; + } + set + { + if ((this._ImportanceLevel != value)) + { + this.OnImportanceLevelChanging(value); + this.SendPropertyChanging(); + this._ImportanceLevel = value; + this.SendPropertyChanged("ImportanceLevel"); + this.OnImportanceLevelChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogProblem_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)] + public ZHGL_ConstructionLog ZHGL_ConstructionLog + { + get + { + return this._ZHGL_ConstructionLog.Entity; + } + set + { + ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity; + if (((previousValue != value) + || (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ZHGL_ConstructionLog.Entity = null; + previousValue.ZHGL_ConstructionLogProblem.Remove(this); + } + this._ZHGL_ConstructionLog.Entity = value; + if ((value != null)) + { + value.ZHGL_ConstructionLogProblem.Add(this); + this._ConstructionLogId = value.ConstructionLogId; + } + else + { + this._ConstructionLogId = default(string); + } + this.SendPropertyChanged("ZHGL_ConstructionLog"); + } + } + } + + 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.ZHGL_ConstructionLogRecord")] + public partial class ZHGL_ConstructionLogRecord : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConstructionLogRecordId; + + private string _ConstructionLogId; + + private string _Record; + + private string _Remark; + + private EntityRef _ZHGL_ConstructionLog; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConstructionLogRecordIdChanging(string value); + partial void OnConstructionLogRecordIdChanged(); + partial void OnConstructionLogIdChanging(string value); + partial void OnConstructionLogIdChanged(); + partial void OnRecordChanging(string value); + partial void OnRecordChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public ZHGL_ConstructionLogRecord() + { + this._ZHGL_ConstructionLog = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogRecordId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConstructionLogRecordId + { + get + { + return this._ConstructionLogRecordId; + } + set + { + if ((this._ConstructionLogRecordId != value)) + { + this.OnConstructionLogRecordIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogRecordId = value; + this.SendPropertyChanged("ConstructionLogRecordId"); + this.OnConstructionLogRecordIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")] + public string ConstructionLogId + { + get + { + return this._ConstructionLogId; + } + set + { + if ((this._ConstructionLogId != value)) + { + if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnConstructionLogIdChanging(value); + this.SendPropertyChanging(); + this._ConstructionLogId = value; + this.SendPropertyChanged("ConstructionLogId"); + this.OnConstructionLogIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Record", DbType="NVarChar(1000)")] + public string Record + { + get + { + return this._Record; + } + set + { + if ((this._Record != value)) + { + this.OnRecordChanging(value); + this.SendPropertyChanging(); + this._Record = value; + this.SendPropertyChanged("Record"); + this.OnRecordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(300)")] + 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.AssociationAttribute(Name="FK_ZHGL_ConstructionLogRecord_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)] + public ZHGL_ConstructionLog ZHGL_ConstructionLog + { + get + { + return this._ZHGL_ConstructionLog.Entity; + } + set + { + ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity; + if (((previousValue != value) + || (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ZHGL_ConstructionLog.Entity = null; + previousValue.ZHGL_ConstructionLogRecord.Remove(this); + } + this._ZHGL_ConstructionLog.Entity = value; + if ((value != null)) + { + value.ZHGL_ConstructionLogRecord.Add(this); + this._ConstructionLogId = value.ConstructionLogId; + } + else + { + this._ConstructionLogId = default(string); + } + this.SendPropertyChanged("ZHGL_ConstructionLog"); } } }