进度管理增加设备材料分类
This commit is contained in:
@@ -2228,6 +2228,9 @@ namespace Model
|
||||
partial void InsertWBS_DivisionProject(WBS_DivisionProject instance);
|
||||
partial void UpdateWBS_DivisionProject(WBS_DivisionProject instance);
|
||||
partial void DeleteWBS_DivisionProject(WBS_DivisionProject instance);
|
||||
partial void InsertWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
|
||||
partial void UpdateWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
|
||||
partial void DeleteWBS_EquipmentMaterialType(WBS_EquipmentMaterialType instance);
|
||||
partial void InsertWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
|
||||
partial void UpdateWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
|
||||
partial void DeleteWBS_ForeignBreakdown(WBS_ForeignBreakdown instance);
|
||||
@@ -9217,6 +9220,14 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<WBS_EquipmentMaterialType> WBS_EquipmentMaterialType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<WBS_EquipmentMaterialType>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<WBS_ForeignBreakdown> WBS_ForeignBreakdown
|
||||
{
|
||||
get
|
||||
@@ -394895,8 +394906,12 @@ namespace Model
|
||||
|
||||
private System.Nullable<System.DateTime> _RealEndDate;
|
||||
|
||||
private string _EquipmentMaterialTypeId;
|
||||
|
||||
private EntityRef<Base_Project> _Base_Project;
|
||||
|
||||
private EntityRef<WBS_EquipmentMaterialType> _WBS_EquipmentMaterialType;
|
||||
|
||||
private EntityRef<Wbs_WbsSet> _Wbs_WbsSet;
|
||||
|
||||
private EntitySet<WBS_CostControlDetail> _WBS_CostControlDetail;
|
||||
@@ -394935,11 +394950,14 @@ namespace Model
|
||||
partial void OnRealStartDateChanged();
|
||||
partial void OnRealEndDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnRealEndDateChanged();
|
||||
partial void OnEquipmentMaterialTypeIdChanging(string value);
|
||||
partial void OnEquipmentMaterialTypeIdChanged();
|
||||
#endregion
|
||||
|
||||
public WBS_CostControl()
|
||||
{
|
||||
this._Base_Project = default(EntityRef<Base_Project>);
|
||||
this._WBS_EquipmentMaterialType = default(EntityRef<WBS_EquipmentMaterialType>);
|
||||
this._Wbs_WbsSet = default(EntityRef<Wbs_WbsSet>);
|
||||
this._WBS_CostControlDetail = new EntitySet<WBS_CostControlDetail>(new Action<WBS_CostControlDetail>(this.attach_WBS_CostControlDetail), new Action<WBS_CostControlDetail>(this.detach_WBS_CostControlDetail));
|
||||
this._WBS_CostControlDetailHistory = new EntitySet<WBS_CostControlDetailHistory>(new Action<WBS_CostControlDetailHistory>(this.attach_WBS_CostControlDetailHistory), new Action<WBS_CostControlDetailHistory>(this.detach_WBS_CostControlDetailHistory));
|
||||
@@ -395234,6 +395252,30 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeId", DbType="NVarChar(50)")]
|
||||
public string EquipmentMaterialTypeId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EquipmentMaterialTypeId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EquipmentMaterialTypeId != value))
|
||||
{
|
||||
if (this._WBS_EquipmentMaterialType.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnEquipmentMaterialTypeIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EquipmentMaterialTypeId = value;
|
||||
this.SendPropertyChanged("EquipmentMaterialTypeId");
|
||||
this.OnEquipmentMaterialTypeIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
|
||||
public Base_Project Base_Project
|
||||
{
|
||||
@@ -395268,6 +395310,40 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_WBS_EquipmentMaterialType", Storage="_WBS_EquipmentMaterialType", ThisKey="EquipmentMaterialTypeId", OtherKey="EquipmentMaterialTypeId", IsForeignKey=true)]
|
||||
public WBS_EquipmentMaterialType WBS_EquipmentMaterialType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WBS_EquipmentMaterialType.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
WBS_EquipmentMaterialType previousValue = this._WBS_EquipmentMaterialType.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._WBS_EquipmentMaterialType.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._WBS_EquipmentMaterialType.Entity = null;
|
||||
previousValue.WBS_CostControl.Remove(this);
|
||||
}
|
||||
this._WBS_EquipmentMaterialType.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.WBS_CostControl.Add(this);
|
||||
this._EquipmentMaterialTypeId = value.EquipmentMaterialTypeId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._EquipmentMaterialTypeId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("WBS_EquipmentMaterialType");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_CostControl_Wbs_WbsSet", Storage="_Wbs_WbsSet", ThisKey="WbsSetId", OtherKey="WbsSetId", IsForeignKey=true)]
|
||||
public Wbs_WbsSet Wbs_WbsSet
|
||||
{
|
||||
@@ -396849,6 +396925,168 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_EquipmentMaterialType")]
|
||||
public partial class WBS_EquipmentMaterialType : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _EquipmentMaterialTypeId;
|
||||
|
||||
private string _EquipmentMaterialTypeCode;
|
||||
|
||||
private string _EquipmentMaterialTypeName;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private EntitySet<WBS_CostControl> _WBS_CostControl;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnEquipmentMaterialTypeIdChanging(string value);
|
||||
partial void OnEquipmentMaterialTypeIdChanged();
|
||||
partial void OnEquipmentMaterialTypeCodeChanging(string value);
|
||||
partial void OnEquipmentMaterialTypeCodeChanged();
|
||||
partial void OnEquipmentMaterialTypeNameChanging(string value);
|
||||
partial void OnEquipmentMaterialTypeNameChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
#endregion
|
||||
|
||||
public WBS_EquipmentMaterialType()
|
||||
{
|
||||
this._WBS_CostControl = new EntitySet<WBS_CostControl>(new Action<WBS_CostControl>(this.attach_WBS_CostControl), new Action<WBS_CostControl>(this.detach_WBS_CostControl));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string EquipmentMaterialTypeId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EquipmentMaterialTypeId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EquipmentMaterialTypeId != value))
|
||||
{
|
||||
this.OnEquipmentMaterialTypeIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EquipmentMaterialTypeId = value;
|
||||
this.SendPropertyChanged("EquipmentMaterialTypeId");
|
||||
this.OnEquipmentMaterialTypeIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeCode", DbType="NVarChar(50)")]
|
||||
public string EquipmentMaterialTypeCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EquipmentMaterialTypeCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EquipmentMaterialTypeCode != value))
|
||||
{
|
||||
this.OnEquipmentMaterialTypeCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EquipmentMaterialTypeCode = value;
|
||||
this.SendPropertyChanged("EquipmentMaterialTypeCode");
|
||||
this.OnEquipmentMaterialTypeCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EquipmentMaterialTypeName", DbType="NVarChar(50)")]
|
||||
public string EquipmentMaterialTypeName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EquipmentMaterialTypeName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EquipmentMaterialTypeName != value))
|
||||
{
|
||||
this.OnEquipmentMaterialTypeNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EquipmentMaterialTypeName = value;
|
||||
this.SendPropertyChanged("EquipmentMaterialTypeName");
|
||||
this.OnEquipmentMaterialTypeNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(100)")]
|
||||
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.AssociationAttribute(Name="FK_WBS_CostControl_WBS_EquipmentMaterialType", Storage="_WBS_CostControl", ThisKey="EquipmentMaterialTypeId", OtherKey="EquipmentMaterialTypeId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<WBS_CostControl> WBS_CostControl
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WBS_CostControl;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._WBS_CostControl.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_WBS_CostControl(WBS_CostControl entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.WBS_EquipmentMaterialType = this;
|
||||
}
|
||||
|
||||
private void detach_WBS_CostControl(WBS_CostControl entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.WBS_EquipmentMaterialType = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_ForeignBreakdown")]
|
||||
public partial class WBS_ForeignBreakdown : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user