diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql index 30e27e2f..ed9045bb 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql @@ -1,4 +1,4 @@ -CREATE TABLE [dbo].[Instrumentation]( +CREATE TABLE [dbo].[Transfer_Instrumentation]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [INSTRUMENTATION] [nvarchar](50) NULL, @@ -16,7 +16,7 @@ CREATE TABLE [dbo].[Instrumentation]( GO -CREATE TABLE [dbo].[Electrical]( +CREATE TABLE [dbo].[Transfer_Electrical]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [ELECTRICAL] [nvarchar](50) NULL, @@ -34,7 +34,7 @@ CREATE TABLE [dbo].[Electrical]( GO -CREATE TABLE [dbo].[Civil_Structure]( +CREATE TABLE [dbo].[Transfer_Civil_Structure]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [Civil_Structure] [nvarchar](50) NULL, @@ -52,7 +52,7 @@ CREATE TABLE [dbo].[Civil_Structure]( GO -CREATE TABLE [dbo].[Firefighting]( +CREATE TABLE [dbo].[Transfer_Firefighting]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Firefighting] [nvarchar](50) NULL, diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql index 8c172a4e..a884ec35 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql @@ -1,6 +1,6 @@ CREATE TABLE [dbo].[Transfer_ProjectSetup]( - [ProjectSetupId] [nvarchar](50) NOT NULL, + [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [SN] [nvarchar](50) NULL, [PlantNo] [nvarchar](50) NULL, @@ -17,7 +17,7 @@ CREATE TABLE [dbo].[Transfer_ProjectSetup]( [Remark] [nvarchar](200) NULL, CONSTRAINT [PK_Transfer_ProjectSetup] PRIMARY KEY CLUSTERED ( - [ProjectSetupId] ASC + [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] @@ -27,3 +27,77 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ProjectSetup' GO + + + +CREATE TABLE [dbo].[Transfer_Instrumentation]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [INSTRUMENTATION] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Instrumentation] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +CREATE TABLE [dbo].[Transfer_Electrical]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ELECTRICAL] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Electrical] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +CREATE TABLE [dbo].[Transfer_Civil_Structure]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NOT NULL, + [Civil_Structure] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Civil_Structure] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +CREATE TABLE [dbo].[Transfer_Firefighting]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Firefighting] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Firefighting] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO \ No newline at end of file diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 7d78db9f..4d71da9b 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -22,7 +22,7 @@ namespace Model using System; - public partial class SGGLDB_WH : System.Data.Linq.DataContext + public partial class SGGLDB : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); @@ -2333,6 +2333,18 @@ namespace Model partial void InsertTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void UpdateTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void DeleteTraining_TrainTestDBItem(Training_TrainTestDBItem instance); + partial void InsertTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void UpdateTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void DeleteTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void InsertTransfer_Electrical(Transfer_Electrical instance); + partial void UpdateTransfer_Electrical(Transfer_Electrical instance); + partial void DeleteTransfer_Electrical(Transfer_Electrical instance); + partial void InsertTransfer_Firefighting(Transfer_Firefighting instance); + partial void UpdateTransfer_Firefighting(Transfer_Firefighting instance); + partial void DeleteTransfer_Firefighting(Transfer_Firefighting instance); + partial void InsertTransfer_Instrumentation(Transfer_Instrumentation instance); + partial void UpdateTransfer_Instrumentation(Transfer_Instrumentation instance); + partial void DeleteTransfer_Instrumentation(Transfer_Instrumentation instance); partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance); @@ -2491,25 +2503,25 @@ namespace Model partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance); #endregion - public SGGLDB_WH(string connection) : + public SGGLDB(string connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(System.Data.IDbConnection connection) : + public SGGLDB(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); @@ -8675,6 +8687,38 @@ namespace Model } } + public System.Data.Linq.Table Transfer_Civil_Structure + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Electrical + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Firefighting + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Instrumentation + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Transfer_ProjectSetup { get @@ -367732,13 +367776,1029 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Civil_Structure")] + public partial class Transfer_Civil_Structure : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Civil_Structure; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnCivil_StructureChanging(string value); + partial void OnCivil_StructureChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Civil_Structure() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + 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="_Civil_Structure", DbType="NVarChar(50)")] + public string Civil_Structure + { + get + { + return this._Civil_Structure; + } + set + { + if ((this._Civil_Structure != value)) + { + this.OnCivil_StructureChanging(value); + this.SendPropertyChanging(); + this._Civil_Structure = value; + this.SendPropertyChanged("Civil_Structure"); + this.OnCivil_StructureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + 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.Transfer_Electrical")] + public partial class Transfer_Electrical : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _ELECTRICAL; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnELECTRICALChanging(string value); + partial void OnELECTRICALChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Electrical() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_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="_ELECTRICAL", DbType="NVarChar(50)")] + public string ELECTRICAL + { + get + { + return this._ELECTRICAL; + } + set + { + if ((this._ELECTRICAL != value)) + { + this.OnELECTRICALChanging(value); + this.SendPropertyChanging(); + this._ELECTRICAL = value; + this.SendPropertyChanged("ELECTRICAL"); + this.OnELECTRICALChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + 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.Transfer_Firefighting")] + public partial class Transfer_Firefighting : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Firefighting; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnFirefightingChanging(string value); + partial void OnFirefightingChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Firefighting() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_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="_Firefighting", DbType="NVarChar(50)")] + public string Firefighting + { + get + { + return this._Firefighting; + } + set + { + if ((this._Firefighting != value)) + { + this.OnFirefightingChanging(value); + this.SendPropertyChanging(); + this._Firefighting = value; + this.SendPropertyChanged("Firefighting"); + this.OnFirefightingChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + 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.Transfer_Instrumentation")] + public partial class Transfer_Instrumentation : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _INSTRUMENTATION; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnINSTRUMENTATIONChanging(string value); + partial void OnINSTRUMENTATIONChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Instrumentation() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_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="_INSTRUMENTATION", DbType="NVarChar(50)")] + public string INSTRUMENTATION + { + get + { + return this._INSTRUMENTATION; + } + set + { + if ((this._INSTRUMENTATION != value)) + { + this.OnINSTRUMENTATIONChanging(value); + this.SendPropertyChanging(); + this._INSTRUMENTATION = value; + this.SendPropertyChanged("INSTRUMENTATION"); + this.OnINSTRUMENTATIONChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + 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.Transfer_ProjectSetup")] public partial class Transfer_ProjectSetup : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - private string _ProjectSetupId; + private string _Id; private string _ProjectId; @@ -367772,8 +368832,8 @@ namespace Model partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); - partial void OnProjectSetupIdChanging(string value); - partial void OnProjectSetupIdChanged(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); partial void OnProjectIdChanging(string value); partial void OnProjectIdChanged(); partial void OnSNChanging(string value); @@ -367809,22 +368869,22 @@ namespace Model OnCreated(); } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSetupId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string ProjectSetupId + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id { get { - return this._ProjectSetupId; + return this._Id; } set { - if ((this._ProjectSetupId != value)) + if ((this._Id != value)) { - this.OnProjectSetupIdChanging(value); + this.OnIdChanging(value); this.SendPropertyChanging(); - this._ProjectSetupId = value; - this.SendPropertyChanged("ProjectSetupId"); - this.OnProjectSetupIdChanged(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); } } }