20240701 修改NCR

This commit is contained in:
2024-07-01 14:09:40 +08:00
parent 4b4f52d903
commit 188c6bf3c3
14 changed files with 328 additions and 70 deletions
+93
View File
@@ -98557,6 +98557,8 @@ namespace Model
private System.Nullable<int> _RemarkCode;
private string _Supervisor;
private EntityRef<Sys_User> _Sys_User;
private EntityRef<Base_CNProfessional> _Base_CNProfessional;
@@ -98565,6 +98567,8 @@ namespace Model
private EntityRef<Base_Unit> _Base_Unit;
private EntityRef<Sys_User> _SupervisorSys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -98609,6 +98613,8 @@ namespace Model
partial void OnProblemChanged();
partial void OnRemarkCodeChanging(System.Nullable<int> value);
partial void OnRemarkCodeChanged();
partial void OnSupervisorChanging(string value);
partial void OnSupervisorChanged();
#endregion
public Comprehensive_NCRManagement()
@@ -98617,6 +98623,7 @@ namespace Model
this._Base_CNProfessional = default(EntityRef<Base_CNProfessional>);
this._Base_Project = default(EntityRef<Base_Project>);
this._Base_Unit = default(EntityRef<Base_Unit>);
this._SupervisorSys_User = default(EntityRef<Sys_User>);
OnCreated();
}
@@ -99036,6 +99043,30 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Supervisor", DbType="NVarChar(50)")]
public string Supervisor
{
get
{
return this._Supervisor;
}
set
{
if ((this._Supervisor != value))
{
if (this._SupervisorSys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnSupervisorChanging(value);
this.SendPropertyChanging();
this._Supervisor = value;
this.SendPropertyChanged("Supervisor");
this.OnSupervisorChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Comprehensive_NCRManagement_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
@@ -99172,6 +99203,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_NCRManagement_Sys_User", Storage="_SupervisorSys_User", ThisKey="Supervisor", OtherKey="UserId", IsForeignKey=true)]
public Sys_User SupervisorSys_User
{
get
{
return this._SupervisorSys_User.Entity;
}
set
{
Sys_User previousValue = this._SupervisorSys_User.Entity;
if (((previousValue != value)
|| (this._SupervisorSys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._SupervisorSys_User.Entity = null;
previousValue.Comprehensive_NCRManagement_Sys_User.Remove(this);
}
this._SupervisorSys_User.Entity = value;
if ((value != null))
{
value.Comprehensive_NCRManagement_Sys_User.Add(this);
this._Supervisor = value.UserId;
}
else
{
this._Supervisor = default(string);
}
this.SendPropertyChanged("SupervisorSys_User");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -354844,6 +354909,8 @@ namespace Model
private EntitySet<Comprehensive_InspectionPerson> _Comprehensive_InspectionPerson;
private EntitySet<Comprehensive_NCRManagement> _Comprehensive_NCRManagement_Sys_User;
private EntitySet<Comprehensive_QualityAccident> _Comprehensive_QualityAccident;
private EntitySet<CostGoods_CostManage> _CostGoods_CostManage;
@@ -355583,6 +355650,7 @@ namespace Model
this._Comprehensive_DesignChangeOrder = new EntitySet<Comprehensive_DesignChangeOrder>(new Action<Comprehensive_DesignChangeOrder>(this.attach_Comprehensive_DesignChangeOrder), new Action<Comprehensive_DesignChangeOrder>(this.detach_Comprehensive_DesignChangeOrder));
this._Comprehensive_DesignDetails = new EntitySet<Comprehensive_DesignDetails>(new Action<Comprehensive_DesignDetails>(this.attach_Comprehensive_DesignDetails), new Action<Comprehensive_DesignDetails>(this.detach_Comprehensive_DesignDetails));
this._Comprehensive_InspectionPerson = new EntitySet<Comprehensive_InspectionPerson>(new Action<Comprehensive_InspectionPerson>(this.attach_Comprehensive_InspectionPerson), new Action<Comprehensive_InspectionPerson>(this.detach_Comprehensive_InspectionPerson));
this._Comprehensive_NCRManagement_Sys_User = new EntitySet<Comprehensive_NCRManagement>(new Action<Comprehensive_NCRManagement>(this.attach_Comprehensive_NCRManagement_Sys_User), new Action<Comprehensive_NCRManagement>(this.detach_Comprehensive_NCRManagement_Sys_User));
this._Comprehensive_QualityAccident = new EntitySet<Comprehensive_QualityAccident>(new Action<Comprehensive_QualityAccident>(this.attach_Comprehensive_QualityAccident), new Action<Comprehensive_QualityAccident>(this.detach_Comprehensive_QualityAccident));
this._CostGoods_CostManage = new EntitySet<CostGoods_CostManage>(new Action<CostGoods_CostManage>(this.attach_CostGoods_CostManage), new Action<CostGoods_CostManage>(this.detach_CostGoods_CostManage));
this._CostGoods_GoodsManage = new EntitySet<CostGoods_GoodsManage>(new Action<CostGoods_GoodsManage>(this.attach_CostGoods_GoodsManage), new Action<CostGoods_GoodsManage>(this.detach_CostGoods_GoodsManage));
@@ -357849,6 +357917,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_NCRManagement_Sys_User", Storage="_Comprehensive_NCRManagement_Sys_User", ThisKey="UserId", OtherKey="Supervisor", DeleteRule="NO ACTION")]
public EntitySet<Comprehensive_NCRManagement> Comprehensive_NCRManagement_Sys_User
{
get
{
return this._Comprehensive_NCRManagement_Sys_User;
}
set
{
this._Comprehensive_NCRManagement_Sys_User.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_QualityAccident_Sys_User", Storage="_Comprehensive_QualityAccident", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<Comprehensive_QualityAccident> Comprehensive_QualityAccident
{
@@ -362443,6 +362524,18 @@ namespace Model
entity.Sys_User = null;
}
private void attach_Comprehensive_NCRManagement_Sys_User(Comprehensive_NCRManagement entity)
{
this.SendPropertyChanging();
entity.SupervisorSys_User = this;
}
private void detach_Comprehensive_NCRManagement_Sys_User(Comprehensive_NCRManagement entity)
{
this.SendPropertyChanging();
entity.SupervisorSys_User = null;
}
private void attach_Comprehensive_QualityAccident(Comprehensive_QualityAccident entity)
{
this.SendPropertyChanging();