提交代码

This commit is contained in:
高飞 2024-01-26 10:14:03 +08:00
parent 7509bd1d47
commit 3777a0ff08
2 changed files with 443 additions and 5 deletions

View File

@ -0,0 +1,29 @@
CREATE TABLE [dbo].[Transfer_ProjectSetup](
[ProjectSetupId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[SN] [nvarchar](50) NULL,
[PlantNo] [nvarchar](50) NULL,
[PlantName] [nvarchar](200) NULL,
[CommissioningSystem] [nvarchar](50) NULL,
[CommissioningCodeDescription] [nvarchar](50) NULL,
[SubCommissioningSystem] [nvarchar](50) NULL,
[SubCommissioningCodeDescription] [nvarchar](50) NULL,
[DescriptionArea] [nvarchar](50) NULL,
[TurnoverSystemSequenceNumber] [nvarchar](50) NULL,
[Description] [nvarchar](50) NULL,
[TurnoverCode] [nvarchar](50) NULL,
[TurnoverDescription] [nvarchar](50) NULL,
[Remark] [nvarchar](200) NULL,
CONSTRAINT [PK_Transfer_ProjectSetup] PRIMARY KEY CLUSTERED
(
[ProjectSetupId] 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
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ProjectSetup' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Transfer_ProjectSetup'
GO

View File

@ -22,7 +22,7 @@ namespace Model
using System; using System;
public partial class SGGLDB : System.Data.Linq.DataContext public partial class SGGLDB_WH : System.Data.Linq.DataContext
{ {
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
@ -2333,6 +2333,9 @@ namespace Model
partial void InsertTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void InsertTraining_TrainTestDBItem(Training_TrainTestDBItem instance);
partial void UpdateTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void UpdateTraining_TrainTestDBItem(Training_TrainTestDBItem instance);
partial void DeleteTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void DeleteTraining_TrainTestDBItem(Training_TrainTestDBItem instance);
partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance);
partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance);
partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance);
partial void InsertUnqualified_WorkContact(Unqualified_WorkContact instance); partial void InsertUnqualified_WorkContact(Unqualified_WorkContact instance);
partial void UpdateUnqualified_WorkContact(Unqualified_WorkContact instance); partial void UpdateUnqualified_WorkContact(Unqualified_WorkContact instance);
partial void DeleteUnqualified_WorkContact(Unqualified_WorkContact instance); partial void DeleteUnqualified_WorkContact(Unqualified_WorkContact instance);
@ -2488,25 +2491,25 @@ namespace Model
partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance); partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance);
#endregion #endregion
public SGGLDB(string connection) : public SGGLDB_WH(string connection) :
base(connection, mappingSource) base(connection, mappingSource)
{ {
OnCreated(); OnCreated();
} }
public SGGLDB(System.Data.IDbConnection connection) : public SGGLDB_WH(System.Data.IDbConnection connection) :
base(connection, mappingSource) base(connection, mappingSource)
{ {
OnCreated(); OnCreated();
} }
public SGGLDB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : public SGGLDB_WH(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource) base(connection, mappingSource)
{ {
OnCreated(); OnCreated();
} }
public SGGLDB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : public SGGLDB_WH(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource) base(connection, mappingSource)
{ {
OnCreated(); OnCreated();
@ -8672,6 +8675,14 @@ namespace Model
} }
} }
public System.Data.Linq.Table<Transfer_ProjectSetup> Transfer_ProjectSetup
{
get
{
return this.GetTable<Transfer_ProjectSetup>();
}
}
public System.Data.Linq.Table<Unqualified_WorkContact> Unqualified_WorkContact public System.Data.Linq.Table<Unqualified_WorkContact> Unqualified_WorkContact
{ {
get get
@ -367721,6 +367732,404 @@ namespace Model
} }
} }
[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 _ProjectId;
private string _SN;
private string _PlantNo;
private string _PlantName;
private string _CommissioningSystem;
private string _CommissioningCodeDescription;
private string _SubCommissioningSystem;
private string _SubCommissioningCodeDescription;
private string _DescriptionArea;
private string _TurnoverSystemSequenceNumber;
private string _Description;
private string _TurnoverCode;
private string _TurnoverDescription;
private string _Remark;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnProjectSetupIdChanging(string value);
partial void OnProjectSetupIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnSNChanging(string value);
partial void OnSNChanged();
partial void OnPlantNoChanging(string value);
partial void OnPlantNoChanged();
partial void OnPlantNameChanging(string value);
partial void OnPlantNameChanged();
partial void OnCommissioningSystemChanging(string value);
partial void OnCommissioningSystemChanged();
partial void OnCommissioningCodeDescriptionChanging(string value);
partial void OnCommissioningCodeDescriptionChanged();
partial void OnSubCommissioningSystemChanging(string value);
partial void OnSubCommissioningSystemChanged();
partial void OnSubCommissioningCodeDescriptionChanging(string value);
partial void OnSubCommissioningCodeDescriptionChanged();
partial void OnDescriptionAreaChanging(string value);
partial void OnDescriptionAreaChanged();
partial void OnTurnoverSystemSequenceNumberChanging(string value);
partial void OnTurnoverSystemSequenceNumberChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
partial void OnTurnoverCodeChanging(string value);
partial void OnTurnoverCodeChanged();
partial void OnTurnoverDescriptionChanging(string value);
partial void OnTurnoverDescriptionChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
#endregion
public Transfer_ProjectSetup()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSetupId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ProjectSetupId
{
get
{
return this._ProjectSetupId;
}
set
{
if ((this._ProjectSetupId != value))
{
this.OnProjectSetupIdChanging(value);
this.SendPropertyChanging();
this._ProjectSetupId = value;
this.SendPropertyChanged("ProjectSetupId");
this.OnProjectSetupIdChanged();
}
}
}
[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="_SN", DbType="NVarChar(50)")]
public string SN
{
get
{
return this._SN;
}
set
{
if ((this._SN != value))
{
this.OnSNChanging(value);
this.SendPropertyChanging();
this._SN = value;
this.SendPropertyChanged("SN");
this.OnSNChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlantNo", DbType="NVarChar(50)")]
public string PlantNo
{
get
{
return this._PlantNo;
}
set
{
if ((this._PlantNo != value))
{
this.OnPlantNoChanging(value);
this.SendPropertyChanging();
this._PlantNo = value;
this.SendPropertyChanged("PlantNo");
this.OnPlantNoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlantName", DbType="NVarChar(200)")]
public string PlantName
{
get
{
return this._PlantName;
}
set
{
if ((this._PlantName != value))
{
this.OnPlantNameChanging(value);
this.SendPropertyChanging();
this._PlantName = value;
this.SendPropertyChanged("PlantName");
this.OnPlantNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommissioningSystem", DbType="NVarChar(50)")]
public string CommissioningSystem
{
get
{
return this._CommissioningSystem;
}
set
{
if ((this._CommissioningSystem != value))
{
this.OnCommissioningSystemChanging(value);
this.SendPropertyChanging();
this._CommissioningSystem = value;
this.SendPropertyChanged("CommissioningSystem");
this.OnCommissioningSystemChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommissioningCodeDescription", DbType="NVarChar(50)")]
public string CommissioningCodeDescription
{
get
{
return this._CommissioningCodeDescription;
}
set
{
if ((this._CommissioningCodeDescription != value))
{
this.OnCommissioningCodeDescriptionChanging(value);
this.SendPropertyChanging();
this._CommissioningCodeDescription = value;
this.SendPropertyChanged("CommissioningCodeDescription");
this.OnCommissioningCodeDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubCommissioningSystem", DbType="NVarChar(50)")]
public string SubCommissioningSystem
{
get
{
return this._SubCommissioningSystem;
}
set
{
if ((this._SubCommissioningSystem != value))
{
this.OnSubCommissioningSystemChanging(value);
this.SendPropertyChanging();
this._SubCommissioningSystem = value;
this.SendPropertyChanged("SubCommissioningSystem");
this.OnSubCommissioningSystemChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubCommissioningCodeDescription", DbType="NVarChar(50)")]
public string SubCommissioningCodeDescription
{
get
{
return this._SubCommissioningCodeDescription;
}
set
{
if ((this._SubCommissioningCodeDescription != value))
{
this.OnSubCommissioningCodeDescriptionChanging(value);
this.SendPropertyChanging();
this._SubCommissioningCodeDescription = value;
this.SendPropertyChanged("SubCommissioningCodeDescription");
this.OnSubCommissioningCodeDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DescriptionArea", DbType="NVarChar(50)")]
public string DescriptionArea
{
get
{
return this._DescriptionArea;
}
set
{
if ((this._DescriptionArea != value))
{
this.OnDescriptionAreaChanging(value);
this.SendPropertyChanging();
this._DescriptionArea = value;
this.SendPropertyChanged("DescriptionArea");
this.OnDescriptionAreaChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverSystemSequenceNumber", DbType="NVarChar(50)")]
public string TurnoverSystemSequenceNumber
{
get
{
return this._TurnoverSystemSequenceNumber;
}
set
{
if ((this._TurnoverSystemSequenceNumber != value))
{
this.OnTurnoverSystemSequenceNumberChanging(value);
this.SendPropertyChanging();
this._TurnoverSystemSequenceNumber = value;
this.SendPropertyChanged("TurnoverSystemSequenceNumber");
this.OnTurnoverSystemSequenceNumberChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(50)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverCode", DbType="NVarChar(50)")]
public string TurnoverCode
{
get
{
return this._TurnoverCode;
}
set
{
if ((this._TurnoverCode != value))
{
this.OnTurnoverCodeChanging(value);
this.SendPropertyChanging();
this._TurnoverCode = value;
this.SendPropertyChanged("TurnoverCode");
this.OnTurnoverCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverDescription", DbType="NVarChar(50)")]
public string TurnoverDescription
{
get
{
return this._TurnoverDescription;
}
set
{
if ((this._TurnoverDescription != value))
{
this.OnTurnoverDescriptionChanging(value);
this.SendPropertyChanging();
this._TurnoverDescription = value;
this.SendPropertyChanged("TurnoverDescription");
this.OnTurnoverDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(200)")]
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();
}
}
}
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.Unqualified_WorkContact")] [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Unqualified_WorkContact")]
public partial class Unqualified_WorkContact : INotifyPropertyChanging, INotifyPropertyChanged public partial class Unqualified_WorkContact : INotifyPropertyChanging, INotifyPropertyChanged
{ {