提交代码

This commit is contained in:
2023-11-29 18:02:03 +08:00
parent a8799ec7bb
commit d7ae172c39
17 changed files with 1188 additions and 14 deletions
+310
View File
@@ -1715,6 +1715,9 @@ namespace Model
partial void InsertZHGL_ConstructionLog(ZHGL_ConstructionLog instance);
partial void UpdateZHGL_ConstructionLog(ZHGL_ConstructionLog instance);
partial void DeleteZHGL_ConstructionLog(ZHGL_ConstructionLog instance);
partial void InsertZHGL_ConstructionLogHJGL(ZHGL_ConstructionLogHJGL instance);
partial void UpdateZHGL_ConstructionLogHJGL(ZHGL_ConstructionLogHJGL instance);
partial void DeleteZHGL_ConstructionLogHJGL(ZHGL_ConstructionLogHJGL instance);
partial void InsertZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance);
partial void UpdateZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance);
partial void DeleteZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine instance);
@@ -7081,6 +7084,14 @@ namespace Model
}
}
public System.Data.Linq.Table<ZHGL_ConstructionLogHJGL> ZHGL_ConstructionLogHJGL
{
get
{
return this.GetTable<ZHGL_ConstructionLogHJGL>();
}
}
public System.Data.Linq.Table<ZHGL_ConstructionLogMachine> ZHGL_ConstructionLogMachine
{
get
@@ -304577,6 +304588,8 @@ namespace Model
private EntityRef<Base_Project> _Base_Project;
private EntitySet<ZHGL_ConstructionLogHJGL> _ZHGL_ConstructionLogHJGL;
private EntitySet<ZHGL_ConstructionLogMachine> _ZHGL_ConstructionLogMachine;
private EntitySet<ZHGL_ConstructionLogManagement> _ZHGL_ConstructionLogManagement;
@@ -304640,6 +304653,7 @@ namespace Model
public ZHGL_ConstructionLog()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._ZHGL_ConstructionLogHJGL = new EntitySet<ZHGL_ConstructionLogHJGL>(new Action<ZHGL_ConstructionLogHJGL>(this.attach_ZHGL_ConstructionLogHJGL), new Action<ZHGL_ConstructionLogHJGL>(this.detach_ZHGL_ConstructionLogHJGL));
this._ZHGL_ConstructionLogMachine = new EntitySet<ZHGL_ConstructionLogMachine>(new Action<ZHGL_ConstructionLogMachine>(this.attach_ZHGL_ConstructionLogMachine), new Action<ZHGL_ConstructionLogMachine>(this.detach_ZHGL_ConstructionLogMachine));
this._ZHGL_ConstructionLogManagement = new EntitySet<ZHGL_ConstructionLogManagement>(new Action<ZHGL_ConstructionLogManagement>(this.attach_ZHGL_ConstructionLogManagement), new Action<ZHGL_ConstructionLogManagement>(this.detach_ZHGL_ConstructionLogManagement));
this._ZHGL_ConstructionLogPerson = new EntitySet<ZHGL_ConstructionLogPerson>(new Action<ZHGL_ConstructionLogPerson>(this.attach_ZHGL_ConstructionLogPerson), new Action<ZHGL_ConstructionLogPerson>(this.detach_ZHGL_ConstructionLogPerson));
@@ -305126,6 +305140,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogHJGL_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogHJGL", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")]
public EntitySet<ZHGL_ConstructionLogHJGL> ZHGL_ConstructionLogHJGL
{
get
{
return this._ZHGL_ConstructionLogHJGL;
}
set
{
this._ZHGL_ConstructionLogHJGL.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLogMachine", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", DeleteRule="NO ACTION")]
public EntitySet<ZHGL_ConstructionLogMachine> ZHGL_ConstructionLogMachine
{
@@ -305211,6 +305238,18 @@ namespace Model
}
}
private void attach_ZHGL_ConstructionLogHJGL(ZHGL_ConstructionLogHJGL entity)
{
this.SendPropertyChanging();
entity.ZHGL_ConstructionLog = this;
}
private void detach_ZHGL_ConstructionLogHJGL(ZHGL_ConstructionLogHJGL entity)
{
this.SendPropertyChanging();
entity.ZHGL_ConstructionLog = null;
}
private void attach_ZHGL_ConstructionLogMachine(ZHGL_ConstructionLogMachine entity)
{
this.SendPropertyChanging();
@@ -305272,6 +305311,277 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_ConstructionLogHJGL")]
public partial class ZHGL_ConstructionLogHJGL : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ConstructionLogHJGLId;
private string _ConstructionLogId;
private string _UnitWorkId;
private System.Nullable<decimal> _TodayCompleteSize;
private System.Nullable<decimal> _TotalCompleteSize;
private System.Nullable<decimal> _TotalSize;
private string _TotalRate;
private System.Nullable<decimal> _TomorrowPlanSize;
private EntityRef<ZHGL_ConstructionLog> _ZHGL_ConstructionLog;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnConstructionLogHJGLIdChanging(string value);
partial void OnConstructionLogHJGLIdChanged();
partial void OnConstructionLogIdChanging(string value);
partial void OnConstructionLogIdChanged();
partial void OnUnitWorkIdChanging(string value);
partial void OnUnitWorkIdChanged();
partial void OnTodayCompleteSizeChanging(System.Nullable<decimal> value);
partial void OnTodayCompleteSizeChanged();
partial void OnTotalCompleteSizeChanging(System.Nullable<decimal> value);
partial void OnTotalCompleteSizeChanged();
partial void OnTotalSizeChanging(System.Nullable<decimal> value);
partial void OnTotalSizeChanged();
partial void OnTotalRateChanging(string value);
partial void OnTotalRateChanged();
partial void OnTomorrowPlanSizeChanging(System.Nullable<decimal> value);
partial void OnTomorrowPlanSizeChanged();
#endregion
public ZHGL_ConstructionLogHJGL()
{
this._ZHGL_ConstructionLog = default(EntityRef<ZHGL_ConstructionLog>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogHJGLId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ConstructionLogHJGLId
{
get
{
return this._ConstructionLogHJGLId;
}
set
{
if ((this._ConstructionLogHJGLId != value))
{
this.OnConstructionLogHJGLIdChanging(value);
this.SendPropertyChanging();
this._ConstructionLogHJGLId = value;
this.SendPropertyChanged("ConstructionLogHJGLId");
this.OnConstructionLogHJGLIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionLogId", DbType="NVarChar(50)")]
public string ConstructionLogId
{
get
{
return this._ConstructionLogId;
}
set
{
if ((this._ConstructionLogId != value))
{
if (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnConstructionLogIdChanging(value);
this.SendPropertyChanging();
this._ConstructionLogId = value;
this.SendPropertyChanged("ConstructionLogId");
this.OnConstructionLogIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")]
public string UnitWorkId
{
get
{
return this._UnitWorkId;
}
set
{
if ((this._UnitWorkId != value))
{
this.OnUnitWorkIdChanging(value);
this.SendPropertyChanging();
this._UnitWorkId = value;
this.SendPropertyChanged("UnitWorkId");
this.OnUnitWorkIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TodayCompleteSize", DbType="Decimal(18,3)")]
public System.Nullable<decimal> TodayCompleteSize
{
get
{
return this._TodayCompleteSize;
}
set
{
if ((this._TodayCompleteSize != value))
{
this.OnTodayCompleteSizeChanging(value);
this.SendPropertyChanging();
this._TodayCompleteSize = value;
this.SendPropertyChanged("TodayCompleteSize");
this.OnTodayCompleteSizeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalCompleteSize", DbType="Decimal(18,3)")]
public System.Nullable<decimal> TotalCompleteSize
{
get
{
return this._TotalCompleteSize;
}
set
{
if ((this._TotalCompleteSize != value))
{
this.OnTotalCompleteSizeChanging(value);
this.SendPropertyChanging();
this._TotalCompleteSize = value;
this.SendPropertyChanged("TotalCompleteSize");
this.OnTotalCompleteSizeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalSize", DbType="Decimal(18,3)")]
public System.Nullable<decimal> TotalSize
{
get
{
return this._TotalSize;
}
set
{
if ((this._TotalSize != value))
{
this.OnTotalSizeChanging(value);
this.SendPropertyChanging();
this._TotalSize = value;
this.SendPropertyChanged("TotalSize");
this.OnTotalSizeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalRate", DbType="NVarChar(20)")]
public string TotalRate
{
get
{
return this._TotalRate;
}
set
{
if ((this._TotalRate != value))
{
this.OnTotalRateChanging(value);
this.SendPropertyChanging();
this._TotalRate = value;
this.SendPropertyChanged("TotalRate");
this.OnTotalRateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TomorrowPlanSize", DbType="Decimal(18,3)")]
public System.Nullable<decimal> TomorrowPlanSize
{
get
{
return this._TomorrowPlanSize;
}
set
{
if ((this._TomorrowPlanSize != value))
{
this.OnTomorrowPlanSizeChanging(value);
this.SendPropertyChanging();
this._TomorrowPlanSize = value;
this.SendPropertyChanged("TomorrowPlanSize");
this.OnTomorrowPlanSizeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ZHGL_ConstructionLogHJGL_ZHGL_ConstructionLog", Storage="_ZHGL_ConstructionLog", ThisKey="ConstructionLogId", OtherKey="ConstructionLogId", IsForeignKey=true)]
public ZHGL_ConstructionLog ZHGL_ConstructionLog
{
get
{
return this._ZHGL_ConstructionLog.Entity;
}
set
{
ZHGL_ConstructionLog previousValue = this._ZHGL_ConstructionLog.Entity;
if (((previousValue != value)
|| (this._ZHGL_ConstructionLog.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._ZHGL_ConstructionLog.Entity = null;
previousValue.ZHGL_ConstructionLogHJGL.Remove(this);
}
this._ZHGL_ConstructionLog.Entity = value;
if ((value != null))
{
value.ZHGL_ConstructionLogHJGL.Add(this);
this._ConstructionLogId = value.ConstructionLogId;
}
else
{
this._ConstructionLogId = default(string);
}
this.SendPropertyChanged("ZHGL_ConstructionLog");
}
}
}
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_ConstructionLogMachine")]
public partial class ZHGL_ConstructionLogMachine : INotifyPropertyChanging, INotifyPropertyChanged
{