From 7e7188039ba64bebbeee992547bad037ea8a6d3b Mon Sep 17 00:00:00 2001 From: gaofei <181547018@qq.com> Date: Tue, 28 Mar 2023 16:44:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=9B=86=E5=9B=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2023-03-27.sql | 358 +- SGGL/FineUIPro.Web/DataShow/Accident.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/Check.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Check.aspx.cs | 1 - .../FineUIPro.Web/DataShow/CompanyPerson.aspx | 6 +- .../DataShow/CompanyPerson.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/EduTrain.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/Emergency.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs | 4 +- .../FineUIPro.Web/DataShow/Environmental.aspx | 6 +- .../DataShow/Environmental.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx | 6 +- .../FineUIPro.Web/DataShow/HJGLDefect.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx | 6 +- .../FineUIPro.Web/DataShow/HJGLWelder.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx | 8 +- .../DataShow/HJGLWelding.aspx.cs | 47 +- .../DataShow/HiddenRectification.aspx | 18 +- .../DataShow/HiddenRectification.aspx.cs | 24 +- .../HiddenRectification.aspx.designer.cs | 18 +- .../DataShow/HiddenRectificationItem.aspx | 8 +- .../DataShow/HiddenRectificationItem.aspx.cs | 27 +- .../HiddenRectificationItem.aspx.designer.cs | 18 +- .../DataShow/LargeEngineering.aspx | 6 +- .../DataShow/LargeEngineering.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/License.aspx | 16 +- SGGL/FineUIPro.Web/DataShow/License.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/Meeting.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/Project.aspx | 6 +- SGGL/FineUIPro.Web/DataShow/Project.aspx.cs | 1 - .../DataShow/ProjectDivision.aspx | 6 +- .../FineUIPro.Web/DataShow/ProjectPerson.aspx | 6 +- .../DataShow/ProjectPerson.aspx.cs | 1 - .../DataShow/QualityAcceptance.aspx | 6 +- .../DataShow/QualityAcceptance.aspx.cs | 1 - .../DataShow/QualityControlPoint.aspx | 6 +- .../DataShow/QualityControlPoint.aspx.cs | 1 - .../DataShow/QualityInstruments.aspx | 6 +- .../DataShow/QualityInstruments.aspx.cs | 1 - .../FineUIPro.Web/DataShow/QualityPerson.aspx | 6 +- .../DataShow/QualityPerson.aspx.cs | 1 - .../DataShow/QualityProblem.aspx | 6 +- .../DataShow/QualityProblem.aspx.cs | 1 - .../DataShow/QualityTraining.aspx | 6 +- .../DataShow/QualityTraining.aspx.cs | 6 +- SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx | 6 +- .../DataShow/SecurityCost.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx | 6 +- .../DataShow/SecurityRisk.aspx.cs | 1 - SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx | 6 +- .../DataShow/WorkingHours.aspx.cs | 1 - SGGL/Model/Model.cs | 6997 ++++++++++++++++- 55 files changed, 7524 insertions(+), 177 deletions(-) diff --git a/DataBase/版本日志/SGGLDB_WH_2023-03-27.sql b/DataBase/版本日志/SGGLDB_WH_2023-03-27.sql index 1ebe42e7..61fa492b 100644 --- a/DataBase/版本日志/SGGLDB_WH_2023-03-27.sql +++ b/DataBase/版本日志/SGGLDB_WH_2023-03-27.sql @@ -1,2 +1,358 @@ alter table HSSE_Hazard_HazardRegister add HazardValue nvarchar(50) null -GO \ No newline at end of file +GO +alter table HSSE_Hazard_HazardRegister add Risk_Level nvarchar(50) null +GO + + +CREATE TABLE [dbo].[Person_CompanyBranchPerson]( + [CompanyBranchPersonId] [nvarchar](50) NOT NULL, + [UnitId] [nvarchar](50) NULL, + [PersonName] [nvarchar](50) NULL, + [Sex] [char](1) NULL, + [IdentityCard] [nvarchar](50) NULL, + [WorkPostId] [nvarchar](50) NULL, + [Telephone] [nvarchar](50) NULL, + [Address] [nvarchar](500) NULL, + [IsOnJob] [bit] NULL, + [Remark] [nvarchar](500) NULL, + CONSTRAINT [PK_Person_Person] PRIMARY KEY CLUSTERED +( + [CompanyBranchPersonId] 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].[Person_CompanyBranchPerson] WITH CHECK ADD CONSTRAINT [FK_Person_CompanyBranchPerson_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[Person_CompanyBranchPerson] CHECK CONSTRAINT [FK_Person_CompanyBranchPerson_Base_Unit] +GO + +ALTER TABLE [dbo].[Person_CompanyBranchPerson] WITH CHECK ADD CONSTRAINT [FK_Person_CompanyBranchPerson_Base_WorkPost] FOREIGN KEY([WorkPostId]) +REFERENCES [dbo].[Base_WorkPost] ([WorkPostId]) +GO + +ALTER TABLE [dbo].[Person_CompanyBranchPerson] CHECK CONSTRAINT [FK_Person_CompanyBranchPerson_Base_WorkPost] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'CompanyBranchPersonId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'UnitId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'PersonName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ա' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'Sex' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'֤' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'IdentityCard' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'WorkPostId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'Telephone' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ַͥ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'Address' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƿְ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @level2type=N'COLUMN',@level2name=N'IsOnJob' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_CompanyBranchPerson', @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'Person_CompanyBranchPerson' +GO + +alter table [dbo].[Supervise_SuperviseCheckReport] add CheckType char(1) null +GO +alter table [dbo].[InApproveManager_EquipmentInItem] add IsUsed bit null +GO +alter table [dbo].[InApproveManager_GeneralEquipmentInItem] add IsUsed bit null +GO + + +/**********Ѳ죨ֻˣͼ*************/ +ALTER VIEW [dbo].[View_Hazard_HazardRegister] +AS +SELECT Registration.HazardRegisterId, + Registration.HazardCode, + Registration.RegisterDate, + Registration.RegisterDef, + Registration.Rectification, + Registration.Place, + Registration.ResponsibleUnit, + Registration.Observer, + Registration.RectifiedDate, + Registration.ProjectId, + Registration.states, + Registration.IsEffective, + Registration.ResponsibleMan, + Registration.CheckManId, + Registration.CheckTime, + Registration.RectificationPeriod, + Registration.ImageUrl, + Registration.RectificationImageUrl, + Registration.RectificationTime, + Registration.ConfirmMan, + Registration.ConfirmDate, + Registration.HandleIdea, + Registration.CutPayment, + Registration.ProblemTypes, + Registration.CheckSpecialId, + Registration.CheckItemDetailId, + Registration.SupCheckItemSetId, + Registration.CheckItemSetId, + Registration.SafeSupervisionId, + Registration.SafeSupervisionIsOK, + Registration.Risk_Level, + Project.ProjectName, + Registration.CheckCycle, + ISNULL(WorkArea.UnitWorkName,'') AS WorkAreaName, + Unit.UnitName AS ResponsibilityUnitName, + ISNULL(User1.UserName,'') AS ResponsibilityManName, + ISNULL(User1.Telephone,'') AS ResponsibilityManTel, + ISNULL(User2.UserName,'') AS CheckManName, + ISNULL(User2.Telephone,'') AS CheckManTel, + User2.UnitId AS SendUnitId, + ISNULL(User3.UserName,'') AS ConfirmManName, + ISNULL(User3.Telephone,'') AS ConfirmManTel, + ISNULL(User4.UserName,'') AS ResponsibilityManName2, + ISNULL(User4.Telephone,'') AS ResponsibilityMan2Tel, + (CASE WHEN Registration.states='1' and (Registration.SafeSupervisionIsOK is null OR Registration.SafeSupervisionIsOK=0) THEN '' + WHEN Registration.states='1' and Registration.SafeSupervisionIsOK=1 THEN 'ϸ' + WHEN Registration.states='2' THEN '' + WHEN Registration.states='3' THEN 'ѱջ' + ELSE '' END ) AS StatesStr, + RegisterTypes.RegisterTypesId, + RegisterTypes.RegisterTypesName, + Registration.DIC_ID, + Registration.CCManIds, + CCManNames = STUFF(( SELECT ',' + UserName FROM Sys_User + where PATINDEX('%,' + RTRIM(Sys_User.UserId) + ',%',',' + Registration.CCManIds + ',')>0 + ORDER BY PATINDEX('%,' + RTRIM(Registration.CCManIds) + ',%',',' + Registration.CCManIds + ',') + FOR XML PATH('')), 1, 1,''), + Registration.Requirements +FROM dbo.HSSE_Hazard_HazardRegister AS Registration +LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId = Registration.ProjectId +LEFT JOIN dbo.WBS_UnitWork AS WorkArea ON WorkArea.UnitWorkId = Registration.Place +LEFT JOIN dbo.HSSE_Hazard_HazardRegisterTypes AS RegisterTypes ON RegisterTypes.RegisterTypesId = Registration.RegisterTypesId +LEFT JOIN dbo.Base_Unit AS Unit ON Unit.UnitId = Registration.ResponsibleUnit +LEFT JOIN dbo.Sys_User AS User1 ON User1.UserId = Registration.ResponsibleMan +LEFT JOIN dbo.Sys_User AS User2 ON User2.UserId = Registration.CheckManId +LEFT JOIN dbo.Sys_User AS User3 ON User3.UserId = Registration.ConfirmMan +LEFT JOIN dbo.Sys_User AS User4 ON User4.UserId = Registration.ResponsibleMan2 + + + + +GO + + +CREATE TABLE [dbo].[CH_Check]( + [CHT_CheckID] [varchar](50) NOT NULL, + [CH_TrustID] [varchar](50) NULL, + [ProjectId] [nvarchar](50) NOT NULL, + [UnitId] [nvarchar](50) NOT NULL, + [InstallationId] [nvarchar](50) NULL, + [CHT_CheckCode] [varchar](50) NULL, + [CHT_CheckDate] [datetime] NULL, + [CHT_CheckType] [char](2) NULL, + [CHT_CheckMan] [varchar](50) NULL, + [CHT_Tabler] [varchar](50) NULL, + [CHT_TableDate] [datetime] NULL, + [CHT_AuditMan] [varchar](50) NULL, + [CHT_AuditDate] [datetime] NULL, + [CHT_Remark] [varchar](100) NULL, + [RepairTrustId] [nvarchar](50) NULL, + [ContractualUnits] [nvarchar](50) NULL, + CONSTRAINT [PK_CH_Check] PRIMARY KEY CLUSTERED +( + [CHT_CheckID] 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].[CH_Check] WITH CHECK ADD CONSTRAINT [FK_CH_Check_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[CH_Check] CHECK CONSTRAINT [FK_CH_Check_Base_Project] +GO + +ALTER TABLE [dbo].[CH_Check] WITH CHECK ADD CONSTRAINT [FK_CH_Check_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[CH_Check] CHECK CONSTRAINT [FK_CH_Check_Base_Unit] +GO + +ALTER TABLE [dbo].[CH_Check] WITH CHECK ADD CONSTRAINT [FK_CH_Check_Base_Unit1] FOREIGN KEY([ContractualUnits]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[CH_Check] CHECK CONSTRAINT [FK_CH_Check_Base_Unit1] +GO + +ALTER TABLE [dbo].[CH_Check] WITH CHECK ADD CONSTRAINT [FK_CH_Check_CH_Trust] FOREIGN KEY([CH_TrustID]) +REFERENCES [dbo].[CH_Trust] ([CH_TrustID]) +GO + +ALTER TABLE [dbo].[CH_Check] CHECK CONSTRAINT [FK_CH_Check_CH_Trust] +GO + + + +CREATE TABLE [dbo].[CH_CheckItem]( + [CHT_CheckItemID] [varchar](50) NOT NULL, + [CHT_CheckID] [varchar](50) NOT NULL, + [JOT_ID] [varchar](50) NULL, + [CH_TrustItemID] [varchar](50) NULL, + [CHT_CheckMethod] [varchar](50) NOT NULL, + [CHT_RequestDate] [datetime] NULL, + [CHT_RepairLocation] [varchar](20) NULL, + [CHT_TotalFilm] [int] NULL, + [CHT_PassFilm] [int] NULL, + [CHT_CheckResult] [varchar](20) NULL, + [CHT_CheckNo] [varchar](30) NULL, + [CHT_FilmDate] [datetime] NULL, + [CHT_ReportDate] [datetime] NULL, + [CHT_Remark] [varchar](100) NULL, + [CHT_FloorWelder1] [varchar](20) NULL, + [CHT_FloorWelder2] [varchar](20) NULL, + [CHT_AuditTime] [datetime] NULL, + [FilmSpecifications] [nvarchar](50) NULL, + [DefectLength] [decimal](9, 2) NULL, + [ExtendingRice] [decimal](9, 2) NULL, + [Defects_Definition] [varchar](50) NULL, + [DefectDepth] [decimal](9, 2) NULL, + [DefectHeight] [decimal](9, 2) NULL, + CONSTRAINT [PK_CH_CheckItem] PRIMARY KEY CLUSTERED +( + [CHT_CheckItemID] 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].[CH_CheckItem] WITH CHECK ADD CONSTRAINT [FK_CH_CHECK_REFERENCE_CH_CHECK] FOREIGN KEY([CHT_CheckID]) +REFERENCES [dbo].[CH_Check] ([CHT_CheckID]) +GO + +ALTER TABLE [dbo].[CH_CheckItem] CHECK CONSTRAINT [FK_CH_CHECK_REFERENCE_CH_CHECK] +GO + +ALTER TABLE [dbo].[CH_CheckItem] WITH CHECK ADD CONSTRAINT [FK_CH_CHECK_REFERENCE_CH_TRUST] FOREIGN KEY([CH_TrustItemID]) +REFERENCES [dbo].[CH_TrustItem] ([CH_TrustItemID]) +GO + +ALTER TABLE [dbo].[CH_CheckItem] CHECK CONSTRAINT [FK_CH_CHECK_REFERENCE_CH_TRUST] +GO + +ALTER TABLE [dbo].[CH_CheckItem] WITH CHECK ADD CONSTRAINT [FK_CH_CHECK_REFERENCE_PW_JOINT] FOREIGN KEY([JOT_ID]) +REFERENCES [dbo].[PW_JointInfo] ([JOT_ID]) +GO + +ALTER TABLE [dbo].[CH_CheckItem] CHECK CONSTRAINT [FK_CH_CHECK_REFERENCE_PW_JOINT] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ƭ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CH_CheckItem', @level2type=N'COLUMN',@level2name=N'FilmSpecifications' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ȱݳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CH_CheckItem', @level2type=N'COLUMN',@level2name=N'DefectLength' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ӳ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CH_CheckItem', @level2type=N'COLUMN',@level2name=N'ExtendingRice' +GO + + +alter table BS_Welder add TeamGroupId nvarchar(50) null +GO +alter table BS_Welder add WederType char(1) null +GO + + +ALTER VIEW [dbo].[View_License_LicenseManager] +AS +/*ֳȫ֤*/ +SELECT LicenseManager.LicenseManagerId, + LicenseManager.ProjectId, + LicenseManager.LicenseTypeId, + LicenseManager.LicenseManagerCode, + LicenseManager.LicenseManageName, + LicenseManager.UnitId, + LicenseManager.LicenseManageContents, + LicenseManager.CompileMan, + LicenseManager.CompileDate, + LicenseManager.CNProfessionalId, + CN.ProfessionalName, + LicenseManager.States, + Project.ProjectCode, + Project.ProjectName, + LicenseType.LicenseTypeName, + Unit.UnitName, + UnitType.UnitTypeId, + UnitType.UnitTypeName, + Users.UserName, + LicenseManager.WorkAreaId, + --WorkArea.WorkAreaName, + case LicenseManager.WorkStates when '1' then '' + when '2' then 'ҵ' + when '3' then 'ѹر' + when '-1' then 'ȡ' + else '' end as WorkStatesStr, + LicenseManager.StartDate, + LicenseManager.EndDate, + LicenseManager.ApplicantMan, + WorkAreaName = STUFF(( SELECT ',' + UnitWorkName FROM WBS_UnitWork + where PATINDEX('%,' + RTRIM(WBS_UnitWork.UnitWorkId) + ',%',',' + LicenseManager.WorkAreaId + ',')>0 + ORDER BY PATINDEX('%,' + RTRIM(LicenseManager.WorkAreaId) + ',%',',' + LicenseManager.WorkAreaId + ',') + FOR XML PATH('')), 1, 1,'') +FROM dbo.License_LicenseManager AS LicenseManager +LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId = LicenseManager.ProjectId +LEFT JOIN dbo.Base_LicenseType AS LicenseType ON LicenseType.LicenseTypeId = LicenseManager.LicenseTypeId +LEFT JOIN dbo.Base_CNProfessional AS CN ON CN.CNProfessionalId = LicenseManager.CNProfessionalId +LEFT JOIN dbo.Base_Unit AS Unit ON Unit.UnitId = LicenseManager.UnitId +LEFT JOIN dbo.Sys_User AS Users ON Users.UserId = LicenseManager.CompileMan +LEFT JOIN dbo.WBS_UnitWork AS WorkArea ON WorkArea.UnitWorkId = LicenseManager.WorkAreaId +LEFT JOIN dbo.Base_UnitType as UnitType ON UnitType.UnitTypeId=Unit.UnitTypeId + + +GO + + +alter table Base_Project add ProjectAttribute nvarchar(50) null +GO +update Base_Project set ProjectAttribute='GONGCHENG' +GO + +alter table [dbo].[WBS_DivisionProject] add [SubItemType] char(1) null +GO +alter table [dbo].WBS_BreakdownProject add CheckAcceptType char(1) null +GO +alter table [dbo].Comprehensive_InspectionMachine add Status nvarchar(2) null +GO +alter table [dbo].Comprehensive_InspectionPerson add Status nvarchar(2) null +GO +alter table [dbo].Comprehensive_DesignDetails add Status nvarchar(2) null +GO +alter table [dbo].Hazard_HazardSelectedItem add HazardSelectedItemId nvarchar(50) null +GO + + diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx b/SGGL/FineUIPro.Web/DataShow/Accident.aspx index 9c3085f2..ae1532fc 100644 --- a/SGGL/FineUIPro.Web/DataShow/Accident.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx @@ -38,7 +38,7 @@ - + @@ -111,13 +111,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs index 3c48c3b1..828a7bd9 100644 --- a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs @@ -23,7 +23,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/Check.aspx b/SGGL/FineUIPro.Web/DataShow/Check.aspx index 070d979e..9a68b38d 100644 --- a/SGGL/FineUIPro.Web/DataShow/Check.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx @@ -44,7 +44,7 @@ Width="130px"> - + @@ -110,13 +110,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs index 14be1c57..0114067e 100644 --- a/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs @@ -24,7 +24,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx index 81b8e027..1e738c86 100644 --- a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx +++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx @@ -35,7 +35,7 @@ - + @@ -96,13 +96,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs index fa5dc7ef..008e2f4d 100644 --- a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格t BindGrid(); diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx index 32b611d3..f2e3f055 100644 --- a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx +++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx @@ -43,7 +43,7 @@ Width="130px"> - + @@ -113,13 +113,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs index 551eb391..065d83b0 100644 --- a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs @@ -19,7 +19,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - // btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx index 98748361..61b6967a 100644 --- a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx @@ -38,7 +38,7 @@ Width="130px"> - + @@ -195,13 +195,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs index 3cf3a8f4..262fd200 100644 --- a/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Emergency.aspx.cs @@ -19,9 +19,7 @@ namespace FineUIPro.Web.DataShow { if (!IsPostBack) { - Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); - + Funs.DropDownPageSize(this.ddlPageSize); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); diff --git a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx index 80785d6a..54f5ac7a 100644 --- a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx @@ -38,7 +38,7 @@ Width="130px"> - + @@ -109,13 +109,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs index 5e316a2e..25bf4e16 100644 --- a/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Environmental.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - // btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格t BindGrid(); diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx index 69378869..bcfa4311 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx @@ -35,7 +35,7 @@ Width="130px"> --%> - + @@ -95,13 +95,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs index 787f61e2..5cb335d8 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx index 7cbd5210..a5a4c52e 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx @@ -29,7 +29,7 @@ - + @@ -109,13 +109,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs index 35c4c2b1..9056aff7 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelder.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx index f288b3c2..f61beb76 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx @@ -35,7 +35,7 @@ Width="130px"> - + @@ -95,7 +95,7 @@ - @@ -110,13 +110,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs index 47159568..bcb73ea3 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs @@ -20,8 +20,7 @@ namespace FineUIPro.Web.DataShow { if (!IsPostBack) { - Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); + Funs.DropDownPageSize(this.ddlPageSize); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t @@ -29,7 +28,7 @@ namespace FineUIPro.Web.DataShow } } - + /// /// 绑定数据 /// @@ -58,7 +57,7 @@ namespace FineUIPro.Web.DataShow // cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text; //} - + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; @@ -140,13 +139,13 @@ namespace FineUIPro.Web.DataShow /// private void EditData() { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); - return; - } + //if (Grid1.SelectedRowIndexArray.Length == 0) + //{ + // Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); + // return; + //} - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLWeldingItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - "))); + //PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HJGLWeldingItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - "))); } #endregion @@ -171,7 +170,10 @@ namespace FineUIPro.Web.DataShow select x; if (getD1.Count() > 0) { - cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? "")); + foreach (var item in getD1) + { + cout1 += Funs.GetNewIntOrZero(item.TotalWeldQuantity); + } } } return cout1; @@ -193,12 +195,15 @@ namespace FineUIPro.Web.DataShow // join y in Funs.DB.BO_WeldReportMain on x.DReportID equals y.DReportID // where x.ProjectId == projectId.ToString() // select new { x.JOT_DoneDin, y.JOT_WeldDate }; - var getD1= from x in Funs.DB.HJGL_FL_TotalQuantity - where x.ProjectId == projectId.ToString() - select x; + var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity + where x.ProjectId == projectId.ToString() + select x; if (getD1.Count() > 0) { - cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.TotalWeldQuantity ?? "")); + foreach (var item in getD1) + { + cout1 += Funs.GetNewIntOrZero(item.TotalWeldQuantity); + } } //if (datetime1.HasValue) //{ @@ -251,8 +256,12 @@ namespace FineUIPro.Web.DataShow select x; if (getD1.Count() > 0) { - cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmAmount ?? "")); + foreach (var item in getD1) + { + cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmAmount); + } } + } return cout1; } @@ -291,8 +300,12 @@ namespace FineUIPro.Web.DataShow select x; if (getD1.Count() > 0) { - cout1 = getD1.Sum(x => Funs.GetNewIntOrZero(x.OneTimeFilmQualifiedAmount ?? "")); + foreach (var item in getD1) + { + cout1 += Funs.GetNewIntOrZero(item.OneTimeFilmQualifiedAmount); + } } + } return cout1; } diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx index 3aaf9117..5473a570 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx @@ -29,18 +29,18 @@ - - - - + + + + - + @@ -57,7 +57,7 @@ - + @@ -115,13 +115,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs index 68bf82c0..dbf0a5eb 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs @@ -62,7 +62,7 @@ namespace FineUIPro.Web.DataShow Grid1.RecordCount = tb.Rows.Count; var table = this.GetPagedDataTable(Grid1, tb); Grid1.DataSource = table; - Grid1.DataBind(); + Grid1.DataBind(); } #endregion @@ -177,11 +177,11 @@ namespace FineUIPro.Web.DataShow } if (this.rbType.SelectedValue == "0") { - getT = getT.Where(x => x.HazardValue == "3"); + getT = getT.Where(x => x.Risk_Level == "重大"); } else { - getT = getT.Where(x => x.HazardValue != "3"); + getT = getT.Where(x => x.Risk_Level == "一般"); } cout1 = getT.Count(); } @@ -206,11 +206,11 @@ namespace FineUIPro.Web.DataShow } if (this.rbType.SelectedValue == "0") { - getT = getT.Where(x => x.HazardValue == "3"); + getT = getT.Where(x => x.Risk_Level == "重大"); } else { - getT = getT.Where(x => x.HazardValue != "3"); + getT = getT.Where(x => x.Risk_Level == "一般"); } cout1 = getT.Count(); } @@ -224,7 +224,7 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getT = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "3" && x.States != "4"); + var getT = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "3" && x.States != "4"); if (datetime1.HasValue) { getT = getT.Where(x => x.RegisterDate >= datetime1); @@ -235,11 +235,11 @@ namespace FineUIPro.Web.DataShow } if (this.rbType.SelectedValue == "0") { - getT = getT.Where(x => x.HazardValue == "3"); + getT = getT.Where(x => x.Risk_Level == "重大"); } else { - getT = getT.Where(x => x.HazardValue != "3"); + getT = getT.Where(x => x.Risk_Level == "一般"); } cout1 = getT.Count(); } @@ -248,19 +248,19 @@ namespace FineUIPro.Web.DataShow protected string Count4(object projectId) { - string rate=string.Empty; + string rate = string.Empty; if (projectId != null) { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getALL= Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "4"); + var getALL = Funs.DB.HSSE_Hazard_HazardRegister.Where(x => x.ProjectId == projectId.ToString() && x.States != "4"); if (this.rbType.SelectedValue == "0") { - getALL = getALL.Where(x => x.HazardValue == "3"); + getALL = getALL.Where(x => x.Risk_Level == "重大"); } else { - getALL = getALL.Where(x => x.HazardValue != "3"); + getALL = getALL.Where(x => x.Risk_Level == "一般"); } if (datetime1.HasValue) { diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs index 1a369f55..06e534a6 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.designer.cs @@ -77,15 +77,6 @@ namespace FineUIPro.Web.DataShow /// protected global::FineUIPro.DatePicker txtStartTime; - /// - /// rbType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rbType; - /// /// Label3 控件。 /// @@ -104,6 +95,15 @@ namespace FineUIPro.Web.DataShow /// protected global::FineUIPro.DatePicker txtEndTime; + /// + /// rbType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rbType; + /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx index 17a590d1..e1593bd4 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx @@ -32,14 +32,14 @@ - + + - - diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs index 9a1541b5..95f7dd72 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs @@ -1,9 +1,13 @@ -using BLL; +using Aspose.Words; +using BLL; +using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { @@ -81,14 +85,13 @@ namespace FineUIPro.Web.DataShow } if (this.rbType.SelectedValue == "0") { - strSql += " AND HazardValue =@HazardValue"; + strSql += " AND Risk_Level = '重大'"; } else { - strSql += " AND HazardValue != @HazardValue"; + strSql += " AND Risk_Level ='一般'"; } listStr.Add(new SqlParameter("@HazardValue", "3")); - SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); @@ -153,12 +156,18 @@ namespace FineUIPro.Web.DataShow protected string ConvertImageUrlByImage(object registrationId) { string url = string.Empty; + string httpUrl = string.Empty; + var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault(); + if (sysSet6 != null) + { + httpUrl = sysSet6.SetValue; + } if (registrationId != null) { var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); if (registration != null) { - url = BLL.UploadAttachmentService.ShowImage("../", registration.ImageUrl); + url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.ImageUrl); } } return url; @@ -173,12 +182,18 @@ namespace FineUIPro.Web.DataShow protected string ConvertImgUrlByImage(object registrationId) { string url = string.Empty; + string httpUrl = string.Empty; + var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault(); + if (sysSet6 != null) + { + httpUrl = sysSet6.SetValue; + } if (registrationId != null) { var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); if (registration != null) { - url = BLL.UploadAttachmentService.ShowImage("../", registration.RectificationImageUrl); + url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.RectificationImageUrl); } } return url; diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs index 5dc49deb..1cd16b48 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.designer.cs @@ -95,15 +95,6 @@ namespace FineUIPro.Web.DataShow /// protected global::FineUIPro.DatePicker txtEndTime; - /// - /// rbType 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rbType; - /// /// drpStates 控件。 /// @@ -113,6 +104,15 @@ namespace FineUIPro.Web.DataShow /// protected global::FineUIPro.DropDownList drpStates; + /// + /// rbType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rbType; + /// /// btnClose 控件。 /// diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx index 023fdc02..9f1df1d1 100644 --- a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx +++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx @@ -35,7 +35,7 @@ Width="130px"> --%> - + @@ -120,13 +120,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs index c680fc8d..3eaef7bc 100644 --- a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs @@ -25,7 +25,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); LargerHazard = (from x in Funs.DB.Solution_LargerHazard diff --git a/SGGL/FineUIPro.Web/DataShow/License.aspx b/SGGL/FineUIPro.Web/DataShow/License.aspx index f073abf9..10a43a58 100644 --- a/SGGL/FineUIPro.Web/DataShow/License.aspx +++ b/SGGL/FineUIPro.Web/DataShow/License.aspx @@ -42,7 +42,7 @@ Width="130px"> - + @@ -127,19 +127,19 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { - window.location.href = "about:blank"; - window.close(); + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { + window.location.href = 'about:blank' + window.close() } else { - window.opener = null; - window.open("", "_self"); - window.close(); + window.opener = null + window.open('', '_self') + window.close() } } diff --git a/SGGL/FineUIPro.Web/DataShow/License.aspx.cs b/SGGL/FineUIPro.Web/DataShow/License.aspx.cs index fe1f63c7..53daa911 100644 --- a/SGGL/FineUIPro.Web/DataShow/License.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/License.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - // btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx index af2ca81f..ab5e01a3 100644 --- a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx @@ -42,7 +42,7 @@ Width="130px"> - + @@ -110,13 +110,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs index 89761b46..ef10572d 100644 --- a/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Meeting.aspx.cs @@ -24,7 +24,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/Project.aspx b/SGGL/FineUIPro.Web/DataShow/Project.aspx index 2ac40111..9d9bafcd 100644 --- a/SGGL/FineUIPro.Web/DataShow/Project.aspx +++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx @@ -31,7 +31,7 @@ - + @@ -133,13 +133,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs index 1ec465e9..d11c665c 100644 --- a/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); // 绑定表格t BindGrid(); diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx index 531053d0..eda71a1a 100644 --- a/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx +++ b/SGGL/FineUIPro.Web/DataShow/ProjectDivision.aspx @@ -35,7 +35,7 @@ Width="130px"> --%> - + @@ -105,13 +105,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx index 03550327..3043435d 100644 --- a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx +++ b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx @@ -39,7 +39,7 @@ - + @@ -117,13 +117,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs index 6dd14342..815fcc60 100644 --- a/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/ProjectPerson.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx index f899c548..16f9bd6e 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx @@ -43,7 +43,7 @@ Width="130px"> --%> - + @@ -109,13 +109,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs index a458d0a1..e3821fec 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityAcceptance.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx index 5563db0b..4c7f65b7 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx @@ -35,7 +35,7 @@ Width="130px"> --%> - + @@ -109,13 +109,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs index 8fe601a9..d90b2bc7 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx index 6ac5fdad..46c5e71d 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx @@ -35,7 +35,7 @@ Width="130px"> - + @@ -101,13 +101,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs index 9f6846b5..1c7be0de 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx index 03d44a3d..f65375f3 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx @@ -33,7 +33,7 @@ EnableEdit="true" OnSelectedIndexChanged="TextBox_TextChanged" AutoPostBack="true" Hidden="true"> - + @@ -98,13 +98,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs index c9fce0e1..4df4950b 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx index 248487b7..ec0883cd 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx @@ -35,7 +35,7 @@ Width="130px"> - + @@ -103,13 +103,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs index 2d5685f4..b131201c 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs @@ -20,7 +20,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx index 0836f4a6..69161753 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx @@ -40,7 +40,7 @@ Width="130px"> - + @@ -101,13 +101,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs index 8a11f4c8..b304f043 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs @@ -1,12 +1,9 @@ -using Aspose.Words; -using BLL; +using BLL; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; -using System.IO; using System.Linq; -using System.Text; namespace FineUIPro.Web.DataShow { @@ -24,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx index 2dcaa379..1c9f63d1 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx +++ b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx @@ -42,7 +42,7 @@ Width="130px"> - + @@ -106,13 +106,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs index b94246ad..d1dfc6e8 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityCost.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - // btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx index fcc62310..135eb840 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx @@ -35,7 +35,7 @@ Width="130px"> --%> - + @@ -111,13 +111,13 @@ } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs index ace6f7b4..6e8b8a5f 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx index d3420f13..e65b871a 100644 --- a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx +++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx @@ -35,7 +35,7 @@ Width="130px"> - + @@ -105,13 +105,13 @@ return false; } // 点击标题栏工具图标 - 退出 - function close(event) { + function closeNow(event) { var bConfirmed = confirm('您确定要退出吗?'); if (bConfirmed) { closePage(); } } function closePage() { - if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) { + if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) { window.location.href = "about:blank"; window.close(); } else { diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs index c232f3c5..edebf72f 100644 --- a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs @@ -21,7 +21,6 @@ namespace FineUIPro.Web.DataShow if (!IsPostBack) { Funs.DropDownPageSize(this.ddlPageSize); - btnClose.OnClientClick = ActiveWindow.GetHideReference(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); BLL.ProjectService.InitProjectDropDownList(this.drpProject, true); // 绑定表格t diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index d3e7ea25..90692d41 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -275,6 +275,12 @@ namespace Model partial void InsertBS_WeldMethodItem(BS_WeldMethodItem instance); partial void UpdateBS_WeldMethodItem(BS_WeldMethodItem instance); partial void DeleteBS_WeldMethodItem(BS_WeldMethodItem instance); + partial void InsertCH_Check(CH_Check instance); + partial void UpdateCH_Check(CH_Check instance); + partial void DeleteCH_Check(CH_Check instance); + partial void InsertCH_CheckItem(CH_CheckItem instance); + partial void UpdateCH_CheckItem(CH_CheckItem instance); + partial void DeleteCH_CheckItem(CH_CheckItem instance); partial void InsertCheck_CheckColligation(Check_CheckColligation instance); partial void UpdateCheck_CheckColligation(Check_CheckColligation instance); partial void DeleteCheck_CheckColligation(Check_CheckColligation instance); @@ -377,6 +383,9 @@ namespace Model partial void InsertCheck_JointCheckDetail(Check_JointCheckDetail instance); partial void UpdateCheck_JointCheckDetail(Check_JointCheckDetail instance); partial void DeleteCheck_JointCheckDetail(Check_JointCheckDetail instance); + partial void InsertCheck_MaterialAcceptance(Check_MaterialAcceptance instance); + partial void UpdateCheck_MaterialAcceptance(Check_MaterialAcceptance instance); + partial void DeleteCheck_MaterialAcceptance(Check_MaterialAcceptance instance); partial void InsertCheck_MonthSpotCheckDetail(Check_MonthSpotCheckDetail instance); partial void UpdateCheck_MonthSpotCheckDetail(Check_MonthSpotCheckDetail instance); partial void DeleteCheck_MonthSpotCheckDetail(Check_MonthSpotCheckDetail instance); @@ -392,6 +401,9 @@ namespace Model partial void InsertCheck_ProjectCheckItemSet(Check_ProjectCheckItemSet instance); partial void UpdateCheck_ProjectCheckItemSet(Check_ProjectCheckItemSet instance); partial void DeleteCheck_ProjectCheckItemSet(Check_ProjectCheckItemSet instance); + partial void InsertCheck_ProjectLeaderCheck(Check_ProjectLeaderCheck instance); + partial void UpdateCheck_ProjectLeaderCheck(Check_ProjectLeaderCheck instance); + partial void DeleteCheck_ProjectLeaderCheck(Check_ProjectLeaderCheck instance); partial void InsertCheck_PunishNotice(Check_PunishNotice instance); partial void UpdateCheck_PunishNotice(Check_PunishNotice instance); partial void DeleteCheck_PunishNotice(Check_PunishNotice instance); @@ -497,6 +509,9 @@ namespace Model partial void InsertComprehensive_DesignDetails(Comprehensive_DesignDetails instance); partial void UpdateComprehensive_DesignDetails(Comprehensive_DesignDetails instance); partial void DeleteComprehensive_DesignDetails(Comprehensive_DesignDetails instance); + partial void InsertComprehensive_DesignDetailsApprove(Comprehensive_DesignDetailsApprove instance); + partial void UpdateComprehensive_DesignDetailsApprove(Comprehensive_DesignDetailsApprove instance); + partial void DeleteComprehensive_DesignDetailsApprove(Comprehensive_DesignDetailsApprove instance); partial void InsertComprehensive_DesignDrawings(Comprehensive_DesignDrawings instance); partial void UpdateComprehensive_DesignDrawings(Comprehensive_DesignDrawings instance); partial void DeleteComprehensive_DesignDrawings(Comprehensive_DesignDrawings instance); @@ -512,9 +527,15 @@ namespace Model partial void InsertComprehensive_InspectionMachine(Comprehensive_InspectionMachine instance); partial void UpdateComprehensive_InspectionMachine(Comprehensive_InspectionMachine instance); partial void DeleteComprehensive_InspectionMachine(Comprehensive_InspectionMachine instance); + partial void InsertComprehensive_InspectionMachineApprove(Comprehensive_InspectionMachineApprove instance); + partial void UpdateComprehensive_InspectionMachineApprove(Comprehensive_InspectionMachineApprove instance); + partial void DeleteComprehensive_InspectionMachineApprove(Comprehensive_InspectionMachineApprove instance); partial void InsertComprehensive_InspectionPerson(Comprehensive_InspectionPerson instance); partial void UpdateComprehensive_InspectionPerson(Comprehensive_InspectionPerson instance); partial void DeleteComprehensive_InspectionPerson(Comprehensive_InspectionPerson instance); + partial void InsertComprehensive_InspectionPersonApprove(Comprehensive_InspectionPersonApprove instance); + partial void UpdateComprehensive_InspectionPersonApprove(Comprehensive_InspectionPersonApprove instance); + partial void DeleteComprehensive_InspectionPersonApprove(Comprehensive_InspectionPersonApprove instance); partial void InsertComprehensive_InspectionPersonSteel(Comprehensive_InspectionPersonSteel instance); partial void UpdateComprehensive_InspectionPersonSteel(Comprehensive_InspectionPersonSteel instance); partial void DeleteComprehensive_InspectionPersonSteel(Comprehensive_InspectionPersonSteel instance); @@ -722,9 +743,15 @@ namespace Model partial void InsertEmergency_DrillRecordList(Emergency_DrillRecordList instance); partial void UpdateEmergency_DrillRecordList(Emergency_DrillRecordList instance); partial void DeleteEmergency_DrillRecordList(Emergency_DrillRecordList instance); + partial void InsertEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance); + partial void UpdateEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance); + partial void DeleteEmergency_DrillRecordList_Unit(Emergency_DrillRecordList_Unit instance); partial void InsertEmergency_EmergencyList(Emergency_EmergencyList instance); partial void UpdateEmergency_EmergencyList(Emergency_EmergencyList instance); partial void DeleteEmergency_EmergencyList(Emergency_EmergencyList instance); + partial void InsertEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance); + partial void UpdateEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance); + partial void DeleteEmergency_EmergencyList_Unit(Emergency_EmergencyList_Unit instance); partial void InsertEmergency_EmergencyProcess(Emergency_EmergencyProcess instance); partial void UpdateEmergency_EmergencyProcess(Emergency_EmergencyProcess instance); partial void DeleteEmergency_EmergencyProcess(Emergency_EmergencyProcess instance); @@ -740,6 +767,18 @@ namespace Model partial void InsertEmergency_EmergencyTeamItem(Emergency_EmergencyTeamItem instance); partial void UpdateEmergency_EmergencyTeamItem(Emergency_EmergencyTeamItem instance); partial void DeleteEmergency_EmergencyTeamItem(Emergency_EmergencyTeamItem instance); + partial void InsertEnvironmental_ArchitectureReport(Environmental_ArchitectureReport instance); + partial void UpdateEnvironmental_ArchitectureReport(Environmental_ArchitectureReport instance); + partial void DeleteEnvironmental_ArchitectureReport(Environmental_ArchitectureReport instance); + partial void InsertEnvironmental_ArchitectureReportItem(Environmental_ArchitectureReportItem instance); + partial void UpdateEnvironmental_ArchitectureReportItem(Environmental_ArchitectureReportItem instance); + partial void DeleteEnvironmental_ArchitectureReportItem(Environmental_ArchitectureReportItem instance); + partial void InsertEnvironmental_ChemicalReport(Environmental_ChemicalReport instance); + partial void UpdateEnvironmental_ChemicalReport(Environmental_ChemicalReport instance); + partial void DeleteEnvironmental_ChemicalReport(Environmental_ChemicalReport instance); + partial void InsertEnvironmental_ChemicalReportItem(Environmental_ChemicalReportItem instance); + partial void UpdateEnvironmental_ChemicalReportItem(Environmental_ChemicalReportItem instance); + partial void DeleteEnvironmental_ChemicalReportItem(Environmental_ChemicalReportItem instance); partial void InsertEnvironmental_EIAReport(Environmental_EIAReport instance); partial void UpdateEnvironmental_EIAReport(Environmental_EIAReport instance); partial void DeleteEnvironmental_EIAReport(Environmental_EIAReport instance); @@ -1298,9 +1337,18 @@ namespace Model partial void InsertMeeting_ClassMeeting(Meeting_ClassMeeting instance); partial void UpdateMeeting_ClassMeeting(Meeting_ClassMeeting instance); partial void DeleteMeeting_ClassMeeting(Meeting_ClassMeeting instance); + partial void InsertMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance); + partial void UpdateMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance); + partial void DeleteMeeting_CompanySafetyMeeting(Meeting_CompanySafetyMeeting instance); + partial void InsertMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance); + partial void UpdateMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance); + partial void DeleteMeeting_CompanySpecialMeeting(Meeting_CompanySpecialMeeting instance); partial void InsertMeeting_MonthMeeting(Meeting_MonthMeeting instance); partial void UpdateMeeting_MonthMeeting(Meeting_MonthMeeting instance); partial void DeleteMeeting_MonthMeeting(Meeting_MonthMeeting instance); + partial void InsertMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance); + partial void UpdateMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance); + partial void DeleteMeeting_SafetyLeaderGroupMeeting(Meeting_SafetyLeaderGroupMeeting instance); partial void InsertMeeting_SpecialMeeting(Meeting_SpecialMeeting instance); partial void UpdateMeeting_SpecialMeeting(Meeting_SpecialMeeting instance); partial void DeleteMeeting_SpecialMeeting(Meeting_SpecialMeeting instance); @@ -1382,6 +1430,9 @@ namespace Model partial void InsertPerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance); partial void UpdatePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance); partial void DeletePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance); + partial void InsertPerson_CompanyBranchPerson(Person_CompanyBranchPerson instance); + partial void UpdatePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance); + partial void DeletePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance); partial void InsertPerson_Duty(Person_Duty instance); partial void UpdatePerson_Duty(Person_Duty instance); partial void DeletePerson_Duty(Person_Duty instance); @@ -2853,6 +2904,22 @@ namespace Model } } + public System.Data.Linq.Table CH_Check + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CH_CheckItem + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Check_CheckColligation { get @@ -3125,6 +3192,14 @@ namespace Model } } + public System.Data.Linq.Table Check_MaterialAcceptance + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Check_MonthSpotCheckDetail { get @@ -3165,6 +3240,14 @@ namespace Model } } + public System.Data.Linq.Table Check_ProjectLeaderCheck + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Check_PunishNotice { get @@ -3445,6 +3528,14 @@ namespace Model } } + public System.Data.Linq.Table Comprehensive_DesignDetailsApprove + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Comprehensive_DesignDrawings { get @@ -3485,6 +3576,14 @@ namespace Model } } + public System.Data.Linq.Table Comprehensive_InspectionMachineApprove + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Comprehensive_InspectionPerson { get @@ -3493,6 +3592,14 @@ namespace Model } } + public System.Data.Linq.Table Comprehensive_InspectionPersonApprove + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Comprehensive_InspectionPersonSteel { get @@ -4045,6 +4152,14 @@ namespace Model } } + public System.Data.Linq.Table Emergency_DrillRecordList_Unit + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Emergency_EmergencyList { get @@ -4053,6 +4168,14 @@ namespace Model } } + public System.Data.Linq.Table Emergency_EmergencyList_Unit + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Emergency_EmergencyProcess { get @@ -4093,6 +4216,38 @@ namespace Model } } + public System.Data.Linq.Table Environmental_ArchitectureReport + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Environmental_ArchitectureReportItem + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Environmental_ChemicalReport + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Environmental_ChemicalReportItem + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Environmental_EIAReport { get @@ -5589,6 +5744,22 @@ namespace Model } } + public System.Data.Linq.Table Meeting_CompanySafetyMeeting + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Meeting_CompanySpecialMeeting + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Meeting_MonthMeeting { get @@ -5597,6 +5768,14 @@ namespace Model } } + public System.Data.Linq.Table Meeting_SafetyLeaderGroupMeeting + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Meeting_SpecialMeeting { get @@ -5813,6 +5992,14 @@ namespace Model } } + public System.Data.Linq.Table Person_CompanyBranchPerson + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Person_Duty { get @@ -10150,6 +10337,8 @@ namespace Model private System.Nullable _NotConfirmed; + private string _AccidentDegree; + private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -10220,6 +10409,8 @@ namespace Model partial void OnNotConfirmEconomicOtherLossChanged(); partial void OnNotConfirmedChanging(System.Nullable value); partial void OnNotConfirmedChanged(); + partial void OnAccidentDegreeChanging(string value); + partial void OnAccidentDegreeChanged(); #endregion public Accident_AccidentReport() @@ -10827,6 +11018,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentDegree", DbType="Char(1)")] + public string AccidentDegree + { + get + { + return this._AccidentDegree; + } + set + { + if ((this._AccidentDegree != value)) + { + this.OnAccidentDegreeChanging(value); + this.SendPropertyChanging(); + this._AccidentDegree = value; + this.SendPropertyChanged("AccidentDegree"); + this.OnAccidentDegreeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -23279,6 +23490,8 @@ namespace Model private System.Nullable _CLProjectCode; + private string _ProjectAttribute; + private EntitySet _Accident_AccidentHandle; private EntitySet _Accident_AccidentPersonRecord; @@ -23321,6 +23534,8 @@ namespace Model private EntitySet _HJGL_Batch_PointBatch; + private EntitySet _CH_Check; + private EntitySet _Check_CheckColligation; private EntitySet _Check_CheckControl; @@ -23349,10 +23564,14 @@ namespace Model private EntitySet _Check_JointCheck; + private EntitySet _Check_MaterialAcceptance; + private EntitySet _Check_PauseNotice; private EntitySet _Check_ProjectCheckItemSet; + private EntitySet _Check_ProjectLeaderCheck; + private EntitySet _Check_PunishNotice; private EntitySet _Check_RectifyNotices; @@ -23901,6 +24120,8 @@ namespace Model partial void OnKZProjectCodeChanged(); partial void OnCLProjectCodeChanging(System.Nullable value); partial void OnCLProjectCodeChanged(); + partial void OnProjectAttributeChanging(string value); + partial void OnProjectAttributeChanged(); #endregion public Base_Project() @@ -23926,6 +24147,7 @@ namespace Model this._Base_QuestionType = new EntitySet(new Action(this.attach_Base_QuestionType), new Action(this.detach_Base_QuestionType)); this._HJGL_Batch_NDE = new EntitySet(new Action(this.attach_HJGL_Batch_NDE), new Action(this.detach_HJGL_Batch_NDE)); this._HJGL_Batch_PointBatch = new EntitySet(new Action(this.attach_HJGL_Batch_PointBatch), new Action(this.detach_HJGL_Batch_PointBatch)); + this._CH_Check = new EntitySet(new Action(this.attach_CH_Check), new Action(this.detach_CH_Check)); this._Check_CheckColligation = new EntitySet(new Action(this.attach_Check_CheckColligation), new Action(this.detach_Check_CheckColligation)); this._Check_CheckControl = new EntitySet(new Action(this.attach_Check_CheckControl), new Action(this.detach_Check_CheckControl)); this._Check_CheckDay = new EntitySet(new Action(this.attach_Check_CheckDay), new Action(this.detach_Check_CheckDay)); @@ -23940,8 +24162,10 @@ namespace Model this._Check_HSECertificate = new EntitySet(new Action(this.attach_Check_HSECertificate), new Action(this.detach_Check_HSECertificate)); this._Check_IncentiveNotice = new EntitySet(new Action(this.attach_Check_IncentiveNotice), new Action(this.detach_Check_IncentiveNotice)); this._Check_JointCheck = new EntitySet(new Action(this.attach_Check_JointCheck), new Action(this.detach_Check_JointCheck)); + this._Check_MaterialAcceptance = new EntitySet(new Action(this.attach_Check_MaterialAcceptance), new Action(this.detach_Check_MaterialAcceptance)); this._Check_PauseNotice = new EntitySet(new Action(this.attach_Check_PauseNotice), new Action(this.detach_Check_PauseNotice)); this._Check_ProjectCheckItemSet = new EntitySet(new Action(this.attach_Check_ProjectCheckItemSet), new Action(this.detach_Check_ProjectCheckItemSet)); + this._Check_ProjectLeaderCheck = new EntitySet(new Action(this.attach_Check_ProjectLeaderCheck), new Action(this.detach_Check_ProjectLeaderCheck)); this._Check_PunishNotice = new EntitySet(new Action(this.attach_Check_PunishNotice), new Action(this.detach_Check_PunishNotice)); this._Check_RectifyNotices = new EntitySet(new Action(this.attach_Check_RectifyNotices), new Action(this.detach_Check_RectifyNotices)); this._Check_SpotCheck = new EntitySet(new Action(this.attach_Check_SpotCheck), new Action(this.detach_Check_SpotCheck)); @@ -24890,6 +25114,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectAttribute", DbType="NVarChar(50)")] + public string ProjectAttribute + { + get + { + return this._ProjectAttribute; + } + set + { + if ((this._ProjectAttribute != value)) + { + this.OnProjectAttributeChanging(value); + this.SendPropertyChanging(); + this._ProjectAttribute = value; + this.SendPropertyChanged("ProjectAttribute"); + this.OnProjectAttributeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentHandle_Base_Project", Storage="_Accident_AccidentHandle", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Accident_AccidentHandle { @@ -25205,6 +25449,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Project", Storage="_CH_Check", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet CH_Check + { + get + { + return this._CH_Check; + } + set + { + this._CH_Check.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_CheckColligation_Base_Project", Storage="_Check_CheckColligation", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Check_CheckColligation { @@ -25387,6 +25644,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_MaterialAcceptance_Base_Project", Storage="_Check_MaterialAcceptance", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Check_MaterialAcceptance + { + get + { + return this._Check_MaterialAcceptance; + } + set + { + this._Check_MaterialAcceptance.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_PauseNotice_Base_Project", Storage="_Check_PauseNotice", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Check_PauseNotice { @@ -25413,6 +25683,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_ProjectLeaderCheck_Base_Project", Storage="_Check_ProjectLeaderCheck", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Check_ProjectLeaderCheck + { + get + { + return this._Check_ProjectLeaderCheck; + } + set + { + this._Check_ProjectLeaderCheck.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_PunishNotice_Base_Project", Storage="_Check_PunishNotice", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Check_PunishNotice { @@ -28742,6 +29025,18 @@ namespace Model entity.Base_Project = null; } + private void attach_CH_Check(CH_Check entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_CH_Check(CH_Check entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Check_CheckColligation(Check_CheckColligation entity) { this.SendPropertyChanging(); @@ -28910,6 +29205,18 @@ namespace Model entity.Base_Project = null; } + private void attach_Check_MaterialAcceptance(Check_MaterialAcceptance entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Check_MaterialAcceptance(Check_MaterialAcceptance entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Check_PauseNotice(Check_PauseNotice entity) { this.SendPropertyChanging(); @@ -28934,6 +29241,18 @@ namespace Model entity.Base_Project = null; } + private void attach_Check_ProjectLeaderCheck(Check_ProjectLeaderCheck entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Check_ProjectLeaderCheck(Check_ProjectLeaderCheck entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Check_PunishNotice(Check_PunishNotice entity) { this.SendPropertyChanging(); @@ -34495,6 +34814,8 @@ namespace Model private System.Nullable _IsRepeat; + private string _TrainType; + private EntitySet _Base_TrainTypeItem; private EntitySet _EduTrain_TrainRecord; @@ -34519,6 +34840,8 @@ namespace Model partial void OnIsAboutSendCardChanged(); partial void OnIsRepeatChanging(System.Nullable value); partial void OnIsRepeatChanged(); + partial void OnTrainTypeChanging(string value); + partial void OnTrainTypeChanged(); #endregion public Base_TrainType() @@ -34650,6 +34973,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainType", DbType="Char(1)")] + public string TrainType + { + get + { + return this._TrainType; + } + set + { + if ((this._TrainType != value)) + { + this.OnTrainTypeChanging(value); + this.SendPropertyChanging(); + this._TrainType = value; + this.SendPropertyChanged("TrainType"); + this.OnTrainTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_TrainTypeItem_Base_TrainType", Storage="_Base_TrainTypeItem", ThisKey="TrainTypeId", OtherKey="TrainTypeId", DeleteRule="NO ACTION")] public EntitySet Base_TrainTypeItem { @@ -35117,6 +35460,10 @@ namespace Model private EntitySet _BS_Welder; + private EntitySet _CH_Check; + + private EntitySet _CH_Check_Base_Unit1; + private EntitySet _Check_CheckColligationDetail; private EntitySet _Check_CheckDayDetail; @@ -35209,6 +35556,10 @@ namespace Model private EntitySet _Emergency_EmergencyTeamAndTrain; + private EntitySet _Environmental_ArchitectureReport; + + private EntitySet _Environmental_ChemicalReport; + private EntitySet _HJGL_Hard_Trust; private EntitySet _HJGL_Batch_BatchTrust; @@ -35317,6 +35668,8 @@ namespace Model private EntitySet _Perfomance_PersonPerfomance; + private EntitySet _Person_CompanyBranchPerson; + private EntitySet _HJGL_WeldingDaily; private EntitySet _ProcessControl_InspectionManagement; @@ -35472,6 +35825,8 @@ namespace Model this._Batch_NDECheck_CheckUnit_Base_Unit = new EntitySet(new Action(this.attach_Batch_NDECheck_CheckUnit_Base_Unit), new Action(this.detach_Batch_NDECheck_CheckUnit_Base_Unit)); this._HJGL_Batch_PointBatch = new EntitySet(new Action(this.attach_HJGL_Batch_PointBatch), new Action(this.detach_HJGL_Batch_PointBatch)); this._BS_Welder = new EntitySet(new Action(this.attach_BS_Welder), new Action(this.detach_BS_Welder)); + this._CH_Check = new EntitySet(new Action(this.attach_CH_Check), new Action(this.detach_CH_Check)); + this._CH_Check_Base_Unit1 = new EntitySet(new Action(this.attach_CH_Check_Base_Unit1), new Action(this.detach_CH_Check_Base_Unit1)); this._Check_CheckColligationDetail = new EntitySet(new Action(this.attach_Check_CheckColligationDetail), new Action(this.detach_Check_CheckColligationDetail)); this._Check_CheckDayDetail = new EntitySet(new Action(this.attach_Check_CheckDayDetail), new Action(this.detach_Check_CheckDayDetail)); this._Check_CheckInfo = new EntitySet(new Action(this.attach_Check_CheckInfo), new Action(this.detach_Check_CheckInfo)); @@ -35518,6 +35873,8 @@ namespace Model this._Emergency_EmergencyList = new EntitySet(new Action(this.attach_Emergency_EmergencyList), new Action(this.detach_Emergency_EmergencyList)); this._Emergency_EmergencySupply = new EntitySet(new Action(this.attach_Emergency_EmergencySupply), new Action(this.detach_Emergency_EmergencySupply)); this._Emergency_EmergencyTeamAndTrain = new EntitySet(new Action(this.attach_Emergency_EmergencyTeamAndTrain), new Action(this.detach_Emergency_EmergencyTeamAndTrain)); + this._Environmental_ArchitectureReport = new EntitySet(new Action(this.attach_Environmental_ArchitectureReport), new Action(this.detach_Environmental_ArchitectureReport)); + this._Environmental_ChemicalReport = new EntitySet(new Action(this.attach_Environmental_ChemicalReport), new Action(this.detach_Environmental_ChemicalReport)); this._HJGL_Hard_Trust = new EntitySet(new Action(this.attach_HJGL_Hard_Trust), new Action(this.detach_HJGL_Hard_Trust)); this._HJGL_Batch_BatchTrust = new EntitySet(new Action(this.attach_HJGL_Batch_BatchTrust), new Action(this.detach_HJGL_Batch_BatchTrust)); this._HJGL_Hard_Trust_Base_Unit = new EntitySet(new Action(this.attach_HJGL_Hard_Trust_Base_Unit), new Action(this.detach_HJGL_Hard_Trust_Base_Unit)); @@ -35572,6 +35929,7 @@ namespace Model this._Meeting_WeekMeeting = new EntitySet(new Action(this.attach_Meeting_WeekMeeting), new Action(this.detach_Meeting_WeekMeeting)); this._Perfomance_PerfomanceRecord = new EntitySet(new Action(this.attach_Perfomance_PerfomanceRecord), new Action(this.detach_Perfomance_PerfomanceRecord)); this._Perfomance_PersonPerfomance = new EntitySet(new Action(this.attach_Perfomance_PersonPerfomance), new Action(this.detach_Perfomance_PersonPerfomance)); + this._Person_CompanyBranchPerson = new EntitySet(new Action(this.attach_Person_CompanyBranchPerson), new Action(this.detach_Person_CompanyBranchPerson)); this._HJGL_WeldingDaily = new EntitySet(new Action(this.attach_HJGL_WeldingDaily), new Action(this.detach_HJGL_WeldingDaily)); this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement)); this._ProcessControl_NondestructiveTest = new EntitySet(new Action(this.attach_ProcessControl_NondestructiveTest), new Action(this.detach_ProcessControl_NondestructiveTest)); @@ -36286,6 +36644,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Unit", Storage="_CH_Check", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet CH_Check + { + get + { + return this._CH_Check; + } + set + { + this._CH_Check.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Unit1", Storage="_CH_Check_Base_Unit1", ThisKey="UnitId", OtherKey="ContractualUnits", DeleteRule="NO ACTION")] + public EntitySet CH_Check_Base_Unit1 + { + get + { + return this._CH_Check_Base_Unit1; + } + set + { + this._CH_Check_Base_Unit1.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_CheckColligationDetail_Base_Unit", Storage="_Check_CheckColligationDetail", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] public EntitySet Check_CheckColligationDetail { @@ -36884,6 +37268,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ArchitectureReport_Base_Unit", Storage="_Environmental_ArchitectureReport", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet Environmental_ArchitectureReport + { + get + { + return this._Environmental_ArchitectureReport; + } + set + { + this._Environmental_ArchitectureReport.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ChemicalReport_Base_Unit", Storage="_Environmental_ChemicalReport", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet Environmental_ChemicalReport + { + get + { + return this._Environmental_ChemicalReport; + } + set + { + this._Environmental_ChemicalReport.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Hard_Trust_Base_Unit", Storage="_HJGL_Hard_Trust", ThisKey="UnitId", OtherKey="CheckUnit", DeleteRule="NO ACTION")] public EntitySet HJGL_Hard_Trust { @@ -37586,6 +37996,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_CompanyBranchPerson_Base_Unit", Storage="_Person_CompanyBranchPerson", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet Person_CompanyBranchPerson + { + get + { + return this._Person_CompanyBranchPerson; + } + set + { + this._Person_CompanyBranchPerson.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Pipeline_WeldingDaily_Base_Unit", Storage="_HJGL_WeldingDaily", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] public EntitySet HJGL_WeldingDaily { @@ -38308,6 +38731,30 @@ namespace Model entity.Base_Unit = null; } + private void attach_CH_Check(CH_Check entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_CH_Check(CH_Check entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + + private void attach_CH_Check_Base_Unit1(CH_Check entity) + { + this.SendPropertyChanging(); + entity.ContractualUnitsBase_Unit = this; + } + + private void detach_CH_Check_Base_Unit1(CH_Check entity) + { + this.SendPropertyChanging(); + entity.ContractualUnitsBase_Unit = null; + } + private void attach_Check_CheckColligationDetail(Check_CheckColligationDetail entity) { this.SendPropertyChanging(); @@ -38860,6 +39307,30 @@ namespace Model entity.Base_Unit = null; } + private void attach_Environmental_ArchitectureReport(Environmental_ArchitectureReport entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_Environmental_ArchitectureReport(Environmental_ArchitectureReport entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + + private void attach_Environmental_ChemicalReport(Environmental_ChemicalReport entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_Environmental_ChemicalReport(Environmental_ChemicalReport entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + private void attach_HJGL_Hard_Trust(HJGL_Hard_Trust entity) { this.SendPropertyChanging(); @@ -39508,6 +39979,18 @@ namespace Model entity.Base_Unit = null; } + private void attach_Person_CompanyBranchPerson(Person_CompanyBranchPerson entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_Person_CompanyBranchPerson(Person_CompanyBranchPerson entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + private void attach_HJGL_WeldingDaily(HJGL_WeldingDaily entity) { this.SendPropertyChanging(); @@ -40755,10 +41238,14 @@ namespace Model private string _Template; + private System.Nullable _IsCQMS; + private EntitySet _Check_ViolationPerson; private EntitySet _HSSESystem_HSSEMainDuty; + private EntitySet _Person_CompanyBranchPerson; + private EntitySet _Person_ShuntDetail; private EntitySet _Person_TrainingPerson; @@ -40793,12 +41280,15 @@ namespace Model partial void OnCNCodesChanged(); partial void OnTemplateChanging(string value); partial void OnTemplateChanged(); + partial void OnIsCQMSChanging(System.Nullable value); + partial void OnIsCQMSChanged(); #endregion public Base_WorkPost() { this._Check_ViolationPerson = new EntitySet(new Action(this.attach_Check_ViolationPerson), new Action(this.detach_Check_ViolationPerson)); this._HSSESystem_HSSEMainDuty = new EntitySet(new Action(this.attach_HSSESystem_HSSEMainDuty), new Action(this.detach_HSSESystem_HSSEMainDuty)); + this._Person_CompanyBranchPerson = new EntitySet(new Action(this.attach_Person_CompanyBranchPerson), new Action(this.detach_Person_CompanyBranchPerson)); this._Person_ShuntDetail = new EntitySet(new Action(this.attach_Person_ShuntDetail), new Action(this.detach_Person_ShuntDetail)); this._Person_TrainingPerson = new EntitySet(new Action(this.attach_Person_TrainingPerson), new Action(this.detach_Person_TrainingPerson)); this._SitePerson_DayReportUnitDetail = new EntitySet(new Action(this.attach_SitePerson_DayReportUnitDetail), new Action(this.detach_SitePerson_DayReportUnitDetail)); @@ -40969,6 +41459,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCQMS", DbType="Bit")] + public System.Nullable IsCQMS + { + get + { + return this._IsCQMS; + } + set + { + if ((this._IsCQMS != value)) + { + this.OnIsCQMSChanging(value); + this.SendPropertyChanging(); + this._IsCQMS = value; + this.SendPropertyChanged("IsCQMS"); + this.OnIsCQMSChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_ViolationPerson_Base_WorkPost", Storage="_Check_ViolationPerson", ThisKey="WorkPostId", OtherKey="WorkPostId", DeleteRule="NO ACTION")] public EntitySet Check_ViolationPerson { @@ -40995,6 +41505,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_CompanyBranchPerson_Base_WorkPost", Storage="_Person_CompanyBranchPerson", ThisKey="WorkPostId", OtherKey="WorkPostId", DeleteRule="NO ACTION")] + public EntitySet Person_CompanyBranchPerson + { + get + { + return this._Person_CompanyBranchPerson; + } + set + { + this._Person_CompanyBranchPerson.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_ShuntDetail_Base_WorkPost", Storage="_Person_ShuntDetail", ThisKey="WorkPostId", OtherKey="WorkPostId", DeleteRule="NO ACTION")] public EntitySet Person_ShuntDetail { @@ -41130,6 +41653,18 @@ namespace Model entity.Base_WorkPost = null; } + private void attach_Person_CompanyBranchPerson(Person_CompanyBranchPerson entity) + { + this.SendPropertyChanging(); + entity.Base_WorkPost = this; + } + + private void detach_Person_CompanyBranchPerson(Person_CompanyBranchPerson entity) + { + this.SendPropertyChanging(); + entity.Base_WorkPost = null; + } + private void attach_Person_ShuntDetail(Person_ShuntDetail entity) { this.SendPropertyChanging(); @@ -46399,6 +46934,10 @@ namespace Model private System.Nullable _PostDate; + private string _TeamGroupId; + + private string _WederType; + private EntityRef _Base_Unit; private EntityRef _WED_; @@ -46473,6 +47012,10 @@ namespace Model partial void OnIdentityCardChanged(); partial void OnPostDateChanging(System.Nullable value); partial void OnPostDateChanged(); + partial void OnTeamGroupIdChanging(string value); + partial void OnTeamGroupIdChanged(); + partial void OnWederTypeChanging(string value); + partial void OnWederTypeChanged(); #endregion public BS_Welder() @@ -47112,6 +47655,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamGroupId", DbType="NVarChar(50)")] + public string TeamGroupId + { + get + { + return this._TeamGroupId; + } + set + { + if ((this._TeamGroupId != value)) + { + this.OnTeamGroupIdChanging(value); + this.SendPropertyChanging(); + this._TeamGroupId = value; + this.SendPropertyChanged("TeamGroupId"); + this.OnTeamGroupIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WederType", DbType="Char(1)")] + public string WederType + { + get + { + return this._WederType; + } + set + { + if ((this._WederType != value)) + { + this.OnWederTypeChanging(value); + this.SendPropertyChanging(); + this._WederType = value; + this.SendPropertyChanged("WederType"); + this.OnWederTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_BS_Welder_Base_Unit", Storage="_Base_Unit", ThisKey="WED_Unit", OtherKey="UnitId", IsForeignKey=true)] public Base_Unit Base_Unit { @@ -47747,6 +48330,1210 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CH_Check")] + public partial class CH_Check : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CHT_CheckID; + + private string _CH_TrustID; + + private string _ProjectId; + + private string _UnitId; + + private string _InstallationId; + + private string _CHT_CheckCode; + + private System.Nullable _CHT_CheckDate; + + private string _CHT_CheckType; + + private string _CHT_CheckMan; + + private string _CHT_Tabler; + + private System.Nullable _CHT_TableDate; + + private string _CHT_AuditMan; + + private System.Nullable _CHT_AuditDate; + + private string _CHT_Remark; + + private string _RepairTrustId; + + private string _ContractualUnits; + + private EntityRef _Base_Project; + + private EntityRef _Base_Unit; + + private EntityRef _ContractualUnitsBase_Unit; + + private EntitySet _CH_CheckItem; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCHT_CheckIDChanging(string value); + partial void OnCHT_CheckIDChanged(); + partial void OnCH_TrustIDChanging(string value); + partial void OnCH_TrustIDChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnCHT_CheckCodeChanging(string value); + partial void OnCHT_CheckCodeChanged(); + partial void OnCHT_CheckDateChanging(System.Nullable value); + partial void OnCHT_CheckDateChanged(); + partial void OnCHT_CheckTypeChanging(string value); + partial void OnCHT_CheckTypeChanged(); + partial void OnCHT_CheckManChanging(string value); + partial void OnCHT_CheckManChanged(); + partial void OnCHT_TablerChanging(string value); + partial void OnCHT_TablerChanged(); + partial void OnCHT_TableDateChanging(System.Nullable value); + partial void OnCHT_TableDateChanged(); + partial void OnCHT_AuditManChanging(string value); + partial void OnCHT_AuditManChanged(); + partial void OnCHT_AuditDateChanging(System.Nullable value); + partial void OnCHT_AuditDateChanged(); + partial void OnCHT_RemarkChanging(string value); + partial void OnCHT_RemarkChanged(); + partial void OnRepairTrustIdChanging(string value); + partial void OnRepairTrustIdChanged(); + partial void OnContractualUnitsChanging(string value); + partial void OnContractualUnitsChanged(); + #endregion + + public CH_Check() + { + this._Base_Project = default(EntityRef); + this._Base_Unit = default(EntityRef); + this._ContractualUnitsBase_Unit = default(EntityRef); + this._CH_CheckItem = new EntitySet(new Action(this.attach_CH_CheckItem), new Action(this.detach_CH_CheckItem)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckID", DbType="VarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CHT_CheckID + { + get + { + return this._CHT_CheckID; + } + set + { + if ((this._CHT_CheckID != value)) + { + this.OnCHT_CheckIDChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckID = value; + this.SendPropertyChanged("CHT_CheckID"); + this.OnCHT_CheckIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CH_TrustID", DbType="VarChar(50)")] + public string CH_TrustID + { + get + { + return this._CH_TrustID; + } + set + { + if ((this._CH_TrustID != value)) + { + this.OnCH_TrustIDChanging(value); + this.SendPropertyChanging(); + this._CH_TrustID = value; + this.SendPropertyChanged("CH_TrustID"); + this.OnCH_TrustIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckCode", DbType="VarChar(50)")] + public string CHT_CheckCode + { + get + { + return this._CHT_CheckCode; + } + set + { + if ((this._CHT_CheckCode != value)) + { + this.OnCHT_CheckCodeChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckCode = value; + this.SendPropertyChanged("CHT_CheckCode"); + this.OnCHT_CheckCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckDate", DbType="DateTime")] + public System.Nullable CHT_CheckDate + { + get + { + return this._CHT_CheckDate; + } + set + { + if ((this._CHT_CheckDate != value)) + { + this.OnCHT_CheckDateChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckDate = value; + this.SendPropertyChanged("CHT_CheckDate"); + this.OnCHT_CheckDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckType", DbType="Char(2)")] + public string CHT_CheckType + { + get + { + return this._CHT_CheckType; + } + set + { + if ((this._CHT_CheckType != value)) + { + this.OnCHT_CheckTypeChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckType = value; + this.SendPropertyChanged("CHT_CheckType"); + this.OnCHT_CheckTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckMan", DbType="VarChar(50)")] + public string CHT_CheckMan + { + get + { + return this._CHT_CheckMan; + } + set + { + if ((this._CHT_CheckMan != value)) + { + this.OnCHT_CheckManChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckMan = value; + this.SendPropertyChanged("CHT_CheckMan"); + this.OnCHT_CheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_Tabler", DbType="VarChar(50)")] + public string CHT_Tabler + { + get + { + return this._CHT_Tabler; + } + set + { + if ((this._CHT_Tabler != value)) + { + this.OnCHT_TablerChanging(value); + this.SendPropertyChanging(); + this._CHT_Tabler = value; + this.SendPropertyChanged("CHT_Tabler"); + this.OnCHT_TablerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_TableDate", DbType="DateTime")] + public System.Nullable CHT_TableDate + { + get + { + return this._CHT_TableDate; + } + set + { + if ((this._CHT_TableDate != value)) + { + this.OnCHT_TableDateChanging(value); + this.SendPropertyChanging(); + this._CHT_TableDate = value; + this.SendPropertyChanged("CHT_TableDate"); + this.OnCHT_TableDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_AuditMan", DbType="VarChar(50)")] + public string CHT_AuditMan + { + get + { + return this._CHT_AuditMan; + } + set + { + if ((this._CHT_AuditMan != value)) + { + this.OnCHT_AuditManChanging(value); + this.SendPropertyChanging(); + this._CHT_AuditMan = value; + this.SendPropertyChanged("CHT_AuditMan"); + this.OnCHT_AuditManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_AuditDate", DbType="DateTime")] + public System.Nullable CHT_AuditDate + { + get + { + return this._CHT_AuditDate; + } + set + { + if ((this._CHT_AuditDate != value)) + { + this.OnCHT_AuditDateChanging(value); + this.SendPropertyChanging(); + this._CHT_AuditDate = value; + this.SendPropertyChanged("CHT_AuditDate"); + this.OnCHT_AuditDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_Remark", DbType="VarChar(100)")] + public string CHT_Remark + { + get + { + return this._CHT_Remark; + } + set + { + if ((this._CHT_Remark != value)) + { + this.OnCHT_RemarkChanging(value); + this.SendPropertyChanging(); + this._CHT_Remark = value; + this.SendPropertyChanged("CHT_Remark"); + this.OnCHT_RemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RepairTrustId", DbType="NVarChar(50)")] + public string RepairTrustId + { + get + { + return this._RepairTrustId; + } + set + { + if ((this._RepairTrustId != value)) + { + this.OnRepairTrustIdChanging(value); + this.SendPropertyChanging(); + this._RepairTrustId = value; + this.SendPropertyChanged("RepairTrustId"); + this.OnRepairTrustIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractualUnits", DbType="NVarChar(50)")] + public string ContractualUnits + { + get + { + return this._ContractualUnits; + } + set + { + if ((this._ContractualUnits != value)) + { + if (this._ContractualUnitsBase_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnContractualUnitsChanging(value); + this.SendPropertyChanging(); + this._ContractualUnits = value; + this.SendPropertyChanged("ContractualUnits"); + this.OnContractualUnitsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.CH_Check.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.CH_Check.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.CH_Check.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.CH_Check.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_Check_Base_Unit1", Storage="_ContractualUnitsBase_Unit", ThisKey="ContractualUnits", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit ContractualUnitsBase_Unit + { + get + { + return this._ContractualUnitsBase_Unit.Entity; + } + set + { + Base_Unit previousValue = this._ContractualUnitsBase_Unit.Entity; + if (((previousValue != value) + || (this._ContractualUnitsBase_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ContractualUnitsBase_Unit.Entity = null; + previousValue.CH_Check_Base_Unit1.Remove(this); + } + this._ContractualUnitsBase_Unit.Entity = value; + if ((value != null)) + { + value.CH_Check_Base_Unit1.Add(this); + this._ContractualUnits = value.UnitId; + } + else + { + this._ContractualUnits = default(string); + } + this.SendPropertyChanged("ContractualUnitsBase_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_CHECK_REFERENCE_CH_CHECK", Storage="_CH_CheckItem", ThisKey="CHT_CheckID", OtherKey="CHT_CheckID", DeleteRule="NO ACTION")] + public EntitySet CH_CheckItem + { + get + { + return this._CH_CheckItem; + } + set + { + this._CH_CheckItem.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_CH_CheckItem(CH_CheckItem entity) + { + this.SendPropertyChanging(); + entity.CH_Check = this; + } + + private void detach_CH_CheckItem(CH_CheckItem entity) + { + this.SendPropertyChanging(); + entity.CH_Check = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CH_CheckItem")] + public partial class CH_CheckItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CHT_CheckItemID; + + private string _CHT_CheckID; + + private string _JOT_ID; + + private string _CH_TrustItemID; + + private string _CHT_CheckMethod; + + private System.Nullable _CHT_RequestDate; + + private string _CHT_RepairLocation; + + private System.Nullable _CHT_TotalFilm; + + private System.Nullable _CHT_PassFilm; + + private string _CHT_CheckResult; + + private string _CHT_CheckNo; + + private System.Nullable _CHT_FilmDate; + + private System.Nullable _CHT_ReportDate; + + private string _CHT_Remark; + + private string _CHT_FloorWelder1; + + private string _CHT_FloorWelder2; + + private System.Nullable _CHT_AuditTime; + + private string _FilmSpecifications; + + private System.Nullable _DefectLength; + + private System.Nullable _ExtendingRice; + + private string _Defects_Definition; + + private System.Nullable _DefectDepth; + + private System.Nullable _DefectHeight; + + private EntityRef _CH_Check; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCHT_CheckItemIDChanging(string value); + partial void OnCHT_CheckItemIDChanged(); + partial void OnCHT_CheckIDChanging(string value); + partial void OnCHT_CheckIDChanged(); + partial void OnJOT_IDChanging(string value); + partial void OnJOT_IDChanged(); + partial void OnCH_TrustItemIDChanging(string value); + partial void OnCH_TrustItemIDChanged(); + partial void OnCHT_CheckMethodChanging(string value); + partial void OnCHT_CheckMethodChanged(); + partial void OnCHT_RequestDateChanging(System.Nullable value); + partial void OnCHT_RequestDateChanged(); + partial void OnCHT_RepairLocationChanging(string value); + partial void OnCHT_RepairLocationChanged(); + partial void OnCHT_TotalFilmChanging(System.Nullable value); + partial void OnCHT_TotalFilmChanged(); + partial void OnCHT_PassFilmChanging(System.Nullable value); + partial void OnCHT_PassFilmChanged(); + partial void OnCHT_CheckResultChanging(string value); + partial void OnCHT_CheckResultChanged(); + partial void OnCHT_CheckNoChanging(string value); + partial void OnCHT_CheckNoChanged(); + partial void OnCHT_FilmDateChanging(System.Nullable value); + partial void OnCHT_FilmDateChanged(); + partial void OnCHT_ReportDateChanging(System.Nullable value); + partial void OnCHT_ReportDateChanged(); + partial void OnCHT_RemarkChanging(string value); + partial void OnCHT_RemarkChanged(); + partial void OnCHT_FloorWelder1Changing(string value); + partial void OnCHT_FloorWelder1Changed(); + partial void OnCHT_FloorWelder2Changing(string value); + partial void OnCHT_FloorWelder2Changed(); + partial void OnCHT_AuditTimeChanging(System.Nullable value); + partial void OnCHT_AuditTimeChanged(); + partial void OnFilmSpecificationsChanging(string value); + partial void OnFilmSpecificationsChanged(); + partial void OnDefectLengthChanging(System.Nullable value); + partial void OnDefectLengthChanged(); + partial void OnExtendingRiceChanging(System.Nullable value); + partial void OnExtendingRiceChanged(); + partial void OnDefects_DefinitionChanging(string value); + partial void OnDefects_DefinitionChanged(); + partial void OnDefectDepthChanging(System.Nullable value); + partial void OnDefectDepthChanged(); + partial void OnDefectHeightChanging(System.Nullable value); + partial void OnDefectHeightChanged(); + #endregion + + public CH_CheckItem() + { + this._CH_Check = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckItemID", DbType="VarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CHT_CheckItemID + { + get + { + return this._CHT_CheckItemID; + } + set + { + if ((this._CHT_CheckItemID != value)) + { + this.OnCHT_CheckItemIDChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckItemID = value; + this.SendPropertyChanged("CHT_CheckItemID"); + this.OnCHT_CheckItemIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckID", DbType="VarChar(50) NOT NULL", CanBeNull=false)] + public string CHT_CheckID + { + get + { + return this._CHT_CheckID; + } + set + { + if ((this._CHT_CheckID != value)) + { + if (this._CH_Check.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCHT_CheckIDChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckID = value; + this.SendPropertyChanged("CHT_CheckID"); + this.OnCHT_CheckIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JOT_ID", DbType="VarChar(50)")] + public string JOT_ID + { + get + { + return this._JOT_ID; + } + set + { + if ((this._JOT_ID != value)) + { + this.OnJOT_IDChanging(value); + this.SendPropertyChanging(); + this._JOT_ID = value; + this.SendPropertyChanged("JOT_ID"); + this.OnJOT_IDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CH_TrustItemID", DbType="VarChar(50)")] + public string CH_TrustItemID + { + get + { + return this._CH_TrustItemID; + } + set + { + if ((this._CH_TrustItemID != value)) + { + this.OnCH_TrustItemIDChanging(value); + this.SendPropertyChanging(); + this._CH_TrustItemID = value; + this.SendPropertyChanged("CH_TrustItemID"); + this.OnCH_TrustItemIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckMethod", DbType="VarChar(50) NOT NULL", CanBeNull=false)] + public string CHT_CheckMethod + { + get + { + return this._CHT_CheckMethod; + } + set + { + if ((this._CHT_CheckMethod != value)) + { + this.OnCHT_CheckMethodChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckMethod = value; + this.SendPropertyChanged("CHT_CheckMethod"); + this.OnCHT_CheckMethodChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_RequestDate", DbType="DateTime")] + public System.Nullable CHT_RequestDate + { + get + { + return this._CHT_RequestDate; + } + set + { + if ((this._CHT_RequestDate != value)) + { + this.OnCHT_RequestDateChanging(value); + this.SendPropertyChanging(); + this._CHT_RequestDate = value; + this.SendPropertyChanged("CHT_RequestDate"); + this.OnCHT_RequestDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_RepairLocation", DbType="VarChar(20)")] + public string CHT_RepairLocation + { + get + { + return this._CHT_RepairLocation; + } + set + { + if ((this._CHT_RepairLocation != value)) + { + this.OnCHT_RepairLocationChanging(value); + this.SendPropertyChanging(); + this._CHT_RepairLocation = value; + this.SendPropertyChanged("CHT_RepairLocation"); + this.OnCHT_RepairLocationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_TotalFilm", DbType="Int")] + public System.Nullable CHT_TotalFilm + { + get + { + return this._CHT_TotalFilm; + } + set + { + if ((this._CHT_TotalFilm != value)) + { + this.OnCHT_TotalFilmChanging(value); + this.SendPropertyChanging(); + this._CHT_TotalFilm = value; + this.SendPropertyChanged("CHT_TotalFilm"); + this.OnCHT_TotalFilmChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_PassFilm", DbType="Int")] + public System.Nullable CHT_PassFilm + { + get + { + return this._CHT_PassFilm; + } + set + { + if ((this._CHT_PassFilm != value)) + { + this.OnCHT_PassFilmChanging(value); + this.SendPropertyChanging(); + this._CHT_PassFilm = value; + this.SendPropertyChanged("CHT_PassFilm"); + this.OnCHT_PassFilmChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckResult", DbType="VarChar(20)")] + public string CHT_CheckResult + { + get + { + return this._CHT_CheckResult; + } + set + { + if ((this._CHT_CheckResult != value)) + { + this.OnCHT_CheckResultChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckResult = value; + this.SendPropertyChanged("CHT_CheckResult"); + this.OnCHT_CheckResultChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_CheckNo", DbType="VarChar(30)")] + public string CHT_CheckNo + { + get + { + return this._CHT_CheckNo; + } + set + { + if ((this._CHT_CheckNo != value)) + { + this.OnCHT_CheckNoChanging(value); + this.SendPropertyChanging(); + this._CHT_CheckNo = value; + this.SendPropertyChanged("CHT_CheckNo"); + this.OnCHT_CheckNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_FilmDate", DbType="DateTime")] + public System.Nullable CHT_FilmDate + { + get + { + return this._CHT_FilmDate; + } + set + { + if ((this._CHT_FilmDate != value)) + { + this.OnCHT_FilmDateChanging(value); + this.SendPropertyChanging(); + this._CHT_FilmDate = value; + this.SendPropertyChanged("CHT_FilmDate"); + this.OnCHT_FilmDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_ReportDate", DbType="DateTime")] + public System.Nullable CHT_ReportDate + { + get + { + return this._CHT_ReportDate; + } + set + { + if ((this._CHT_ReportDate != value)) + { + this.OnCHT_ReportDateChanging(value); + this.SendPropertyChanging(); + this._CHT_ReportDate = value; + this.SendPropertyChanged("CHT_ReportDate"); + this.OnCHT_ReportDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_Remark", DbType="VarChar(100)")] + public string CHT_Remark + { + get + { + return this._CHT_Remark; + } + set + { + if ((this._CHT_Remark != value)) + { + this.OnCHT_RemarkChanging(value); + this.SendPropertyChanging(); + this._CHT_Remark = value; + this.SendPropertyChanged("CHT_Remark"); + this.OnCHT_RemarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_FloorWelder1", DbType="VarChar(20)")] + public string CHT_FloorWelder1 + { + get + { + return this._CHT_FloorWelder1; + } + set + { + if ((this._CHT_FloorWelder1 != value)) + { + this.OnCHT_FloorWelder1Changing(value); + this.SendPropertyChanging(); + this._CHT_FloorWelder1 = value; + this.SendPropertyChanged("CHT_FloorWelder1"); + this.OnCHT_FloorWelder1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_FloorWelder2", DbType="VarChar(20)")] + public string CHT_FloorWelder2 + { + get + { + return this._CHT_FloorWelder2; + } + set + { + if ((this._CHT_FloorWelder2 != value)) + { + this.OnCHT_FloorWelder2Changing(value); + this.SendPropertyChanging(); + this._CHT_FloorWelder2 = value; + this.SendPropertyChanged("CHT_FloorWelder2"); + this.OnCHT_FloorWelder2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CHT_AuditTime", DbType="DateTime")] + public System.Nullable CHT_AuditTime + { + get + { + return this._CHT_AuditTime; + } + set + { + if ((this._CHT_AuditTime != value)) + { + this.OnCHT_AuditTimeChanging(value); + this.SendPropertyChanging(); + this._CHT_AuditTime = value; + this.SendPropertyChanged("CHT_AuditTime"); + this.OnCHT_AuditTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FilmSpecifications", DbType="NVarChar(50)")] + public string FilmSpecifications + { + get + { + return this._FilmSpecifications; + } + set + { + if ((this._FilmSpecifications != value)) + { + this.OnFilmSpecificationsChanging(value); + this.SendPropertyChanging(); + this._FilmSpecifications = value; + this.SendPropertyChanged("FilmSpecifications"); + this.OnFilmSpecificationsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefectLength", DbType="Decimal(9,2)")] + public System.Nullable DefectLength + { + get + { + return this._DefectLength; + } + set + { + if ((this._DefectLength != value)) + { + this.OnDefectLengthChanging(value); + this.SendPropertyChanging(); + this._DefectLength = value; + this.SendPropertyChanged("DefectLength"); + this.OnDefectLengthChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExtendingRice", DbType="Decimal(9,2)")] + public System.Nullable ExtendingRice + { + get + { + return this._ExtendingRice; + } + set + { + if ((this._ExtendingRice != value)) + { + this.OnExtendingRiceChanging(value); + this.SendPropertyChanging(); + this._ExtendingRice = value; + this.SendPropertyChanged("ExtendingRice"); + this.OnExtendingRiceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Defects_Definition", DbType="VarChar(50)")] + public string Defects_Definition + { + get + { + return this._Defects_Definition; + } + set + { + if ((this._Defects_Definition != value)) + { + this.OnDefects_DefinitionChanging(value); + this.SendPropertyChanging(); + this._Defects_Definition = value; + this.SendPropertyChanged("Defects_Definition"); + this.OnDefects_DefinitionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefectDepth", DbType="Decimal(9,2)")] + public System.Nullable DefectDepth + { + get + { + return this._DefectDepth; + } + set + { + if ((this._DefectDepth != value)) + { + this.OnDefectDepthChanging(value); + this.SendPropertyChanging(); + this._DefectDepth = value; + this.SendPropertyChanged("DefectDepth"); + this.OnDefectDepthChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DefectHeight", DbType="Decimal(9,2)")] + public System.Nullable DefectHeight + { + get + { + return this._DefectHeight; + } + set + { + if ((this._DefectHeight != value)) + { + this.OnDefectHeightChanging(value); + this.SendPropertyChanging(); + this._DefectHeight = value; + this.SendPropertyChanged("DefectHeight"); + this.OnDefectHeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CH_CHECK_REFERENCE_CH_CHECK", Storage="_CH_Check", ThisKey="CHT_CheckID", OtherKey="CHT_CheckID", IsForeignKey=true)] + public CH_Check CH_Check + { + get + { + return this._CH_Check.Entity; + } + set + { + CH_Check previousValue = this._CH_Check.Entity; + if (((previousValue != value) + || (this._CH_Check.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CH_Check.Entity = null; + previousValue.CH_CheckItem.Remove(this); + } + this._CH_Check.Entity = value; + if ((value != null)) + { + value.CH_CheckItem.Add(this); + this._CHT_CheckID = value.CHT_CheckID; + } + else + { + this._CHT_CheckID = default(string); + } + this.SendPropertyChanged("CH_Check"); + } + } + } + + 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.Check_CheckColligation")] public partial class Check_CheckColligation : INotifyPropertyChanging, INotifyPropertyChanged { @@ -62582,6 +64369,277 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Check_MaterialAcceptance")] + public partial class Check_MaterialAcceptance : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _MaterialAcceptanceId; + + private string _ProjectId; + + private string _PlanCode; + + private string _FileName; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _State; + + private string _FilePath; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnMaterialAcceptanceIdChanging(string value); + partial void OnMaterialAcceptanceIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPlanCodeChanging(string value); + partial void OnPlanCodeChanged(); + partial void OnFileNameChanging(string value); + partial void OnFileNameChanged(); + 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 OnFilePathChanging(string value); + partial void OnFilePathChanged(); + #endregion + + public Check_MaterialAcceptance() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialAcceptanceId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string MaterialAcceptanceId + { + get + { + return this._MaterialAcceptanceId; + } + set + { + if ((this._MaterialAcceptanceId != value)) + { + this.OnMaterialAcceptanceIdChanging(value); + this.SendPropertyChanging(); + this._MaterialAcceptanceId = value; + this.SendPropertyChanged("MaterialAcceptanceId"); + this.OnMaterialAcceptanceIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanCode", DbType="NVarChar(50)")] + public string PlanCode + { + get + { + return this._PlanCode; + } + set + { + if ((this._PlanCode != value)) + { + this.OnPlanCodeChanging(value); + this.SendPropertyChanging(); + this._PlanCode = value; + this.SendPropertyChanged("PlanCode"); + this.OnPlanCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileName", DbType="NVarChar(50)")] + public string FileName + { + get + { + return this._FileName; + } + set + { + if ((this._FileName != value)) + { + this.OnFileNameChanging(value); + this.SendPropertyChanging(); + this._FileName = value; + this.SendPropertyChanged("FileName"); + this.OnFileNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [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="_FilePath", DbType="VarChar(200)")] + public string FilePath + { + get + { + return this._FilePath; + } + set + { + if ((this._FilePath != value)) + { + this.OnFilePathChanging(value); + this.SendPropertyChanging(); + this._FilePath = value; + this.SendPropertyChanged("FilePath"); + this.OnFilePathChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_MaterialAcceptance_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Check_MaterialAcceptance.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Check_MaterialAcceptance.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + 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.Check_MonthSpotCheckDetail")] public partial class Check_MonthSpotCheckDetail : INotifyPropertyChanging, INotifyPropertyChanged { @@ -64962,6 +67020,373 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Check_ProjectLeaderCheck")] + public partial class Check_ProjectLeaderCheck : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectLeaderCheckId; + + private string _ProjectId; + + private string _UnitIds; + + private string _CheckCode; + + private string _LeaderIds; + + private System.Nullable _CheckDate; + + private string _QuestionDef; + + private System.Nullable _IsHoldMeet; + + private string _Requirement; + + private string _LeaderNames; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectLeaderCheckIdChanging(string value); + partial void OnProjectLeaderCheckIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdsChanging(string value); + partial void OnUnitIdsChanged(); + partial void OnCheckCodeChanging(string value); + partial void OnCheckCodeChanged(); + partial void OnLeaderIdsChanging(string value); + partial void OnLeaderIdsChanged(); + partial void OnCheckDateChanging(System.Nullable value); + partial void OnCheckDateChanged(); + partial void OnQuestionDefChanging(string value); + partial void OnQuestionDefChanged(); + partial void OnIsHoldMeetChanging(System.Nullable value); + partial void OnIsHoldMeetChanged(); + partial void OnRequirementChanging(string value); + partial void OnRequirementChanged(); + partial void OnLeaderNamesChanging(string value); + partial void OnLeaderNamesChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + #endregion + + public Check_ProjectLeaderCheck() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectLeaderCheckId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ProjectLeaderCheckId + { + get + { + return this._ProjectLeaderCheckId; + } + set + { + if ((this._ProjectLeaderCheckId != value)) + { + this.OnProjectLeaderCheckIdChanging(value); + this.SendPropertyChanging(); + this._ProjectLeaderCheckId = value; + this.SendPropertyChanged("ProjectLeaderCheckId"); + this.OnProjectLeaderCheckIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitIds", DbType="NVarChar(500)")] + public string UnitIds + { + get + { + return this._UnitIds; + } + set + { + if ((this._UnitIds != value)) + { + this.OnUnitIdsChanging(value); + this.SendPropertyChanging(); + this._UnitIds = value; + this.SendPropertyChanged("UnitIds"); + this.OnUnitIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckCode", DbType="NVarChar(50)")] + public string CheckCode + { + get + { + return this._CheckCode; + } + set + { + if ((this._CheckCode != value)) + { + this.OnCheckCodeChanging(value); + this.SendPropertyChanging(); + this._CheckCode = value; + this.SendPropertyChanged("CheckCode"); + this.OnCheckCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderIds", DbType="NVarChar(500)")] + public string LeaderIds + { + get + { + return this._LeaderIds; + } + set + { + if ((this._LeaderIds != value)) + { + this.OnLeaderIdsChanging(value); + this.SendPropertyChanging(); + this._LeaderIds = value; + this.SendPropertyChanged("LeaderIds"); + this.OnLeaderIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckDate", DbType="DateTime")] + public System.Nullable CheckDate + { + get + { + return this._CheckDate; + } + set + { + if ((this._CheckDate != value)) + { + this.OnCheckDateChanging(value); + this.SendPropertyChanging(); + this._CheckDate = value; + this.SendPropertyChanged("CheckDate"); + this.OnCheckDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuestionDef", DbType="NVarChar(2000)")] + public string QuestionDef + { + get + { + return this._QuestionDef; + } + set + { + if ((this._QuestionDef != value)) + { + this.OnQuestionDefChanging(value); + this.SendPropertyChanging(); + this._QuestionDef = value; + this.SendPropertyChanged("QuestionDef"); + this.OnQuestionDefChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsHoldMeet", DbType="Bit")] + public System.Nullable IsHoldMeet + { + get + { + return this._IsHoldMeet; + } + set + { + if ((this._IsHoldMeet != value)) + { + this.OnIsHoldMeetChanging(value); + this.SendPropertyChanging(); + this._IsHoldMeet = value; + this.SendPropertyChanged("IsHoldMeet"); + this.OnIsHoldMeetChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirement", DbType="NVarChar(2000)")] + public string Requirement + { + get + { + return this._Requirement; + } + set + { + if ((this._Requirement != value)) + { + this.OnRequirementChanging(value); + this.SendPropertyChanging(); + this._Requirement = value; + this.SendPropertyChanged("Requirement"); + this.OnRequirementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaderNames", DbType="NVarChar(500)")] + public string LeaderNames + { + get + { + return this._LeaderNames; + } + set + { + if ((this._LeaderNames != value)) + { + this.OnLeaderNamesChanging(value); + this.SendPropertyChanging(); + this._LeaderNames = value; + this.SendPropertyChanged("LeaderNames"); + this.OnLeaderNamesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_ProjectLeaderCheck_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Check_ProjectLeaderCheck.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Check_ProjectLeaderCheck.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + 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.Check_PunishNotice")] public partial class Check_PunishNotice : INotifyPropertyChanging, INotifyPropertyChanged { @@ -82110,6 +84535,8 @@ namespace Model private System.Nullable _JoinPersonNum; + private string _Status; + private EntityRef _Base_Project; private EntityRef _Sys_User; @@ -82142,6 +84569,8 @@ namespace Model partial void OnCompileDateChanged(); partial void OnJoinPersonNumChanging(System.Nullable value); partial void OnJoinPersonNumChanged(); + partial void OnStatusChanging(string value); + partial void OnStatusChanged(); #endregion public Comprehensive_DesignDetails() @@ -82399,6 +84828,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="NVarChar(2)")] + public string Status + { + get + { + return this._Status; + } + set + { + if ((this._Status != value)) + { + this.OnStatusChanging(value); + this.SendPropertyChanging(); + this._Status = value; + this.SendPropertyChanged("Status"); + this.OnStatusChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_DesignDetails_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -82488,6 +84937,260 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Comprehensive_DesignDetailsApprove")] + public partial class Comprehensive_DesignDetailsApprove : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DesignDetailsApproveId; + + private string _DesignDetailsId; + + private string _ApproveMan; + + private System.Nullable _ApproveDate; + + private System.Nullable _IsAgree; + + private string _ApproveType; + + private string _ApproveIdea; + + private System.Nullable _Edition; + + private System.Nullable _CreateTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDesignDetailsApproveIdChanging(string value); + partial void OnDesignDetailsApproveIdChanged(); + partial void OnDesignDetailsIdChanging(string value); + partial void OnDesignDetailsIdChanged(); + partial void OnApproveManChanging(string value); + partial void OnApproveManChanged(); + partial void OnApproveDateChanging(System.Nullable value); + partial void OnApproveDateChanged(); + partial void OnIsAgreeChanging(System.Nullable value); + partial void OnIsAgreeChanged(); + partial void OnApproveTypeChanging(string value); + partial void OnApproveTypeChanged(); + partial void OnApproveIdeaChanging(string value); + partial void OnApproveIdeaChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + partial void OnCreateTimeChanging(System.Nullable value); + partial void OnCreateTimeChanged(); + #endregion + + public Comprehensive_DesignDetailsApprove() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDetailsApproveId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DesignDetailsApproveId + { + get + { + return this._DesignDetailsApproveId; + } + set + { + if ((this._DesignDetailsApproveId != value)) + { + this.OnDesignDetailsApproveIdChanging(value); + this.SendPropertyChanging(); + this._DesignDetailsApproveId = value; + this.SendPropertyChanged("DesignDetailsApproveId"); + this.OnDesignDetailsApproveIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignDetailsId", DbType="NVarChar(50)")] + public string DesignDetailsId + { + get + { + return this._DesignDetailsId; + } + set + { + if ((this._DesignDetailsId != value)) + { + this.OnDesignDetailsIdChanging(value); + this.SendPropertyChanging(); + this._DesignDetailsId = value; + this.SendPropertyChanged("DesignDetailsId"); + this.OnDesignDetailsIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + public string ApproveMan + { + get + { + return this._ApproveMan; + } + set + { + if ((this._ApproveMan != value)) + { + this.OnApproveManChanging(value); + this.SendPropertyChanging(); + this._ApproveMan = value; + this.SendPropertyChanged("ApproveMan"); + this.OnApproveManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveDate", DbType="DateTime")] + public System.Nullable ApproveDate + { + get + { + return this._ApproveDate; + } + set + { + if ((this._ApproveDate != value)) + { + this.OnApproveDateChanging(value); + this.SendPropertyChanging(); + this._ApproveDate = value; + this.SendPropertyChanged("ApproveDate"); + this.OnApproveDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")] + public System.Nullable IsAgree + { + get + { + return this._IsAgree; + } + set + { + if ((this._IsAgree != value)) + { + this.OnIsAgreeChanging(value); + this.SendPropertyChanging(); + this._IsAgree = value; + this.SendPropertyChanged("IsAgree"); + this.OnIsAgreeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="VarChar(2)")] + public string ApproveType + { + get + { + return this._ApproveType; + } + set + { + if ((this._ApproveType != value)) + { + this.OnApproveTypeChanging(value); + this.SendPropertyChanging(); + this._ApproveType = value; + this.SendPropertyChanged("ApproveType"); + this.OnApproveTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(255)")] + public string ApproveIdea + { + get + { + return this._ApproveIdea; + } + set + { + if ((this._ApproveIdea != value)) + { + this.OnApproveIdeaChanging(value); + this.SendPropertyChanging(); + this._ApproveIdea = value; + this.SendPropertyChanged("ApproveIdea"); + this.OnApproveIdeaChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int")] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")] + public System.Nullable CreateTime + { + get + { + return this._CreateTime; + } + set + { + if ((this._CreateTime != value)) + { + this.OnCreateTimeChanging(value); + this.SendPropertyChanging(); + this._CreateTime = value; + this.SendPropertyChanged("CreateTime"); + this.OnCreateTimeChanged(); + } + } + } + + 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.Comprehensive_DesignDrawings")] public partial class Comprehensive_DesignDrawings : INotifyPropertyChanging, INotifyPropertyChanged { @@ -84425,6 +87128,8 @@ namespace Model private System.Nullable _IsCheckOK; + private string _Status; + private EntityRef _Base_CNProfessional; private EntityRef _Base_Project; @@ -84473,6 +87178,8 @@ namespace Model partial void OnUnitsCountChanged(); partial void OnIsCheckOKChanging(System.Nullable value); partial void OnIsCheckOKChanged(); + partial void OnStatusChanging(string value); + partial void OnStatusChanged(); #endregion public Comprehensive_InspectionMachine() @@ -84875,6 +87582,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="NVarChar(2)")] + public string Status + { + get + { + return this._Status; + } + set + { + if ((this._Status != value)) + { + this.OnStatusChanging(value); + this.SendPropertyChanging(); + this._Status = value; + this.SendPropertyChanged("Status"); + this.OnStatusChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Comprehensive_InspectionMachine_Base_CNProfessional", Storage="_Base_CNProfessional", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", IsForeignKey=true)] public Base_CNProfessional Base_CNProfessional { @@ -84998,6 +87725,260 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Comprehensive_InspectionMachineApprove")] + public partial class Comprehensive_InspectionMachineApprove : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InspectionMachineApproveId; + + private string _InspectionMachineId; + + private string _ApproveMan; + + private System.Nullable _ApproveDate; + + private System.Nullable _IsAgree; + + private string _ApproveType; + + private string _ApproveIdea; + + private System.Nullable _Edition; + + private System.Nullable _CreateTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInspectionMachineApproveIdChanging(string value); + partial void OnInspectionMachineApproveIdChanged(); + partial void OnInspectionMachineIdChanging(string value); + partial void OnInspectionMachineIdChanged(); + partial void OnApproveManChanging(string value); + partial void OnApproveManChanged(); + partial void OnApproveDateChanging(System.Nullable value); + partial void OnApproveDateChanged(); + partial void OnIsAgreeChanging(System.Nullable value); + partial void OnIsAgreeChanged(); + partial void OnApproveTypeChanging(string value); + partial void OnApproveTypeChanged(); + partial void OnApproveIdeaChanging(string value); + partial void OnApproveIdeaChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + partial void OnCreateTimeChanging(System.Nullable value); + partial void OnCreateTimeChanged(); + #endregion + + public Comprehensive_InspectionMachineApprove() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionMachineApproveId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InspectionMachineApproveId + { + get + { + return this._InspectionMachineApproveId; + } + set + { + if ((this._InspectionMachineApproveId != value)) + { + this.OnInspectionMachineApproveIdChanging(value); + this.SendPropertyChanging(); + this._InspectionMachineApproveId = value; + this.SendPropertyChanged("InspectionMachineApproveId"); + this.OnInspectionMachineApproveIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionMachineId", DbType="NVarChar(50)")] + public string InspectionMachineId + { + get + { + return this._InspectionMachineId; + } + set + { + if ((this._InspectionMachineId != value)) + { + this.OnInspectionMachineIdChanging(value); + this.SendPropertyChanging(); + this._InspectionMachineId = value; + this.SendPropertyChanged("InspectionMachineId"); + this.OnInspectionMachineIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + public string ApproveMan + { + get + { + return this._ApproveMan; + } + set + { + if ((this._ApproveMan != value)) + { + this.OnApproveManChanging(value); + this.SendPropertyChanging(); + this._ApproveMan = value; + this.SendPropertyChanged("ApproveMan"); + this.OnApproveManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveDate", DbType="DateTime")] + public System.Nullable ApproveDate + { + get + { + return this._ApproveDate; + } + set + { + if ((this._ApproveDate != value)) + { + this.OnApproveDateChanging(value); + this.SendPropertyChanging(); + this._ApproveDate = value; + this.SendPropertyChanged("ApproveDate"); + this.OnApproveDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")] + public System.Nullable IsAgree + { + get + { + return this._IsAgree; + } + set + { + if ((this._IsAgree != value)) + { + this.OnIsAgreeChanging(value); + this.SendPropertyChanging(); + this._IsAgree = value; + this.SendPropertyChanged("IsAgree"); + this.OnIsAgreeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="VarChar(2)")] + public string ApproveType + { + get + { + return this._ApproveType; + } + set + { + if ((this._ApproveType != value)) + { + this.OnApproveTypeChanging(value); + this.SendPropertyChanging(); + this._ApproveType = value; + this.SendPropertyChanged("ApproveType"); + this.OnApproveTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(255)")] + public string ApproveIdea + { + get + { + return this._ApproveIdea; + } + set + { + if ((this._ApproveIdea != value)) + { + this.OnApproveIdeaChanging(value); + this.SendPropertyChanging(); + this._ApproveIdea = value; + this.SendPropertyChanged("ApproveIdea"); + this.OnApproveIdeaChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int")] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")] + public System.Nullable CreateTime + { + get + { + return this._CreateTime; + } + set + { + if ((this._CreateTime != value)) + { + this.OnCreateTimeChanging(value); + this.SendPropertyChanging(); + this._CreateTime = value; + this.SendPropertyChanged("CreateTime"); + this.OnCreateTimeChanged(); + } + } + } + + 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.Comprehensive_InspectionPerson")] public partial class Comprehensive_InspectionPerson : INotifyPropertyChanging, INotifyPropertyChanged { @@ -85042,6 +88023,8 @@ namespace Model private System.Nullable _IsTrain; + private string _Status; + private EntityRef _Base_Post; private EntityRef _Base_Project; @@ -85098,6 +88081,8 @@ namespace Model partial void OnUnitWorkIdChanged(); partial void OnIsTrainChanging(System.Nullable value); partial void OnIsTrainChanged(); + partial void OnStatusChanging(string value); + partial void OnStatusChanged(); #endregion public Comprehensive_InspectionPerson() @@ -85508,6 +88493,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="NVarChar(2)")] + public string Status + { + get + { + return this._Status; + } + set + { + if ((this._Status != value)) + { + this.OnStatusChanging(value); + this.SendPropertyChanging(); + this._Status = value; + this.SendPropertyChanged("Status"); + this.OnStatusChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_InspectionPerson_Base_Post", Storage="_Base_Post", ThisKey="PostId", OtherKey="PostId", IsForeignKey=true)] public Base_Post Base_Post { @@ -85740,6 +88745,260 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Comprehensive_InspectionPersonApprove")] + public partial class Comprehensive_InspectionPersonApprove : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InspectionPersonApproveId; + + private string _InspectionPersonId; + + private string _ApproveMan; + + private System.Nullable _ApproveDate; + + private System.Nullable _IsAgree; + + private string _ApproveType; + + private string _ApproveIdea; + + private System.Nullable _Edition; + + private System.Nullable _CreateTime; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInspectionPersonApproveIdChanging(string value); + partial void OnInspectionPersonApproveIdChanged(); + partial void OnInspectionPersonIdChanging(string value); + partial void OnInspectionPersonIdChanged(); + partial void OnApproveManChanging(string value); + partial void OnApproveManChanged(); + partial void OnApproveDateChanging(System.Nullable value); + partial void OnApproveDateChanged(); + partial void OnIsAgreeChanging(System.Nullable value); + partial void OnIsAgreeChanged(); + partial void OnApproveTypeChanging(string value); + partial void OnApproveTypeChanged(); + partial void OnApproveIdeaChanging(string value); + partial void OnApproveIdeaChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + partial void OnCreateTimeChanging(System.Nullable value); + partial void OnCreateTimeChanged(); + #endregion + + public Comprehensive_InspectionPersonApprove() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionPersonApproveId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InspectionPersonApproveId + { + get + { + return this._InspectionPersonApproveId; + } + set + { + if ((this._InspectionPersonApproveId != value)) + { + this.OnInspectionPersonApproveIdChanging(value); + this.SendPropertyChanging(); + this._InspectionPersonApproveId = value; + this.SendPropertyChanged("InspectionPersonApproveId"); + this.OnInspectionPersonApproveIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionPersonId", DbType="NVarChar(50)")] + public string InspectionPersonId + { + get + { + return this._InspectionPersonId; + } + set + { + if ((this._InspectionPersonId != value)) + { + this.OnInspectionPersonIdChanging(value); + this.SendPropertyChanging(); + this._InspectionPersonId = value; + this.SendPropertyChanged("InspectionPersonId"); + this.OnInspectionPersonIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + public string ApproveMan + { + get + { + return this._ApproveMan; + } + set + { + if ((this._ApproveMan != value)) + { + this.OnApproveManChanging(value); + this.SendPropertyChanging(); + this._ApproveMan = value; + this.SendPropertyChanged("ApproveMan"); + this.OnApproveManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveDate", DbType="DateTime")] + public System.Nullable ApproveDate + { + get + { + return this._ApproveDate; + } + set + { + if ((this._ApproveDate != value)) + { + this.OnApproveDateChanging(value); + this.SendPropertyChanging(); + this._ApproveDate = value; + this.SendPropertyChanged("ApproveDate"); + this.OnApproveDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")] + public System.Nullable IsAgree + { + get + { + return this._IsAgree; + } + set + { + if ((this._IsAgree != value)) + { + this.OnIsAgreeChanging(value); + this.SendPropertyChanging(); + this._IsAgree = value; + this.SendPropertyChanged("IsAgree"); + this.OnIsAgreeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="VarChar(2)")] + public string ApproveType + { + get + { + return this._ApproveType; + } + set + { + if ((this._ApproveType != value)) + { + this.OnApproveTypeChanging(value); + this.SendPropertyChanging(); + this._ApproveType = value; + this.SendPropertyChanged("ApproveType"); + this.OnApproveTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(255)")] + public string ApproveIdea + { + get + { + return this._ApproveIdea; + } + set + { + if ((this._ApproveIdea != value)) + { + this.OnApproveIdeaChanging(value); + this.SendPropertyChanging(); + this._ApproveIdea = value; + this.SendPropertyChanged("ApproveIdea"); + this.OnApproveIdeaChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int")] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")] + public System.Nullable CreateTime + { + get + { + return this._CreateTime; + } + set + { + if ((this._CreateTime != value)) + { + this.OnCreateTimeChanging(value); + this.SendPropertyChanging(); + this._CreateTime = value; + this.SendPropertyChanged("CreateTime"); + this.OnCreateTimeChanged(); + } + } + } + + 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.Comprehensive_InspectionPersonSteel")] public partial class Comprehensive_InspectionPersonSteel : INotifyPropertyChanging, INotifyPropertyChanged { @@ -120478,6 +123737,452 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_DrillRecordList_Unit")] + public partial class Emergency_DrillRecordList_Unit : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DrillRecordListId; + + private string _ProjectId; + + private string _DrillRecordCode; + + private string _DrillRecordName; + + private string _UnitIds; + + private string _UnitNames; + + private string _UserIds; + + private string _UserNames; + + private System.Nullable _DrillRecordDate; + + private string _DrillRecordContents; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _States; + + private string _AttachUrl; + + private string _DrillRecordType; + + private System.Nullable _JointPersonNum; + + private System.Nullable _DrillCost; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDrillRecordListIdChanging(string value); + partial void OnDrillRecordListIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnDrillRecordCodeChanging(string value); + partial void OnDrillRecordCodeChanged(); + partial void OnDrillRecordNameChanging(string value); + partial void OnDrillRecordNameChanged(); + partial void OnUnitIdsChanging(string value); + partial void OnUnitIdsChanged(); + partial void OnUnitNamesChanging(string value); + partial void OnUnitNamesChanged(); + partial void OnUserIdsChanging(string value); + partial void OnUserIdsChanged(); + partial void OnUserNamesChanging(string value); + partial void OnUserNamesChanged(); + partial void OnDrillRecordDateChanging(System.Nullable value); + partial void OnDrillRecordDateChanged(); + partial void OnDrillRecordContentsChanging(string value); + partial void OnDrillRecordContentsChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnStatesChanging(string value); + partial void OnStatesChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnDrillRecordTypeChanging(string value); + partial void OnDrillRecordTypeChanged(); + partial void OnJointPersonNumChanging(System.Nullable value); + partial void OnJointPersonNumChanged(); + partial void OnDrillCostChanging(System.Nullable value); + partial void OnDrillCostChanged(); + #endregion + + public Emergency_DrillRecordList_Unit() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DrillRecordListId + { + get + { + return this._DrillRecordListId; + } + set + { + if ((this._DrillRecordListId != value)) + { + this.OnDrillRecordListIdChanging(value); + this.SendPropertyChanging(); + this._DrillRecordListId = value; + this.SendPropertyChanged("DrillRecordListId"); + this.OnDrillRecordListIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordCode", DbType="NVarChar(50)")] + public string DrillRecordCode + { + get + { + return this._DrillRecordCode; + } + set + { + if ((this._DrillRecordCode != value)) + { + this.OnDrillRecordCodeChanging(value); + this.SendPropertyChanging(); + this._DrillRecordCode = value; + this.SendPropertyChanged("DrillRecordCode"); + this.OnDrillRecordCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordName", DbType="NVarChar(500)")] + public string DrillRecordName + { + get + { + return this._DrillRecordName; + } + set + { + if ((this._DrillRecordName != value)) + { + this.OnDrillRecordNameChanging(value); + this.SendPropertyChanging(); + this._DrillRecordName = value; + this.SendPropertyChanged("DrillRecordName"); + this.OnDrillRecordNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitIds", DbType="NVarChar(4000)")] + public string UnitIds + { + get + { + return this._UnitIds; + } + set + { + if ((this._UnitIds != value)) + { + this.OnUnitIdsChanging(value); + this.SendPropertyChanging(); + this._UnitIds = value; + this.SendPropertyChanged("UnitIds"); + this.OnUnitIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitNames", DbType="NVarChar(4000)")] + public string UnitNames + { + get + { + return this._UnitNames; + } + set + { + if ((this._UnitNames != value)) + { + this.OnUnitNamesChanging(value); + this.SendPropertyChanging(); + this._UnitNames = value; + this.SendPropertyChanged("UnitNames"); + this.OnUnitNamesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserIds", DbType="NVarChar(4000)")] + public string UserIds + { + get + { + return this._UserIds; + } + set + { + if ((this._UserIds != value)) + { + this.OnUserIdsChanging(value); + this.SendPropertyChanging(); + this._UserIds = value; + this.SendPropertyChanged("UserIds"); + this.OnUserIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserNames", DbType="NVarChar(4000)")] + public string UserNames + { + get + { + return this._UserNames; + } + set + { + if ((this._UserNames != value)) + { + this.OnUserNamesChanging(value); + this.SendPropertyChanging(); + this._UserNames = value; + this.SendPropertyChanged("UserNames"); + this.OnUserNamesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordDate", DbType="DateTime")] + public System.Nullable DrillRecordDate + { + get + { + return this._DrillRecordDate; + } + set + { + if ((this._DrillRecordDate != value)) + { + this.OnDrillRecordDateChanging(value); + this.SendPropertyChanging(); + this._DrillRecordDate = value; + this.SendPropertyChanged("DrillRecordDate"); + this.OnDrillRecordDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string DrillRecordContents + { + get + { + return this._DrillRecordContents; + } + set + { + if ((this._DrillRecordContents != value)) + { + this.OnDrillRecordContentsChanging(value); + this.SendPropertyChanging(); + this._DrillRecordContents = value; + this.SendPropertyChanged("DrillRecordContents"); + this.OnDrillRecordContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")] + public string States + { + get + { + return this._States; + } + set + { + if ((this._States != value)) + { + this.OnStatesChanging(value); + this.SendPropertyChanging(); + this._States = value; + this.SendPropertyChanged("States"); + this.OnStatesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillRecordType", DbType="Char(1)")] + public string DrillRecordType + { + get + { + return this._DrillRecordType; + } + set + { + if ((this._DrillRecordType != value)) + { + this.OnDrillRecordTypeChanging(value); + this.SendPropertyChanging(); + this._DrillRecordType = value; + this.SendPropertyChanged("DrillRecordType"); + this.OnDrillRecordTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointPersonNum", DbType="Int")] + public System.Nullable JointPersonNum + { + get + { + return this._JointPersonNum; + } + set + { + if ((this._JointPersonNum != value)) + { + this.OnJointPersonNumChanging(value); + this.SendPropertyChanging(); + this._JointPersonNum = value; + this.SendPropertyChanged("JointPersonNum"); + this.OnJointPersonNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DrillCost", DbType="Decimal(9,2)")] + public System.Nullable DrillCost + { + get + { + return this._DrillCost; + } + set + { + if ((this._DrillCost != value)) + { + this.OnDrillCostChanging(value); + this.SendPropertyChanging(); + this._DrillCost = value; + this.SendPropertyChanged("DrillCost"); + this.OnDrillCostChanged(); + } + } + } + + 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.Emergency_EmergencyList")] public partial class Emergency_EmergencyList : INotifyPropertyChanging, INotifyPropertyChanged { @@ -121098,6 +124803,380 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Emergency_EmergencyList_Unit")] + public partial class Emergency_EmergencyList_Unit : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _EmergencyListId; + + private string _ProjectId; + + private string _EmergencyCode; + + private string _EmergencyName; + + private string _UnitId; + + private string _EmergencyTypeId; + + private string _VersionCode; + + private string _EmergencyContents; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _States; + + private string _AttachUrl; + + private string _AuditMan; + + private string _ApproveMan; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnEmergencyListIdChanging(string value); + partial void OnEmergencyListIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnEmergencyCodeChanging(string value); + partial void OnEmergencyCodeChanged(); + partial void OnEmergencyNameChanging(string value); + partial void OnEmergencyNameChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnEmergencyTypeIdChanging(string value); + partial void OnEmergencyTypeIdChanged(); + partial void OnVersionCodeChanging(string value); + partial void OnVersionCodeChanged(); + partial void OnEmergencyContentsChanging(string value); + partial void OnEmergencyContentsChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnStatesChanging(string value); + partial void OnStatesChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnAuditManChanging(string value); + partial void OnAuditManChanged(); + partial void OnApproveManChanging(string value); + partial void OnApproveManChanged(); + #endregion + + public Emergency_EmergencyList_Unit() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string EmergencyListId + { + get + { + return this._EmergencyListId; + } + set + { + if ((this._EmergencyListId != value)) + { + this.OnEmergencyListIdChanging(value); + this.SendPropertyChanging(); + this._EmergencyListId = value; + this.SendPropertyChanged("EmergencyListId"); + this.OnEmergencyListIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyCode", DbType="NVarChar(50)")] + public string EmergencyCode + { + get + { + return this._EmergencyCode; + } + set + { + if ((this._EmergencyCode != value)) + { + this.OnEmergencyCodeChanging(value); + this.SendPropertyChanging(); + this._EmergencyCode = value; + this.SendPropertyChanged("EmergencyCode"); + this.OnEmergencyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyName", DbType="NVarChar(500)")] + public string EmergencyName + { + get + { + return this._EmergencyName; + } + set + { + if ((this._EmergencyName != value)) + { + this.OnEmergencyNameChanging(value); + this.SendPropertyChanging(); + this._EmergencyName = value; + this.SendPropertyChanged("EmergencyName"); + this.OnEmergencyNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyTypeId", DbType="NVarChar(50)")] + public string EmergencyTypeId + { + get + { + return this._EmergencyTypeId; + } + set + { + if ((this._EmergencyTypeId != value)) + { + this.OnEmergencyTypeIdChanging(value); + this.SendPropertyChanging(); + this._EmergencyTypeId = value; + this.SendPropertyChanged("EmergencyTypeId"); + this.OnEmergencyTypeIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VersionCode", DbType="NVarChar(50)")] + public string VersionCode + { + get + { + return this._VersionCode; + } + set + { + if ((this._VersionCode != value)) + { + this.OnVersionCodeChanging(value); + this.SendPropertyChanging(); + this._VersionCode = value; + this.SendPropertyChanged("VersionCode"); + this.OnVersionCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string EmergencyContents + { + get + { + return this._EmergencyContents; + } + set + { + if ((this._EmergencyContents != value)) + { + this.OnEmergencyContentsChanging(value); + this.SendPropertyChanging(); + this._EmergencyContents = value; + this.SendPropertyChanged("EmergencyContents"); + this.OnEmergencyContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")] + public string States + { + get + { + return this._States; + } + set + { + if ((this._States != value)) + { + this.OnStatesChanging(value); + this.SendPropertyChanging(); + this._States = value; + this.SendPropertyChanged("States"); + this.OnStatesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditMan", DbType="NVarChar(50)")] + public string AuditMan + { + get + { + return this._AuditMan; + } + set + { + if ((this._AuditMan != value)) + { + this.OnAuditManChanging(value); + this.SendPropertyChanging(); + this._AuditMan = value; + this.SendPropertyChanged("AuditMan"); + this.OnAuditManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")] + public string ApproveMan + { + get + { + return this._ApproveMan; + } + set + { + if ((this._ApproveMan != value)) + { + this.OnApproveManChanging(value); + this.SendPropertyChanging(); + this._ApproveMan = value; + this.SendPropertyChanged("ApproveMan"); + this.OnApproveManChanged(); + } + } + } + + 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.Emergency_EmergencyProcess")] public partial class Emergency_EmergencyProcess : INotifyPropertyChanging, INotifyPropertyChanged { @@ -122618,6 +126697,1050 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Environmental_ArchitectureReport")] + public partial class Environmental_ArchitectureReport : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ArchitectureReportId; + + private string _UnitId; + + private System.Nullable _Year; + + private System.Nullable _Quarters; + + private string _FillingMan; + + private System.Nullable _FillingDate; + + private string _DutyPerson; + + private string _UpState; + + private EntityRef _Base_Unit; + + private EntitySet _Environmental_ArchitectureReportItem; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnArchitectureReportIdChanging(string value); + partial void OnArchitectureReportIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnYearChanging(System.Nullable value); + partial void OnYearChanged(); + partial void OnQuartersChanging(System.Nullable value); + partial void OnQuartersChanged(); + partial void OnFillingManChanging(string value); + partial void OnFillingManChanged(); + partial void OnFillingDateChanging(System.Nullable value); + partial void OnFillingDateChanged(); + partial void OnDutyPersonChanging(string value); + partial void OnDutyPersonChanged(); + partial void OnUpStateChanging(string value); + partial void OnUpStateChanged(); + #endregion + + public Environmental_ArchitectureReport() + { + this._Base_Unit = default(EntityRef); + this._Environmental_ArchitectureReportItem = new EntitySet(new Action(this.attach_Environmental_ArchitectureReportItem), new Action(this.detach_Environmental_ArchitectureReportItem)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArchitectureReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ArchitectureReportId + { + get + { + return this._ArchitectureReportId; + } + set + { + if ((this._ArchitectureReportId != value)) + { + this.OnArchitectureReportIdChanging(value); + this.SendPropertyChanging(); + this._ArchitectureReportId = value; + this.SendPropertyChanged("ArchitectureReportId"); + this.OnArchitectureReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="Int")] + public System.Nullable Year + { + get + { + return this._Year; + } + set + { + if ((this._Year != value)) + { + this.OnYearChanging(value); + this.SendPropertyChanging(); + this._Year = value; + this.SendPropertyChanged("Year"); + this.OnYearChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quarters", DbType="Int")] + public System.Nullable Quarters + { + get + { + return this._Quarters; + } + set + { + if ((this._Quarters != value)) + { + this.OnQuartersChanging(value); + this.SendPropertyChanging(); + this._Quarters = value; + this.SendPropertyChanged("Quarters"); + this.OnQuartersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingMan", DbType="NVarChar(50)")] + public string FillingMan + { + get + { + return this._FillingMan; + } + set + { + if ((this._FillingMan != value)) + { + this.OnFillingManChanging(value); + this.SendPropertyChanging(); + this._FillingMan = value; + this.SendPropertyChanged("FillingMan"); + this.OnFillingManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingDate", DbType="DateTime")] + public System.Nullable FillingDate + { + get + { + return this._FillingDate; + } + set + { + if ((this._FillingDate != value)) + { + this.OnFillingDateChanging(value); + this.SendPropertyChanging(); + this._FillingDate = value; + this.SendPropertyChanged("FillingDate"); + this.OnFillingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DutyPerson", DbType="NVarChar(50)")] + public string DutyPerson + { + get + { + return this._DutyPerson; + } + set + { + if ((this._DutyPerson != value)) + { + this.OnDutyPersonChanging(value); + this.SendPropertyChanging(); + this._DutyPerson = value; + this.SendPropertyChanged("DutyPerson"); + this.OnDutyPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpState", DbType="Char(1)")] + public string UpState + { + get + { + return this._UpState; + } + set + { + if ((this._UpState != value)) + { + this.OnUpStateChanging(value); + this.SendPropertyChanging(); + this._UpState = value; + this.SendPropertyChanged("UpState"); + this.OnUpStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ArchitectureReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.Environmental_ArchitectureReport.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.Environmental_ArchitectureReport.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ArchitectureReportItem_Environmental_ArchitectureReport", Storage="_Environmental_ArchitectureReportItem", ThisKey="ArchitectureReportId", OtherKey="ArchitectureReportId", DeleteRule="NO ACTION")] + public EntitySet Environmental_ArchitectureReportItem + { + get + { + return this._Environmental_ArchitectureReportItem; + } + set + { + this._Environmental_ArchitectureReportItem.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_Environmental_ArchitectureReportItem(Environmental_ArchitectureReportItem entity) + { + this.SendPropertyChanging(); + entity.Environmental_ArchitectureReport = this; + } + + private void detach_Environmental_ArchitectureReportItem(Environmental_ArchitectureReportItem entity) + { + this.SendPropertyChanging(); + entity.Environmental_ArchitectureReport = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Environmental_ArchitectureReportItem")] + public partial class Environmental_ArchitectureReportItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ArchitectureReportItemId; + + private string _ArchitectureReportId; + + private string _SortIndex; + + private string _LastYearValue; + + private string _ThisYearValue; + + private string _Rate; + + private EntityRef _Environmental_ArchitectureReport; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnArchitectureReportItemIdChanging(string value); + partial void OnArchitectureReportItemIdChanged(); + partial void OnArchitectureReportIdChanging(string value); + partial void OnArchitectureReportIdChanged(); + partial void OnSortIndexChanging(string value); + partial void OnSortIndexChanged(); + partial void OnLastYearValueChanging(string value); + partial void OnLastYearValueChanged(); + partial void OnThisYearValueChanging(string value); + partial void OnThisYearValueChanged(); + partial void OnRateChanging(string value); + partial void OnRateChanged(); + #endregion + + public Environmental_ArchitectureReportItem() + { + this._Environmental_ArchitectureReport = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArchitectureReportItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ArchitectureReportItemId + { + get + { + return this._ArchitectureReportItemId; + } + set + { + if ((this._ArchitectureReportItemId != value)) + { + this.OnArchitectureReportItemIdChanging(value); + this.SendPropertyChanging(); + this._ArchitectureReportItemId = value; + this.SendPropertyChanged("ArchitectureReportItemId"); + this.OnArchitectureReportItemIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArchitectureReportId", DbType="NVarChar(50)")] + public string ArchitectureReportId + { + get + { + return this._ArchitectureReportId; + } + set + { + if ((this._ArchitectureReportId != value)) + { + if (this._Environmental_ArchitectureReport.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnArchitectureReportIdChanging(value); + this.SendPropertyChanging(); + this._ArchitectureReportId = value; + this.SendPropertyChanged("ArchitectureReportId"); + this.OnArchitectureReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="NVarChar(50)")] + public string SortIndex + { + get + { + return this._SortIndex; + } + set + { + if ((this._SortIndex != value)) + { + this.OnSortIndexChanging(value); + this.SendPropertyChanging(); + this._SortIndex = value; + this.SendPropertyChanged("SortIndex"); + this.OnSortIndexChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastYearValue", DbType="NVarChar(50)")] + public string LastYearValue + { + get + { + return this._LastYearValue; + } + set + { + if ((this._LastYearValue != value)) + { + this.OnLastYearValueChanging(value); + this.SendPropertyChanging(); + this._LastYearValue = value; + this.SendPropertyChanged("LastYearValue"); + this.OnLastYearValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ThisYearValue", DbType="NVarChar(50)")] + public string ThisYearValue + { + get + { + return this._ThisYearValue; + } + set + { + if ((this._ThisYearValue != value)) + { + this.OnThisYearValueChanging(value); + this.SendPropertyChanging(); + this._ThisYearValue = value; + this.SendPropertyChanged("ThisYearValue"); + this.OnThisYearValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rate", DbType="NVarChar(50)")] + public string Rate + { + get + { + return this._Rate; + } + set + { + if ((this._Rate != value)) + { + this.OnRateChanging(value); + this.SendPropertyChanging(); + this._Rate = value; + this.SendPropertyChanged("Rate"); + this.OnRateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ArchitectureReportItem_Environmental_ArchitectureReport", Storage="_Environmental_ArchitectureReport", ThisKey="ArchitectureReportId", OtherKey="ArchitectureReportId", IsForeignKey=true)] + public Environmental_ArchitectureReport Environmental_ArchitectureReport + { + get + { + return this._Environmental_ArchitectureReport.Entity; + } + set + { + Environmental_ArchitectureReport previousValue = this._Environmental_ArchitectureReport.Entity; + if (((previousValue != value) + || (this._Environmental_ArchitectureReport.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Environmental_ArchitectureReport.Entity = null; + previousValue.Environmental_ArchitectureReportItem.Remove(this); + } + this._Environmental_ArchitectureReport.Entity = value; + if ((value != null)) + { + value.Environmental_ArchitectureReportItem.Add(this); + this._ArchitectureReportId = value.ArchitectureReportId; + } + else + { + this._ArchitectureReportId = default(string); + } + this.SendPropertyChanged("Environmental_ArchitectureReport"); + } + } + } + + 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.Environmental_ChemicalReport")] + public partial class Environmental_ChemicalReport : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ChemicalReportId; + + private string _UnitId; + + private System.Nullable _Year; + + private System.Nullable _Month; + + private string _FillingMan; + + private System.Nullable _FillingDate; + + private string _DutyPerson; + + private string _UpState; + + private EntityRef _Base_Unit; + + private EntitySet _Environmental_ChemicalReportItem; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnChemicalReportIdChanging(string value); + partial void OnChemicalReportIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnYearChanging(System.Nullable value); + partial void OnYearChanged(); + partial void OnMonthChanging(System.Nullable value); + partial void OnMonthChanged(); + partial void OnFillingManChanging(string value); + partial void OnFillingManChanged(); + partial void OnFillingDateChanging(System.Nullable value); + partial void OnFillingDateChanged(); + partial void OnDutyPersonChanging(string value); + partial void OnDutyPersonChanged(); + partial void OnUpStateChanging(string value); + partial void OnUpStateChanged(); + #endregion + + public Environmental_ChemicalReport() + { + this._Base_Unit = default(EntityRef); + this._Environmental_ChemicalReportItem = new EntitySet(new Action(this.attach_Environmental_ChemicalReportItem), new Action(this.detach_Environmental_ChemicalReportItem)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ChemicalReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ChemicalReportId + { + get + { + return this._ChemicalReportId; + } + set + { + if ((this._ChemicalReportId != value)) + { + this.OnChemicalReportIdChanging(value); + this.SendPropertyChanging(); + this._ChemicalReportId = value; + this.SendPropertyChanged("ChemicalReportId"); + this.OnChemicalReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="Int")] + public System.Nullable Year + { + get + { + return this._Year; + } + set + { + if ((this._Year != value)) + { + this.OnYearChanging(value); + this.SendPropertyChanging(); + this._Year = value; + this.SendPropertyChanged("Year"); + this.OnYearChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month", DbType="Int")] + public System.Nullable Month + { + get + { + return this._Month; + } + set + { + if ((this._Month != value)) + { + this.OnMonthChanging(value); + this.SendPropertyChanging(); + this._Month = value; + this.SendPropertyChanged("Month"); + this.OnMonthChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingMan", DbType="NVarChar(50)")] + public string FillingMan + { + get + { + return this._FillingMan; + } + set + { + if ((this._FillingMan != value)) + { + this.OnFillingManChanging(value); + this.SendPropertyChanging(); + this._FillingMan = value; + this.SendPropertyChanged("FillingMan"); + this.OnFillingManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingDate", DbType="DateTime")] + public System.Nullable FillingDate + { + get + { + return this._FillingDate; + } + set + { + if ((this._FillingDate != value)) + { + this.OnFillingDateChanging(value); + this.SendPropertyChanging(); + this._FillingDate = value; + this.SendPropertyChanged("FillingDate"); + this.OnFillingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DutyPerson", DbType="NVarChar(50)")] + public string DutyPerson + { + get + { + return this._DutyPerson; + } + set + { + if ((this._DutyPerson != value)) + { + this.OnDutyPersonChanging(value); + this.SendPropertyChanging(); + this._DutyPerson = value; + this.SendPropertyChanged("DutyPerson"); + this.OnDutyPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UpState", DbType="Char(1)")] + public string UpState + { + get + { + return this._UpState; + } + set + { + if ((this._UpState != value)) + { + this.OnUpStateChanging(value); + this.SendPropertyChanging(); + this._UpState = value; + this.SendPropertyChanged("UpState"); + this.OnUpStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ChemicalReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.Environmental_ChemicalReport.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.Environmental_ChemicalReport.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ChemicalReportItem_Environmental_ChemicalReport", Storage="_Environmental_ChemicalReportItem", ThisKey="ChemicalReportId", OtherKey="ChemicalReportId", DeleteRule="NO ACTION")] + public EntitySet Environmental_ChemicalReportItem + { + get + { + return this._Environmental_ChemicalReportItem; + } + set + { + this._Environmental_ChemicalReportItem.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_Environmental_ChemicalReportItem(Environmental_ChemicalReportItem entity) + { + this.SendPropertyChanging(); + entity.Environmental_ChemicalReport = this; + } + + private void detach_Environmental_ChemicalReportItem(Environmental_ChemicalReportItem entity) + { + this.SendPropertyChanging(); + entity.Environmental_ChemicalReport = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Environmental_ChemicalReportItem")] + public partial class Environmental_ChemicalReportItem : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ChemicalReportItemId; + + private string _ChemicalReportId; + + private string _SortIndex; + + private string _LastYearValue; + + private string _ThisYearValue; + + private string _Rate; + + private EntityRef _Environmental_ChemicalReport; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnChemicalReportItemIdChanging(string value); + partial void OnChemicalReportItemIdChanged(); + partial void OnChemicalReportIdChanging(string value); + partial void OnChemicalReportIdChanged(); + partial void OnSortIndexChanging(string value); + partial void OnSortIndexChanged(); + partial void OnLastYearValueChanging(string value); + partial void OnLastYearValueChanged(); + partial void OnThisYearValueChanging(string value); + partial void OnThisYearValueChanged(); + partial void OnRateChanging(string value); + partial void OnRateChanged(); + #endregion + + public Environmental_ChemicalReportItem() + { + this._Environmental_ChemicalReport = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ChemicalReportItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ChemicalReportItemId + { + get + { + return this._ChemicalReportItemId; + } + set + { + if ((this._ChemicalReportItemId != value)) + { + this.OnChemicalReportItemIdChanging(value); + this.SendPropertyChanging(); + this._ChemicalReportItemId = value; + this.SendPropertyChanged("ChemicalReportItemId"); + this.OnChemicalReportItemIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ChemicalReportId", DbType="NVarChar(50)")] + public string ChemicalReportId + { + get + { + return this._ChemicalReportId; + } + set + { + if ((this._ChemicalReportId != value)) + { + if (this._Environmental_ChemicalReport.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnChemicalReportIdChanging(value); + this.SendPropertyChanging(); + this._ChemicalReportId = value; + this.SendPropertyChanged("ChemicalReportId"); + this.OnChemicalReportIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="NVarChar(50)")] + public string SortIndex + { + get + { + return this._SortIndex; + } + set + { + if ((this._SortIndex != value)) + { + this.OnSortIndexChanging(value); + this.SendPropertyChanging(); + this._SortIndex = value; + this.SendPropertyChanged("SortIndex"); + this.OnSortIndexChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LastYearValue", DbType="NVarChar(50)")] + public string LastYearValue + { + get + { + return this._LastYearValue; + } + set + { + if ((this._LastYearValue != value)) + { + this.OnLastYearValueChanging(value); + this.SendPropertyChanging(); + this._LastYearValue = value; + this.SendPropertyChanged("LastYearValue"); + this.OnLastYearValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ThisYearValue", DbType="NVarChar(50)")] + public string ThisYearValue + { + get + { + return this._ThisYearValue; + } + set + { + if ((this._ThisYearValue != value)) + { + this.OnThisYearValueChanging(value); + this.SendPropertyChanging(); + this._ThisYearValue = value; + this.SendPropertyChanged("ThisYearValue"); + this.OnThisYearValueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Rate", DbType="NVarChar(50)")] + public string Rate + { + get + { + return this._Rate; + } + set + { + if ((this._Rate != value)) + { + this.OnRateChanging(value); + this.SendPropertyChanging(); + this._Rate = value; + this.SendPropertyChanged("Rate"); + this.OnRateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_ChemicalReportItem_Environmental_ChemicalReport", Storage="_Environmental_ChemicalReport", ThisKey="ChemicalReportId", OtherKey="ChemicalReportId", IsForeignKey=true)] + public Environmental_ChemicalReport Environmental_ChemicalReport + { + get + { + return this._Environmental_ChemicalReport.Entity; + } + set + { + Environmental_ChemicalReport previousValue = this._Environmental_ChemicalReport.Entity; + if (((previousValue != value) + || (this._Environmental_ChemicalReport.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Environmental_ChemicalReport.Entity = null; + previousValue.Environmental_ChemicalReportItem.Remove(this); + } + this._Environmental_ChemicalReport.Entity = value; + if ((value != null)) + { + value.Environmental_ChemicalReportItem.Add(this); + this._ChemicalReportId = value.ChemicalReportId; + } + else + { + this._ChemicalReportId = default(string); + } + this.SendPropertyChanged("Environmental_ChemicalReport"); + } + } + } + + 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.Environmental_EIAReport")] public partial class Environmental_EIAReport : INotifyPropertyChanging, INotifyPropertyChanged { @@ -127747,6 +132870,8 @@ namespace Model private string _ProjectId; + private string _HazardSelectedItemId; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -127791,6 +132916,8 @@ namespace Model partial void OnIsStartChanged(); partial void OnProjectIdChanging(string value); partial void OnProjectIdChanged(); + partial void OnHazardSelectedItemIdChanging(string value); + partial void OnHazardSelectedItemIdChanged(); #endregion public Hazard_HazardSelectedItem() @@ -128198,6 +133325,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardSelectedItemId", DbType="NVarChar(50)")] + public string HazardSelectedItemId + { + get + { + return this._HazardSelectedItemId; + } + set + { + if ((this._HazardSelectedItemId != value)) + { + this.OnHazardSelectedItemIdChanging(value); + this.SendPropertyChanging(); + this._HazardSelectedItemId = value; + this.SendPropertyChanged("HazardSelectedItemId"); + this.OnHazardSelectedItemIdChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -145905,7 +151052,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")] public string CanWelderCode { get @@ -145925,7 +151072,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")] public string CanWelderId { get @@ -146614,6 +151761,8 @@ namespace Model private string _HazardValue; + private string _Risk_Level; + private EntityRef _Base_Unit; private EntityRef _HSSE_Hazard_HazardRegisterTypes; @@ -146708,6 +151857,8 @@ namespace Model partial void OnRequirementsChanged(); partial void OnHazardValueChanging(string value); partial void OnHazardValueChanged(); + partial void OnRisk_LevelChanging(string value); + partial void OnRisk_LevelChanged(); #endregion public HSSE_Hazard_HazardRegister() @@ -147585,6 +152736,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Risk_Level", DbType="NVarChar(50)")] + public string Risk_Level + { + get + { + return this._Risk_Level; + } + set + { + if ((this._Risk_Level != value)) + { + this.OnRisk_LevelChanging(value); + this.SendPropertyChanging(); + this._Risk_Level = value; + this.SendPropertyChanged("Risk_Level"); + this.OnRisk_LevelChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_Base_Unit", Storage="_Base_Unit", ThisKey="ResponsibleUnit", OtherKey="UnitId", IsForeignKey=true)] public Base_Unit Base_Unit { @@ -151702,6 +156873,8 @@ namespace Model private string _CommercialInsuranceNum; + private System.Nullable _IsUsed; + private EntityRef _Base_SpecialEquipment; private EntityRef _InApproveManager_EquipmentIn; @@ -151734,6 +156907,8 @@ namespace Model partial void OnInsuranceNumChanged(); partial void OnCommercialInsuranceNumChanging(string value); partial void OnCommercialInsuranceNumChanged(); + partial void OnIsUsedChanging(System.Nullable value); + partial void OnIsUsedChanged(); #endregion public InApproveManager_EquipmentInItem() @@ -151991,6 +157166,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")] + public System.Nullable IsUsed + { + get + { + return this._IsUsed; + } + set + { + if ((this._IsUsed != value)) + { + this.OnIsUsedChanging(value); + this.SendPropertyChanging(); + this._IsUsed = value; + this.SendPropertyChanged("IsUsed"); + this.OnIsUsedChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentInItem_Base_SpecialEquipment", Storage="_Base_SpecialEquipment", ThisKey="SpecialEquipmentId", OtherKey="SpecialEquipmentId", IsForeignKey=true)] public Base_SpecialEquipment Base_SpecialEquipment { @@ -154355,6 +159550,8 @@ namespace Model private string _CertificateNum; + private System.Nullable _IsUsed; + private EntityRef _Base_SpecialEquipment; private EntityRef _InApproveManager_GeneralEquipmentIn; @@ -154375,6 +159572,8 @@ namespace Model partial void OnOwnerCheckChanged(); partial void OnCertificateNumChanging(string value); partial void OnCertificateNumChanged(); + partial void OnIsUsedChanging(System.Nullable value); + partial void OnIsUsedChanged(); #endregion public InApproveManager_GeneralEquipmentInItem() @@ -154512,6 +159711,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUsed", DbType="Bit")] + public System.Nullable IsUsed + { + get + { + return this._IsUsed; + } + set + { + if ((this._IsUsed != value)) + { + this.OnIsUsedChanging(value); + this.SendPropertyChanging(); + this._IsUsed = value; + this.SendPropertyChanged("IsUsed"); + this.OnIsUsedChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_GeneralEquipmentInItem_Base_SpecialEquipment", Storage="_Base_SpecialEquipment", ThisKey="SpecialEquipmentId", OtherKey="SpecialEquipmentId", IsForeignKey=true)] public Base_SpecialEquipment Base_SpecialEquipment { @@ -212420,6 +217639,802 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_CompanySafetyMeeting")] + public partial class Meeting_CompanySafetyMeeting : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CompanySafetyMeetingId; + + private string _CompanySafetyMeetingCode; + + private string _CompanySafetyMeetingName; + + private System.Nullable _CompanySafetyMeetingDate; + + private string _CompileMan; + + private string _CompanySafetyMeetingContents; + + private System.Nullable _CompileDate; + + private System.Nullable _AttentPersonNum; + + private System.Nullable _MeetingHours; + + private string _MeetingHostMan; + + private string _AttentPerson; + + private string _MeetingPlace; + + private string _MeetingHostManId; + + private string _AttentPersonIds; + + private string _MeetingHostManOther; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCompanySafetyMeetingIdChanging(string value); + partial void OnCompanySafetyMeetingIdChanged(); + partial void OnCompanySafetyMeetingCodeChanging(string value); + partial void OnCompanySafetyMeetingCodeChanged(); + partial void OnCompanySafetyMeetingNameChanging(string value); + partial void OnCompanySafetyMeetingNameChanged(); + partial void OnCompanySafetyMeetingDateChanging(System.Nullable value); + partial void OnCompanySafetyMeetingDateChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompanySafetyMeetingContentsChanging(string value); + partial void OnCompanySafetyMeetingContentsChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnAttentPersonNumChanging(System.Nullable value); + partial void OnAttentPersonNumChanged(); + partial void OnMeetingHoursChanging(System.Nullable value); + partial void OnMeetingHoursChanged(); + partial void OnMeetingHostManChanging(string value); + partial void OnMeetingHostManChanged(); + partial void OnAttentPersonChanging(string value); + partial void OnAttentPersonChanged(); + partial void OnMeetingPlaceChanging(string value); + partial void OnMeetingPlaceChanged(); + partial void OnMeetingHostManIdChanging(string value); + partial void OnMeetingHostManIdChanged(); + partial void OnAttentPersonIdsChanging(string value); + partial void OnAttentPersonIdsChanged(); + partial void OnMeetingHostManOtherChanging(string value); + partial void OnMeetingHostManOtherChanged(); + #endregion + + public Meeting_CompanySafetyMeeting() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CompanySafetyMeetingId + { + get + { + return this._CompanySafetyMeetingId; + } + set + { + if ((this._CompanySafetyMeetingId != value)) + { + this.OnCompanySafetyMeetingIdChanging(value); + this.SendPropertyChanging(); + this._CompanySafetyMeetingId = value; + this.SendPropertyChanged("CompanySafetyMeetingId"); + this.OnCompanySafetyMeetingIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingCode", DbType="NVarChar(50)")] + public string CompanySafetyMeetingCode + { + get + { + return this._CompanySafetyMeetingCode; + } + set + { + if ((this._CompanySafetyMeetingCode != value)) + { + this.OnCompanySafetyMeetingCodeChanging(value); + this.SendPropertyChanging(); + this._CompanySafetyMeetingCode = value; + this.SendPropertyChanged("CompanySafetyMeetingCode"); + this.OnCompanySafetyMeetingCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingName", DbType="NVarChar(50)")] + public string CompanySafetyMeetingName + { + get + { + return this._CompanySafetyMeetingName; + } + set + { + if ((this._CompanySafetyMeetingName != value)) + { + this.OnCompanySafetyMeetingNameChanging(value); + this.SendPropertyChanging(); + this._CompanySafetyMeetingName = value; + this.SendPropertyChanged("CompanySafetyMeetingName"); + this.OnCompanySafetyMeetingNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingDate", DbType="DateTime")] + public System.Nullable CompanySafetyMeetingDate + { + get + { + return this._CompanySafetyMeetingDate; + } + set + { + if ((this._CompanySafetyMeetingDate != value)) + { + this.OnCompanySafetyMeetingDateChanging(value); + this.SendPropertyChanging(); + this._CompanySafetyMeetingDate = value; + this.SendPropertyChanged("CompanySafetyMeetingDate"); + this.OnCompanySafetyMeetingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySafetyMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string CompanySafetyMeetingContents + { + get + { + return this._CompanySafetyMeetingContents; + } + set + { + if ((this._CompanySafetyMeetingContents != value)) + { + this.OnCompanySafetyMeetingContentsChanging(value); + this.SendPropertyChanging(); + this._CompanySafetyMeetingContents = value; + this.SendPropertyChanged("CompanySafetyMeetingContents"); + this.OnCompanySafetyMeetingContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")] + public System.Nullable AttentPersonNum + { + get + { + return this._AttentPersonNum; + } + set + { + if ((this._AttentPersonNum != value)) + { + this.OnAttentPersonNumChanging(value); + this.SendPropertyChanging(); + this._AttentPersonNum = value; + this.SendPropertyChanged("AttentPersonNum"); + this.OnAttentPersonNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")] + public System.Nullable MeetingHours + { + get + { + return this._MeetingHours; + } + set + { + if ((this._MeetingHours != value)) + { + this.OnMeetingHoursChanging(value); + this.SendPropertyChanging(); + this._MeetingHours = value; + this.SendPropertyChanged("MeetingHours"); + this.OnMeetingHoursChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")] + public string MeetingHostMan + { + get + { + return this._MeetingHostMan; + } + set + { + if ((this._MeetingHostMan != value)) + { + this.OnMeetingHostManChanging(value); + this.SendPropertyChanging(); + this._MeetingHostMan = value; + this.SendPropertyChanged("MeetingHostMan"); + this.OnMeetingHostManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")] + public string AttentPerson + { + get + { + return this._AttentPerson; + } + set + { + if ((this._AttentPerson != value)) + { + this.OnAttentPersonChanging(value); + this.SendPropertyChanging(); + this._AttentPerson = value; + this.SendPropertyChanged("AttentPerson"); + this.OnAttentPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")] + public string MeetingPlace + { + get + { + return this._MeetingPlace; + } + set + { + if ((this._MeetingPlace != value)) + { + this.OnMeetingPlaceChanging(value); + this.SendPropertyChanging(); + this._MeetingPlace = value; + this.SendPropertyChanged("MeetingPlace"); + this.OnMeetingPlaceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")] + public string MeetingHostManId + { + get + { + return this._MeetingHostManId; + } + set + { + if ((this._MeetingHostManId != value)) + { + this.OnMeetingHostManIdChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManId = value; + this.SendPropertyChanged("MeetingHostManId"); + this.OnMeetingHostManIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")] + public string AttentPersonIds + { + get + { + return this._AttentPersonIds; + } + set + { + if ((this._AttentPersonIds != value)) + { + this.OnAttentPersonIdsChanging(value); + this.SendPropertyChanging(); + this._AttentPersonIds = value; + this.SendPropertyChanged("AttentPersonIds"); + this.OnAttentPersonIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")] + public string MeetingHostManOther + { + get + { + return this._MeetingHostManOther; + } + set + { + if ((this._MeetingHostManOther != value)) + { + this.OnMeetingHostManOtherChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManOther = value; + this.SendPropertyChanged("MeetingHostManOther"); + this.OnMeetingHostManOtherChanged(); + } + } + } + + 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.Meeting_CompanySpecialMeeting")] + public partial class Meeting_CompanySpecialMeeting : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CompanySpecialMeetingId; + + private string _CompanySpecialMeetingCode; + + private string _CompanySpecialMeetingName; + + private System.Nullable _CompanySpecialMeetingDate; + + private string _CompileMan; + + private string _CompanySpecialMeetingContents; + + private System.Nullable _CompileDate; + + private System.Nullable _AttentPersonNum; + + private System.Nullable _MeetingHours; + + private string _MeetingHostMan; + + private string _AttentPerson; + + private string _MeetingPlace; + + private string _MeetingHostManId; + + private string _AttentPersonIds; + + private string _MeetingHostManOther; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCompanySpecialMeetingIdChanging(string value); + partial void OnCompanySpecialMeetingIdChanged(); + partial void OnCompanySpecialMeetingCodeChanging(string value); + partial void OnCompanySpecialMeetingCodeChanged(); + partial void OnCompanySpecialMeetingNameChanging(string value); + partial void OnCompanySpecialMeetingNameChanged(); + partial void OnCompanySpecialMeetingDateChanging(System.Nullable value); + partial void OnCompanySpecialMeetingDateChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompanySpecialMeetingContentsChanging(string value); + partial void OnCompanySpecialMeetingContentsChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnAttentPersonNumChanging(System.Nullable value); + partial void OnAttentPersonNumChanged(); + partial void OnMeetingHoursChanging(System.Nullable value); + partial void OnMeetingHoursChanged(); + partial void OnMeetingHostManChanging(string value); + partial void OnMeetingHostManChanged(); + partial void OnAttentPersonChanging(string value); + partial void OnAttentPersonChanged(); + partial void OnMeetingPlaceChanging(string value); + partial void OnMeetingPlaceChanged(); + partial void OnMeetingHostManIdChanging(string value); + partial void OnMeetingHostManIdChanged(); + partial void OnAttentPersonIdsChanging(string value); + partial void OnAttentPersonIdsChanged(); + partial void OnMeetingHostManOtherChanging(string value); + partial void OnMeetingHostManOtherChanged(); + #endregion + + public Meeting_CompanySpecialMeeting() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CompanySpecialMeetingId + { + get + { + return this._CompanySpecialMeetingId; + } + set + { + if ((this._CompanySpecialMeetingId != value)) + { + this.OnCompanySpecialMeetingIdChanging(value); + this.SendPropertyChanging(); + this._CompanySpecialMeetingId = value; + this.SendPropertyChanged("CompanySpecialMeetingId"); + this.OnCompanySpecialMeetingIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingCode", DbType="NVarChar(50)")] + public string CompanySpecialMeetingCode + { + get + { + return this._CompanySpecialMeetingCode; + } + set + { + if ((this._CompanySpecialMeetingCode != value)) + { + this.OnCompanySpecialMeetingCodeChanging(value); + this.SendPropertyChanging(); + this._CompanySpecialMeetingCode = value; + this.SendPropertyChanged("CompanySpecialMeetingCode"); + this.OnCompanySpecialMeetingCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingName", DbType="NVarChar(50)")] + public string CompanySpecialMeetingName + { + get + { + return this._CompanySpecialMeetingName; + } + set + { + if ((this._CompanySpecialMeetingName != value)) + { + this.OnCompanySpecialMeetingNameChanging(value); + this.SendPropertyChanging(); + this._CompanySpecialMeetingName = value; + this.SendPropertyChanged("CompanySpecialMeetingName"); + this.OnCompanySpecialMeetingNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingDate", DbType="DateTime")] + public System.Nullable CompanySpecialMeetingDate + { + get + { + return this._CompanySpecialMeetingDate; + } + set + { + if ((this._CompanySpecialMeetingDate != value)) + { + this.OnCompanySpecialMeetingDateChanging(value); + this.SendPropertyChanging(); + this._CompanySpecialMeetingDate = value; + this.SendPropertyChanged("CompanySpecialMeetingDate"); + this.OnCompanySpecialMeetingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanySpecialMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string CompanySpecialMeetingContents + { + get + { + return this._CompanySpecialMeetingContents; + } + set + { + if ((this._CompanySpecialMeetingContents != value)) + { + this.OnCompanySpecialMeetingContentsChanging(value); + this.SendPropertyChanging(); + this._CompanySpecialMeetingContents = value; + this.SendPropertyChanged("CompanySpecialMeetingContents"); + this.OnCompanySpecialMeetingContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")] + public System.Nullable AttentPersonNum + { + get + { + return this._AttentPersonNum; + } + set + { + if ((this._AttentPersonNum != value)) + { + this.OnAttentPersonNumChanging(value); + this.SendPropertyChanging(); + this._AttentPersonNum = value; + this.SendPropertyChanged("AttentPersonNum"); + this.OnAttentPersonNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")] + public System.Nullable MeetingHours + { + get + { + return this._MeetingHours; + } + set + { + if ((this._MeetingHours != value)) + { + this.OnMeetingHoursChanging(value); + this.SendPropertyChanging(); + this._MeetingHours = value; + this.SendPropertyChanged("MeetingHours"); + this.OnMeetingHoursChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")] + public string MeetingHostMan + { + get + { + return this._MeetingHostMan; + } + set + { + if ((this._MeetingHostMan != value)) + { + this.OnMeetingHostManChanging(value); + this.SendPropertyChanging(); + this._MeetingHostMan = value; + this.SendPropertyChanged("MeetingHostMan"); + this.OnMeetingHostManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")] + public string AttentPerson + { + get + { + return this._AttentPerson; + } + set + { + if ((this._AttentPerson != value)) + { + this.OnAttentPersonChanging(value); + this.SendPropertyChanging(); + this._AttentPerson = value; + this.SendPropertyChanged("AttentPerson"); + this.OnAttentPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")] + public string MeetingPlace + { + get + { + return this._MeetingPlace; + } + set + { + if ((this._MeetingPlace != value)) + { + this.OnMeetingPlaceChanging(value); + this.SendPropertyChanging(); + this._MeetingPlace = value; + this.SendPropertyChanged("MeetingPlace"); + this.OnMeetingPlaceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")] + public string MeetingHostManId + { + get + { + return this._MeetingHostManId; + } + set + { + if ((this._MeetingHostManId != value)) + { + this.OnMeetingHostManIdChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManId = value; + this.SendPropertyChanged("MeetingHostManId"); + this.OnMeetingHostManIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")] + public string AttentPersonIds + { + get + { + return this._AttentPersonIds; + } + set + { + if ((this._AttentPersonIds != value)) + { + this.OnAttentPersonIdsChanging(value); + this.SendPropertyChanging(); + this._AttentPersonIds = value; + this.SendPropertyChanged("AttentPersonIds"); + this.OnAttentPersonIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")] + public string MeetingHostManOther + { + get + { + return this._MeetingHostManOther; + } + set + { + if ((this._MeetingHostManOther != value)) + { + this.OnMeetingHostManOtherChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManOther = value; + this.SendPropertyChanged("MeetingHostManOther"); + this.OnMeetingHostManOtherChanged(); + } + } + } + + 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.Meeting_MonthMeeting")] public partial class Meeting_MonthMeeting : INotifyPropertyChanging, INotifyPropertyChanged { @@ -213030,6 +219045,476 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Meeting_SafetyLeaderGroupMeeting")] + public partial class Meeting_SafetyLeaderGroupMeeting : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _SafetyLeaderGroupMeetingId; + + private string _ProjectId; + + private string _SafetyLeaderGroupMeetingCode; + + private string _SafetyLeaderGroupMeetingName; + + private System.Nullable _SafetyLeaderGroupMeetingDate; + + private string _CompileMan; + + private string _SafetyLeaderGroupMeetingContents; + + private System.Nullable _CompileDate; + + private string _States; + + private System.Nullable _AttentPersonNum; + + private System.Nullable _MeetingHours; + + private string _MeetingHostMan; + + private string _AttentPerson; + + private string _MeetingPlace; + + private string _UnitId; + + private string _MeetingHostManId; + + private string _AttentPersonIds; + + private string _MeetingHostManOther; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSafetyLeaderGroupMeetingIdChanging(string value); + partial void OnSafetyLeaderGroupMeetingIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSafetyLeaderGroupMeetingCodeChanging(string value); + partial void OnSafetyLeaderGroupMeetingCodeChanged(); + partial void OnSafetyLeaderGroupMeetingNameChanging(string value); + partial void OnSafetyLeaderGroupMeetingNameChanged(); + partial void OnSafetyLeaderGroupMeetingDateChanging(System.Nullable value); + partial void OnSafetyLeaderGroupMeetingDateChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnSafetyLeaderGroupMeetingContentsChanging(string value); + partial void OnSafetyLeaderGroupMeetingContentsChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnStatesChanging(string value); + partial void OnStatesChanged(); + partial void OnAttentPersonNumChanging(System.Nullable value); + partial void OnAttentPersonNumChanged(); + partial void OnMeetingHoursChanging(System.Nullable value); + partial void OnMeetingHoursChanged(); + partial void OnMeetingHostManChanging(string value); + partial void OnMeetingHostManChanged(); + partial void OnAttentPersonChanging(string value); + partial void OnAttentPersonChanged(); + partial void OnMeetingPlaceChanging(string value); + partial void OnMeetingPlaceChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnMeetingHostManIdChanging(string value); + partial void OnMeetingHostManIdChanged(); + partial void OnAttentPersonIdsChanging(string value); + partial void OnAttentPersonIdsChanged(); + partial void OnMeetingHostManOtherChanging(string value); + partial void OnMeetingHostManOtherChanged(); + #endregion + + public Meeting_SafetyLeaderGroupMeeting() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string SafetyLeaderGroupMeetingId + { + get + { + return this._SafetyLeaderGroupMeetingId; + } + set + { + if ((this._SafetyLeaderGroupMeetingId != value)) + { + this.OnSafetyLeaderGroupMeetingIdChanging(value); + this.SendPropertyChanging(); + this._SafetyLeaderGroupMeetingId = value; + this.SendPropertyChanged("SafetyLeaderGroupMeetingId"); + this.OnSafetyLeaderGroupMeetingIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingCode", DbType="NVarChar(50)")] + public string SafetyLeaderGroupMeetingCode + { + get + { + return this._SafetyLeaderGroupMeetingCode; + } + set + { + if ((this._SafetyLeaderGroupMeetingCode != value)) + { + this.OnSafetyLeaderGroupMeetingCodeChanging(value); + this.SendPropertyChanging(); + this._SafetyLeaderGroupMeetingCode = value; + this.SendPropertyChanged("SafetyLeaderGroupMeetingCode"); + this.OnSafetyLeaderGroupMeetingCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingName", DbType="NVarChar(50)")] + public string SafetyLeaderGroupMeetingName + { + get + { + return this._SafetyLeaderGroupMeetingName; + } + set + { + if ((this._SafetyLeaderGroupMeetingName != value)) + { + this.OnSafetyLeaderGroupMeetingNameChanging(value); + this.SendPropertyChanging(); + this._SafetyLeaderGroupMeetingName = value; + this.SendPropertyChanged("SafetyLeaderGroupMeetingName"); + this.OnSafetyLeaderGroupMeetingNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingDate", DbType="DateTime")] + public System.Nullable SafetyLeaderGroupMeetingDate + { + get + { + return this._SafetyLeaderGroupMeetingDate; + } + set + { + if ((this._SafetyLeaderGroupMeetingDate != value)) + { + this.OnSafetyLeaderGroupMeetingDateChanging(value); + this.SendPropertyChanging(); + this._SafetyLeaderGroupMeetingDate = value; + this.SendPropertyChanged("SafetyLeaderGroupMeetingDate"); + this.OnSafetyLeaderGroupMeetingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")] + public string CompileMan + { + get + { + return this._CompileMan; + } + set + { + if ((this._CompileMan != value)) + { + this.OnCompileManChanging(value); + this.SendPropertyChanging(); + this._CompileMan = value; + this.SendPropertyChanged("CompileMan"); + this.OnCompileManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyLeaderGroupMeetingContents", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + public string SafetyLeaderGroupMeetingContents + { + get + { + return this._SafetyLeaderGroupMeetingContents; + } + set + { + if ((this._SafetyLeaderGroupMeetingContents != value)) + { + this.OnSafetyLeaderGroupMeetingContentsChanging(value); + this.SendPropertyChanging(); + this._SafetyLeaderGroupMeetingContents = value; + this.SendPropertyChanged("SafetyLeaderGroupMeetingContents"); + this.OnSafetyLeaderGroupMeetingContentsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")] + public string States + { + get + { + return this._States; + } + set + { + if ((this._States != value)) + { + this.OnStatesChanging(value); + this.SendPropertyChanging(); + this._States = value; + this.SendPropertyChanged("States"); + this.OnStatesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonNum", DbType="Int")] + public System.Nullable AttentPersonNum + { + get + { + return this._AttentPersonNum; + } + set + { + if ((this._AttentPersonNum != value)) + { + this.OnAttentPersonNumChanging(value); + this.SendPropertyChanging(); + this._AttentPersonNum = value; + this.SendPropertyChanged("AttentPersonNum"); + this.OnAttentPersonNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHours", DbType="Decimal(9,1)")] + public System.Nullable MeetingHours + { + get + { + return this._MeetingHours; + } + set + { + if ((this._MeetingHours != value)) + { + this.OnMeetingHoursChanging(value); + this.SendPropertyChanging(); + this._MeetingHours = value; + this.SendPropertyChanged("MeetingHours"); + this.OnMeetingHoursChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostMan", DbType="NVarChar(50)")] + public string MeetingHostMan + { + get + { + return this._MeetingHostMan; + } + set + { + if ((this._MeetingHostMan != value)) + { + this.OnMeetingHostManChanging(value); + this.SendPropertyChanging(); + this._MeetingHostMan = value; + this.SendPropertyChanged("MeetingHostMan"); + this.OnMeetingHostManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(300)")] + public string AttentPerson + { + get + { + return this._AttentPerson; + } + set + { + if ((this._AttentPerson != value)) + { + this.OnAttentPersonChanging(value); + this.SendPropertyChanging(); + this._AttentPerson = value; + this.SendPropertyChanged("AttentPerson"); + this.OnAttentPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingPlace", DbType="NVarChar(200)")] + public string MeetingPlace + { + get + { + return this._MeetingPlace; + } + set + { + if ((this._MeetingPlace != value)) + { + this.OnMeetingPlaceChanging(value); + this.SendPropertyChanging(); + this._MeetingPlace = value; + this.SendPropertyChanged("MeetingPlace"); + this.OnMeetingPlaceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManId", DbType="NVarChar(50)")] + public string MeetingHostManId + { + get + { + return this._MeetingHostManId; + } + set + { + if ((this._MeetingHostManId != value)) + { + this.OnMeetingHostManIdChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManId = value; + this.SendPropertyChanged("MeetingHostManId"); + this.OnMeetingHostManIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPersonIds", DbType="NVarChar(4000)")] + public string AttentPersonIds + { + get + { + return this._AttentPersonIds; + } + set + { + if ((this._AttentPersonIds != value)) + { + this.OnAttentPersonIdsChanging(value); + this.SendPropertyChanging(); + this._AttentPersonIds = value; + this.SendPropertyChanged("AttentPersonIds"); + this.OnAttentPersonIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MeetingHostManOther", DbType="NVarChar(500)")] + public string MeetingHostManOther + { + get + { + return this._MeetingHostManOther; + } + set + { + if ((this._MeetingHostManOther != value)) + { + this.OnMeetingHostManOtherChanging(value); + this.SendPropertyChanging(); + this._MeetingHostManOther = value; + this.SendPropertyChanged("MeetingHostManOther"); + this.OnMeetingHostManOtherChanged(); + } + } + } + + 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.Meeting_SpecialMeeting")] public partial class Meeting_SpecialMeeting : INotifyPropertyChanging, INotifyPropertyChanged { @@ -222771,6 +229256,366 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_CompanyBranchPerson")] + public partial class Person_CompanyBranchPerson : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CompanyBranchPersonId; + + private string _UnitId; + + private string _PersonName; + + private string _Sex; + + private string _IdentityCard; + + private string _WorkPostId; + + private string _Telephone; + + private string _Address; + + private System.Nullable _IsOnJob; + + private string _Remark; + + private EntityRef _Base_Unit; + + private EntityRef _Base_WorkPost; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCompanyBranchPersonIdChanging(string value); + partial void OnCompanyBranchPersonIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnPersonNameChanging(string value); + partial void OnPersonNameChanged(); + partial void OnSexChanging(string value); + partial void OnSexChanged(); + partial void OnIdentityCardChanging(string value); + partial void OnIdentityCardChanged(); + partial void OnWorkPostIdChanging(string value); + partial void OnWorkPostIdChanged(); + partial void OnTelephoneChanging(string value); + partial void OnTelephoneChanged(); + partial void OnAddressChanging(string value); + partial void OnAddressChanged(); + partial void OnIsOnJobChanging(System.Nullable value); + partial void OnIsOnJobChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public Person_CompanyBranchPerson() + { + this._Base_Unit = default(EntityRef); + this._Base_WorkPost = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompanyBranchPersonId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CompanyBranchPersonId + { + get + { + return this._CompanyBranchPersonId; + } + set + { + if ((this._CompanyBranchPersonId != value)) + { + this.OnCompanyBranchPersonIdChanging(value); + this.SendPropertyChanging(); + this._CompanyBranchPersonId = value; + this.SendPropertyChanged("CompanyBranchPersonId"); + this.OnCompanyBranchPersonIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonName", DbType="NVarChar(50)")] + public string PersonName + { + get + { + return this._PersonName; + } + set + { + if ((this._PersonName != value)) + { + this.OnPersonNameChanging(value); + this.SendPropertyChanging(); + this._PersonName = value; + this.SendPropertyChanged("PersonName"); + this.OnPersonNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Sex", DbType="Char(1)")] + public string Sex + { + get + { + return this._Sex; + } + set + { + if ((this._Sex != value)) + { + this.OnSexChanging(value); + this.SendPropertyChanging(); + this._Sex = value; + this.SendPropertyChanged("Sex"); + this.OnSexChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdentityCard", DbType="NVarChar(50)")] + public string IdentityCard + { + get + { + return this._IdentityCard; + } + set + { + if ((this._IdentityCard != value)) + { + this.OnIdentityCardChanging(value); + this.SendPropertyChanging(); + this._IdentityCard = value; + this.SendPropertyChanged("IdentityCard"); + this.OnIdentityCardChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPostId", DbType="NVarChar(50)")] + public string WorkPostId + { + get + { + return this._WorkPostId; + } + set + { + if ((this._WorkPostId != value)) + { + if (this._Base_WorkPost.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnWorkPostIdChanging(value); + this.SendPropertyChanging(); + this._WorkPostId = value; + this.SendPropertyChanged("WorkPostId"); + this.OnWorkPostIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Telephone", DbType="NVarChar(50)")] + public string Telephone + { + get + { + return this._Telephone; + } + set + { + if ((this._Telephone != value)) + { + this.OnTelephoneChanging(value); + this.SendPropertyChanging(); + this._Telephone = value; + this.SendPropertyChanged("Telephone"); + this.OnTelephoneChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(500)")] + public string Address + { + get + { + return this._Address; + } + set + { + if ((this._Address != value)) + { + this.OnAddressChanging(value); + this.SendPropertyChanging(); + this._Address = value; + this.SendPropertyChanged("Address"); + this.OnAddressChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOnJob", DbType="Bit")] + public System.Nullable IsOnJob + { + get + { + return this._IsOnJob; + } + set + { + if ((this._IsOnJob != value)) + { + this.OnIsOnJobChanging(value); + this.SendPropertyChanging(); + this._IsOnJob = value; + this.SendPropertyChanged("IsOnJob"); + this.OnIsOnJobChanged(); + } + } + } + + [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.AssociationAttribute(Name="FK_Person_CompanyBranchPerson_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.Person_CompanyBranchPerson.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.Person_CompanyBranchPerson.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_CompanyBranchPerson_Base_WorkPost", Storage="_Base_WorkPost", ThisKey="WorkPostId", OtherKey="WorkPostId", IsForeignKey=true)] + public Base_WorkPost Base_WorkPost + { + get + { + return this._Base_WorkPost.Entity; + } + set + { + Base_WorkPost previousValue = this._Base_WorkPost.Entity; + if (((previousValue != value) + || (this._Base_WorkPost.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_WorkPost.Entity = null; + previousValue.Person_CompanyBranchPerson.Remove(this); + } + this._Base_WorkPost.Entity = value; + if ((value != null)) + { + value.Person_CompanyBranchPerson.Add(this); + this._WorkPostId = value.WorkPostId; + } + else + { + this._WorkPostId = default(string); + } + this.SendPropertyChanged("Base_WorkPost"); + } + } + } + + 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.Person_Duty")] public partial class Person_Duty : INotifyPropertyChanging, INotifyPropertyChanged { @@ -284279,6 +291124,8 @@ namespace Model private string _IsIssued; + private string _CheckType; + private EntitySet _Supervise_SubUnitCheckRectify; private EntityRef _Base_Project; @@ -284309,6 +291156,8 @@ namespace Model partial void OnAttachUrlChanged(); partial void OnIsIssuedChanging(string value); partial void OnIsIssuedChanged(); + partial void OnCheckTypeChanging(string value); + partial void OnCheckTypeChanged(); #endregion public Supervise_SuperviseCheckReport() @@ -284508,6 +291357,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckType", DbType="Char(1)")] + public string CheckType + { + get + { + return this._CheckType; + } + set + { + if ((this._CheckType != value)) + { + this.OnCheckTypeChanging(value); + this.SendPropertyChanging(); + this._CheckType = value; + this.SendPropertyChanged("CheckType"); + this.OnCheckTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Supervise_SubUnitCheckRectify_Supervise_SuperviseCheckReport", Storage="_Supervise_SubUnitCheckRectify", ThisKey="SuperviseCheckReportId", OtherKey="SuperviseCheckReportId", DeleteRule="NO ACTION")] public EntitySet Supervise_SubUnitCheckRectify { @@ -334425,6 +341294,8 @@ namespace Model private System.Nullable _SafeSupervisionIsOK; + private string _Risk_Level; + private string _ProjectName; private string _CheckCycle; @@ -334949,6 +341820,22 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Risk_Level", DbType="NVarChar(50)")] + public string Risk_Level + { + get + { + return this._Risk_Level; + } + set + { + if ((this._Risk_Level != value)) + { + this._Risk_Level = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(100)")] public string ProjectName { @@ -339059,7 +345946,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")] public string CanWelderCode { get @@ -339075,7 +345962,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")] public string CanWelderId { get @@ -349931,10 +356818,16 @@ namespace Model private string _UnitName; + private string _UnitTypeId; + + private string _UnitTypeName; + private string _UserName; private string _WorkAreaId; + private string _WorkStatesStr; + private System.Nullable _StartDate; private System.Nullable _EndDate; @@ -350203,6 +357096,38 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitTypeId", DbType="NVarChar(50)")] + public string UnitTypeId + { + get + { + return this._UnitTypeId; + } + set + { + if ((this._UnitTypeId != value)) + { + this._UnitTypeId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitTypeName", DbType="NVarChar(50)")] + public string UnitTypeName + { + get + { + return this._UnitTypeName; + } + set + { + if ((this._UnitTypeName != value)) + { + this._UnitTypeName = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(50)")] public string UserName { @@ -350235,6 +357160,22 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkStatesStr", DbType="VarChar(6) NOT NULL", CanBeNull=false)] + public string WorkStatesStr + { + get + { + return this._WorkStatesStr; + } + set + { + if ((this._WorkStatesStr != value)) + { + this._WorkStatesStr = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")] public System.Nullable StartDate { @@ -365142,6 +372083,8 @@ namespace Model private string _SourceBreakdownId; + private string _CheckAcceptType; + private EntityRef _Base_Project; private EntityRef _Sys_User; @@ -365198,6 +372141,8 @@ namespace Model partial void OnYeZhuChanged(); partial void OnSourceBreakdownIdChanging(string value); partial void OnSourceBreakdownIdChanged(); + partial void OnCheckAcceptTypeChanging(string value); + partial void OnCheckAcceptTypeChanged(); #endregion public WBS_BreakdownProject() @@ -365695,6 +372640,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckAcceptType", DbType="Char(1)")] + public string CheckAcceptType + { + get + { + return this._CheckAcceptType; + } + set + { + if ((this._CheckAcceptType != value)) + { + this.OnCheckAcceptTypeChanging(value); + this.SendPropertyChanging(); + this._CheckAcceptType = value; + this.SendPropertyChanged("CheckAcceptType"); + this.OnCheckAcceptTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_BreakdownProject_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -369454,6 +376419,8 @@ namespace Model private string _OldDivisionId; + private string _SubItemType; + private EntityRef _Base_Project; #region 可扩展性方法定义 @@ -369480,6 +376447,8 @@ namespace Model partial void OnUnitWorkIdChanged(); partial void OnOldDivisionIdChanging(string value); partial void OnOldDivisionIdChanged(); + partial void OnSubItemTypeChanging(string value); + partial void OnSubItemTypeChanged(); #endregion public WBS_DivisionProject() @@ -369692,6 +376661,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubItemType", DbType="Char(1)")] + public string SubItemType + { + get + { + return this._SubItemType; + } + set + { + if ((this._SubItemType != value)) + { + this.OnSubItemTypeChanging(value); + this.SendPropertyChanging(); + this._SubItemType = value; + this.SendPropertyChanged("SubItemType"); + this.OnSubItemTypeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_DivisionProject_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project {