质量月报

This commit is contained in:
2023-05-21 19:58:25 +08:00
parent ae176da165
commit 0af53e1635
8 changed files with 2043 additions and 2 deletions
+764
View File
@@ -683,6 +683,12 @@ namespace Model
partial void InsertCQMS_Law_ConstructionStandardListProject(CQMS_Law_ConstructionStandardListProject instance);
partial void UpdateCQMS_Law_ConstructionStandardListProject(CQMS_Law_ConstructionStandardListProject instance);
partial void DeleteCQMS_Law_ConstructionStandardListProject(CQMS_Law_ConstructionStandardListProject instance);
partial void InsertCQMS_MonthReport(CQMS_MonthReport instance);
partial void UpdateCQMS_MonthReport(CQMS_MonthReport instance);
partial void DeleteCQMS_MonthReport(CQMS_MonthReport instance);
partial void InsertCQMS_MonthReportItem(CQMS_MonthReportItem instance);
partial void UpdateCQMS_MonthReportItem(CQMS_MonthReportItem instance);
partial void DeleteCQMS_MonthReportItem(CQMS_MonthReportItem instance);
partial void InsertCQMS_Statement(CQMS_Statement instance);
partial void UpdateCQMS_Statement(CQMS_Statement instance);
partial void DeleteCQMS_Statement(CQMS_Statement instance);
@@ -4157,6 +4163,22 @@ namespace Model
}
}
public System.Data.Linq.Table<CQMS_MonthReport> CQMS_MonthReport
{
get
{
return this.GetTable<CQMS_MonthReport>();
}
}
public System.Data.Linq.Table<CQMS_MonthReportItem> CQMS_MonthReportItem
{
get
{
return this.GetTable<CQMS_MonthReportItem>();
}
}
public System.Data.Linq.Table<CQMS_Statement> CQMS_Statement
{
get
@@ -24825,6 +24847,8 @@ namespace Model
private EntitySet<CQMS_Information_ConfirmForm> _CQMS_Information_ConfirmForm;
private EntitySet<CQMS_MonthReport> _CQMS_MonthReport;
private EntitySet<CQMS_Statement> _CQMS_Statement;
private EntitySet<CQMS_VisaApplication> _CQMS_VisaApplication;
@@ -25395,6 +25419,7 @@ namespace Model
this._CQMS_Foreign_ControlPointCheck = new EntitySet<CQMS_Foreign_ControlPointCheck>(new Action<CQMS_Foreign_ControlPointCheck>(this.attach_CQMS_Foreign_ControlPointCheck), new Action<CQMS_Foreign_ControlPointCheck>(this.detach_CQMS_Foreign_ControlPointCheck));
this._CQMS_Foreign_ITPListProject = new EntitySet<CQMS_Foreign_ITPListProject>(new Action<CQMS_Foreign_ITPListProject>(this.attach_CQMS_Foreign_ITPListProject), new Action<CQMS_Foreign_ITPListProject>(this.detach_CQMS_Foreign_ITPListProject));
this._CQMS_Information_ConfirmForm = new EntitySet<CQMS_Information_ConfirmForm>(new Action<CQMS_Information_ConfirmForm>(this.attach_CQMS_Information_ConfirmForm), new Action<CQMS_Information_ConfirmForm>(this.detach_CQMS_Information_ConfirmForm));
this._CQMS_MonthReport = new EntitySet<CQMS_MonthReport>(new Action<CQMS_MonthReport>(this.attach_CQMS_MonthReport), new Action<CQMS_MonthReport>(this.detach_CQMS_MonthReport));
this._CQMS_Statement = new EntitySet<CQMS_Statement>(new Action<CQMS_Statement>(this.attach_CQMS_Statement), new Action<CQMS_Statement>(this.detach_CQMS_Statement));
this._CQMS_VisaApplication = new EntitySet<CQMS_VisaApplication>(new Action<CQMS_VisaApplication>(this.attach_CQMS_VisaApplication), new Action<CQMS_VisaApplication>(this.detach_CQMS_VisaApplication));
this._CQMS_WorkOrder = new EntitySet<CQMS_WorkOrder>(new Action<CQMS_WorkOrder>(this.attach_CQMS_WorkOrder), new Action<CQMS_WorkOrder>(this.detach_CQMS_WorkOrder));
@@ -27325,6 +27350,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CQMS_MonthReport_Base_Project", Storage="_CQMS_MonthReport", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<CQMS_MonthReport> CQMS_MonthReport
{
get
{
return this._CQMS_MonthReport;
}
set
{
this._CQMS_MonthReport.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CQMS_Statement_Base_Project", Storage="_CQMS_Statement", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<CQMS_Statement> CQMS_Statement
{
@@ -30950,6 +30988,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_CQMS_MonthReport(CQMS_MonthReport entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_CQMS_MonthReport(CQMS_MonthReport entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_CQMS_Statement(CQMS_Statement entity)
{
this.SendPropertyChanging();
@@ -113468,6 +113518,720 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CQMS_MonthReport")]
public partial class CQMS_MonthReport : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _MonthReportId;
private string _ProjectId;
private System.Nullable<int> _Years;
private EntityRef<Base_Project> _Base_Project;
private EntitySet<CQMS_MonthReportItem> _CQMS_MonthReportItem;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnMonthReportIdChanging(string value);
partial void OnMonthReportIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnYearsChanging(System.Nullable<int> value);
partial void OnYearsChanged();
#endregion
public CQMS_MonthReport()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._CQMS_MonthReportItem = new EntitySet<CQMS_MonthReportItem>(new Action<CQMS_MonthReportItem>(this.attach_CQMS_MonthReportItem), new Action<CQMS_MonthReportItem>(this.detach_CQMS_MonthReportItem));
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string MonthReportId
{
get
{
return this._MonthReportId;
}
set
{
if ((this._MonthReportId != value))
{
this.OnMonthReportIdChanging(value);
this.SendPropertyChanging();
this._MonthReportId = value;
this.SendPropertyChanged("MonthReportId");
this.OnMonthReportIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Years", DbType="Int")]
public System.Nullable<int> Years
{
get
{
return this._Years;
}
set
{
if ((this._Years != value))
{
this.OnYearsChanging(value);
this.SendPropertyChanging();
this._Years = value;
this.SendPropertyChanged("Years");
this.OnYearsChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CQMS_MonthReport_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.CQMS_MonthReport.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.CQMS_MonthReport.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CQMS_MonthReportItem_CQMS_MonthReport", Storage="_CQMS_MonthReportItem", ThisKey="MonthReportId", OtherKey="MonthReportId", DeleteRule="NO ACTION")]
public EntitySet<CQMS_MonthReportItem> CQMS_MonthReportItem
{
get
{
return this._CQMS_MonthReportItem;
}
set
{
this._CQMS_MonthReportItem.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_CQMS_MonthReportItem(CQMS_MonthReportItem entity)
{
this.SendPropertyChanging();
entity.CQMS_MonthReport = this;
}
private void detach_CQMS_MonthReportItem(CQMS_MonthReportItem entity)
{
this.SendPropertyChanging();
entity.CQMS_MonthReport = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CQMS_MonthReportItem")]
public partial class CQMS_MonthReportItem : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _MonthReportItemId;
private string _MonthReportId;
private string _ReportItem;
private string _Unit;
private System.Nullable<int> _Sort;
private System.Nullable<int> _Month1;
private System.Nullable<int> _Month2;
private System.Nullable<int> _Month3;
private System.Nullable<int> _Month4;
private System.Nullable<int> _Month5;
private System.Nullable<int> _Month6;
private System.Nullable<int> _Month7;
private System.Nullable<int> _Month8;
private System.Nullable<int> _Month9;
private System.Nullable<int> _Month10;
private System.Nullable<int> _Month11;
private System.Nullable<int> _Month12;
private System.Nullable<int> _YearTotal;
private System.Nullable<int> _ProjectTotal;
private EntityRef<CQMS_MonthReport> _CQMS_MonthReport;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnMonthReportItemIdChanging(string value);
partial void OnMonthReportItemIdChanged();
partial void OnMonthReportIdChanging(string value);
partial void OnMonthReportIdChanged();
partial void OnReportItemChanging(string value);
partial void OnReportItemChanged();
partial void OnUnitChanging(string value);
partial void OnUnitChanged();
partial void OnSortChanging(System.Nullable<int> value);
partial void OnSortChanged();
partial void OnMonth1Changing(System.Nullable<int> value);
partial void OnMonth1Changed();
partial void OnMonth2Changing(System.Nullable<int> value);
partial void OnMonth2Changed();
partial void OnMonth3Changing(System.Nullable<int> value);
partial void OnMonth3Changed();
partial void OnMonth4Changing(System.Nullable<int> value);
partial void OnMonth4Changed();
partial void OnMonth5Changing(System.Nullable<int> value);
partial void OnMonth5Changed();
partial void OnMonth6Changing(System.Nullable<int> value);
partial void OnMonth6Changed();
partial void OnMonth7Changing(System.Nullable<int> value);
partial void OnMonth7Changed();
partial void OnMonth8Changing(System.Nullable<int> value);
partial void OnMonth8Changed();
partial void OnMonth9Changing(System.Nullable<int> value);
partial void OnMonth9Changed();
partial void OnMonth10Changing(System.Nullable<int> value);
partial void OnMonth10Changed();
partial void OnMonth11Changing(System.Nullable<int> value);
partial void OnMonth11Changed();
partial void OnMonth12Changing(System.Nullable<int> value);
partial void OnMonth12Changed();
partial void OnYearTotalChanging(System.Nullable<int> value);
partial void OnYearTotalChanged();
partial void OnProjectTotalChanging(System.Nullable<int> value);
partial void OnProjectTotalChanged();
#endregion
public CQMS_MonthReportItem()
{
this._CQMS_MonthReport = default(EntityRef<CQMS_MonthReport>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthReportItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string MonthReportItemId
{
get
{
return this._MonthReportItemId;
}
set
{
if ((this._MonthReportItemId != value))
{
this.OnMonthReportItemIdChanging(value);
this.SendPropertyChanging();
this._MonthReportItemId = value;
this.SendPropertyChanged("MonthReportItemId");
this.OnMonthReportItemIdChanged();
}
}
}
[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._CQMS_MonthReport.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="_ReportItem", DbType="NVarChar(50)")]
public string ReportItem
{
get
{
return this._ReportItem;
}
set
{
if ((this._ReportItem != value))
{
this.OnReportItemChanging(value);
this.SendPropertyChanging();
this._ReportItem = value;
this.SendPropertyChanged("ReportItem");
this.OnReportItemChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(10)")]
public string Unit
{
get
{
return this._Unit;
}
set
{
if ((this._Unit != value))
{
this.OnUnitChanging(value);
this.SendPropertyChanging();
this._Unit = value;
this.SendPropertyChanged("Unit");
this.OnUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Sort", DbType="Int")]
public System.Nullable<int> Sort
{
get
{
return this._Sort;
}
set
{
if ((this._Sort != value))
{
this.OnSortChanging(value);
this.SendPropertyChanging();
this._Sort = value;
this.SendPropertyChanged("Sort");
this.OnSortChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month1", DbType="Int")]
public System.Nullable<int> Month1
{
get
{
return this._Month1;
}
set
{
if ((this._Month1 != value))
{
this.OnMonth1Changing(value);
this.SendPropertyChanging();
this._Month1 = value;
this.SendPropertyChanged("Month1");
this.OnMonth1Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month2", DbType="Int")]
public System.Nullable<int> Month2
{
get
{
return this._Month2;
}
set
{
if ((this._Month2 != value))
{
this.OnMonth2Changing(value);
this.SendPropertyChanging();
this._Month2 = value;
this.SendPropertyChanged("Month2");
this.OnMonth2Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month3", DbType="Int")]
public System.Nullable<int> Month3
{
get
{
return this._Month3;
}
set
{
if ((this._Month3 != value))
{
this.OnMonth3Changing(value);
this.SendPropertyChanging();
this._Month3 = value;
this.SendPropertyChanged("Month3");
this.OnMonth3Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month4", DbType="Int")]
public System.Nullable<int> Month4
{
get
{
return this._Month4;
}
set
{
if ((this._Month4 != value))
{
this.OnMonth4Changing(value);
this.SendPropertyChanging();
this._Month4 = value;
this.SendPropertyChanged("Month4");
this.OnMonth4Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month5", DbType="Int")]
public System.Nullable<int> Month5
{
get
{
return this._Month5;
}
set
{
if ((this._Month5 != value))
{
this.OnMonth5Changing(value);
this.SendPropertyChanging();
this._Month5 = value;
this.SendPropertyChanged("Month5");
this.OnMonth5Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month6", DbType="Int")]
public System.Nullable<int> Month6
{
get
{
return this._Month6;
}
set
{
if ((this._Month6 != value))
{
this.OnMonth6Changing(value);
this.SendPropertyChanging();
this._Month6 = value;
this.SendPropertyChanged("Month6");
this.OnMonth6Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month7", DbType="Int")]
public System.Nullable<int> Month7
{
get
{
return this._Month7;
}
set
{
if ((this._Month7 != value))
{
this.OnMonth7Changing(value);
this.SendPropertyChanging();
this._Month7 = value;
this.SendPropertyChanged("Month7");
this.OnMonth7Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month8", DbType="Int")]
public System.Nullable<int> Month8
{
get
{
return this._Month8;
}
set
{
if ((this._Month8 != value))
{
this.OnMonth8Changing(value);
this.SendPropertyChanging();
this._Month8 = value;
this.SendPropertyChanged("Month8");
this.OnMonth8Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month9", DbType="Int")]
public System.Nullable<int> Month9
{
get
{
return this._Month9;
}
set
{
if ((this._Month9 != value))
{
this.OnMonth9Changing(value);
this.SendPropertyChanging();
this._Month9 = value;
this.SendPropertyChanged("Month9");
this.OnMonth9Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month10", DbType="Int")]
public System.Nullable<int> Month10
{
get
{
return this._Month10;
}
set
{
if ((this._Month10 != value))
{
this.OnMonth10Changing(value);
this.SendPropertyChanging();
this._Month10 = value;
this.SendPropertyChanged("Month10");
this.OnMonth10Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month11", DbType="Int")]
public System.Nullable<int> Month11
{
get
{
return this._Month11;
}
set
{
if ((this._Month11 != value))
{
this.OnMonth11Changing(value);
this.SendPropertyChanging();
this._Month11 = value;
this.SendPropertyChanged("Month11");
this.OnMonth11Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Month12", DbType="Int")]
public System.Nullable<int> Month12
{
get
{
return this._Month12;
}
set
{
if ((this._Month12 != value))
{
this.OnMonth12Changing(value);
this.SendPropertyChanging();
this._Month12 = value;
this.SendPropertyChanged("Month12");
this.OnMonth12Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearTotal", DbType="Int")]
public System.Nullable<int> YearTotal
{
get
{
return this._YearTotal;
}
set
{
if ((this._YearTotal != value))
{
this.OnYearTotalChanging(value);
this.SendPropertyChanging();
this._YearTotal = value;
this.SendPropertyChanged("YearTotal");
this.OnYearTotalChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectTotal", DbType="Int")]
public System.Nullable<int> ProjectTotal
{
get
{
return this._ProjectTotal;
}
set
{
if ((this._ProjectTotal != value))
{
this.OnProjectTotalChanging(value);
this.SendPropertyChanging();
this._ProjectTotal = value;
this.SendPropertyChanged("ProjectTotal");
this.OnProjectTotalChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CQMS_MonthReportItem_CQMS_MonthReport", Storage="_CQMS_MonthReport", ThisKey="MonthReportId", OtherKey="MonthReportId", IsForeignKey=true)]
public CQMS_MonthReport CQMS_MonthReport
{
get
{
return this._CQMS_MonthReport.Entity;
}
set
{
CQMS_MonthReport previousValue = this._CQMS_MonthReport.Entity;
if (((previousValue != value)
|| (this._CQMS_MonthReport.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._CQMS_MonthReport.Entity = null;
previousValue.CQMS_MonthReportItem.Remove(this);
}
this._CQMS_MonthReport.Entity = value;
if ((value != null))
{
value.CQMS_MonthReportItem.Add(this);
this._MonthReportId = value.MonthReportId;
}
else
{
this._MonthReportId = default(string);
}
this.SendPropertyChanged("CQMS_MonthReport");
}
}
}
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.CQMS_Statement")]
public partial class CQMS_Statement : INotifyPropertyChanging, INotifyPropertyChanged
{