This commit is contained in:
2026-05-12 09:38:03 +08:00
31 changed files with 5172 additions and 62 deletions
+143 -23
View File
@@ -210320,6 +210320,8 @@ namespace Model
private EntityRef<Base_Unit> _Base_Unit;
private EntityRef<HSSE_Hazard_HazardRegisterTypes> _HSSE_Hazard_HazardRegisterTypes;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -210423,6 +210425,7 @@ namespace Model
public HSSE_Hazard_HazardRegister()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef<HSSE_Hazard_HazardRegisterTypes>);
OnCreated();
}
@@ -210941,6 +210944,10 @@ namespace Model
{
if ((this._RegisterTypesId != value))
{
if (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnRegisterTypesIdChanging(value);
this.SendPropertyChanging();
this._RegisterTypesId = value;
@@ -211404,6 +211411,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_HSSE_Hazard_HazardRegisterTypes", Storage="_HSSE_Hazard_HazardRegisterTypes", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", IsForeignKey=true)]
public HSSE_Hazard_HazardRegisterTypes HSSE_Hazard_HazardRegisterTypes
{
get
{
return this._HSSE_Hazard_HazardRegisterTypes.Entity;
}
set
{
HSSE_Hazard_HazardRegisterTypes previousValue = this._HSSE_Hazard_HazardRegisterTypes.Entity;
if (((previousValue != value)
|| (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._HSSE_Hazard_HazardRegisterTypes.Entity = null;
previousValue.HSSE_Hazard_HazardRegister.Remove(this);
}
this._HSSE_Hazard_HazardRegisterTypes.Entity = value;
if ((value != null))
{
value.HSSE_Hazard_HazardRegister.Add(this);
this._RegisterTypesId = value.RegisterTypesId;
}
else
{
this._RegisterTypesId = default(string);
}
this.SendPropertyChanged("HSSE_Hazard_HazardRegisterTypes");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -211521,6 +211562,8 @@ namespace Model
private EntityRef<Base_Unit> _Base_Unit;
private EntityRef<HSSE_Hazard_HazardRegisterTypes> _HSSE_Hazard_HazardRegisterTypes;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -211618,6 +211661,7 @@ namespace Model
public HSSE_Hazard_HazardRegister_Unit()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef<HSSE_Hazard_HazardRegisterTypes>);
OnCreated();
}
@@ -212065,7 +212109,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")]
public string HandleIdea
{
get
@@ -212136,6 +212180,10 @@ namespace Model
{
if ((this._RegisterTypesId != value))
{
if (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnRegisterTypesIdChanging(value);
this.SendPropertyChanging();
this._RegisterTypesId = value;
@@ -212445,7 +212493,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")]
public string Requirements
{
get
@@ -212539,6 +212587,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_Unit_HSSE_Hazard_HazardRegister_UnitTypes", Storage="_HSSE_Hazard_HazardRegisterTypes", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", IsForeignKey=true)]
public HSSE_Hazard_HazardRegisterTypes HSSE_Hazard_HazardRegisterTypes
{
get
{
return this._HSSE_Hazard_HazardRegisterTypes.Entity;
}
set
{
HSSE_Hazard_HazardRegisterTypes previousValue = this._HSSE_Hazard_HazardRegisterTypes.Entity;
if (((previousValue != value)
|| (this._HSSE_Hazard_HazardRegisterTypes.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._HSSE_Hazard_HazardRegisterTypes.Entity = null;
previousValue.HSSE_Hazard_HazardRegister_Unit.Remove(this);
}
this._HSSE_Hazard_HazardRegisterTypes.Entity = value;
if ((value != null))
{
value.HSSE_Hazard_HazardRegister_Unit.Add(this);
this._RegisterTypesId = value.RegisterTypesId;
}
else
{
this._RegisterTypesId = default(string);
}
this.SendPropertyChanged("HSSE_Hazard_HazardRegisterTypes");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -212580,6 +212662,10 @@ namespace Model
private System.Nullable<bool> _IsPunished;
private EntitySet<HSSE_Hazard_HazardRegister> _HSSE_Hazard_HazardRegister;
private EntitySet<HSSE_Hazard_HazardRegister_Unit> _HSSE_Hazard_HazardRegister_Unit;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -212602,6 +212688,8 @@ namespace Model
public HSSE_Hazard_HazardRegisterTypes()
{
this._HSSE_Hazard_HazardRegister = new EntitySet<HSSE_Hazard_HazardRegister>(new Action<HSSE_Hazard_HazardRegister>(this.attach_HSSE_Hazard_HazardRegister), new Action<HSSE_Hazard_HazardRegister>(this.detach_HSSE_Hazard_HazardRegister));
this._HSSE_Hazard_HazardRegister_Unit = new EntitySet<HSSE_Hazard_HazardRegister_Unit>(new Action<HSSE_Hazard_HazardRegister_Unit>(this.attach_HSSE_Hazard_HazardRegister_Unit), new Action<HSSE_Hazard_HazardRegister_Unit>(this.detach_HSSE_Hazard_HazardRegister_Unit));
OnCreated();
}
@@ -212745,6 +212833,32 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_HSSE_Hazard_HazardRegisterTypes", Storage="_HSSE_Hazard_HazardRegister", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", DeleteRule="NO ACTION")]
public EntitySet<HSSE_Hazard_HazardRegister> HSSE_Hazard_HazardRegister
{
get
{
return this._HSSE_Hazard_HazardRegister;
}
set
{
this._HSSE_Hazard_HazardRegister.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HSSE_Hazard_HazardRegister_Unit_HSSE_Hazard_HazardRegister_UnitTypes", Storage="_HSSE_Hazard_HazardRegister_Unit", ThisKey="RegisterTypesId", OtherKey="RegisterTypesId", DeleteRule="NO ACTION")]
public EntitySet<HSSE_Hazard_HazardRegister_Unit> HSSE_Hazard_HazardRegister_Unit
{
get
{
return this._HSSE_Hazard_HazardRegister_Unit;
}
set
{
this._HSSE_Hazard_HazardRegister_Unit.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -212764,6 +212878,30 @@ namespace Model
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_HSSE_Hazard_HazardRegister(HSSE_Hazard_HazardRegister entity)
{
this.SendPropertyChanging();
entity.HSSE_Hazard_HazardRegisterTypes = this;
}
private void detach_HSSE_Hazard_HazardRegister(HSSE_Hazard_HazardRegister entity)
{
this.SendPropertyChanging();
entity.HSSE_Hazard_HazardRegisterTypes = null;
}
private void attach_HSSE_Hazard_HazardRegister_Unit(HSSE_Hazard_HazardRegister_Unit entity)
{
this.SendPropertyChanging();
entity.HSSE_Hazard_HazardRegisterTypes = this;
}
private void detach_HSSE_Hazard_HazardRegister_Unit(HSSE_Hazard_HazardRegister_Unit entity)
{
this.SendPropertyChanging();
entity.HSSE_Hazard_HazardRegisterTypes = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HSSE_MajorSecurityRisk")]
@@ -480358,8 +480496,6 @@ namespace Model
private string _States;
private string _ReviewedManId;
private string _IsEffective;
private string _ResponsibleMan;
@@ -480730,22 +480866,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewedManId", DbType="NVarChar(2000)")]
public string ReviewedManId
{
get
{
return this._ReviewedManId;
}
set
{
if ((this._ReviewedManId != value))
{
this._ReviewedManId = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsEffective", DbType="Char(1)")]
public string IsEffective
{
@@ -480906,7 +481026,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")]
public string HandleIdea
{
get
@@ -481290,7 +481410,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(50)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(200)")]
public string RegisterTypesName
{
get
@@ -481354,7 +481474,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")]
public string Requirements
{
get