危害因素调整

This commit is contained in:
2026-04-28 17:06:01 +08:00
parent 1dd8189661
commit d170dd6603
37 changed files with 2883 additions and 30 deletions
+511 -8
View File
@@ -233,6 +233,12 @@ namespace Model
partial void InsertBase_SafetyMeasures(Base_SafetyMeasures instance);
partial void UpdateBase_SafetyMeasures(Base_SafetyMeasures instance);
partial void DeleteBase_SafetyMeasures(Base_SafetyMeasures instance);
partial void InsertBase_SafetyProblemClassify(Base_SafetyProblemClassify instance);
partial void UpdateBase_SafetyProblemClassify(Base_SafetyProblemClassify instance);
partial void DeleteBase_SafetyProblemClassify(Base_SafetyProblemClassify instance);
partial void InsertBase_SafetyProblemClassifyItem(Base_SafetyProblemClassifyItem instance);
partial void UpdateBase_SafetyProblemClassifyItem(Base_SafetyProblemClassifyItem instance);
partial void DeleteBase_SafetyProblemClassifyItem(Base_SafetyProblemClassifyItem instance);
partial void InsertBase_SecretLevel(Base_SecretLevel instance);
partial void UpdateBase_SecretLevel(Base_SecretLevel instance);
partial void DeleteBase_SecretLevel(Base_SecretLevel instance);
@@ -3290,6 +3296,22 @@ namespace Model
}
}
public System.Data.Linq.Table<Base_SafetyProblemClassify> Base_SafetyProblemClassify
{
get
{
return this.GetTable<Base_SafetyProblemClassify>();
}
}
public System.Data.Linq.Table<Base_SafetyProblemClassifyItem> Base_SafetyProblemClassifyItem
{
get
{
return this.GetTable<Base_SafetyProblemClassifyItem>();
}
}
public System.Data.Linq.Table<Base_SecretLevel> Base_SecretLevel
{
get
@@ -39817,6 +39839,391 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_SafetyProblemClassify")]
public partial class Base_SafetyProblemClassify : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ClassifyId;
private string _ClassifyCode;
private string _ClassifyName;
private EntitySet<Base_SafetyProblemClassifyItem> _Base_SafetyProblemClassifyItem;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnClassifyIdChanging(string value);
partial void OnClassifyIdChanged();
partial void OnClassifyCodeChanging(string value);
partial void OnClassifyCodeChanged();
partial void OnClassifyNameChanging(string value);
partial void OnClassifyNameChanged();
#endregion
public Base_SafetyProblemClassify()
{
this._Base_SafetyProblemClassifyItem = new EntitySet<Base_SafetyProblemClassifyItem>(new Action<Base_SafetyProblemClassifyItem>(this.attach_Base_SafetyProblemClassifyItem), new Action<Base_SafetyProblemClassifyItem>(this.detach_Base_SafetyProblemClassifyItem));
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ClassifyId
{
get
{
return this._ClassifyId;
}
set
{
if ((this._ClassifyId != value))
{
this.OnClassifyIdChanging(value);
this.SendPropertyChanging();
this._ClassifyId = value;
this.SendPropertyChanged("ClassifyId");
this.OnClassifyIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyCode", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string ClassifyCode
{
get
{
return this._ClassifyCode;
}
set
{
if ((this._ClassifyCode != value))
{
this.OnClassifyCodeChanging(value);
this.SendPropertyChanging();
this._ClassifyCode = value;
this.SendPropertyChanged("ClassifyCode");
this.OnClassifyCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyName", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
public string ClassifyName
{
get
{
return this._ClassifyName;
}
set
{
if ((this._ClassifyName != value))
{
this.OnClassifyNameChanging(value);
this.SendPropertyChanging();
this._ClassifyName = value;
this.SendPropertyChanged("ClassifyName");
this.OnClassifyNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_SafetyProblemClassifyItem_Classify", Storage="_Base_SafetyProblemClassifyItem", ThisKey="ClassifyId", OtherKey="ClassifyId", DeleteRule="NO ACTION")]
public EntitySet<Base_SafetyProblemClassifyItem> Base_SafetyProblemClassifyItem
{
get
{
return this._Base_SafetyProblemClassifyItem;
}
set
{
this._Base_SafetyProblemClassifyItem.Assign(value);
}
}
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));
}
}
private void attach_Base_SafetyProblemClassifyItem(Base_SafetyProblemClassifyItem entity)
{
this.SendPropertyChanging();
entity.Base_SafetyProblemClassify = this;
}
private void detach_Base_SafetyProblemClassifyItem(Base_SafetyProblemClassifyItem entity)
{
this.SendPropertyChanging();
entity.Base_SafetyProblemClassify = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_SafetyProblemClassifyItem")]
public partial class Base_SafetyProblemClassifyItem : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ClassifyItemId;
private string _ClassifyId;
private string _ClassifyItemCode;
private string _ClassifyItemName;
private string _CompileMan;
private string _CompileManName;
private System.Nullable<System.DateTime> _CompileDate;
private EntityRef<Base_SafetyProblemClassify> _Base_SafetyProblemClassify;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnClassifyItemIdChanging(string value);
partial void OnClassifyItemIdChanged();
partial void OnClassifyIdChanging(string value);
partial void OnClassifyIdChanged();
partial void OnClassifyItemCodeChanging(string value);
partial void OnClassifyItemCodeChanged();
partial void OnClassifyItemNameChanging(string value);
partial void OnClassifyItemNameChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileManNameChanging(string value);
partial void OnCompileManNameChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public Base_SafetyProblemClassifyItem()
{
this._Base_SafetyProblemClassify = default(EntityRef<Base_SafetyProblemClassify>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ClassifyItemId
{
get
{
return this._ClassifyItemId;
}
set
{
if ((this._ClassifyItemId != value))
{
this.OnClassifyItemIdChanging(value);
this.SendPropertyChanging();
this._ClassifyItemId = value;
this.SendPropertyChanged("ClassifyItemId");
this.OnClassifyItemIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyId", DbType="NVarChar(50)")]
public string ClassifyId
{
get
{
return this._ClassifyId;
}
set
{
if ((this._ClassifyId != value))
{
if (this._Base_SafetyProblemClassify.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnClassifyIdChanging(value);
this.SendPropertyChanging();
this._ClassifyId = value;
this.SendPropertyChanged("ClassifyId");
this.OnClassifyIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyItemCode", DbType="NVarChar(50)")]
public string ClassifyItemCode
{
get
{
return this._ClassifyItemCode;
}
set
{
if ((this._ClassifyItemCode != value))
{
this.OnClassifyItemCodeChanging(value);
this.SendPropertyChanging();
this._ClassifyItemCode = value;
this.SendPropertyChanged("ClassifyItemCode");
this.OnClassifyItemCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassifyItemName", DbType="NVarChar(100)")]
public string ClassifyItemName
{
get
{
return this._ClassifyItemName;
}
set
{
if ((this._ClassifyItemName != value))
{
this.OnClassifyItemNameChanging(value);
this.SendPropertyChanging();
this._ClassifyItemName = value;
this.SendPropertyChanged("ClassifyItemName");
this.OnClassifyItemNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileManName", DbType="NVarChar(50)")]
public string CompileManName
{
get
{
return this._CompileManName;
}
set
{
if ((this._CompileManName != value))
{
this.OnCompileManNameChanging(value);
this.SendPropertyChanging();
this._CompileManName = value;
this.SendPropertyChanged("CompileManName");
this.OnCompileManNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_SafetyProblemClassifyItem_Classify", Storage="_Base_SafetyProblemClassify", ThisKey="ClassifyId", OtherKey="ClassifyId", IsForeignKey=true)]
public Base_SafetyProblemClassify Base_SafetyProblemClassify
{
get
{
return this._Base_SafetyProblemClassify.Entity;
}
set
{
Base_SafetyProblemClassify previousValue = this._Base_SafetyProblemClassify.Entity;
if (((previousValue != value)
|| (this._Base_SafetyProblemClassify.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_SafetyProblemClassify.Entity = null;
previousValue.Base_SafetyProblemClassifyItem.Remove(this);
}
this._Base_SafetyProblemClassify.Entity = value;
if ((value != null))
{
value.Base_SafetyProblemClassifyItem.Add(this);
this._ClassifyId = value.ClassifyId;
}
else
{
this._ClassifyId = default(string);
}
this.SendPropertyChanged("Base_SafetyProblemClassify");
}
}
}
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.Base_SecretLevel")]
public partial class Base_SecretLevel : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -168600,6 +169007,10 @@ namespace Model
private int _State;
private string _UnitId;
private string _UnitProjectName;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -168656,6 +169067,10 @@ namespace Model
partial void OnResponsibleDepartmentChanged();
partial void OnStateChanging(int value);
partial void OnStateChanged();
partial void OnUnitIdChanging(string value);
partial void OnUnitIdChanged();
partial void OnUnitProjectNameChanging(string value);
partial void OnUnitProjectNameChanged();
#endregion
public HazardFactor_OccHealth()
@@ -168783,7 +169198,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
@@ -168843,7 +169258,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hazard", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hazard", DbType="NVarChar(2000)")]
public string Hazard
{
get
@@ -169003,7 +169418,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NetRiskControlMeasures", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NetRiskControlMeasures", DbType="NVarChar(2000)")]
public string NetRiskControlMeasures
{
get
@@ -169123,7 +169538,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdditionalControlMeasures", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdditionalControlMeasures", DbType="NVarChar(2000)")]
public string AdditionalControlMeasures
{
get
@@ -169183,6 +169598,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
public string UnitId
{
get
{
return this._UnitId;
}
set
{
if ((this._UnitId != value))
{
this.OnUnitIdChanging(value);
this.SendPropertyChanging();
this._UnitId = value;
this.SendPropertyChanged("UnitId");
this.OnUnitIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectName", DbType="NVarChar(200)")]
public string UnitProjectName
{
get
{
return this._UnitProjectName;
}
set
{
if ((this._UnitProjectName != value))
{
this.OnUnitProjectNameChanging(value);
this.SendPropertyChanging();
this._UnitProjectName = value;
this.SendPropertyChanged("UnitProjectName");
this.OnUnitProjectNameChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -169262,6 +169717,10 @@ namespace Model
private int _State;
private string _UnitId;
private string _UnitProjectName;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -169318,6 +169777,10 @@ namespace Model
partial void OnResponsibleDepartmentChanged();
partial void OnStateChanging(int value);
partial void OnStateChanged();
partial void OnUnitIdChanging(string value);
partial void OnUnitIdChanged();
partial void OnUnitProjectNameChanging(string value);
partial void OnUnitProjectNameChanged();
#endregion
public HazardFactor_Safety()
@@ -169445,7 +169908,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
@@ -169505,7 +169968,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hazard", DbType="NVarChar(500) NOT NULL", CanBeNull=false)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Hazard", DbType="NVarChar(2000)")]
public string Hazard
{
get
@@ -169665,7 +170128,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NetRiskControlMeasures", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NetRiskControlMeasures", DbType="NVarChar(2000)")]
public string NetRiskControlMeasures
{
get
@@ -169785,7 +170248,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdditionalControlMeasures", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdditionalControlMeasures", DbType="NVarChar(2000)")]
public string AdditionalControlMeasures
{
get
@@ -169845,6 +170308,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
public string UnitId
{
get
{
return this._UnitId;
}
set
{
if ((this._UnitId != value))
{
this.OnUnitIdChanging(value);
this.SendPropertyChanging();
this._UnitId = value;
this.SendPropertyChanged("UnitId");
this.OnUnitIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitProjectName", DbType="NVarChar(200)")]
public string UnitProjectName
{
get
{
return this._UnitProjectName;
}
set
{
if ((this._UnitProjectName != value))
{
this.OnUnitProjectNameChanging(value);
this.SendPropertyChanging();
this._UnitProjectName = value;
this.SendPropertyChanged("UnitProjectName");
this.OnUnitProjectNameChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;