提交代码
This commit is contained in:
parent
f5ec85ec82
commit
2e44581962
|
@ -6,10 +6,11 @@ using System.Collections;
|
||||||
using Model;
|
using Model;
|
||||||
using static BLL.SafetyResponsibilitiesService;
|
using static BLL.SafetyResponsibilitiesService;
|
||||||
|
|
||||||
namespace BLL.OfficeCheck.Inspect;
|
namespace BLL.OfficeCheck.Inspect
|
||||||
|
|
||||||
public class Inspect_InspectionService
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public class Inspect_InspectionService
|
||||||
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 添加安全专项检查
|
/// 添加安全专项检查
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -202,7 +203,7 @@ public class Inspect_InspectionService
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="SafetyResponsibilitiesId"></param>
|
/// <param name="SafetyResponsibilitiesId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<InspectionDto> GetInspectionList(string? ProjectId,string States,string? PersonResponsible,int PageNumber, int PageSize)
|
public static List<InspectionDto> GetInspectionList(string ProjectId, string States, string PersonResponsible, int PageNumber, int PageSize)
|
||||||
{
|
{
|
||||||
|
|
||||||
var getDataLists = (from x in Funs.DB.Inspect_Inspection
|
var getDataLists = (from x in Funs.DB.Inspect_Inspection
|
||||||
|
@ -490,5 +491,5 @@ public class Inspect_InspectionService
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -228815,881 +228815,6 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem;
|
private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem;
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
|
||||||
partial void OnLoaded();
|
|
||||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
|
||||||
partial void OnCreated();
|
|
||||||
partial void OnInspectionIdChanging(string value);
|
|
||||||
partial void OnInspectionIdChanged();
|
|
||||||
partial void OnInspectionCodeChanging(string value);
|
|
||||||
partial void OnInspectionCodeChanged();
|
|
||||||
partial void OnProjectIdChanging(string value);
|
|
||||||
partial void OnProjectIdChanged();
|
|
||||||
partial void OnPersonResponsibleChanging(string value);
|
|
||||||
partial void OnPersonResponsibleChanged();
|
|
||||||
partial void OnInspectTimeChanging(System.Nullable<System.DateTime> value);
|
|
||||||
partial void OnInspectTimeChanged();
|
|
||||||
partial void OnDescriptionChanging(string value);
|
|
||||||
partial void OnDescriptionChanged();
|
|
||||||
partial void OnStatesChanging(string value);
|
|
||||||
partial void OnStatesChanged();
|
|
||||||
partial void OnInspectManChanging(string value);
|
|
||||||
partial void OnInspectManChanged();
|
|
||||||
partial void OnInspectTypeChanging(string value);
|
|
||||||
partial void OnInspectTypeChanged();
|
|
||||||
partial void OnInspectItemSetIdChanging(string value);
|
|
||||||
partial void OnInspectItemSetIdChanged();
|
|
||||||
partial void OnProjectStatesChanging(string value);
|
|
||||||
partial void OnProjectStatesChanged();
|
|
||||||
partial void OnCreateManChanging(string value);
|
|
||||||
partial void OnCreateManChanged();
|
|
||||||
partial void OnCreateTimeChanging(System.Nullable<System.DateTime> value);
|
|
||||||
partial void OnCreateTimeChanged();
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
public Inspect_Inspection()
|
|
||||||
{
|
|
||||||
this._Base_Project = default(EntityRef<Base_Project>);
|
|
||||||
this._Inspect_InspectionItem = new EntitySet<Inspect_InspectionItem>(new Action<Inspect_InspectionItem>(this.attach_Inspect_InspectionItem), new Action<Inspect_InspectionItem>(this.detach_Inspect_InspectionItem));
|
|
||||||
OnCreated();
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
|
||||||
public string InspectionId
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionId;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionId != value))
|
|
||||||
{
|
|
||||||
this.OnInspectionIdChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionId = value;
|
|
||||||
this.SendPropertyChanged("InspectionId");
|
|
||||||
this.OnInspectionIdChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionCode", DbType="NVarChar(50)")]
|
|
||||||
public string InspectionCode
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionCode;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionCode != value))
|
|
||||||
{
|
|
||||||
this.OnInspectionCodeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionCode = value;
|
|
||||||
this.SendPropertyChanged("InspectionCode");
|
|
||||||
this.OnInspectionCodeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[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="_PersonResponsible", DbType="NVarChar(50)")]
|
|
||||||
public string PersonResponsible
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._PersonResponsible;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._PersonResponsible != value))
|
|
||||||
{
|
|
||||||
this.OnPersonResponsibleChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._PersonResponsible = value;
|
|
||||||
this.SendPropertyChanged("PersonResponsible");
|
|
||||||
this.OnPersonResponsibleChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectTime", DbType="DateTime")]
|
|
||||||
public System.Nullable<System.DateTime> InspectTime
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectTime;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectTime != value))
|
|
||||||
{
|
|
||||||
this.OnInspectTimeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectTime = value;
|
|
||||||
this.SendPropertyChanged("InspectTime");
|
|
||||||
this.OnInspectTimeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(2000)")]
|
|
||||||
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="_States", DbType="Char(1)")]
|
|
||||||
public string States
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._States;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._States != value))
|
|
||||||
{
|
|
||||||
this.OnStatesChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._States = value;
|
|
||||||
this.SendPropertyChanged("States");
|
|
||||||
this.OnStatesChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectMan", DbType="NVarChar(50)")]
|
|
||||||
public string InspectMan
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectMan;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectMan != value))
|
|
||||||
{
|
|
||||||
this.OnInspectManChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectMan = value;
|
|
||||||
this.SendPropertyChanged("InspectMan");
|
|
||||||
this.OnInspectManChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectType", DbType="Char(1)")]
|
|
||||||
public string InspectType
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectType;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectType != value))
|
|
||||||
{
|
|
||||||
this.OnInspectTypeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectType = value;
|
|
||||||
this.SendPropertyChanged("InspectType");
|
|
||||||
this.OnInspectTypeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectItemSetId", DbType="NVarChar(50)")]
|
|
||||||
public string InspectItemSetId
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectItemSetId;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectItemSetId != value))
|
|
||||||
{
|
|
||||||
this.OnInspectItemSetIdChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectItemSetId = value;
|
|
||||||
this.SendPropertyChanged("InspectItemSetId");
|
|
||||||
this.OnInspectItemSetIdChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectStates", DbType="Char(1)")]
|
|
||||||
public string ProjectStates
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._ProjectStates;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._ProjectStates != value))
|
|
||||||
{
|
|
||||||
this.OnProjectStatesChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._ProjectStates = value;
|
|
||||||
this.SendPropertyChanged("ProjectStates");
|
|
||||||
this.OnProjectStatesChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateMan", DbType="NVarChar(50)")]
|
|
||||||
public string CreateMan
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._CreateMan;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._CreateMan != value))
|
|
||||||
{
|
|
||||||
this.OnCreateManChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._CreateMan = value;
|
|
||||||
this.SendPropertyChanged("CreateMan");
|
|
||||||
this.OnCreateManChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime")]
|
|
||||||
public System.Nullable<System.DateTime> CreateTime
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._CreateTime;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._CreateTime != value))
|
|
||||||
{
|
|
||||||
this.OnCreateTimeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._CreateTime = value;
|
|
||||||
this.SendPropertyChanged("CreateTime");
|
|
||||||
this.OnCreateTimeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_Inspection_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.Inspect_Inspection.Remove(this);
|
|
||||||
}
|
|
||||||
this._Base_Project.Entity = value;
|
|
||||||
if ((value != null))
|
|
||||||
{
|
|
||||||
value.Inspect_Inspection.Add(this);
|
|
||||||
this._ProjectId = value.ProjectId;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this._ProjectId = default(string);
|
|
||||||
}
|
|
||||||
this.SendPropertyChanged("Base_Project");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_Inspect_Inspection", Storage="_Inspect_InspectionItem", ThisKey="InspectionId", OtherKey="InspectionId", DeleteRule="NO ACTION")]
|
|
||||||
public EntitySet<Inspect_InspectionItem> Inspect_InspectionItem
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._Inspect_InspectionItem;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
this._Inspect_InspectionItem.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_Inspect_InspectionItem(Inspect_InspectionItem entity)
|
|
||||||
{
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
entity.Inspect_Inspection = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void detach_Inspect_InspectionItem(Inspect_InspectionItem entity)
|
|
||||||
{
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
entity.Inspect_Inspection = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Inspect_InspectionItem")]
|
|
||||||
public partial class Inspect_InspectionItem : INotifyPropertyChanging, INotifyPropertyChanged
|
|
||||||
{
|
|
||||||
|
|
||||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
|
||||||
|
|
||||||
private string _InspectionItemId;
|
|
||||||
|
|
||||||
private string _InspectionId;
|
|
||||||
|
|
||||||
private string _InspectionItemCode;
|
|
||||||
|
|
||||||
private string _ProjectId;
|
|
||||||
|
|
||||||
private string _InspectionDescribe;
|
|
||||||
|
|
||||||
private string _PhotoUrl;
|
|
||||||
|
|
||||||
private string _VideoUrl;
|
|
||||||
|
|
||||||
private string _EvaluateResults;
|
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _TimeLimited;
|
|
||||||
|
|
||||||
private string _RectificationDescription;
|
|
||||||
|
|
||||||
private string _RectificationResults;
|
|
||||||
|
|
||||||
private string _States;
|
|
||||||
|
|
||||||
private string _CompileMan;
|
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _CompileTime;
|
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
|
||||||
|
|
||||||
private EntityRef<Inspect_Inspection> _Inspect_Inspection;
|
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
|
||||||
partial void OnLoaded();
|
|
||||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
|
||||||
partial void OnCreated();
|
|
||||||
partial void OnInspectionItemIdChanging(string value);
|
|
||||||
partial void OnInspectionItemIdChanged();
|
|
||||||
partial void OnInspectionIdChanging(string value);
|
|
||||||
partial void OnInspectionIdChanged();
|
|
||||||
partial void OnInspectionItemCodeChanging(string value);
|
|
||||||
partial void OnInspectionItemCodeChanged();
|
|
||||||
partial void OnProjectIdChanging(string value);
|
|
||||||
partial void OnProjectIdChanged();
|
|
||||||
partial void OnInspectionDescribeChanging(string value);
|
|
||||||
partial void OnInspectionDescribeChanged();
|
|
||||||
partial void OnPhotoUrlChanging(string value);
|
|
||||||
partial void OnPhotoUrlChanged();
|
|
||||||
partial void OnVideoUrlChanging(string value);
|
|
||||||
partial void OnVideoUrlChanged();
|
|
||||||
partial void OnEvaluateResultsChanging(string value);
|
|
||||||
partial void OnEvaluateResultsChanged();
|
|
||||||
partial void OnTimeLimitedChanging(System.Nullable<System.DateTime> value);
|
|
||||||
partial void OnTimeLimitedChanged();
|
|
||||||
partial void OnRectificationDescriptionChanging(string value);
|
|
||||||
partial void OnRectificationDescriptionChanged();
|
|
||||||
partial void OnRectificationResultsChanging(string value);
|
|
||||||
partial void OnRectificationResultsChanged();
|
|
||||||
partial void OnStatesChanging(string value);
|
|
||||||
partial void OnStatesChanged();
|
|
||||||
partial void OnCompileManChanging(string value);
|
|
||||||
partial void OnCompileManChanged();
|
|
||||||
partial void OnCompileTimeChanging(System.Nullable<System.DateTime> value);
|
|
||||||
partial void OnCompileTimeChanged();
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
public Inspect_InspectionItem()
|
|
||||||
{
|
|
||||||
this._Base_Project = default(EntityRef<Base_Project>);
|
|
||||||
this._Inspect_Inspection = default(EntityRef<Inspect_Inspection>);
|
|
||||||
OnCreated();
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
|
||||||
public string InspectionItemId
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionItemId;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionItemId != value))
|
|
||||||
{
|
|
||||||
this.OnInspectionItemIdChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionItemId = value;
|
|
||||||
this.SendPropertyChanged("InspectionItemId");
|
|
||||||
this.OnInspectionItemIdChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
|
||||||
public string InspectionId
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionId;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionId != value))
|
|
||||||
{
|
|
||||||
if (this._Inspect_Inspection.HasLoadedOrAssignedValue)
|
|
||||||
{
|
|
||||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
|
||||||
}
|
|
||||||
this.OnInspectionIdChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionId = value;
|
|
||||||
this.SendPropertyChanged("InspectionId");
|
|
||||||
this.OnInspectionIdChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionItemCode", DbType="NVarChar(50)")]
|
|
||||||
public string InspectionItemCode
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionItemCode;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionItemCode != value))
|
|
||||||
{
|
|
||||||
this.OnInspectionItemCodeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionItemCode = value;
|
|
||||||
this.SendPropertyChanged("InspectionItemCode");
|
|
||||||
this.OnInspectionItemCodeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[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="_InspectionDescribe", DbType="NVarChar(1000)")]
|
|
||||||
public string InspectionDescribe
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._InspectionDescribe;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._InspectionDescribe != value))
|
|
||||||
{
|
|
||||||
this.OnInspectionDescribeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._InspectionDescribe = value;
|
|
||||||
this.SendPropertyChanged("InspectionDescribe");
|
|
||||||
this.OnInspectionDescribeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PhotoUrl", DbType="NVarChar(1000)")]
|
|
||||||
public string PhotoUrl
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._PhotoUrl;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._PhotoUrl != value))
|
|
||||||
{
|
|
||||||
this.OnPhotoUrlChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._PhotoUrl = value;
|
|
||||||
this.SendPropertyChanged("PhotoUrl");
|
|
||||||
this.OnPhotoUrlChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VideoUrl", DbType="NVarChar(1000)")]
|
|
||||||
public string VideoUrl
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._VideoUrl;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._VideoUrl != value))
|
|
||||||
{
|
|
||||||
this.OnVideoUrlChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._VideoUrl = value;
|
|
||||||
this.SendPropertyChanged("VideoUrl");
|
|
||||||
this.OnVideoUrlChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EvaluateResults", DbType="NVarChar(20)")]
|
|
||||||
public string EvaluateResults
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._EvaluateResults;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._EvaluateResults != value))
|
|
||||||
{
|
|
||||||
this.OnEvaluateResultsChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._EvaluateResults = value;
|
|
||||||
this.SendPropertyChanged("EvaluateResults");
|
|
||||||
this.OnEvaluateResultsChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TimeLimited", DbType="DateTime")]
|
|
||||||
public System.Nullable<System.DateTime> TimeLimited
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._TimeLimited;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._TimeLimited != value))
|
|
||||||
{
|
|
||||||
this.OnTimeLimitedChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._TimeLimited = value;
|
|
||||||
this.SendPropertyChanged("TimeLimited");
|
|
||||||
this.OnTimeLimitedChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationDescription", DbType="NVarChar(1000)")]
|
|
||||||
public string RectificationDescription
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._RectificationDescription;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._RectificationDescription != value))
|
|
||||||
{
|
|
||||||
this.OnRectificationDescriptionChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._RectificationDescription = value;
|
|
||||||
this.SendPropertyChanged("RectificationDescription");
|
|
||||||
this.OnRectificationDescriptionChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RectificationResults", DbType="NVarChar(20)")]
|
|
||||||
public string RectificationResults
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._RectificationResults;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._RectificationResults != value))
|
|
||||||
{
|
|
||||||
this.OnRectificationResultsChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._RectificationResults = value;
|
|
||||||
this.SendPropertyChanged("RectificationResults");
|
|
||||||
this.OnRectificationResultsChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="NVarChar(100)")]
|
|
||||||
public string States
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._States;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._States != value))
|
|
||||||
{
|
|
||||||
this.OnStatesChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._States = value;
|
|
||||||
this.SendPropertyChanged("States");
|
|
||||||
this.OnStatesChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
|
||||||
public string CompileMan
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._CompileMan;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._CompileMan != value))
|
|
||||||
{
|
|
||||||
this.OnCompileManChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._CompileMan = value;
|
|
||||||
this.SendPropertyChanged("CompileMan");
|
|
||||||
this.OnCompileManChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileTime", DbType="DateTime")]
|
|
||||||
public System.Nullable<System.DateTime> CompileTime
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._CompileTime;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if ((this._CompileTime != value))
|
|
||||||
{
|
|
||||||
this.OnCompileTimeChanging(value);
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
this._CompileTime = value;
|
|
||||||
this.SendPropertyChanged("CompileTime");
|
|
||||||
this.OnCompileTimeChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_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.Inspect_InspectionItem.Remove(this);
|
|
||||||
}
|
|
||||||
this._Base_Project.Entity = value;
|
|
||||||
if ((value != null))
|
|
||||||
{
|
|
||||||
value.Inspect_InspectionItem.Add(this);
|
|
||||||
this._ProjectId = value.ProjectId;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this._ProjectId = default(string);
|
|
||||||
}
|
|
||||||
this.SendPropertyChanged("Base_Project");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Inspect_InspectionItem_Inspect_Inspection", Storage="_Inspect_Inspection", ThisKey="InspectionId", OtherKey="InspectionId", IsForeignKey=true)]
|
|
||||||
public Inspect_Inspection Inspect_Inspection
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return this._Inspect_Inspection.Entity;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
Inspect_Inspection previousValue = this._Inspect_Inspection.Entity;
|
|
||||||
if (((previousValue != value)
|
|
||||||
|| (this._Inspect_Inspection.HasLoadedOrAssignedValue == false)))
|
|
||||||
{
|
|
||||||
this.SendPropertyChanging();
|
|
||||||
if ((previousValue != null))
|
|
||||||
{
|
|
||||||
this._Inspect_Inspection.Entity = null;
|
|
||||||
previousValue.Inspect_InspectionItem.Remove(this);
|
|
||||||
}
|
|
||||||
this._Inspect_Inspection.Entity = value;
|
|
||||||
if ((value != null))
|
|
||||||
{
|
|
||||||
value.Inspect_InspectionItem.Add(this);
|
|
||||||
this._InspectionId = value.InspectionId;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this._InspectionId = default(string);
|
|
||||||
}
|
|
||||||
this.SendPropertyChanged("Inspect_Inspection");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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.Inspect_Inspection")]
|
|
||||||
public partial class Inspect_Inspection : INotifyPropertyChanging, INotifyPropertyChanged
|
|
||||||
{
|
|
||||||
|
|
||||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
|
||||||
|
|
||||||
private string _InspectionId;
|
|
||||||
|
|
||||||
private string _InspectionCode;
|
|
||||||
|
|
||||||
private string _ProjectId;
|
|
||||||
|
|
||||||
private string _PersonResponsible;
|
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _InspectTime;
|
|
||||||
|
|
||||||
private string _Description;
|
|
||||||
|
|
||||||
private string _States;
|
|
||||||
|
|
||||||
private string _InspectMan;
|
|
||||||
|
|
||||||
private string _InspectType;
|
|
||||||
|
|
||||||
private string _InspectItemSetId;
|
|
||||||
|
|
||||||
private string _ProjectStates;
|
|
||||||
|
|
||||||
private string _CreateMan;
|
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _CreateTime;
|
|
||||||
|
|
||||||
private EntityRef<Base_Project> _Base_Project;
|
|
||||||
|
|
||||||
private EntitySet<Inspect_InspectionItem> _Inspect_InspectionItem;
|
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
#region 可扩展性方法定义
|
||||||
partial void OnLoaded();
|
partial void OnLoaded();
|
||||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
|
Loading…
Reference in New Issue