20240322 质量月报

This commit is contained in:
2024-03-22 15:26:07 +08:00
parent 5bee5e8d5c
commit eb9b17df58
9 changed files with 2142 additions and 3659 deletions
+459 -277
View File
@@ -1967,6 +1967,12 @@ namespace Model
partial void InsertReport_ConstructionProblems(Report_ConstructionProblems instance);
partial void UpdateReport_ConstructionProblems(Report_ConstructionProblems instance);
partial void DeleteReport_ConstructionProblems(Report_ConstructionProblems instance);
partial void InsertReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance);
partial void UpdateReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance);
partial void DeleteReport_CQMS_MonthReportItem(Report_CQMS_MonthReportItem instance);
partial void InsertReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance);
partial void UpdateReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance);
partial void DeleteReport_CQMS_ProblemHandle(Report_CQMS_ProblemHandle instance);
partial void InsertReport_CqmsTarget(Report_CqmsTarget instance);
partial void UpdateReport_CqmsTarget(Report_CqmsTarget instance);
partial void DeleteReport_CqmsTarget(Report_CqmsTarget instance);
@@ -7796,6 +7802,22 @@ namespace Model
}
}
public System.Data.Linq.Table<Report_CQMS_MonthReportItem> Report_CQMS_MonthReportItem
{
get
{
return this.GetTable<Report_CQMS_MonthReportItem>();
}
}
public System.Data.Linq.Table<Report_CQMS_ProblemHandle> Report_CQMS_ProblemHandle
{
get
{
return this.GetTable<Report_CQMS_ProblemHandle>();
}
}
public System.Data.Linq.Table<Report_CqmsTarget> Report_CqmsTarget
{
get
@@ -39190,8 +39212,6 @@ namespace Model
private EntitySet<RealName_SynchroSet> _RealName_SynchroSet;
private EntitySet<Report_ConstructionProblems> _Report_ConstructionProblems;
private EntitySet<SecuritySystem_SafetyOrganization> _SecuritySystem_SafetyOrganization;
private EntitySet<SitePerson_DayReportDetail> _SitePerson_DayReportDetail;
@@ -39448,7 +39468,6 @@ namespace Model
this._QualityAudit_SubUnitQuality = new EntitySet<QualityAudit_SubUnitQuality>(new Action<QualityAudit_SubUnitQuality>(this.attach_QualityAudit_SubUnitQuality), new Action<QualityAudit_SubUnitQuality>(this.detach_QualityAudit_SubUnitQuality));
this._QualityAudit_SubUnitQualityAuditDetail = new EntitySet<QualityAudit_SubUnitQualityAuditDetail>(new Action<QualityAudit_SubUnitQualityAuditDetail>(this.attach_QualityAudit_SubUnitQualityAuditDetail), new Action<QualityAudit_SubUnitQualityAuditDetail>(this.detach_QualityAudit_SubUnitQualityAuditDetail));
this._RealName_SynchroSet = new EntitySet<RealName_SynchroSet>(new Action<RealName_SynchroSet>(this.attach_RealName_SynchroSet), new Action<RealName_SynchroSet>(this.detach_RealName_SynchroSet));
this._Report_ConstructionProblems = new EntitySet<Report_ConstructionProblems>(new Action<Report_ConstructionProblems>(this.attach_Report_ConstructionProblems), new Action<Report_ConstructionProblems>(this.detach_Report_ConstructionProblems));
this._SecuritySystem_SafetyOrganization = new EntitySet<SecuritySystem_SafetyOrganization>(new Action<SecuritySystem_SafetyOrganization>(this.attach_SecuritySystem_SafetyOrganization), new Action<SecuritySystem_SafetyOrganization>(this.detach_SecuritySystem_SafetyOrganization));
this._SitePerson_DayReportDetail = new EntitySet<SitePerson_DayReportDetail>(new Action<SitePerson_DayReportDetail>(this.attach_SitePerson_DayReportDetail), new Action<SitePerson_DayReportDetail>(this.detach_SitePerson_DayReportDetail));
this._SitePerson_MonthReportDetail = new EntitySet<SitePerson_MonthReportDetail>(new Action<SitePerson_MonthReportDetail>(this.attach_SitePerson_MonthReportDetail), new Action<SitePerson_MonthReportDetail>(this.detach_SitePerson_MonthReportDetail));
@@ -41926,19 +41945,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_ConstructionProblems_Base_Unit", Storage="_Report_ConstructionProblems", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
public EntitySet<Report_ConstructionProblems> Report_ConstructionProblems
{
get
{
return this._Report_ConstructionProblems;
}
set
{
this._Report_ConstructionProblems.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SecuritySystem_SafetyOrganization_Base_Unit", Storage="_SecuritySystem_SafetyOrganization", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
public EntitySet<SecuritySystem_SafetyOrganization> SecuritySystem_SafetyOrganization
{
@@ -44071,18 +44077,6 @@ namespace Model
entity.Base_Unit = null;
}
private void attach_Report_ConstructionProblems(Report_ConstructionProblems entity)
{
this.SendPropertyChanging();
entity.Base_Unit = this;
}
private void detach_Report_ConstructionProblems(Report_ConstructionProblems entity)
{
this.SendPropertyChanging();
entity.Base_Unit = null;
}
private void attach_SecuritySystem_SafetyOrganization(SecuritySystem_SafetyOrganization entity)
{
this.SendPropertyChanging();
@@ -98311,10 +98305,10 @@ namespace Model
private string _ProjectId;
private string _CNProfessionalId;
private string _DraCode;
private string _CNProfessionalId;
private System.Nullable<System.DateTime> _ReviewDate;
private string _UnitWorkId;
@@ -98337,10 +98331,10 @@ namespace Model
partial void OnIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnCNProfessionalIdChanging(string value);
partial void OnCNProfessionalIdChanged();
partial void OnDraCodeChanging(string value);
partial void OnDraCodeChanged();
partial void OnCNProfessionalIdChanging(string value);
partial void OnCNProfessionalIdChanged();
partial void OnReviewDateChanging(System.Nullable<System.DateTime> value);
partial void OnReviewDateChanged();
partial void OnUnitWorkIdChanging(string value);
@@ -98382,7 +98376,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string ProjectId
{
get
@@ -98402,6 +98396,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DraCode", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string DraCode
{
get
{
return this._DraCode;
}
set
{
if ((this._DraCode != value))
{
this.OnDraCodeChanging(value);
this.SendPropertyChanging();
this._DraCode = value;
this.SendPropertyChanged("DraCode");
this.OnDraCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
public string CNProfessionalId
{
@@ -98422,26 +98436,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DraCode", DbType="NVarChar(50)")]
public string DraCode
{
get
{
return this._DraCode;
}
set
{
if ((this._DraCode != value))
{
this.OnDraCodeChanging(value);
this.SendPropertyChanging();
this._DraCode = value;
this.SendPropertyChanged("DraCode");
this.OnDraCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewDate", DbType="DateTime")]
public System.Nullable<System.DateTime> ReviewDate
{
@@ -306119,10 +306113,6 @@ namespace Model
private string _Remark;
private EntityRef<Base_Unit> _Base_Unit;
private EntityRef<Report_WeekAndMonthReport> _Report_WeekAndMonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -306145,8 +306135,6 @@ namespace Model
public Report_ConstructionProblems()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -306181,10 +306169,6 @@ namespace Model
{
if ((this._ReportId != value))
{
if (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnReportIdChanging(value);
this.SendPropertyChanging();
this._ReportId = value;
@@ -306205,10 +306189,6 @@ namespace Model
{
if ((this._UnitId != value))
{
if (this._Base_Unit.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnUnitIdChanging(value);
this.SendPropertyChanging();
this._UnitId = value;
@@ -306298,70 +306278,438 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_ConstructionProblems_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)]
public Base_Unit Base_Unit
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.Report_CQMS_MonthReportItem")]
public partial class Report_CQMS_MonthReportItem : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Id;
private string _ReportId;
private string _ReType;
private string _ContentName;
private System.Nullable<int> _MonthsCount;
private System.Nullable<int> _ProjectCount;
private string _RectificationRate;
private System.Nullable<int> _MonthsBackCount;
private System.Nullable<int> _TotalNoBackCount;
private string _Remarks;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnReportIdChanging(string value);
partial void OnReportIdChanged();
partial void OnReTypeChanging(string value);
partial void OnReTypeChanged();
partial void OnContentNameChanging(string value);
partial void OnContentNameChanged();
partial void OnMonthsCountChanging(System.Nullable<int> value);
partial void OnMonthsCountChanged();
partial void OnProjectCountChanging(System.Nullable<int> value);
partial void OnProjectCountChanged();
partial void OnRectificationRateChanging(string value);
partial void OnRectificationRateChanged();
partial void OnMonthsBackCountChanging(System.Nullable<int> value);
partial void OnMonthsBackCountChanged();
partial void OnTotalNoBackCountChanging(System.Nullable<int> value);
partial void OnTotalNoBackCountChanged();
partial void OnRemarksChanging(string value);
partial void OnRemarksChanged();
#endregion
public Report_CQMS_MonthReportItem()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Id
{
get
{
return this._Base_Unit.Entity;
return this._Id;
}
set
{
Base_Unit previousValue = this._Base_Unit.Entity;
if (((previousValue != value)
|| (this._Base_Unit.HasLoadedOrAssignedValue == false)))
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Unit.Entity = null;
previousValue.Report_ConstructionProblems.Remove(this);
}
this._Base_Unit.Entity = value;
if ((value != null))
{
value.Report_ConstructionProblems.Add(this);
this._UnitId = value.UnitId;
}
else
{
this._UnitId = default(string);
}
this.SendPropertyChanged("Base_Unit");
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_ConstructionProblems_Report_WeekAndMonthReport", Storage="_Report_WeekAndMonthReport", ThisKey="ReportId", OtherKey="ReportId", IsForeignKey=true)]
public Report_WeekAndMonthReport Report_WeekAndMonthReport
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportId", DbType="NVarChar(50)")]
public string ReportId
{
get
{
return this._Report_WeekAndMonthReport.Entity;
return this._ReportId;
}
set
{
Report_WeekAndMonthReport previousValue = this._Report_WeekAndMonthReport.Entity;
if (((previousValue != value)
|| (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue == false)))
if ((this._ReportId != value))
{
this.OnReportIdChanging(value);
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Report_WeekAndMonthReport.Entity = null;
previousValue.Report_ConstructionProblems.Remove(this);
}
this._Report_WeekAndMonthReport.Entity = value;
if ((value != null))
{
value.Report_ConstructionProblems.Add(this);
this._ReportId = value.ReportId;
}
else
{
this._ReportId = default(string);
}
this.SendPropertyChanged("Report_WeekAndMonthReport");
this._ReportId = value;
this.SendPropertyChanged("ReportId");
this.OnReportIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReType", DbType="NVarChar(20)")]
public string ReType
{
get
{
return this._ReType;
}
set
{
if ((this._ReType != value))
{
this.OnReTypeChanging(value);
this.SendPropertyChanging();
this._ReType = value;
this.SendPropertyChanged("ReType");
this.OnReTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContentName", DbType="NVarChar(50)")]
public string ContentName
{
get
{
return this._ContentName;
}
set
{
if ((this._ContentName != value))
{
this.OnContentNameChanging(value);
this.SendPropertyChanging();
this._ContentName = value;
this.SendPropertyChanged("ContentName");
this.OnContentNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthsCount", DbType="Int")]
public System.Nullable<int> MonthsCount
{
get
{
return this._MonthsCount;
}
set
{
if ((this._MonthsCount != value))
{
this.OnMonthsCountChanging(value);
this.SendPropertyChanging();
this._MonthsCount = value;
this.SendPropertyChanged("MonthsCount");
this.OnMonthsCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectCount", DbType="Int")]
public System.Nullable<int> ProjectCount
{
get
{
return this._ProjectCount;
}
set
{
if ((this._ProjectCount != value))
{
this.OnProjectCountChanging(value);
this.SendPropertyChanging();
this._ProjectCount = value;
this.SendPropertyChanged("ProjectCount");
this.OnProjectCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationRate", DbType="NVarChar(50)")]
public string RectificationRate
{
get
{
return this._RectificationRate;
}
set
{
if ((this._RectificationRate != value))
{
this.OnRectificationRateChanging(value);
this.SendPropertyChanging();
this._RectificationRate = value;
this.SendPropertyChanged("RectificationRate");
this.OnRectificationRateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthsBackCount", DbType="Int")]
public System.Nullable<int> MonthsBackCount
{
get
{
return this._MonthsBackCount;
}
set
{
if ((this._MonthsBackCount != value))
{
this.OnMonthsBackCountChanging(value);
this.SendPropertyChanging();
this._MonthsBackCount = value;
this.SendPropertyChanged("MonthsBackCount");
this.OnMonthsBackCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalNoBackCount", DbType="Int")]
public System.Nullable<int> TotalNoBackCount
{
get
{
return this._TotalNoBackCount;
}
set
{
if ((this._TotalNoBackCount != value))
{
this.OnTotalNoBackCountChanging(value);
this.SendPropertyChanging();
this._TotalNoBackCount = value;
this.SendPropertyChanged("TotalNoBackCount");
this.OnTotalNoBackCountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remarks", DbType="NVarChar(500)")]
public string Remarks
{
get
{
return this._Remarks;
}
set
{
if ((this._Remarks != value))
{
this.OnRemarksChanging(value);
this.SendPropertyChanging();
this._Remarks = value;
this.SendPropertyChanged("Remarks");
this.OnRemarksChanged();
}
}
}
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.Report_CQMS_ProblemHandle")]
public partial class Report_CQMS_ProblemHandle : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Id;
private string _ReportId;
private string _ReType;
private string _UnitName;
private string _ProblemDes;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnReportIdChanging(string value);
partial void OnReportIdChanged();
partial void OnReTypeChanging(string value);
partial void OnReTypeChanged();
partial void OnUnitNameChanging(string value);
partial void OnUnitNameChanged();
partial void OnProblemDesChanging(string value);
partial void OnProblemDesChanged();
#endregion
public Report_CQMS_ProblemHandle()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportId", DbType="NVarChar(50)")]
public string ReportId
{
get
{
return this._ReportId;
}
set
{
if ((this._ReportId != value))
{
this.OnReportIdChanging(value);
this.SendPropertyChanging();
this._ReportId = value;
this.SendPropertyChanged("ReportId");
this.OnReportIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReType", DbType="NChar(20)")]
public string ReType
{
get
{
return this._ReType;
}
set
{
if ((this._ReType != value))
{
this.OnReTypeChanging(value);
this.SendPropertyChanging();
this._ReType = value;
this.SendPropertyChanged("ReType");
this.OnReTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(100)")]
public string UnitName
{
get
{
return this._UnitName;
}
set
{
if ((this._UnitName != value))
{
this.OnUnitNameChanging(value);
this.SendPropertyChanging();
this._UnitName = value;
this.SendPropertyChanged("UnitName");
this.OnUnitNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemDes", DbType="NVarChar(100)")]
public string ProblemDes
{
get
{
return this._ProblemDes;
}
set
{
if ((this._ProblemDes != value))
{
this.OnProblemDesChanging(value);
this.SendPropertyChanging();
this._ProblemDes = value;
this.SendPropertyChanged("ProblemDes");
this.OnProblemDesChanged();
}
}
}
@@ -306629,8 +306977,6 @@ namespace Model
private string _NextQualityControlContent;
private EntityRef<Report_WeekAndMonthReport> _Report_WeekAndMonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -306645,7 +306991,6 @@ namespace Model
public Report_NextQualityControl()
{
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -306680,10 +307025,6 @@ namespace Model
{
if ((this._ReportId != value))
{
if (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnReportIdChanging(value);
this.SendPropertyChanging();
this._ReportId = value;
@@ -306713,40 +307054,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_NextQualityControl_Report_WeekAndMonthReport", Storage="_Report_WeekAndMonthReport", ThisKey="ReportId", OtherKey="ReportId", IsForeignKey=true)]
public Report_WeekAndMonthReport Report_WeekAndMonthReport
{
get
{
return this._Report_WeekAndMonthReport.Entity;
}
set
{
Report_WeekAndMonthReport previousValue = this._Report_WeekAndMonthReport.Entity;
if (((previousValue != value)
|| (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Report_WeekAndMonthReport.Entity = null;
previousValue.Report_NextQualityControl.Remove(this);
}
this._Report_WeekAndMonthReport.Entity = value;
if ((value != null))
{
value.Report_NextQualityControl.Add(this);
this._ReportId = value.ReportId;
}
else
{
this._ReportId = default(string);
}
this.SendPropertyChanged("Report_WeekAndMonthReport");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -306922,8 +307229,6 @@ namespace Model
private string _Remark;
private EntityRef<Report_WeekAndMonthReport> _Report_WeekAndMonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -306946,7 +307251,6 @@ namespace Model
public Report_RowMaterialProblem()
{
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -306981,10 +307285,6 @@ namespace Model
{
if ((this._ReportId != value))
{
if (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnReportIdChanging(value);
this.SendPropertyChanging();
this._ReportId = value;
@@ -307094,40 +307394,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_RowMaterialProblem_Report_WeekAndMonthReport", Storage="_Report_WeekAndMonthReport", ThisKey="ReportId", OtherKey="ReportId", IsForeignKey=true)]
public Report_WeekAndMonthReport Report_WeekAndMonthReport
{
get
{
return this._Report_WeekAndMonthReport.Entity;
}
set
{
Report_WeekAndMonthReport previousValue = this._Report_WeekAndMonthReport.Entity;
if (((previousValue != value)
|| (this._Report_WeekAndMonthReport.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Report_WeekAndMonthReport.Entity = null;
previousValue.Report_RowMaterialProblem.Remove(this);
}
this._Report_WeekAndMonthReport.Entity = value;
if ((value != null))
{
value.Report_RowMaterialProblem.Add(this);
this._ReportId = value.ReportId;
}
else
{
this._ReportId = default(string);
}
this.SendPropertyChanged("Report_WeekAndMonthReport");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -307454,12 +307720,6 @@ namespace Model
private EntitySet<Report_Comprehensive> _Report_Comprehensive;
private EntitySet<Report_ConstructionProblems> _Report_ConstructionProblems;
private EntitySet<Report_NextQualityControl> _Report_NextQualityControl;
private EntitySet<Report_RowMaterialProblem> _Report_RowMaterialProblem;
private EntitySet<Report_ThisWeekOrMonthContent> _Report_ThisWeekOrMonthContent;
private EntityRef<Base_Project> _Base_Project;
@@ -307485,9 +307745,6 @@ namespace Model
public Report_WeekAndMonthReport()
{
this._Report_Comprehensive = new EntitySet<Report_Comprehensive>(new Action<Report_Comprehensive>(this.attach_Report_Comprehensive), new Action<Report_Comprehensive>(this.detach_Report_Comprehensive));
this._Report_ConstructionProblems = new EntitySet<Report_ConstructionProblems>(new Action<Report_ConstructionProblems>(this.attach_Report_ConstructionProblems), new Action<Report_ConstructionProblems>(this.detach_Report_ConstructionProblems));
this._Report_NextQualityControl = new EntitySet<Report_NextQualityControl>(new Action<Report_NextQualityControl>(this.attach_Report_NextQualityControl), new Action<Report_NextQualityControl>(this.detach_Report_NextQualityControl));
this._Report_RowMaterialProblem = new EntitySet<Report_RowMaterialProblem>(new Action<Report_RowMaterialProblem>(this.attach_Report_RowMaterialProblem), new Action<Report_RowMaterialProblem>(this.detach_Report_RowMaterialProblem));
this._Report_ThisWeekOrMonthContent = new EntitySet<Report_ThisWeekOrMonthContent>(new Action<Report_ThisWeekOrMonthContent>(this.attach_Report_ThisWeekOrMonthContent), new Action<Report_ThisWeekOrMonthContent>(this.detach_Report_ThisWeekOrMonthContent));
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
@@ -307630,45 +307887,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_ConstructionProblems_Report_WeekAndMonthReport", Storage="_Report_ConstructionProblems", ThisKey="ReportId", OtherKey="ReportId", DeleteRule="NO ACTION")]
public EntitySet<Report_ConstructionProblems> Report_ConstructionProblems
{
get
{
return this._Report_ConstructionProblems;
}
set
{
this._Report_ConstructionProblems.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_NextQualityControl_Report_WeekAndMonthReport", Storage="_Report_NextQualityControl", ThisKey="ReportId", OtherKey="ReportId", DeleteRule="NO ACTION")]
public EntitySet<Report_NextQualityControl> Report_NextQualityControl
{
get
{
return this._Report_NextQualityControl;
}
set
{
this._Report_NextQualityControl.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_RowMaterialProblem_Report_WeekAndMonthReport", Storage="_Report_RowMaterialProblem", ThisKey="ReportId", OtherKey="ReportId", DeleteRule="NO ACTION")]
public EntitySet<Report_RowMaterialProblem> Report_RowMaterialProblem
{
get
{
return this._Report_RowMaterialProblem;
}
set
{
this._Report_RowMaterialProblem.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_ThisWeekOrMonthContent_Report_WeekAndMonthReport", Storage="_Report_ThisWeekOrMonthContent", ThisKey="ReportId", OtherKey="ReportId", DeleteRule="NO ACTION")]
public EntitySet<Report_ThisWeekOrMonthContent> Report_ThisWeekOrMonthContent
{
@@ -307748,42 +307966,6 @@ namespace Model
entity.Report_WeekAndMonthReport = null;
}
private void attach_Report_ConstructionProblems(Report_ConstructionProblems entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = this;
}
private void detach_Report_ConstructionProblems(Report_ConstructionProblems entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = null;
}
private void attach_Report_NextQualityControl(Report_NextQualityControl entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = this;
}
private void detach_Report_NextQualityControl(Report_NextQualityControl entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = null;
}
private void attach_Report_RowMaterialProblem(Report_RowMaterialProblem entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = this;
}
private void detach_Report_RowMaterialProblem(Report_RowMaterialProblem entity)
{
this.SendPropertyChanging();
entity.Report_WeekAndMonthReport = null;
}
private void attach_Report_ThisWeekOrMonthContent(Report_ThisWeekOrMonthContent entity)
{
this.SendPropertyChanging();