海康云眸

This commit is contained in:
2026-05-13 07:06:29 +08:00
parent f9b2fe12a0
commit 16640dfed4
19 changed files with 2336 additions and 284 deletions
+384 -143
View File
@@ -1994,6 +1994,9 @@ namespace Model
partial void InsertProject_CQMSData_CQMS(Project_CQMSData_CQMS instance);
partial void UpdateProject_CQMSData_CQMS(Project_CQMSData_CQMS instance);
partial void DeleteProject_CQMSData_CQMS(Project_CQMSData_CQMS instance);
partial void InsertProject_Devices(Project_Devices instance);
partial void UpdateProject_Devices(Project_Devices instance);
partial void DeleteProject_Devices(Project_Devices instance);
partial void InsertProject_FileCabinet(Project_FileCabinet instance);
partial void UpdateProject_FileCabinet(Project_FileCabinet instance);
partial void DeleteProject_FileCabinet(Project_FileCabinet instance);
@@ -8304,6 +8307,14 @@ namespace Model
}
}
public System.Data.Linq.Table<Project_Devices> Project_Devices
{
get
{
return this.GetTable<Project_Devices>();
}
}
public System.Data.Linq.Table<Project_FileCabinet> Project_FileCabinet
{
get
@@ -28011,6 +28022,10 @@ namespace Model
private System.Nullable<bool> _IsAutoFetch;
private System.Nullable<bool> _IsYunMou;
private string _YunMouGroupId;
private EntitySet<Accident_AccidentHandle> _Accident_AccidentHandle;
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
@@ -28771,6 +28786,10 @@ namespace Model
partial void OnSubjectUnitWebUrlChanged();
partial void OnIsAutoFetchChanging(System.Nullable<bool> value);
partial void OnIsAutoFetchChanged();
partial void OnIsYunMouChanging(System.Nullable<bool> value);
partial void OnIsYunMouChanged();
partial void OnYunMouGroupIdChanging(string value);
partial void OnYunMouGroupIdChanged();
#endregion
public Base_Project()
@@ -29981,6 +30000,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsYunMou", DbType="Bit")]
public System.Nullable<bool> IsYunMou
{
get
{
return this._IsYunMou;
}
set
{
if ((this._IsYunMou != value))
{
this.OnIsYunMouChanging(value);
this.SendPropertyChanging();
this._IsYunMou = value;
this.SendPropertyChanged("IsYunMou");
this.OnIsYunMouChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YunMouGroupId", DbType="NVarChar(50)")]
public string YunMouGroupId
{
get
{
return this._YunMouGroupId;
}
set
{
if ((this._YunMouGroupId != value))
{
this.OnYunMouGroupIdChanging(value);
this.SendPropertyChanging();
this._YunMouGroupId = value;
this.SendPropertyChanged("YunMouGroupId");
this.OnYunMouGroupIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentHandle_Base_Project", Storage="_Accident_AccidentHandle", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<Accident_AccidentHandle> Accident_AccidentHandle
{
@@ -210320,8 +210379,6 @@ 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);
@@ -210425,7 +210482,6 @@ namespace Model
public HSSE_Hazard_HazardRegister()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef<HSSE_Hazard_HazardRegisterTypes>);
OnCreated();
}
@@ -210944,10 +211000,6 @@ 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;
@@ -211411,40 +211463,6 @@ 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;
@@ -211562,8 +211580,6 @@ 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);
@@ -211661,7 +211677,6 @@ namespace Model
public HSSE_Hazard_HazardRegister_Unit()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._HSSE_Hazard_HazardRegisterTypes = default(EntityRef<HSSE_Hazard_HazardRegisterTypes>);
OnCreated();
}
@@ -212109,7 +212124,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")]
public string HandleIdea
{
get
@@ -212180,10 +212195,6 @@ 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;
@@ -212493,7 +212504,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")]
public string Requirements
{
get
@@ -212587,40 +212598,6 @@ 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;
@@ -212662,10 +212639,6 @@ 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);
@@ -212688,8 +212661,6 @@ 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();
}
@@ -212833,32 +212804,6 @@ 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;
@@ -212878,30 +212823,6 @@ 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")]
@@ -322611,6 +322532,284 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Project_Devices")]
public partial class Project_Devices : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _DeviceId;
private string _DeviceName;
private string _Address;
private System.Nullable<System.DateTime> _CreateDate;
private string _ProjectId;
private string _DeviceSerial;
private string _IsInOut;
private string _ValidateCode;
private string _YunMouDeviceId;
private string _YunMouPermission;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnDeviceIdChanging(string value);
partial void OnDeviceIdChanged();
partial void OnDeviceNameChanging(string value);
partial void OnDeviceNameChanged();
partial void OnAddressChanging(string value);
partial void OnAddressChanged();
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
partial void OnCreateDateChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnDeviceSerialChanging(string value);
partial void OnDeviceSerialChanged();
partial void OnIsInOutChanging(string value);
partial void OnIsInOutChanged();
partial void OnValidateCodeChanging(string value);
partial void OnValidateCodeChanged();
partial void OnYunMouDeviceIdChanging(string value);
partial void OnYunMouDeviceIdChanged();
partial void OnYunMouPermissionChanging(string value);
partial void OnYunMouPermissionChanged();
#endregion
public Project_Devices()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string DeviceId
{
get
{
return this._DeviceId;
}
set
{
if ((this._DeviceId != value))
{
this.OnDeviceIdChanging(value);
this.SendPropertyChanging();
this._DeviceId = value;
this.SendPropertyChanged("DeviceId");
this.OnDeviceIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceName", DbType="NVarChar(50)")]
public string DeviceName
{
get
{
return this._DeviceName;
}
set
{
if ((this._DeviceName != value))
{
this.OnDeviceNameChanging(value);
this.SendPropertyChanging();
this._DeviceName = value;
this.SendPropertyChanged("DeviceName");
this.OnDeviceNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(500)")]
public string Address
{
get
{
return this._Address;
}
set
{
if ((this._Address != value))
{
this.OnAddressChanging(value);
this.SendPropertyChanging();
this._Address = value;
this.SendPropertyChanged("Address");
this.OnAddressChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="Date")]
public System.Nullable<System.DateTime> CreateDate
{
get
{
return this._CreateDate;
}
set
{
if ((this._CreateDate != value))
{
this.OnCreateDateChanging(value);
this.SendPropertyChanging();
this._CreateDate = value;
this.SendPropertyChanged("CreateDate");
this.OnCreateDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceSerial", DbType="NVarChar(50)")]
public string DeviceSerial
{
get
{
return this._DeviceSerial;
}
set
{
if ((this._DeviceSerial != value))
{
this.OnDeviceSerialChanging(value);
this.SendPropertyChanging();
this._DeviceSerial = value;
this.SendPropertyChanged("DeviceSerial");
this.OnDeviceSerialChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="isInOut", Storage="_IsInOut", DbType="NVarChar(50)")]
public string IsInOut
{
get
{
return this._IsInOut;
}
set
{
if ((this._IsInOut != value))
{
this.OnIsInOutChanging(value);
this.SendPropertyChanging();
this._IsInOut = value;
this.SendPropertyChanged("IsInOut");
this.OnIsInOutChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidateCode", DbType="NVarChar(50)")]
public string ValidateCode
{
get
{
return this._ValidateCode;
}
set
{
if ((this._ValidateCode != value))
{
this.OnValidateCodeChanging(value);
this.SendPropertyChanging();
this._ValidateCode = value;
this.SendPropertyChanged("ValidateCode");
this.OnValidateCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YunMouDeviceId", DbType="NVarChar(50)")]
public string YunMouDeviceId
{
get
{
return this._YunMouDeviceId;
}
set
{
if ((this._YunMouDeviceId != value))
{
this.OnYunMouDeviceIdChanging(value);
this.SendPropertyChanging();
this._YunMouDeviceId = value;
this.SendPropertyChanged("YunMouDeviceId");
this.OnYunMouDeviceIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YunMouPermission", DbType="NVarChar(50)")]
public string YunMouPermission
{
get
{
return this._YunMouPermission;
}
set
{
if ((this._YunMouPermission != value))
{
this.OnYunMouPermissionChanging(value);
this.SendPropertyChanging();
this._YunMouPermission = value;
this.SendPropertyChanged("YunMouPermission");
this.OnYunMouPermissionChanged();
}
}
}
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.Project_FileCabinet")]
public partial class Project_FileCabinet : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -379126,6 +379325,8 @@ namespace Model
private System.Nullable<bool> _IsTrain;
private string _YunMouState;
private EntitySet<Accident_AccidentPersonRecord> _Accident_AccidentPersonRecord;
private EntitySet<Accident_AccidentReportOtherItem> _Accident_AccidentReportOtherItem;
@@ -379338,6 +379539,8 @@ namespace Model
partial void OnIsSyncWelderChanged();
partial void OnIsTrainChanging(System.Nullable<bool> value);
partial void OnIsTrainChanged();
partial void OnYunMouStateChanging(string value);
partial void OnYunMouStateChanged();
#endregion
public SitePerson_Person()
@@ -380887,6 +381090,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YunMouState", DbType="NVarChar(50)")]
public string YunMouState
{
get
{
return this._YunMouState;
}
set
{
if ((this._YunMouState != value))
{
this.OnYunMouStateChanging(value);
this.SendPropertyChanging();
this._YunMouState = value;
this.SendPropertyChanged("YunMouState");
this.OnYunMouStateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_SitePerson_Person", Storage="_Accident_AccidentPersonRecord", ThisKey="PersonId", OtherKey="PersonId", DeleteRule="NO ACTION")]
public EntitySet<Accident_AccidentPersonRecord> Accident_AccidentPersonRecord
{
@@ -480496,6 +480719,8 @@ namespace Model
private string _States;
private string _ReviewedManId;
private string _IsEffective;
private string _ResponsibleMan;
@@ -480866,6 +481091,22 @@ 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
{
@@ -481026,7 +481267,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleIdea", DbType="NVarChar(2000)")]
public string HandleIdea
{
get
@@ -481410,7 +481651,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(200)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterTypesName", DbType="NVarChar(50)")]
public string RegisterTypesName
{
get
@@ -481474,7 +481715,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(400)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requirements", DbType="NVarChar(2000)")]
public string Requirements
{
get