20261103 HSE月报
This commit is contained in:
+703
-24
@@ -2102,6 +2102,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_HSEMonthReport(Report_HSEMonthReport instance);
|
||||
partial void UpdateReport_HSEMonthReport(Report_HSEMonthReport instance);
|
||||
partial void DeleteReport_HSEMonthReport(Report_HSEMonthReport instance);
|
||||
partial void InsertReport_NextQualityControl(Report_NextQualityControl instance);
|
||||
partial void UpdateReport_NextQualityControl(Report_NextQualityControl instance);
|
||||
partial void DeleteReport_NextQualityControl(Report_NextQualityControl instance);
|
||||
@@ -8295,6 +8298,14 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Report_HSEMonthReport> Report_HSEMonthReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Report_HSEMonthReport>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Report_NextQualityControl> Report_NextQualityControl
|
||||
{
|
||||
get
|
||||
@@ -45148,6 +45159,8 @@ namespace Model
|
||||
|
||||
private EntitySet<Report_ConstructionProblems> _Report_ConstructionProblems;
|
||||
|
||||
private EntitySet<Report_HSEMonthReport> _Report_HSEMonthReport;
|
||||
|
||||
private EntitySet<SafetyManagementData> _SafetyManagementData;
|
||||
|
||||
private EntitySet<SecuritySystem_SafetyOrganization> _SecuritySystem_SafetyOrganization;
|
||||
@@ -45439,6 +45452,7 @@ namespace Model
|
||||
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._Report_HSEMonthReport = new EntitySet<Report_HSEMonthReport>(new Action<Report_HSEMonthReport>(this.attach_Report_HSEMonthReport), new Action<Report_HSEMonthReport>(this.detach_Report_HSEMonthReport));
|
||||
this._SafetyManagementData = new EntitySet<SafetyManagementData>(new Action<SafetyManagementData>(this.attach_SafetyManagementData), new Action<SafetyManagementData>(this.detach_SafetyManagementData));
|
||||
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_Bak = new EntitySet<SitePerson_DayReportDetail_Bak>(new Action<SitePerson_DayReportDetail_Bak>(this.attach_SitePerson_DayReportDetail_Bak), new Action<SitePerson_DayReportDetail_Bak>(this.detach_SitePerson_DayReportDetail_Bak));
|
||||
@@ -48203,6 +48217,19 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_HSEMonthReport_Base_Unit", Storage="_Report_HSEMonthReport", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Report_HSEMonthReport> Report_HSEMonthReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Report_HSEMonthReport;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Report_HSEMonthReport.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyManagementData_Base_Unit", Storage="_SafetyManagementData", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<SafetyManagementData> SafetyManagementData
|
||||
{
|
||||
@@ -50617,6 +50644,18 @@ namespace Model
|
||||
entity.Base_Unit = null;
|
||||
}
|
||||
|
||||
private void attach_Report_HSEMonthReport(Report_HSEMonthReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Unit = this;
|
||||
}
|
||||
|
||||
private void detach_Report_HSEMonthReport(Report_HSEMonthReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Unit = null;
|
||||
}
|
||||
|
||||
private void attach_SafetyManagementData(SafetyManagementData entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
@@ -156069,9 +156108,9 @@ namespace Model
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private System.Nullable<decimal> _EnergySavingIndex;
|
||||
private System.Nullable<int> _EnergySavingIndex;
|
||||
|
||||
private System.Nullable<decimal> _WaterSavingIndex;
|
||||
private System.Nullable<int> _WaterSavingIndex;
|
||||
|
||||
private string _EnergySavingSchemes;
|
||||
|
||||
@@ -156083,13 +156122,13 @@ namespace Model
|
||||
|
||||
private string _SupportingDocuments;
|
||||
|
||||
private System.Nullable<decimal> _ActualEnergySaving;
|
||||
private System.Nullable<int> _ActualEnergySaving;
|
||||
|
||||
private System.Nullable<decimal> _ActualWaterSaving;
|
||||
private System.Nullable<int> _ActualWaterSaving;
|
||||
|
||||
private System.Nullable<decimal> _EnergySavingCompletionRate;
|
||||
private System.Nullable<int> _EnergySavingCompletionRate;
|
||||
|
||||
private System.Nullable<decimal> _WaterSavingCompletionRate;
|
||||
private System.Nullable<int> _WaterSavingCompletionRate;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
@@ -156109,9 +156148,9 @@ namespace Model
|
||||
partial void OnEnergyWaterConservationIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnEnergySavingIndexChanging(System.Nullable<decimal> value);
|
||||
partial void OnEnergySavingIndexChanging(System.Nullable<int> value);
|
||||
partial void OnEnergySavingIndexChanged();
|
||||
partial void OnWaterSavingIndexChanging(System.Nullable<decimal> value);
|
||||
partial void OnWaterSavingIndexChanging(System.Nullable<int> value);
|
||||
partial void OnWaterSavingIndexChanged();
|
||||
partial void OnEnergySavingSchemesChanging(string value);
|
||||
partial void OnEnergySavingSchemesChanged();
|
||||
@@ -156123,13 +156162,13 @@ namespace Model
|
||||
partial void OnSummaryChanged();
|
||||
partial void OnSupportingDocumentsChanging(string value);
|
||||
partial void OnSupportingDocumentsChanged();
|
||||
partial void OnActualEnergySavingChanging(System.Nullable<decimal> value);
|
||||
partial void OnActualEnergySavingChanging(System.Nullable<int> value);
|
||||
partial void OnActualEnergySavingChanged();
|
||||
partial void OnActualWaterSavingChanging(System.Nullable<decimal> value);
|
||||
partial void OnActualWaterSavingChanging(System.Nullable<int> value);
|
||||
partial void OnActualWaterSavingChanged();
|
||||
partial void OnEnergySavingCompletionRateChanging(System.Nullable<decimal> value);
|
||||
partial void OnEnergySavingCompletionRateChanging(System.Nullable<int> value);
|
||||
partial void OnEnergySavingCompletionRateChanged();
|
||||
partial void OnWaterSavingCompletionRateChanging(System.Nullable<decimal> value);
|
||||
partial void OnWaterSavingCompletionRateChanging(System.Nullable<int> value);
|
||||
partial void OnWaterSavingCompletionRateChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
@@ -156190,8 +156229,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingIndex", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> EnergySavingIndex
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingIndex", DbType="Int")]
|
||||
public System.Nullable<int> EnergySavingIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -156210,8 +156249,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingIndex", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> WaterSavingIndex
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingIndex", DbType="Int")]
|
||||
public System.Nullable<int> WaterSavingIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -156330,8 +156369,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualEnergySaving", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> ActualEnergySaving
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualEnergySaving", DbType="Int")]
|
||||
public System.Nullable<int> ActualEnergySaving
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -156350,8 +156389,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWaterSaving", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> ActualWaterSaving
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWaterSaving", DbType="Int")]
|
||||
public System.Nullable<int> ActualWaterSaving
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -156370,8 +156409,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingCompletionRate", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> EnergySavingCompletionRate
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EnergySavingCompletionRate", DbType="Int")]
|
||||
public System.Nullable<int> EnergySavingCompletionRate
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -156390,8 +156429,8 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingCompletionRate", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> WaterSavingCompletionRate
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WaterSavingCompletionRate", DbType="Int")]
|
||||
public System.Nullable<int> WaterSavingCompletionRate
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -334520,6 +334559,582 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Report_HSEMonthReport")]
|
||||
public partial class Report_HSEMonthReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _ReportId;
|
||||
|
||||
private string _UnitId;
|
||||
|
||||
private System.DateTime _ReportDate;
|
||||
|
||||
private System.Nullable<int> _TotalEmployees;
|
||||
|
||||
private System.Nullable<decimal> _TotalHours;
|
||||
|
||||
private System.Nullable<int> _ContractorEmployees;
|
||||
|
||||
private System.Nullable<decimal> _ContractorHours;
|
||||
|
||||
private System.Nullable<decimal> _MonthHours;
|
||||
|
||||
private System.Nullable<decimal> _MonthHoursAvg;
|
||||
|
||||
private System.Nullable<decimal> _YearHours;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private System.Nullable<int> _BranchTraining;
|
||||
|
||||
private System.Nullable<int> _ProjectTraining;
|
||||
|
||||
private System.Nullable<int> _TeamGroupTraining;
|
||||
|
||||
private System.Nullable<int> _SelfTraining;
|
||||
|
||||
private System.Nullable<int> _ContractorOrganizeTraining;
|
||||
|
||||
private System.Nullable<int> _ContractorTraining;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
private EntityRef<Base_Unit> _Base_Unit;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnReportIdChanging(string value);
|
||||
partial void OnReportIdChanged();
|
||||
partial void OnUnitIdChanging(string value);
|
||||
partial void OnUnitIdChanged();
|
||||
partial void OnReportDateChanging(System.DateTime value);
|
||||
partial void OnReportDateChanged();
|
||||
partial void OnTotalEmployeesChanging(System.Nullable<int> value);
|
||||
partial void OnTotalEmployeesChanged();
|
||||
partial void OnTotalHoursChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalHoursChanged();
|
||||
partial void OnContractorEmployeesChanging(System.Nullable<int> value);
|
||||
partial void OnContractorEmployeesChanged();
|
||||
partial void OnContractorHoursChanging(System.Nullable<decimal> value);
|
||||
partial void OnContractorHoursChanged();
|
||||
partial void OnMonthHoursChanging(System.Nullable<decimal> value);
|
||||
partial void OnMonthHoursChanged();
|
||||
partial void OnMonthHoursAvgChanging(System.Nullable<decimal> value);
|
||||
partial void OnMonthHoursAvgChanged();
|
||||
partial void OnYearHoursChanging(System.Nullable<decimal> value);
|
||||
partial void OnYearHoursChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
partial void OnBranchTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnBranchTrainingChanged();
|
||||
partial void OnProjectTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnProjectTrainingChanged();
|
||||
partial void OnTeamGroupTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnTeamGroupTrainingChanged();
|
||||
partial void OnSelfTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnSelfTrainingChanged();
|
||||
partial void OnContractorOrganizeTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnContractorOrganizeTrainingChanged();
|
||||
partial void OnContractorTrainingChanging(System.Nullable<int> value);
|
||||
partial void OnContractorTrainingChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public Report_HSEMonthReport()
|
||||
{
|
||||
this._Base_Unit = default(EntityRef<Base_Unit>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
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="_UnitId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string UnitId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitId != value))
|
||||
{
|
||||
if (this._Base_Unit.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnUnitIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitId = value;
|
||||
this.SendPropertyChanged("UnitId");
|
||||
this.OnUnitIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportDate", DbType="DateTime NOT NULL")]
|
||||
public System.DateTime ReportDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ReportDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ReportDate != value))
|
||||
{
|
||||
this.OnReportDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ReportDate = value;
|
||||
this.SendPropertyChanged("ReportDate");
|
||||
this.OnReportDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalEmployees", DbType="Int")]
|
||||
public System.Nullable<int> TotalEmployees
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalEmployees;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalEmployees != value))
|
||||
{
|
||||
this.OnTotalEmployeesChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalEmployees = value;
|
||||
this.SendPropertyChanged("TotalEmployees");
|
||||
this.OnTotalEmployeesChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalHours", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> TotalHours
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalHours;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalHours != value))
|
||||
{
|
||||
this.OnTotalHoursChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalHours = value;
|
||||
this.SendPropertyChanged("TotalHours");
|
||||
this.OnTotalHoursChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorEmployees", DbType="Int")]
|
||||
public System.Nullable<int> ContractorEmployees
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorEmployees;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorEmployees != value))
|
||||
{
|
||||
this.OnContractorEmployeesChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractorEmployees = value;
|
||||
this.SendPropertyChanged("ContractorEmployees");
|
||||
this.OnContractorEmployeesChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorHours", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> ContractorHours
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorHours;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorHours != value))
|
||||
{
|
||||
this.OnContractorHoursChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractorHours = value;
|
||||
this.SendPropertyChanged("ContractorHours");
|
||||
this.OnContractorHoursChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthHours", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> MonthHours
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MonthHours;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MonthHours != value))
|
||||
{
|
||||
this.OnMonthHoursChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MonthHours = value;
|
||||
this.SendPropertyChanged("MonthHours");
|
||||
this.OnMonthHoursChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MonthHoursAvg", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> MonthHoursAvg
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MonthHoursAvg;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MonthHoursAvg != value))
|
||||
{
|
||||
this.OnMonthHoursAvgChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MonthHoursAvg = value;
|
||||
this.SendPropertyChanged("MonthHoursAvg");
|
||||
this.OnMonthHoursAvgChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YearHours", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> YearHours
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._YearHours;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._YearHours != value))
|
||||
{
|
||||
this.OnYearHoursChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._YearHours = value;
|
||||
this.SendPropertyChanged("YearHours");
|
||||
this.OnYearHoursChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Remark;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Remark != value))
|
||||
{
|
||||
this.OnRemarkChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Remark = value;
|
||||
this.SendPropertyChanged("Remark");
|
||||
this.OnRemarkChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BranchTraining", DbType="Int")]
|
||||
public System.Nullable<int> BranchTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BranchTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BranchTraining != value))
|
||||
{
|
||||
this.OnBranchTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BranchTraining = value;
|
||||
this.SendPropertyChanged("BranchTraining");
|
||||
this.OnBranchTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectTraining", DbType="Int")]
|
||||
public System.Nullable<int> ProjectTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectTraining != value))
|
||||
{
|
||||
this.OnProjectTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectTraining = value;
|
||||
this.SendPropertyChanged("ProjectTraining");
|
||||
this.OnProjectTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamGroupTraining", DbType="Int")]
|
||||
public System.Nullable<int> TeamGroupTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TeamGroupTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TeamGroupTraining != value))
|
||||
{
|
||||
this.OnTeamGroupTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TeamGroupTraining = value;
|
||||
this.SendPropertyChanged("TeamGroupTraining");
|
||||
this.OnTeamGroupTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SelfTraining", DbType="Int")]
|
||||
public System.Nullable<int> SelfTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SelfTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SelfTraining != value))
|
||||
{
|
||||
this.OnSelfTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SelfTraining = value;
|
||||
this.SendPropertyChanged("SelfTraining");
|
||||
this.OnSelfTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorOrganizeTraining", DbType="Int")]
|
||||
public System.Nullable<int> ContractorOrganizeTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorOrganizeTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorOrganizeTraining != value))
|
||||
{
|
||||
this.OnContractorOrganizeTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractorOrganizeTraining = value;
|
||||
this.SendPropertyChanged("ContractorOrganizeTraining");
|
||||
this.OnContractorOrganizeTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorTraining", DbType="Int")]
|
||||
public System.Nullable<int> ContractorTraining
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractorTraining;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractorTraining != value))
|
||||
{
|
||||
this.OnContractorTrainingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractorTraining = value;
|
||||
this.SendPropertyChanged("ContractorTraining");
|
||||
this.OnContractorTrainingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||
public string CompileMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnCompileManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileMan = value;
|
||||
this.SendPropertyChanged("CompileMan");
|
||||
this.OnCompileManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileDate != value))
|
||||
{
|
||||
this.OnCompileDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileDate = value;
|
||||
this.SendPropertyChanged("CompileDate");
|
||||
this.OnCompileDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_HSEMonthReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)]
|
||||
public Base_Unit Base_Unit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_Unit.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_Unit previousValue = this._Base_Unit.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Unit.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Unit.Entity = null;
|
||||
previousValue.Report_HSEMonthReport.Remove(this);
|
||||
}
|
||||
this._Base_Unit.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Report_HSEMonthReport.Add(this);
|
||||
this._UnitId = value.UnitId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._UnitId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Unit");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_HSEMonthReport_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", 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.Report_HSEMonthReport.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Report_HSEMonthReport.Add(this);
|
||||
this._CompileMan = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._CompileMan = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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_NextQualityControl")]
|
||||
public partial class Report_NextQualityControl : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
@@ -375743,6 +376358,8 @@ namespace Model
|
||||
|
||||
private EntitySet<QualityAudit_SubUnitQualityAuditDetail> _QualityAudit_SubUnitQualityAuditDetail;
|
||||
|
||||
private EntitySet<Report_HSEMonthReport> _Report_HSEMonthReport;
|
||||
|
||||
private EntitySet<SafetyData_SafetyDataItem> _SafetyData_SafetyDataItem;
|
||||
|
||||
private EntitySet<SafetyManagementData> _SafetyManagementData;
|
||||
@@ -376258,6 +376875,7 @@ namespace Model
|
||||
this._QualityAudit_SafePersonQuality = new EntitySet<QualityAudit_SafePersonQuality>(new Action<QualityAudit_SafePersonQuality>(this.attach_QualityAudit_SafePersonQuality), new Action<QualityAudit_SafePersonQuality>(this.detach_QualityAudit_SafePersonQuality));
|
||||
this._QualityAudit_SafePersonQuality_Sys_User_AuditorId = new EntitySet<QualityAudit_SafePersonQuality>(new Action<QualityAudit_SafePersonQuality>(this.attach_QualityAudit_SafePersonQuality_Sys_User_AuditorId), new Action<QualityAudit_SafePersonQuality>(this.detach_QualityAudit_SafePersonQuality_Sys_User_AuditorId));
|
||||
this._QualityAudit_SubUnitQualityAuditDetail = new EntitySet<QualityAudit_SubUnitQualityAuditDetail>(new Action<QualityAudit_SubUnitQualityAuditDetail>(this.attach_QualityAudit_SubUnitQualityAuditDetail), new Action<QualityAudit_SubUnitQualityAuditDetail>(this.detach_QualityAudit_SubUnitQualityAuditDetail));
|
||||
this._Report_HSEMonthReport = new EntitySet<Report_HSEMonthReport>(new Action<Report_HSEMonthReport>(this.attach_Report_HSEMonthReport), new Action<Report_HSEMonthReport>(this.detach_Report_HSEMonthReport));
|
||||
this._SafetyData_SafetyDataItem = new EntitySet<SafetyData_SafetyDataItem>(new Action<SafetyData_SafetyDataItem>(this.attach_SafetyData_SafetyDataItem), new Action<SafetyData_SafetyDataItem>(this.detach_SafetyData_SafetyDataItem));
|
||||
this._SafetyManagementData = new EntitySet<SafetyManagementData>(new Action<SafetyManagementData>(this.attach_SafetyManagementData), new Action<SafetyManagementData>(this.detach_SafetyManagementData));
|
||||
this._SitePerson_DayReport_Bak = new EntitySet<SitePerson_DayReport_Bak>(new Action<SitePerson_DayReport_Bak>(this.attach_SitePerson_DayReport_Bak), new Action<SitePerson_DayReport_Bak>(this.detach_SitePerson_DayReport_Bak));
|
||||
@@ -381245,6 +381863,19 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Report_HSEMonthReport_Sys_User", Storage="_Report_HSEMonthReport", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Report_HSEMonthReport> Report_HSEMonthReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Report_HSEMonthReport;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Report_HSEMonthReport.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SafetyData_SafetyDataItem_Sys_User", Storage="_SafetyData_SafetyDataItem", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
|
||||
public EntitySet<SafetyData_SafetyDataItem> SafetyData_SafetyDataItem
|
||||
{
|
||||
@@ -385480,6 +386111,18 @@ namespace Model
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_Report_HSEMonthReport(Report_HSEMonthReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_Report_HSEMonthReport(Report_HSEMonthReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_SafetyData_SafetyDataItem(SafetyData_SafetyDataItem entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
@@ -456606,6 +457249,8 @@ namespace Model
|
||||
|
||||
private string _PersonName;
|
||||
|
||||
private System.Nullable<int> _Score;
|
||||
|
||||
private string _Sex;
|
||||
|
||||
private string _SexName;
|
||||
@@ -456820,6 +457465,22 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Score", DbType="Int")]
|
||||
public System.Nullable<int> Score
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Score;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Score != value))
|
||||
{
|
||||
this._Score = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Sex", DbType="Char(1)")]
|
||||
public string Sex
|
||||
{
|
||||
@@ -458137,6 +458798,8 @@ namespace Model
|
||||
|
||||
private string _PersonName;
|
||||
|
||||
private System.Nullable<int> _Score;
|
||||
|
||||
private string _UnitId;
|
||||
|
||||
private string _UnitName;
|
||||
@@ -458299,6 +458962,22 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Score", DbType="Int")]
|
||||
public System.Nullable<int> Score
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Score;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Score != value))
|
||||
{
|
||||
this._Score = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
|
||||
public string UnitId
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user