提交代码
This commit is contained in:
+402
-140
@@ -530,6 +530,9 @@ namespace Model
|
||||
partial void InsertEnvironmental_OperationReport(Environmental_OperationReport instance);
|
||||
partial void UpdateEnvironmental_OperationReport(Environmental_OperationReport instance);
|
||||
partial void DeleteEnvironmental_OperationReport(Environmental_OperationReport instance);
|
||||
partial void InsertEnvironmental_OperationReportItem(Environmental_OperationReportItem instance);
|
||||
partial void UpdateEnvironmental_OperationReportItem(Environmental_OperationReportItem instance);
|
||||
partial void DeleteEnvironmental_OperationReportItem(Environmental_OperationReportItem instance);
|
||||
partial void InsertEnvironmental_ProjectArchitectureReport(Environmental_ProjectArchitectureReport instance);
|
||||
partial void UpdateEnvironmental_ProjectArchitectureReport(Environmental_ProjectArchitectureReport instance);
|
||||
partial void DeleteEnvironmental_ProjectArchitectureReport(Environmental_ProjectArchitectureReport instance);
|
||||
@@ -3200,6 +3203,14 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Environmental_OperationReportItem> Environmental_OperationReportItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Environmental_OperationReportItem>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Environmental_ProjectArchitectureReport> Environmental_ProjectArchitectureReport
|
||||
{
|
||||
get
|
||||
@@ -75436,6 +75447,8 @@ namespace Model
|
||||
|
||||
private string _ServiceOperatingIncome_ThisYear;
|
||||
|
||||
private System.Nullable<int> _SortUnit;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
@@ -75484,6 +75497,8 @@ namespace Model
|
||||
partial void OnServiceOperatingIncome_LastYearChanged();
|
||||
partial void OnServiceOperatingIncome_ThisYearChanging(string value);
|
||||
partial void OnServiceOperatingIncome_ThisYearChanged();
|
||||
partial void OnSortUnitChanging(System.Nullable<int> value);
|
||||
partial void OnSortUnitChanged();
|
||||
#endregion
|
||||
|
||||
public Environmental_EnergyReportItem()
|
||||
@@ -75931,6 +75946,26 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortUnit", DbType="Int")]
|
||||
public System.Nullable<int> SortUnit
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SortUnit;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SortUnit != value))
|
||||
{
|
||||
this.OnSortUnitChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SortUnit = value;
|
||||
this.SendPropertyChanged("SortUnit");
|
||||
this.OnSortUnitChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
@@ -76556,22 +76591,6 @@ namespace Model
|
||||
|
||||
private System.Nullable<int> _Quarters;
|
||||
|
||||
private string _Code;
|
||||
|
||||
private string _UnitLevel;
|
||||
|
||||
private System.Nullable<System.DateTime> _CreateDate;
|
||||
|
||||
private string _Place;
|
||||
|
||||
private System.Nullable<int> _PersonNum;
|
||||
|
||||
private System.Nullable<decimal> _TotalAssets;
|
||||
|
||||
private System.Nullable<decimal> _TotalValue;
|
||||
|
||||
private System.Nullable<decimal> _NewInvestment;
|
||||
|
||||
private string _FillingMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _FillingDate;
|
||||
@@ -76586,6 +76605,8 @@ namespace Model
|
||||
|
||||
private EntityRef<Base_Unit> _Base_Unit;
|
||||
|
||||
private EntitySet<Environmental_OperationReportItem> _Environmental_OperationReportItem;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
@@ -76598,22 +76619,6 @@ namespace Model
|
||||
partial void OnYearChanged();
|
||||
partial void OnQuartersChanging(System.Nullable<int> value);
|
||||
partial void OnQuartersChanged();
|
||||
partial void OnCodeChanging(string value);
|
||||
partial void OnCodeChanged();
|
||||
partial void OnUnitLevelChanging(string value);
|
||||
partial void OnUnitLevelChanged();
|
||||
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCreateDateChanged();
|
||||
partial void OnPlaceChanging(string value);
|
||||
partial void OnPlaceChanged();
|
||||
partial void OnPersonNumChanging(System.Nullable<int> value);
|
||||
partial void OnPersonNumChanged();
|
||||
partial void OnTotalAssetsChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalAssetsChanged();
|
||||
partial void OnTotalValueChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalValueChanged();
|
||||
partial void OnNewInvestmentChanging(System.Nullable<decimal> value);
|
||||
partial void OnNewInvestmentChanged();
|
||||
partial void OnFillingManChanging(string value);
|
||||
partial void OnFillingManChanged();
|
||||
partial void OnFillingDateChanging(System.Nullable<System.DateTime> value);
|
||||
@@ -76631,6 +76636,7 @@ namespace Model
|
||||
public Environmental_OperationReport()
|
||||
{
|
||||
this._Base_Unit = default(EntityRef<Base_Unit>);
|
||||
this._Environmental_OperationReportItem = new EntitySet<Environmental_OperationReportItem>(new Action<Environmental_OperationReportItem>(this.attach_Environmental_OperationReportItem), new Action<Environmental_OperationReportItem>(this.detach_Environmental_OperationReportItem));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
@@ -76718,6 +76724,342 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingMan", DbType="NVarChar(50)")]
|
||||
public string FillingMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FillingMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FillingMan != value))
|
||||
{
|
||||
this.OnFillingManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FillingMan = value;
|
||||
this.SendPropertyChanged("FillingMan");
|
||||
this.OnFillingManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> FillingDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FillingDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FillingDate != value))
|
||||
{
|
||||
this.OnFillingDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FillingDate = value;
|
||||
this.SendPropertyChanged("FillingDate");
|
||||
this.OnFillingDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StatisticsDutyPerson", DbType="NVarChar(50)")]
|
||||
public string StatisticsDutyPerson
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._StatisticsDutyPerson;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._StatisticsDutyPerson != value))
|
||||
{
|
||||
this.OnStatisticsDutyPersonChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._StatisticsDutyPerson = value;
|
||||
this.SendPropertyChanged("StatisticsDutyPerson");
|
||||
this.OnStatisticsDutyPersonChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitDutyPerson", DbType="NVarChar(50)")]
|
||||
public string UnitDutyPerson
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitDutyPerson;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitDutyPerson != value))
|
||||
{
|
||||
this.OnUnitDutyPersonChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitDutyPerson = value;
|
||||
this.SendPropertyChanged("UnitDutyPerson");
|
||||
this.OnUnitDutyPersonChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_UpState", DbType="Char(1)")]
|
||||
public string UpState
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpState;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpState != value))
|
||||
{
|
||||
this.OnUpStateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UpState = value;
|
||||
this.SendPropertyChanged("UpState");
|
||||
this.OnUpStateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_OperationReport_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.Environmental_OperationReport.Remove(this);
|
||||
}
|
||||
this._Base_Unit.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Environmental_OperationReport.Add(this);
|
||||
this._UnitId = value.UnitId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._UnitId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Unit");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_OperationReportItem_Environmental_OperationReport", Storage="_Environmental_OperationReportItem", ThisKey="BusinessReportId", OtherKey="BusinessReportId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Environmental_OperationReportItem> Environmental_OperationReportItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Environmental_OperationReportItem;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Environmental_OperationReportItem.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_Environmental_OperationReportItem(Environmental_OperationReportItem entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Environmental_OperationReport = this;
|
||||
}
|
||||
|
||||
private void detach_Environmental_OperationReportItem(Environmental_OperationReportItem entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Environmental_OperationReport = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Environmental_OperationReportItem")]
|
||||
public partial class Environmental_OperationReportItem : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _BusinessReportItemId;
|
||||
|
||||
private string _BusinessReportId;
|
||||
|
||||
private System.Nullable<int> _SortIndex;
|
||||
|
||||
private string _Code;
|
||||
|
||||
private string _UnitLevel;
|
||||
|
||||
private System.Nullable<System.DateTime> _CreateDate;
|
||||
|
||||
private string _Place;
|
||||
|
||||
private System.Nullable<int> _PersonNum;
|
||||
|
||||
private System.Nullable<decimal> _TotalAssets;
|
||||
|
||||
private System.Nullable<decimal> _TotalValue;
|
||||
|
||||
private System.Nullable<decimal> _NewInvestment;
|
||||
|
||||
private string _UnitName;
|
||||
|
||||
private string _SortUnitName;
|
||||
|
||||
private EntityRef<Environmental_OperationReport> _Environmental_OperationReport;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnBusinessReportItemIdChanging(string value);
|
||||
partial void OnBusinessReportItemIdChanged();
|
||||
partial void OnBusinessReportIdChanging(string value);
|
||||
partial void OnBusinessReportIdChanged();
|
||||
partial void OnSortIndexChanging(System.Nullable<int> value);
|
||||
partial void OnSortIndexChanged();
|
||||
partial void OnCodeChanging(string value);
|
||||
partial void OnCodeChanged();
|
||||
partial void OnUnitLevelChanging(string value);
|
||||
partial void OnUnitLevelChanged();
|
||||
partial void OnCreateDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCreateDateChanged();
|
||||
partial void OnPlaceChanging(string value);
|
||||
partial void OnPlaceChanged();
|
||||
partial void OnPersonNumChanging(System.Nullable<int> value);
|
||||
partial void OnPersonNumChanged();
|
||||
partial void OnTotalAssetsChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalAssetsChanged();
|
||||
partial void OnTotalValueChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalValueChanged();
|
||||
partial void OnNewInvestmentChanging(System.Nullable<decimal> value);
|
||||
partial void OnNewInvestmentChanged();
|
||||
partial void OnUnitNameChanging(string value);
|
||||
partial void OnUnitNameChanged();
|
||||
partial void OnSortUnitNameChanging(string value);
|
||||
partial void OnSortUnitNameChanged();
|
||||
#endregion
|
||||
|
||||
public Environmental_OperationReportItem()
|
||||
{
|
||||
this._Environmental_OperationReport = default(EntityRef<Environmental_OperationReport>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BusinessReportItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string BusinessReportItemId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BusinessReportItemId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BusinessReportItemId != value))
|
||||
{
|
||||
this.OnBusinessReportItemIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BusinessReportItemId = value;
|
||||
this.SendPropertyChanged("BusinessReportItemId");
|
||||
this.OnBusinessReportItemIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BusinessReportId", DbType="NVarChar(50)")]
|
||||
public string BusinessReportId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BusinessReportId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BusinessReportId != value))
|
||||
{
|
||||
if (this._Environmental_OperationReport.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnBusinessReportIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BusinessReportId = value;
|
||||
this.SendPropertyChanged("BusinessReportId");
|
||||
this.OnBusinessReportIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")]
|
||||
public System.Nullable<int> SortIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SortIndex;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._SortIndex != value))
|
||||
{
|
||||
this.OnSortIndexChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._SortIndex = value;
|
||||
this.SendPropertyChanged("SortIndex");
|
||||
this.OnSortIndexChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Code", DbType="NVarChar(50)")]
|
||||
public string Code
|
||||
{
|
||||
@@ -76878,156 +77220,76 @@ namespace Model
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingMan", DbType="NVarChar(50)")]
|
||||
public string FillingMan
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(200)")]
|
||||
public string UnitName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FillingMan;
|
||||
return this._UnitName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FillingMan != value))
|
||||
if ((this._UnitName != value))
|
||||
{
|
||||
this.OnFillingManChanging(value);
|
||||
this.OnUnitNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FillingMan = value;
|
||||
this.SendPropertyChanged("FillingMan");
|
||||
this.OnFillingManChanged();
|
||||
this._UnitName = value;
|
||||
this.SendPropertyChanged("UnitName");
|
||||
this.OnUnitNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FillingDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> FillingDate
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortUnitName", DbType="NVarChar(200)")]
|
||||
public string SortUnitName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FillingDate;
|
||||
return this._SortUnitName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FillingDate != value))
|
||||
if ((this._SortUnitName != value))
|
||||
{
|
||||
this.OnFillingDateChanging(value);
|
||||
this.OnSortUnitNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FillingDate = value;
|
||||
this.SendPropertyChanged("FillingDate");
|
||||
this.OnFillingDateChanged();
|
||||
this._SortUnitName = value;
|
||||
this.SendPropertyChanged("SortUnitName");
|
||||
this.OnSortUnitNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StatisticsDutyPerson", DbType="NVarChar(50)")]
|
||||
public string StatisticsDutyPerson
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_OperationReportItem_Environmental_OperationReport", Storage="_Environmental_OperationReport", ThisKey="BusinessReportId", OtherKey="BusinessReportId", IsForeignKey=true)]
|
||||
public Environmental_OperationReport Environmental_OperationReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._StatisticsDutyPerson;
|
||||
return this._Environmental_OperationReport.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._StatisticsDutyPerson != value))
|
||||
{
|
||||
this.OnStatisticsDutyPersonChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._StatisticsDutyPerson = value;
|
||||
this.SendPropertyChanged("StatisticsDutyPerson");
|
||||
this.OnStatisticsDutyPersonChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitDutyPerson", DbType="NVarChar(50)")]
|
||||
public string UnitDutyPerson
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitDutyPerson;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitDutyPerson != value))
|
||||
{
|
||||
this.OnUnitDutyPersonChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitDutyPerson = value;
|
||||
this.SendPropertyChanged("UnitDutyPerson");
|
||||
this.OnUnitDutyPersonChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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="_UpState", DbType="Char(1)")]
|
||||
public string UpState
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UpState;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UpState != value))
|
||||
{
|
||||
this.OnUpStateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UpState = value;
|
||||
this.SendPropertyChanged("UpState");
|
||||
this.OnUpStateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Environmental_OperationReport_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;
|
||||
Environmental_OperationReport previousValue = this._Environmental_OperationReport.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_Unit.HasLoadedOrAssignedValue == false)))
|
||||
|| (this._Environmental_OperationReport.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_Unit.Entity = null;
|
||||
previousValue.Environmental_OperationReport.Remove(this);
|
||||
this._Environmental_OperationReport.Entity = null;
|
||||
previousValue.Environmental_OperationReportItem.Remove(this);
|
||||
}
|
||||
this._Base_Unit.Entity = value;
|
||||
this._Environmental_OperationReport.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Environmental_OperationReport.Add(this);
|
||||
this._UnitId = value.UnitId;
|
||||
value.Environmental_OperationReportItem.Add(this);
|
||||
this._BusinessReportId = value.BusinessReportId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._UnitId = default(string);
|
||||
this._BusinessReportId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_Unit");
|
||||
this.SendPropertyChanged("Environmental_OperationReport");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user