20240124 培训合同

This commit is contained in:
2024-01-24 19:41:02 +08:00
parent 698d687ebf
commit b1a95a2a14
13 changed files with 1334 additions and 9 deletions
+262
View File
@@ -2270,6 +2270,9 @@ namespace Model
partial void InsertTestRun_TermItemInspectedUser(TestRun_TermItemInspectedUser instance);
partial void UpdateTestRun_TermItemInspectedUser(TestRun_TermItemInspectedUser instance);
partial void DeleteTestRun_TermItemInspectedUser(TestRun_TermItemInspectedUser instance);
partial void InsertTestRun_TrainContract(TestRun_TrainContract instance);
partial void UpdateTestRun_TrainContract(TestRun_TrainContract instance);
partial void DeleteTestRun_TrainContract(TestRun_TrainContract instance);
partial void InsertTestRun_TrainRecords(TestRun_TrainRecords instance);
partial void UpdateTestRun_TrainRecords(TestRun_TrainRecords instance);
partial void DeleteTestRun_TrainRecords(TestRun_TrainRecords instance);
@@ -8504,6 +8507,14 @@ namespace Model
}
}
public System.Data.Linq.Table<TestRun_TrainContract> TestRun_TrainContract
{
get
{
return this.GetTable<TestRun_TrainContract>();
}
}
public System.Data.Linq.Table<TestRun_TrainRecords> TestRun_TrainRecords
{
get
@@ -25806,6 +25817,8 @@ namespace Model
private EntitySet<TestRun_PersonTrainPlan> _TestRun_PersonTrainPlan;
private EntitySet<TestRun_TrainContract> _TestRun_TrainContract;
private EntitySet<TestRun_TrainRecords> _TestRun_TrainRecords;
private EntitySet<Training_Plan> _Training_Plan;
@@ -26206,6 +26219,7 @@ namespace Model
this._Sys_User = new EntitySet<Sys_User>(new Action<Sys_User>(this.attach_Sys_User), new Action<Sys_User>(this.detach_Sys_User));
this._Sys_UserRead = new EntitySet<Sys_UserRead>(new Action<Sys_UserRead>(this.attach_Sys_UserRead), new Action<Sys_UserRead>(this.detach_Sys_UserRead));
this._TestRun_PersonTrainPlan = new EntitySet<TestRun_PersonTrainPlan>(new Action<TestRun_PersonTrainPlan>(this.attach_TestRun_PersonTrainPlan), new Action<TestRun_PersonTrainPlan>(this.detach_TestRun_PersonTrainPlan));
this._TestRun_TrainContract = new EntitySet<TestRun_TrainContract>(new Action<TestRun_TrainContract>(this.attach_TestRun_TrainContract), new Action<TestRun_TrainContract>(this.detach_TestRun_TrainContract));
this._TestRun_TrainRecords = new EntitySet<TestRun_TrainRecords>(new Action<TestRun_TrainRecords>(this.attach_TestRun_TrainRecords), new Action<TestRun_TrainRecords>(this.detach_TestRun_TrainRecords));
this._Training_Plan = new EntitySet<Training_Plan>(new Action<Training_Plan>(this.attach_Training_Plan), new Action<Training_Plan>(this.detach_Training_Plan));
this._Training_Task = new EntitySet<Training_Task>(new Action<Training_Task>(this.attach_Training_Task), new Action<Training_Task>(this.detach_Training_Task));
@@ -30615,6 +30629,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_TestRun_TrainContract_Base_Project", Storage="_TestRun_TrainContract", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<TestRun_TrainContract> TestRun_TrainContract
{
get
{
return this._TestRun_TrainContract;
}
set
{
this._TestRun_TrainContract.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_TestRun_TrainRecords_Base_Project", Storage="_TestRun_TrainRecords", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<TestRun_TrainRecords> TestRun_TrainRecords
{
@@ -34135,6 +34162,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_TestRun_TrainContract(TestRun_TrainContract entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_TestRun_TrainContract(TestRun_TrainContract entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_TestRun_TrainRecords(TestRun_TrainRecords entity)
{
this.SendPropertyChanging();
@@ -359310,6 +359349,229 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.TestRun_TrainContract")]
public partial class TestRun_TrainContract : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _TrainContractId;
private string _ProjectId;
private string _TrainContractCode;
private string _TrainContractName;
private System.Nullable<System.DateTime> _TrainContractDate;
private string _Remark;
private EntityRef<Base_Project> _Base_Project;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnTrainContractIdChanging(string value);
partial void OnTrainContractIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnTrainContractCodeChanging(string value);
partial void OnTrainContractCodeChanged();
partial void OnTrainContractNameChanging(string value);
partial void OnTrainContractNameChanged();
partial void OnTrainContractDateChanging(System.Nullable<System.DateTime> value);
partial void OnTrainContractDateChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
#endregion
public TestRun_TrainContract()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainContractId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string TrainContractId
{
get
{
return this._TrainContractId;
}
set
{
if ((this._TrainContractId != value))
{
this.OnTrainContractIdChanging(value);
this.SendPropertyChanging();
this._TrainContractId = value;
this.SendPropertyChanged("TrainContractId");
this.OnTrainContractIdChanged();
}
}
}
[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="_TrainContractCode", DbType="NVarChar(50)")]
public string TrainContractCode
{
get
{
return this._TrainContractCode;
}
set
{
if ((this._TrainContractCode != value))
{
this.OnTrainContractCodeChanging(value);
this.SendPropertyChanging();
this._TrainContractCode = value;
this.SendPropertyChanged("TrainContractCode");
this.OnTrainContractCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainContractName", DbType="NVarChar(50)")]
public string TrainContractName
{
get
{
return this._TrainContractName;
}
set
{
if ((this._TrainContractName != value))
{
this.OnTrainContractNameChanging(value);
this.SendPropertyChanging();
this._TrainContractName = value;
this.SendPropertyChanged("TrainContractName");
this.OnTrainContractNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrainContractDate", DbType="DateTime")]
public System.Nullable<System.DateTime> TrainContractDate
{
get
{
return this._TrainContractDate;
}
set
{
if ((this._TrainContractDate != value))
{
this.OnTrainContractDateChanging(value);
this.SendPropertyChanging();
this._TrainContractDate = value;
this.SendPropertyChanged("TrainContractDate");
this.OnTrainContractDateChanged();
}
}
}
[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_TestRun_TrainContract_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.TestRun_TrainContract.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.TestRun_TrainContract.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.TestRun_TrainRecords")]
public partial class TestRun_TrainRecords : INotifyPropertyChanging, INotifyPropertyChanged
{