This commit is contained in:
2025-09-24 11:27:49 +08:00
parent 3ad6b67803
commit 9577a0ce23
15 changed files with 167 additions and 130 deletions
+2 -71
View File
@@ -96205,7 +96205,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsedPlace", DbType="NVarChar(100)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsedPlace", DbType="NVarChar(500)")]
public string UsedPlace
{
get
@@ -100374,8 +100374,6 @@ 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);
@@ -100430,7 +100428,6 @@ 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();
}
@@ -100850,7 +100847,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Supervisor", DbType="NVarChar(50)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Supervisor", DbType="NVarChar(1000)")]
public string Supervisor
{
get
@@ -100861,10 +100858,6 @@ namespace Model
{
if ((this._Supervisor != value))
{
if (this._SupervisorSys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnSupervisorChanging(value);
this.SendPropertyChanging();
this._Supervisor = value;
@@ -101010,40 +101003,6 @@ 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;
@@ -374206,8 +374165,6 @@ namespace Model
private EntitySet<Comprehensive_InspectionPerson> _Comprehensive_InspectionPerson;
private EntitySet<Comprehensive_NCRManagement> _Comprehensive_NCRManagement_Sys_User;
private EntitySet<Comprehensive_QualityAccident> _Comprehensive_QualityAccident;
private EntitySet<Comprehensive_QualityAssurance> _Comprehensive_QualityAssurance;
@@ -374957,7 +374914,6 @@ 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._Comprehensive_QualityAssurance = new EntitySet<Comprehensive_QualityAssurance>(new Action<Comprehensive_QualityAssurance>(this.attach_Comprehensive_QualityAssurance), new Action<Comprehensive_QualityAssurance>(this.detach_Comprehensive_QualityAssurance));
this._CostGoods_CostManage = new EntitySet<CostGoods_CostManage>(new Action<CostGoods_CostManage>(this.attach_CostGoods_CostManage), new Action<CostGoods_CostManage>(this.detach_CostGoods_CostManage));
@@ -377267,19 +377223,6 @@ 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
{
@@ -381913,18 +381856,6 @@ 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();