提交代码

This commit is contained in:
2024-03-22 17:27:31 +08:00
19 changed files with 4104 additions and 3786 deletions
+265 -252
View File
@@ -1970,6 +1970,9 @@ 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_CqmsTarget(Report_CqmsTarget instance);
partial void UpdateReport_CqmsTarget(Report_CqmsTarget instance);
partial void DeleteReport_CqmsTarget(Report_CqmsTarget instance);
@@ -7810,6 +7813,14 @@ 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_CqmsTarget> Report_CqmsTarget
{
get
@@ -39240,8 +39251,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;
@@ -39498,7 +39507,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));
@@ -41976,19 +41984,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
{
@@ -44121,18 +44116,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();
@@ -306573,10 +306556,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);
@@ -306599,8 +306578,6 @@ namespace Model
public Report_ConstructionProblems()
{
this._Base_Unit = default(EntityRef<Base_Unit>);
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -306635,10 +306612,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;
@@ -306659,10 +306632,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;
@@ -306752,70 +306721,280 @@ 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();
}
}
}
@@ -307083,8 +307262,6 @@ namespace Model
private string _NextQualityControlContent;
private EntityRef<Report_WeekAndMonthReport> _Report_WeekAndMonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -307099,7 +307276,6 @@ namespace Model
public Report_NextQualityControl()
{
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -307134,10 +307310,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;
@@ -307167,40 +307339,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;
@@ -307376,8 +307514,6 @@ namespace Model
private string _Remark;
private EntityRef<Report_WeekAndMonthReport> _Report_WeekAndMonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -307400,7 +307536,6 @@ namespace Model
public Report_RowMaterialProblem()
{
this._Report_WeekAndMonthReport = default(EntityRef<Report_WeekAndMonthReport>);
OnCreated();
}
@@ -307435,10 +307570,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;
@@ -307548,40 +307679,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;
@@ -307908,12 +308005,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;
@@ -307939,9 +308030,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();
@@ -308084,45 +308172,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
{
@@ -308202,42 +308251,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();