提交代码

This commit is contained in:
2023-09-21 16:02:54 +08:00
parent 0594d57506
commit a1246056bf
3 changed files with 614 additions and 264 deletions
+139 -263
View File
@@ -1376,9 +1376,6 @@ namespace Model
partial void InsertManager_Month_CheckC(Manager_Month_CheckC instance);
partial void UpdateManager_Month_CheckC(Manager_Month_CheckC instance);
partial void DeleteManager_Month_CheckC(Manager_Month_CheckC instance);
partial void InsertManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance);
partial void UpdateManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance);
partial void DeleteManager_Month_ComplianceObligations(Manager_Month_ComplianceObligations instance);
partial void InsertManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance);
partial void UpdateManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance);
partial void DeleteManager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC instance);
@@ -6046,14 +6043,6 @@ namespace Model
}
}
public System.Data.Linq.Table<Manager_Month_ComplianceObligations> Manager_Month_ComplianceObligations
{
get
{
return this.GetTable<Manager_Month_ComplianceObligations>();
}
}
public System.Data.Linq.Table<Manager_Month_ComplianceObligationsC> Manager_Month_ComplianceObligationsC
{
get
@@ -20603,6 +20592,8 @@ namespace Model
private string _CodeRule;
private EntitySet<Doc_DocManage> _Doc_DocManage;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -20619,6 +20610,7 @@ namespace Model
public Base_DocType()
{
this._Doc_DocManage = new EntitySet<Doc_DocManage>(new Action<Doc_DocManage>(this.attach_Doc_DocManage), new Action<Doc_DocManage>(this.detach_Doc_DocManage));
OnCreated();
}
@@ -20702,6 +20694,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Doc_DocManage", ThisKey="DocTypeId", OtherKey="DocTypeId", DeleteRule="NO ACTION")]
public EntitySet<Doc_DocManage> Doc_DocManage
{
get
{
return this._Doc_DocManage;
}
set
{
this._Doc_DocManage.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -20721,6 +20726,18 @@ namespace Model
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_Doc_DocManage(Doc_DocManage entity)
{
this.SendPropertyChanging();
entity.Base_DocType = this;
}
private void detach_Doc_DocManage(Doc_DocManage entity)
{
this.SendPropertyChanging();
entity.Base_DocType = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_EmergencyType")]
@@ -114734,6 +114751,8 @@ namespace Model
private EntityRef<Base_CNProfessional> _Base_CNProfessional;
private EntityRef<Base_DocType> _Base_DocType;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_Unit> _Base_Unit;
@@ -114785,6 +114804,7 @@ namespace Model
public Doc_DocManage()
{
this._Base_CNProfessional = default(EntityRef<Base_CNProfessional>);
this._Base_DocType = default(EntityRef<Base_DocType>);
this._Base_Project = default(EntityRef<Base_Project>);
this._Base_Unit = default(EntityRef<Base_Unit>);
this._Sys_User = default(EntityRef<Sys_User>);
@@ -114863,6 +114883,10 @@ namespace Model
{
if ((this._DocTypeId != value))
{
if (this._Base_DocType.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnDocTypeIdChanging(value);
this.SendPropertyChanging();
this._DocTypeId = value;
@@ -115182,6 +115206,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_DocType", Storage="_Base_DocType", ThisKey="DocTypeId", OtherKey="DocTypeId", IsForeignKey=true)]
public Base_DocType Base_DocType
{
get
{
return this._Base_DocType.Entity;
}
set
{
Base_DocType previousValue = this._Base_DocType.Entity;
if (((previousValue != value)
|| (this._Base_DocType.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_DocType.Entity = null;
previousValue.Doc_DocManage.Remove(this);
}
this._Base_DocType.Entity = value;
if ((value != null))
{
value.Doc_DocManage.Add(this);
this._DocTypeId = value.DocTypeId;
}
else
{
this._DocTypeId = default(string);
}
this.SendPropertyChanged("Base_DocType");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManage_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -115352,6 +115410,8 @@ namespace Model
private EntityRef<Doc_DocManage> _Doc_DocManage;
private EntityRef<Sys_User> _Sys_User;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -115375,6 +115435,7 @@ namespace Model
public Doc_DocManageApprove()
{
this._Doc_DocManage = default(EntityRef<Doc_DocManage>);
this._Sys_User = default(EntityRef<Sys_User>);
OnCreated();
}
@@ -115422,7 +115483,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(500)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveMan", DbType="NVarChar(50)")]
public string ApproveMan
{
get
@@ -115433,6 +115494,10 @@ namespace Model
{
if ((this._ApproveMan != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnApproveManChanging(value);
this.SendPropertyChanging();
this._ApproveMan = value;
@@ -115556,6 +115621,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Sys_User", ThisKey="ApproveMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
get
{
return this._Sys_User.Entity;
}
set
{
Sys_User previousValue = this._Sys_User.Entity;
if (((previousValue != value)
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Sys_User.Entity = null;
previousValue.Doc_DocManageApprove.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.Doc_DocManageApprove.Add(this);
this._ApproveMan = value.UserId;
}
else
{
this._ApproveMan = default(string);
}
this.SendPropertyChanged("Sys_User");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -224335,229 +224434,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Manager_Month_ComplianceObligations")]
public partial class Manager_Month_ComplianceObligations : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ComplianceObligationsId;
private string _MonthReportId;
private string _InformationContent;
private string _ResponseMeasures;
private string _ImplementationStatus;
private string _EvaluationConclusion;
private EntityRef<Manager_MonthReportC> _Manager_MonthReportC;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnComplianceObligationsIdChanging(string value);
partial void OnComplianceObligationsIdChanged();
partial void OnMonthReportIdChanging(string value);
partial void OnMonthReportIdChanged();
partial void OnInformationContentChanging(string value);
partial void OnInformationContentChanged();
partial void OnResponseMeasuresChanging(string value);
partial void OnResponseMeasuresChanged();
partial void OnImplementationStatusChanging(string value);
partial void OnImplementationStatusChanged();
partial void OnEvaluationConclusionChanging(string value);
partial void OnEvaluationConclusionChanged();
#endregion
public Manager_Month_ComplianceObligations()
{
this._Manager_MonthReportC = default(EntityRef<Manager_MonthReportC>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComplianceObligationsId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ComplianceObligationsId
{
get
{
return this._ComplianceObligationsId;
}
set
{
if ((this._ComplianceObligationsId != value))
{
this.OnComplianceObligationsIdChanging(value);
this.SendPropertyChanging();
this._ComplianceObligationsId = value;
this.SendPropertyChanged("ComplianceObligationsId");
this.OnComplianceObligationsIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50)")]
public string MonthReportId
{
get
{
return this._MonthReportId;
}
set
{
if ((this._MonthReportId != value))
{
if (this._Manager_MonthReportC.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnMonthReportIdChanging(value);
this.SendPropertyChanging();
this._MonthReportId = value;
this.SendPropertyChanged("MonthReportId");
this.OnMonthReportIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InformationContent", DbType="NVarChar(500)")]
public string InformationContent
{
get
{
return this._InformationContent;
}
set
{
if ((this._InformationContent != value))
{
this.OnInformationContentChanging(value);
this.SendPropertyChanging();
this._InformationContent = value;
this.SendPropertyChanged("InformationContent");
this.OnInformationContentChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResponseMeasures", DbType="NVarChar(500)")]
public string ResponseMeasures
{
get
{
return this._ResponseMeasures;
}
set
{
if ((this._ResponseMeasures != value))
{
this.OnResponseMeasuresChanging(value);
this.SendPropertyChanging();
this._ResponseMeasures = value;
this.SendPropertyChanged("ResponseMeasures");
this.OnResponseMeasuresChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ImplementationStatus", DbType="NVarChar(500)")]
public string ImplementationStatus
{
get
{
return this._ImplementationStatus;
}
set
{
if ((this._ImplementationStatus != value))
{
this.OnImplementationStatusChanging(value);
this.SendPropertyChanging();
this._ImplementationStatus = value;
this.SendPropertyChanged("ImplementationStatus");
this.OnImplementationStatusChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluationConclusion", DbType="NVarChar(50)")]
public string EvaluationConclusion
{
get
{
return this._EvaluationConclusion;
}
set
{
if ((this._EvaluationConclusion != value))
{
this.OnEvaluationConclusionChanging(value);
this.SendPropertyChanging();
this._EvaluationConclusion = value;
this.SendPropertyChanged("EvaluationConclusion");
this.OnEvaluationConclusionChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_MonthReportC", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)]
public Manager_MonthReportC Manager_MonthReportC
{
get
{
return this._Manager_MonthReportC.Entity;
}
set
{
Manager_MonthReportC previousValue = this._Manager_MonthReportC.Entity;
if (((previousValue != value)
|| (this._Manager_MonthReportC.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Manager_MonthReportC.Entity = null;
previousValue.Manager_Month_ComplianceObligations.Remove(this);
}
this._Manager_MonthReportC.Entity = value;
if ((value != null))
{
value.Manager_Month_ComplianceObligations.Add(this);
this._MonthReportId = value.MonthReportId;
}
else
{
this._MonthReportId = default(string);
}
this.SendPropertyChanged("Manager_MonthReportC");
}
}
}
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.Manager_Month_ComplianceObligationsC")]
public partial class Manager_Month_ComplianceObligationsC : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -230757,8 +230633,6 @@ namespace Model
private EntitySet<Manager_Month_CheckC> _Manager_Month_CheckC;
private EntitySet<Manager_Month_ComplianceObligations> _Manager_Month_ComplianceObligations;
private EntitySet<Manager_Month_ComplianceObligationsC> _Manager_Month_ComplianceObligationsC;
private EntitySet<Manager_Month_CostInvestmentPlanC> _Manager_Month_CostInvestmentPlanC;
@@ -231031,7 +230905,6 @@ namespace Model
this._Manager_Month_ActivitiesC = new EntitySet<Manager_Month_ActivitiesC>(new Action<Manager_Month_ActivitiesC>(this.attach_Manager_Month_ActivitiesC), new Action<Manager_Month_ActivitiesC>(this.detach_Manager_Month_ActivitiesC));
this._Manager_Month_ActivityDesC = new EntitySet<Manager_Month_ActivityDesC>(new Action<Manager_Month_ActivityDesC>(this.attach_Manager_Month_ActivityDesC), new Action<Manager_Month_ActivityDesC>(this.detach_Manager_Month_ActivityDesC));
this._Manager_Month_CheckC = new EntitySet<Manager_Month_CheckC>(new Action<Manager_Month_CheckC>(this.attach_Manager_Month_CheckC), new Action<Manager_Month_CheckC>(this.detach_Manager_Month_CheckC));
this._Manager_Month_ComplianceObligations = new EntitySet<Manager_Month_ComplianceObligations>(new Action<Manager_Month_ComplianceObligations>(this.attach_Manager_Month_ComplianceObligations), new Action<Manager_Month_ComplianceObligations>(this.detach_Manager_Month_ComplianceObligations));
this._Manager_Month_ComplianceObligationsC = new EntitySet<Manager_Month_ComplianceObligationsC>(new Action<Manager_Month_ComplianceObligationsC>(this.attach_Manager_Month_ComplianceObligationsC), new Action<Manager_Month_ComplianceObligationsC>(this.detach_Manager_Month_ComplianceObligationsC));
this._Manager_Month_CostInvestmentPlanC = new EntitySet<Manager_Month_CostInvestmentPlanC>(new Action<Manager_Month_CostInvestmentPlanC>(this.attach_Manager_Month_CostInvestmentPlanC), new Action<Manager_Month_CostInvestmentPlanC>(this.detach_Manager_Month_CostInvestmentPlanC));
this._Manager_Month_EmergencyExercisesC = new EntitySet<Manager_Month_EmergencyExercisesC>(new Action<Manager_Month_EmergencyExercisesC>(this.attach_Manager_Month_EmergencyExercisesC), new Action<Manager_Month_EmergencyExercisesC>(this.detach_Manager_Month_EmergencyExercisesC));
@@ -233212,19 +233085,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligations_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligations", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")]
public EntitySet<Manager_Month_ComplianceObligations> Manager_Month_ComplianceObligations
{
get
{
return this._Manager_Month_ComplianceObligations;
}
set
{
this._Manager_Month_ComplianceObligations.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Manager_Month_ComplianceObligationsC_Manager_MonthReportC", Storage="_Manager_Month_ComplianceObligationsC", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")]
public EntitySet<Manager_Month_ComplianceObligationsC> Manager_Month_ComplianceObligationsC
{
@@ -233806,18 +233666,6 @@ namespace Model
entity.Manager_MonthReportC = null;
}
private void attach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity)
{
this.SendPropertyChanging();
entity.Manager_MonthReportC = this;
}
private void detach_Manager_Month_ComplianceObligations(Manager_Month_ComplianceObligations entity)
{
this.SendPropertyChanging();
entity.Manager_MonthReportC = null;
}
private void attach_Manager_Month_ComplianceObligationsC(Manager_Month_ComplianceObligationsC entity)
{
this.SendPropertyChanging();
@@ -328916,6 +328764,8 @@ namespace Model
private EntitySet<Doc_DocManage> _Doc_DocManage;
private EntitySet<Doc_DocManageApprove> _Doc_DocManageApprove;
private EntitySet<Driver_DriverProgress> _Driver_DriverProgress;
private EntitySet<Driver_DriverReport> _Driver_DriverReport;
@@ -329617,6 +329467,7 @@ namespace Model
this._DataBase_File = new EntitySet<DataBase_File>(new Action<DataBase_File>(this.attach_DataBase_File), new Action<DataBase_File>(this.detach_DataBase_File));
this._DataBase_StartWorkReport = new EntitySet<DataBase_StartWorkReport>(new Action<DataBase_StartWorkReport>(this.attach_DataBase_StartWorkReport), new Action<DataBase_StartWorkReport>(this.detach_DataBase_StartWorkReport));
this._Doc_DocManage = new EntitySet<Doc_DocManage>(new Action<Doc_DocManage>(this.attach_Doc_DocManage), new Action<Doc_DocManage>(this.detach_Doc_DocManage));
this._Doc_DocManageApprove = new EntitySet<Doc_DocManageApprove>(new Action<Doc_DocManageApprove>(this.attach_Doc_DocManageApprove), new Action<Doc_DocManageApprove>(this.detach_Doc_DocManageApprove));
this._Driver_DriverProgress = new EntitySet<Driver_DriverProgress>(new Action<Driver_DriverProgress>(this.attach_Driver_DriverProgress), new Action<Driver_DriverProgress>(this.detach_Driver_DriverProgress));
this._Driver_DriverReport = new EntitySet<Driver_DriverReport>(new Action<Driver_DriverReport>(this.attach_Driver_DriverReport), new Action<Driver_DriverReport>(this.detach_Driver_DriverReport));
this._Driver_DriverScheme = new EntitySet<Driver_DriverScheme>(new Action<Driver_DriverScheme>(this.attach_Driver_DriverScheme), new Action<Driver_DriverScheme>(this.detach_Driver_DriverScheme));
@@ -331989,6 +331840,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Doc_DocManageApprove_Sys_User", Storage="_Doc_DocManageApprove", ThisKey="UserId", OtherKey="ApproveMan", DeleteRule="NO ACTION")]
public EntitySet<Doc_DocManageApprove> Doc_DocManageApprove
{
get
{
return this._Doc_DocManageApprove;
}
set
{
this._Doc_DocManageApprove.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Driver_DriverProgress_Sys_User", Storage="_Driver_DriverProgress", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<Driver_DriverProgress> Driver_DriverProgress
{
@@ -336391,6 +336255,18 @@ namespace Model
entity.Sys_User = null;
}
private void attach_Doc_DocManageApprove(Doc_DocManageApprove entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_Doc_DocManageApprove(Doc_DocManageApprove entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_Driver_DriverProgress(Driver_DriverProgress entity)
{
this.SendPropertyChanging();