提交代码

This commit is contained in:
2024-03-05 11:22:03 +08:00
parent d28f7920d8
commit 8e60ae5b65
44 changed files with 4374 additions and 2209 deletions
+382
View File
@@ -722,6 +722,9 @@ namespace Model
partial void InsertDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
partial void UpdateDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
partial void DeleteDriverGoods_GoodsBuy(DriverGoods_GoodsBuy instance);
partial void InsertDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
partial void UpdateDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
partial void DeleteDriverGoods_GoodsModel(DriverGoods_GoodsModel instance);
partial void InsertDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
partial void UpdateDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
partial void DeleteDriverGoods_GoodsPlan(DriverGoods_GoodsPlan instance);
@@ -4414,6 +4417,14 @@ namespace Model
}
}
public System.Data.Linq.Table<DriverGoods_GoodsModel> DriverGoods_GoodsModel
{
get
{
return this.GetTable<DriverGoods_GoodsModel>();
}
}
public System.Data.Linq.Table<DriverGoods_GoodsPlan> DriverGoods_GoodsPlan
{
get
@@ -25664,6 +25675,8 @@ namespace Model
private EntitySet<DriverGoods_GoodsBuy> _DriverGoods_GoodsBuy;
private EntitySet<DriverGoods_GoodsModel> _DriverGoods_GoodsModel;
private EntitySet<DriverGoods_GoodsPlan> _DriverGoods_GoodsPlan;
private EntitySet<DriverGoods_MaterialTrace> _DriverGoods_MaterialTrace;
@@ -26256,6 +26269,7 @@ namespace Model
this._Driver_Meeting = new EntitySet<Driver_Meeting>(new Action<Driver_Meeting>(this.attach_Driver_Meeting), new Action<Driver_Meeting>(this.detach_Driver_Meeting));
this._Driver_TestRun = new EntitySet<Driver_TestRun>(new Action<Driver_TestRun>(this.attach_Driver_TestRun), new Action<Driver_TestRun>(this.detach_Driver_TestRun));
this._DriverGoods_GoodsBuy = new EntitySet<DriverGoods_GoodsBuy>(new Action<DriverGoods_GoodsBuy>(this.attach_DriverGoods_GoodsBuy), new Action<DriverGoods_GoodsBuy>(this.detach_DriverGoods_GoodsBuy));
this._DriverGoods_GoodsModel = new EntitySet<DriverGoods_GoodsModel>(new Action<DriverGoods_GoodsModel>(this.attach_DriverGoods_GoodsModel), new Action<DriverGoods_GoodsModel>(this.detach_DriverGoods_GoodsModel));
this._DriverGoods_GoodsPlan = new EntitySet<DriverGoods_GoodsPlan>(new Action<DriverGoods_GoodsPlan>(this.attach_DriverGoods_GoodsPlan), new Action<DriverGoods_GoodsPlan>(this.detach_DriverGoods_GoodsPlan));
this._DriverGoods_MaterialTrace = new EntitySet<DriverGoods_MaterialTrace>(new Action<DriverGoods_MaterialTrace>(this.attach_DriverGoods_MaterialTrace), new Action<DriverGoods_MaterialTrace>(this.detach_DriverGoods_MaterialTrace));
this._DriverHse_HseHazard = new EntitySet<DriverHse_HseHazard>(new Action<DriverHse_HseHazard>(this.attach_DriverHse_HseHazard), new Action<DriverHse_HseHazard>(this.detach_DriverHse_HseHazard));
@@ -28411,6 +28425,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsModel_Base_Project", Storage="_DriverGoods_GoodsModel", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<DriverGoods_GoodsModel> DriverGoods_GoodsModel
{
get
{
return this._DriverGoods_GoodsModel;
}
set
{
this._DriverGoods_GoodsModel.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsPlan_Base_Project", Storage="_DriverGoods_GoodsPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<DriverGoods_GoodsPlan> DriverGoods_GoodsPlan
{
@@ -32145,6 +32172,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_DriverGoods_GoodsModel(DriverGoods_GoodsModel entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_DriverGoods_GoodsModel(DriverGoods_GoodsModel entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_DriverGoods_GoodsPlan(DriverGoods_GoodsPlan entity)
{
this.SendPropertyChanging();
@@ -122078,6 +122117,277 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.DriverGoods_GoodsModel")]
public partial class DriverGoods_GoodsModel : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _GoodsModelId;
private string _ProjectId;
private System.Nullable<int> _Code;
private string _Description;
private string _Quantity;
private string _Purpose;
private string _Attachment;
private string _Remark;
private EntityRef<Base_Project> _Base_Project;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnGoodsModelIdChanging(string value);
partial void OnGoodsModelIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnCodeChanging(System.Nullable<int> value);
partial void OnCodeChanged();
partial void OnDescriptionChanging(string value);
partial void OnDescriptionChanged();
partial void OnQuantityChanging(string value);
partial void OnQuantityChanged();
partial void OnPurposeChanging(string value);
partial void OnPurposeChanged();
partial void OnAttachmentChanging(string value);
partial void OnAttachmentChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
#endregion
public DriverGoods_GoodsModel()
{
this._Base_Project = default(EntityRef<Base_Project>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GoodsModelId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string GoodsModelId
{
get
{
return this._GoodsModelId;
}
set
{
if ((this._GoodsModelId != value))
{
this.OnGoodsModelIdChanging(value);
this.SendPropertyChanging();
this._GoodsModelId = value;
this.SendPropertyChanged("GoodsModelId");
this.OnGoodsModelIdChanged();
}
}
}
[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="_Code", DbType="Int")]
public System.Nullable<int> Code
{
get
{
return this._Code;
}
set
{
if ((this._Code != value))
{
this.OnCodeChanging(value);
this.SendPropertyChanging();
this._Code = value;
this.SendPropertyChanged("Code");
this.OnCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(200)")]
public string Description
{
get
{
return this._Description;
}
set
{
if ((this._Description != value))
{
this.OnDescriptionChanging(value);
this.SendPropertyChanging();
this._Description = value;
this.SendPropertyChanged("Description");
this.OnDescriptionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="NVarChar(50)")]
public string Quantity
{
get
{
return this._Quantity;
}
set
{
if ((this._Quantity != value))
{
this.OnQuantityChanging(value);
this.SendPropertyChanging();
this._Quantity = value;
this.SendPropertyChanged("Quantity");
this.OnQuantityChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Purpose", DbType="NVarChar(100)")]
public string Purpose
{
get
{
return this._Purpose;
}
set
{
if ((this._Purpose != value))
{
this.OnPurposeChanging(value);
this.SendPropertyChanging();
this._Purpose = value;
this.SendPropertyChanged("Purpose");
this.OnPurposeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Attachment", DbType="NVarChar(100)")]
public string Attachment
{
get
{
return this._Attachment;
}
set
{
if ((this._Attachment != value))
{
this.OnAttachmentChanging(value);
this.SendPropertyChanging();
this._Attachment = value;
this.SendPropertyChanged("Attachment");
this.OnAttachmentChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(200)")]
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_DriverGoods_GoodsModel_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.DriverGoods_GoodsModel.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.DriverGoods_GoodsModel.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.DriverGoods_GoodsPlan")]
public partial class DriverGoods_GoodsPlan : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -127548,6 +127858,10 @@ namespace Model
private System.Nullable<System.DateTime> _RealCompletedDate;
private string _Status;
private string _Priority;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_Unit> _Base_Unit;
@@ -127590,6 +127904,10 @@ namespace Model
partial void OnStateChanged();
partial void OnRealCompletedDateChanging(System.Nullable<System.DateTime> value);
partial void OnRealCompletedDateChanged();
partial void OnStatusChanging(string value);
partial void OnStatusChanged();
partial void OnPriorityChanging(string value);
partial void OnPriorityChanged();
#endregion
public DriverRun_DriverRun()
@@ -127928,6 +128246,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Char(1)")]
public string Status
{
get
{
return this._Status;
}
set
{
if ((this._Status != value))
{
this.OnStatusChanging(value);
this.SendPropertyChanging();
this._Status = value;
this.SendPropertyChanged("Status");
this.OnStatusChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Priority", DbType="Char(1)")]
public string Priority
{
get
{
return this._Priority;
}
set
{
if ((this._Priority != value))
{
this.OnPriorityChanging(value);
this.SendPropertyChanging();
this._Priority = value;
this.SendPropertyChanged("Priority");
this.OnPriorityChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverRun_DriverRun_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -325609,6 +325967,8 @@ namespace Model
private string _Content;
private string _System;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_SpecialSchemeType> _Base_SpecialSchemeType;
@@ -325651,6 +326011,8 @@ namespace Model
partial void OnSpecialSchemeTypeIdChanged();
partial void OnContentChanging(string value);
partial void OnContentChanged();
partial void OnSystemChanging(string value);
partial void OnSystemChanged();
#endregion
public Solution_TestRunConstructSolution()
@@ -325974,6 +326336,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_System", DbType="NVarChar(50)")]
public string System
{
get
{
return this._System;
}
set
{
if ((this._System != value))
{
this.OnSystemChanging(value);
this.SendPropertyChanging();
this._System = value;
this.SendPropertyChanged("System");
this.OnSystemChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_TestRunConstructSolution_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{