增加月工效和项目工效
This commit is contained in:
+741
-4
@@ -1733,6 +1733,12 @@ namespace Model
|
||||
partial void InsertZHGL_ConstructionLogWorkEfficiency(ZHGL_ConstructionLogWorkEfficiency instance);
|
||||
partial void UpdateZHGL_ConstructionLogWorkEfficiency(ZHGL_ConstructionLogWorkEfficiency instance);
|
||||
partial void DeleteZHGL_ConstructionLogWorkEfficiency(ZHGL_ConstructionLogWorkEfficiency instance);
|
||||
partial void InsertZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth instance);
|
||||
partial void UpdateZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth instance);
|
||||
partial void DeleteZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth instance);
|
||||
partial void InsertZHGL_ConstructionLogWorkEfficiencyProject(ZHGL_ConstructionLogWorkEfficiencyProject instance);
|
||||
partial void UpdateZHGL_ConstructionLogWorkEfficiencyProject(ZHGL_ConstructionLogWorkEfficiencyProject instance);
|
||||
partial void DeleteZHGL_ConstructionLogWorkEfficiencyProject(ZHGL_ConstructionLogWorkEfficiencyProject instance);
|
||||
partial void InsertZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance);
|
||||
partial void UpdateZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance);
|
||||
partial void DeleteZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport instance);
|
||||
@@ -7112,6 +7118,22 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<ZHGL_ConstructionLogWorkEfficiencyMonth> ZHGL_ConstructionLogWorkEfficiencyMonth
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<ZHGL_ConstructionLogWorkEfficiencyMonth>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<ZHGL_ConstructionLogWorkEfficiencyProject> ZHGL_ConstructionLogWorkEfficiencyProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<ZHGL_ConstructionLogWorkEfficiencyProject>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<ZHGL_ConstructionMonthReport> ZHGL_ConstructionMonthReport
|
||||
{
|
||||
get
|
||||
@@ -11730,7 +11752,7 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(2000)")]
|
||||
public string ApproveIdea
|
||||
{
|
||||
get
|
||||
@@ -24117,6 +24139,10 @@ namespace Model
|
||||
|
||||
private EntitySet<ZHGL_ConstructionLog> _ZHGL_ConstructionLog;
|
||||
|
||||
private EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth> _ZHGL_ConstructionLogWorkEfficiencyMonth;
|
||||
|
||||
private EntitySet<ZHGL_ConstructionLogWorkEfficiencyProject> _ZHGL_ConstructionLogWorkEfficiencyProject;
|
||||
|
||||
private EntitySet<ZHGL_ConstructionMonthReport> _ZHGL_ConstructionMonthReport;
|
||||
|
||||
private EntitySet<ZHGL_ConstructionPlan> _ZHGL_ConstructionPlan;
|
||||
@@ -24362,6 +24388,8 @@ namespace Model
|
||||
this._WPQ_WPQList = new EntitySet<WPQ_WPQList>(new Action<WPQ_WPQList>(this.attach_WPQ_WPQList), new Action<WPQ_WPQList>(this.detach_WPQ_WPQList));
|
||||
this._Wx_PageData = new EntitySet<Wx_PageData>(new Action<Wx_PageData>(this.attach_Wx_PageData), new Action<Wx_PageData>(this.detach_Wx_PageData));
|
||||
this._ZHGL_ConstructionLog = new EntitySet<ZHGL_ConstructionLog>(new Action<ZHGL_ConstructionLog>(this.attach_ZHGL_ConstructionLog), new Action<ZHGL_ConstructionLog>(this.detach_ZHGL_ConstructionLog));
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyMonth = new EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth>(new Action<ZHGL_ConstructionLogWorkEfficiencyMonth>(this.attach_ZHGL_ConstructionLogWorkEfficiencyMonth), new Action<ZHGL_ConstructionLogWorkEfficiencyMonth>(this.detach_ZHGL_ConstructionLogWorkEfficiencyMonth));
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyProject = new EntitySet<ZHGL_ConstructionLogWorkEfficiencyProject>(new Action<ZHGL_ConstructionLogWorkEfficiencyProject>(this.attach_ZHGL_ConstructionLogWorkEfficiencyProject), new Action<ZHGL_ConstructionLogWorkEfficiencyProject>(this.detach_ZHGL_ConstructionLogWorkEfficiencyProject));
|
||||
this._ZHGL_ConstructionMonthReport = new EntitySet<ZHGL_ConstructionMonthReport>(new Action<ZHGL_ConstructionMonthReport>(this.attach_ZHGL_ConstructionMonthReport), new Action<ZHGL_ConstructionMonthReport>(this.detach_ZHGL_ConstructionMonthReport));
|
||||
this._ZHGL_ConstructionPlan = new EntitySet<ZHGL_ConstructionPlan>(new Action<ZHGL_ConstructionPlan>(this.attach_ZHGL_ConstructionPlan), new Action<ZHGL_ConstructionPlan>(this.detach_ZHGL_ConstructionPlan));
|
||||
this._ZHGL_ConstructionReport = new EntitySet<ZHGL_ConstructionReport>(new Action<ZHGL_ConstructionReport>(this.attach_ZHGL_ConstructionReport), new Action<ZHGL_ConstructionReport>(this.detach_ZHGL_ConstructionReport));
|
||||
@@ -27203,6 +27231,32 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyMonth_Base_Project", Storage="_ZHGL_ConstructionLogWorkEfficiencyMonth", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth> ZHGL_ConstructionLogWorkEfficiencyMonth
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ZHGL_ConstructionLogWorkEfficiencyMonth;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyMonth.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyProject_Base_Project", Storage="_ZHGL_ConstructionLogWorkEfficiencyProject", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ZHGL_ConstructionLogWorkEfficiencyProject> ZHGL_ConstructionLogWorkEfficiencyProject
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ZHGL_ConstructionLogWorkEfficiencyProject;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyProject.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionMonthReport_Base_Project", Storage="_ZHGL_ConstructionMonthReport", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ZHGL_ConstructionMonthReport> ZHGL_ConstructionMonthReport
|
||||
{
|
||||
@@ -29316,6 +29370,30 @@ namespace Model
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_ZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_ZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_ZHGL_ConstructionLogWorkEfficiencyProject(ZHGL_ConstructionLogWorkEfficiencyProject entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = this;
|
||||
}
|
||||
|
||||
private void detach_ZHGL_ConstructionLogWorkEfficiencyProject(ZHGL_ConstructionLogWorkEfficiencyProject entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_Project = null;
|
||||
}
|
||||
|
||||
private void attach_ZHGL_ConstructionMonthReport(ZHGL_ConstructionMonthReport entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
@@ -151181,7 +151259,7 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(500)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(3000)")]
|
||||
public string AttentPerson
|
||||
{
|
||||
get
|
||||
@@ -181863,6 +181941,8 @@ namespace Model
|
||||
|
||||
private EntitySet<ZHGL_ConstructionLogWorkEfficiency> _ZHGL_ConstructionLogWorkEfficiency;
|
||||
|
||||
private EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth> _ZHGL_ConstructionLogWorkEfficiencyMonth;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
@@ -181930,6 +182010,7 @@ namespace Model
|
||||
public PHTGL_ContractTrack()
|
||||
{
|
||||
this._ZHGL_ConstructionLogWorkEfficiency = new EntitySet<ZHGL_ConstructionLogWorkEfficiency>(new Action<ZHGL_ConstructionLogWorkEfficiency>(this.attach_ZHGL_ConstructionLogWorkEfficiency), new Action<ZHGL_ConstructionLogWorkEfficiency>(this.detach_ZHGL_ConstructionLogWorkEfficiency));
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyMonth = new EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth>(new Action<ZHGL_ConstructionLogWorkEfficiencyMonth>(this.attach_ZHGL_ConstructionLogWorkEfficiencyMonth), new Action<ZHGL_ConstructionLogWorkEfficiencyMonth>(this.detach_ZHGL_ConstructionLogWorkEfficiencyMonth));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@@ -182526,6 +182607,19 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyMonth_PHTGL_ContractTrack", Storage="_ZHGL_ConstructionLogWorkEfficiencyMonth", ThisKey="Id", OtherKey="ContractTrackId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<ZHGL_ConstructionLogWorkEfficiencyMonth> ZHGL_ConstructionLogWorkEfficiencyMonth
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ZHGL_ConstructionLogWorkEfficiencyMonth;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._ZHGL_ConstructionLogWorkEfficiencyMonth.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
@@ -182557,6 +182651,18 @@ namespace Model
|
||||
this.SendPropertyChanging();
|
||||
entity.PHTGL_ContractTrack = null;
|
||||
}
|
||||
|
||||
private void attach_ZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.PHTGL_ContractTrack = this;
|
||||
}
|
||||
|
||||
private void detach_ZHGL_ConstructionLogWorkEfficiencyMonth(ZHGL_ConstructionLogWorkEfficiencyMonth entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.PHTGL_ContractTrack = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PHTGL_ContractTrackMatchWBS")]
|
||||
@@ -182652,7 +182758,7 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,2)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,3)")]
|
||||
public System.Nullable<decimal> WorkPackageEstimate
|
||||
{
|
||||
get
|
||||
@@ -292410,7 +292516,7 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(81)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")]
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
@@ -305618,6 +305724,637 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_ConstructionLogWorkEfficiencyMonth")]
|
||||
public partial class ZHGL_ConstructionLogWorkEfficiencyMonth : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _ConstructionLogWorkEfficiencyMonthId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private System.Nullable<System.DateTime> _Month;
|
||||
|
||||
private string _ContractTrackId;
|
||||
|
||||
private System.Nullable<decimal> _PhysicalCompletionQuantity;
|
||||
|
||||
private System.Nullable<decimal> _MaterialConsumption;
|
||||
|
||||
private string _UnitOfMeasurement;
|
||||
|
||||
private string _Type;
|
||||
|
||||
private string _TypeId;
|
||||
|
||||
private System.Nullable<decimal> _ConsumeHours;
|
||||
|
||||
private System.Nullable<decimal> _WorkEfficiency;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<PHTGL_ContractTrack> _PHTGL_ContractTrack;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnConstructionLogWorkEfficiencyMonthIdChanging(string value);
|
||||
partial void OnConstructionLogWorkEfficiencyMonthIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnMonthChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnMonthChanged();
|
||||
partial void OnContractTrackIdChanging(string value);
|
||||
partial void OnContractTrackIdChanged();
|
||||
partial void OnPhysicalCompletionQuantityChanging(System.Nullable<decimal> value);
|
||||
partial void OnPhysicalCompletionQuantityChanged();
|
||||
partial void OnMaterialConsumptionChanging(System.Nullable<decimal> value);
|
||||
partial void OnMaterialConsumptionChanged();
|
||||
partial void OnUnitOfMeasurementChanging(string value);
|
||||
partial void OnUnitOfMeasurementChanged();
|
||||
partial void OnTypeChanging(string value);
|
||||
partial void OnTypeChanged();
|
||||
partial void OnTypeIdChanging(string value);
|
||||
partial void OnTypeIdChanged();
|
||||
partial void OnConsumeHoursChanging(System.Nullable<decimal> value);
|
||||
partial void OnConsumeHoursChanged();
|
||||
partial void OnWorkEfficiencyChanging(System.Nullable<decimal> value);
|
||||
partial void OnWorkEfficiencyChanged();
|
||||
#endregion
|
||||
|
||||
public ZHGL_ConstructionLogWorkEfficiencyMonth()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._PHTGL_ContractTrack = default(EntityRef<PHTGL_ContractTrack>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogWorkEfficiencyMonthId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string ConstructionLogWorkEfficiencyMonthId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ConstructionLogWorkEfficiencyMonthId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ConstructionLogWorkEfficiencyMonthId != value))
|
||||
{
|
||||
this.OnConstructionLogWorkEfficiencyMonthIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ConstructionLogWorkEfficiencyMonthId = value;
|
||||
this.SendPropertyChanged("ConstructionLogWorkEfficiencyMonthId");
|
||||
this.OnConstructionLogWorkEfficiencyMonthIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_Month", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> Month
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Month;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Month != value))
|
||||
{
|
||||
this.OnMonthChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Month = value;
|
||||
this.SendPropertyChanged("Month");
|
||||
this.OnMonthChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractTrackId", DbType="VarChar(50)")]
|
||||
public string ContractTrackId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ContractTrackId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ContractTrackId != value))
|
||||
{
|
||||
if (this._PHTGL_ContractTrack.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnContractTrackIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ContractTrackId = value;
|
||||
this.SendPropertyChanged("ContractTrackId");
|
||||
this.OnContractTrackIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PhysicalCompletionQuantity", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> PhysicalCompletionQuantity
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PhysicalCompletionQuantity;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PhysicalCompletionQuantity != value))
|
||||
{
|
||||
this.OnPhysicalCompletionQuantityChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PhysicalCompletionQuantity = value;
|
||||
this.SendPropertyChanged("PhysicalCompletionQuantity");
|
||||
this.OnPhysicalCompletionQuantityChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialConsumption", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> MaterialConsumption
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MaterialConsumption;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MaterialConsumption != value))
|
||||
{
|
||||
this.OnMaterialConsumptionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._MaterialConsumption = value;
|
||||
this.SendPropertyChanged("MaterialConsumption");
|
||||
this.OnMaterialConsumptionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitOfMeasurement", DbType="NVarChar(50)")]
|
||||
public string UnitOfMeasurement
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitOfMeasurement;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitOfMeasurement != value))
|
||||
{
|
||||
this.OnUnitOfMeasurementChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitOfMeasurement = value;
|
||||
this.SendPropertyChanged("UnitOfMeasurement");
|
||||
this.OnUnitOfMeasurementChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="NVarChar(20)")]
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Type;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Type != value))
|
||||
{
|
||||
this.OnTypeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Type = value;
|
||||
this.SendPropertyChanged("Type");
|
||||
this.OnTypeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeId", DbType="NVarChar(50)")]
|
||||
public string TypeId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TypeId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TypeId != value))
|
||||
{
|
||||
this.OnTypeIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TypeId = value;
|
||||
this.SendPropertyChanged("TypeId");
|
||||
this.OnTypeIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConsumeHours", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> ConsumeHours
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ConsumeHours;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ConsumeHours != value))
|
||||
{
|
||||
this.OnConsumeHoursChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ConsumeHours = value;
|
||||
this.SendPropertyChanged("ConsumeHours");
|
||||
this.OnConsumeHoursChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkEfficiency", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> WorkEfficiency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WorkEfficiency;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WorkEfficiency != value))
|
||||
{
|
||||
this.OnWorkEfficiencyChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._WorkEfficiency = value;
|
||||
this.SendPropertyChanged("WorkEfficiency");
|
||||
this.OnWorkEfficiencyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyMonth_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.ZHGL_ConstructionLogWorkEfficiencyMonth.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.ZHGL_ConstructionLogWorkEfficiencyMonth.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyMonth_PHTGL_ContractTrack", Storage="_PHTGL_ContractTrack", ThisKey="ContractTrackId", OtherKey="Id", IsForeignKey=true)]
|
||||
public PHTGL_ContractTrack PHTGL_ContractTrack
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PHTGL_ContractTrack.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
PHTGL_ContractTrack previousValue = this._PHTGL_ContractTrack.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._PHTGL_ContractTrack.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._PHTGL_ContractTrack.Entity = null;
|
||||
previousValue.ZHGL_ConstructionLogWorkEfficiencyMonth.Remove(this);
|
||||
}
|
||||
this._PHTGL_ContractTrack.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.ZHGL_ConstructionLogWorkEfficiencyMonth.Add(this);
|
||||
this._ContractTrackId = value.Id;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ContractTrackId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("PHTGL_ContractTrack");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.ZHGL_ConstructionLogWorkEfficiencyProject")]
|
||||
public partial class ZHGL_ConstructionLogWorkEfficiencyProject : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _ConstructionLogWorkEfficiencyProjectId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _Type;
|
||||
|
||||
private string _TypeId;
|
||||
|
||||
private string _UnitOfMeasurement;
|
||||
|
||||
private System.Nullable<decimal> _BaseWorkEfficiency;
|
||||
|
||||
private System.Nullable<decimal> _AvgWorkEfficiency;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnConstructionLogWorkEfficiencyProjectIdChanging(string value);
|
||||
partial void OnConstructionLogWorkEfficiencyProjectIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnTypeChanging(string value);
|
||||
partial void OnTypeChanged();
|
||||
partial void OnTypeIdChanging(string value);
|
||||
partial void OnTypeIdChanged();
|
||||
partial void OnUnitOfMeasurementChanging(string value);
|
||||
partial void OnUnitOfMeasurementChanged();
|
||||
partial void OnBaseWorkEfficiencyChanging(System.Nullable<decimal> value);
|
||||
partial void OnBaseWorkEfficiencyChanged();
|
||||
partial void OnAvgWorkEfficiencyChanging(System.Nullable<decimal> value);
|
||||
partial void OnAvgWorkEfficiencyChanged();
|
||||
#endregion
|
||||
|
||||
public ZHGL_ConstructionLogWorkEfficiencyProject()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogWorkEfficiencyProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string ConstructionLogWorkEfficiencyProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ConstructionLogWorkEfficiencyProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ConstructionLogWorkEfficiencyProjectId != value))
|
||||
{
|
||||
this.OnConstructionLogWorkEfficiencyProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ConstructionLogWorkEfficiencyProjectId = value;
|
||||
this.SendPropertyChanged("ConstructionLogWorkEfficiencyProjectId");
|
||||
this.OnConstructionLogWorkEfficiencyProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_Type", DbType="NVarChar(20)")]
|
||||
public string Type
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Type;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Type != value))
|
||||
{
|
||||
this.OnTypeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Type = value;
|
||||
this.SendPropertyChanged("Type");
|
||||
this.OnTypeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeId", DbType="NVarChar(50)")]
|
||||
public string TypeId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TypeId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TypeId != value))
|
||||
{
|
||||
this.OnTypeIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TypeId = value;
|
||||
this.SendPropertyChanged("TypeId");
|
||||
this.OnTypeIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitOfMeasurement", DbType="NVarChar(50)")]
|
||||
public string UnitOfMeasurement
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitOfMeasurement;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitOfMeasurement != value))
|
||||
{
|
||||
this.OnUnitOfMeasurementChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitOfMeasurement = value;
|
||||
this.SendPropertyChanged("UnitOfMeasurement");
|
||||
this.OnUnitOfMeasurementChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BaseWorkEfficiency", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> BaseWorkEfficiency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BaseWorkEfficiency;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BaseWorkEfficiency != value))
|
||||
{
|
||||
this.OnBaseWorkEfficiencyChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BaseWorkEfficiency = value;
|
||||
this.SendPropertyChanged("BaseWorkEfficiency");
|
||||
this.OnBaseWorkEfficiencyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AvgWorkEfficiency", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> AvgWorkEfficiency
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AvgWorkEfficiency;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AvgWorkEfficiency != value))
|
||||
{
|
||||
this.OnAvgWorkEfficiencyChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AvgWorkEfficiency = value;
|
||||
this.SendPropertyChanged("AvgWorkEfficiency");
|
||||
this.OnAvgWorkEfficiencyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogWorkEfficiencyProject_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.ZHGL_ConstructionLogWorkEfficiencyProject.Remove(this);
|
||||
}
|
||||
this._Base_Project.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.ZHGL_ConstructionLogWorkEfficiencyProject.Add(this);
|
||||
this._ProjectId = value.ProjectId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._ProjectId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Project");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.ZHGL_ConstructionMonthReport")]
|
||||
public partial class ZHGL_ConstructionMonthReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user