This commit is contained in:
2024-01-29 18:34:54 +08:00
parent 12ecb5309e
commit 7f67a750c8
27 changed files with 1217 additions and 404 deletions
+25 -70
View File
@@ -148717,8 +148717,6 @@ namespace Model
private EntityRef<Sys_User> _Sys_User;
private EntityRef<Sys_User> _ControllingPersonSys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -148753,7 +148751,6 @@ namespace Model
{
this._Base_Project = default(EntityRef<Base_Project>);
this._Sys_User = default(EntityRef<Sys_User>);
this._ControllingPersonSys_User = default(EntityRef<Sys_User>);
OnCreated();
}
@@ -148985,7 +148982,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControllingPerson", DbType="NVarChar(50)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControllingPerson", DbType="NVarChar(500)")]
public string ControllingPerson
{
get
@@ -148996,10 +148993,6 @@ namespace Model
{
if ((this._ControllingPerson != value))
{
if (this._ControllingPersonSys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnControllingPersonChanging(value);
this.SendPropertyChanging();
this._ControllingPerson = value;
@@ -149077,40 +149070,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Hazard_HazardList_Sys_User1", Storage="_ControllingPersonSys_User", ThisKey="ControllingPerson", OtherKey="UserId", IsForeignKey=true)]
public Sys_User ControllingPersonSys_User
{
get
{
return this._ControllingPersonSys_User.Entity;
}
set
{
Sys_User previousValue = this._ControllingPersonSys_User.Entity;
if (((previousValue != value)
|| (this._ControllingPersonSys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._ControllingPersonSys_User.Entity = null;
previousValue.Hazard_HazardList_Sys_User1.Remove(this);
}
this._ControllingPersonSys_User.Entity = value;
if ((value != null))
{
value.Hazard_HazardList_Sys_User1.Add(this);
this._ControllingPerson = value.UserId;
}
else
{
this._ControllingPerson = default(string);
}
this.SendPropertyChanged("ControllingPersonSys_User");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -180722,6 +180681,8 @@ namespace Model
private System.Nullable<bool> _IsUsed;
private System.Nullable<bool> _IsIn;
private EntityRef<Base_SpecialEquipment> _Base_SpecialEquipment;
private EntityRef<InApproveManager_EquipmentIn> _InApproveManager_EquipmentIn;
@@ -180756,6 +180717,8 @@ namespace Model
partial void OnCommercialInsuranceNumChanged();
partial void OnIsUsedChanging(System.Nullable<bool> value);
partial void OnIsUsedChanged();
partial void OnIsInChanging(System.Nullable<bool> value);
partial void OnIsInChanged();
#endregion
public InApproveManager_EquipmentInItem()
@@ -181033,6 +180996,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsIn", DbType="Bit")]
public System.Nullable<bool> IsIn
{
get
{
return this._IsIn;
}
set
{
if ((this._IsIn != value))
{
this.OnIsInChanging(value);
this.SendPropertyChanging();
this._IsIn = value;
this.SendPropertyChanged("IsIn");
this.OnIsInChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentInItem_Base_SpecialEquipment", Storage="_Base_SpecialEquipment", ThisKey="SpecialEquipmentId", OtherKey="SpecialEquipmentId", IsForeignKey=true)]
public Base_SpecialEquipment Base_SpecialEquipment
{
@@ -339649,8 +339632,6 @@ namespace Model
private EntitySet<Hazard_HazardList> _Hazard_HazardList;
private EntitySet<Hazard_HazardList> _Hazard_HazardList_Sys_User1;
private EntitySet<InApproveManager_EquipmentIn> _InApproveManager_EquipmentIn;
private EntitySet<InApproveManager_EquipmentOut> _InApproveManager_EquipmentOut;
@@ -340292,7 +340273,6 @@ namespace Model
this._Hazard_EnvironmentalRiskList = new EntitySet<Hazard_EnvironmentalRiskList>(new Action<Hazard_EnvironmentalRiskList>(this.attach_Hazard_EnvironmentalRiskList), new Action<Hazard_EnvironmentalRiskList>(this.detach_Hazard_EnvironmentalRiskList));
this._Hazard_EnvironmentalRiskList_Sys_User1 = new EntitySet<Hazard_EnvironmentalRiskList>(new Action<Hazard_EnvironmentalRiskList>(this.attach_Hazard_EnvironmentalRiskList_Sys_User1), new Action<Hazard_EnvironmentalRiskList>(this.detach_Hazard_EnvironmentalRiskList_Sys_User1));
this._Hazard_HazardList = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList));
this._Hazard_HazardList_Sys_User1 = new EntitySet<Hazard_HazardList>(new Action<Hazard_HazardList>(this.attach_Hazard_HazardList_Sys_User1), new Action<Hazard_HazardList>(this.detach_Hazard_HazardList_Sys_User1));
this._InApproveManager_EquipmentIn = new EntitySet<InApproveManager_EquipmentIn>(new Action<InApproveManager_EquipmentIn>(this.attach_InApproveManager_EquipmentIn), new Action<InApproveManager_EquipmentIn>(this.detach_InApproveManager_EquipmentIn));
this._InApproveManager_EquipmentOut = new EntitySet<InApproveManager_EquipmentOut>(new Action<InApproveManager_EquipmentOut>(this.attach_InApproveManager_EquipmentOut), new Action<InApproveManager_EquipmentOut>(this.detach_InApproveManager_EquipmentOut));
this._InApproveManager_EquipmentQualityIn = new EntitySet<InApproveManager_EquipmentQualityIn>(new Action<InApproveManager_EquipmentQualityIn>(this.attach_InApproveManager_EquipmentQualityIn), new Action<InApproveManager_EquipmentQualityIn>(this.detach_InApproveManager_EquipmentQualityIn));
@@ -343091,19 +343071,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Hazard_HazardList_Sys_User1", Storage="_Hazard_HazardList_Sys_User1", ThisKey="UserId", OtherKey="ControllingPerson", DeleteRule="NO ACTION")]
public EntitySet<Hazard_HazardList> Hazard_HazardList_Sys_User1
{
get
{
return this._Hazard_HazardList_Sys_User1;
}
set
{
this._Hazard_HazardList_Sys_User1.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_InApproveManager_EquipmentIn_Sys_User", Storage="_InApproveManager_EquipmentIn", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<InApproveManager_EquipmentIn> InApproveManager_EquipmentIn
{
@@ -347338,18 +347305,6 @@ namespace Model
entity.Sys_User = null;
}
private void attach_Hazard_HazardList_Sys_User1(Hazard_HazardList entity)
{
this.SendPropertyChanging();
entity.ControllingPersonSys_User = this;
}
private void detach_Hazard_HazardList_Sys_User1(Hazard_HazardList entity)
{
this.SendPropertyChanging();
entity.ControllingPersonSys_User = null;
}
private void attach_InApproveManager_EquipmentIn(InApproveManager_EquipmentIn entity)
{
this.SendPropertyChanging();