From 5732c49c03f69c31995d4cabb61dbaae9985ef60 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Wed, 12 Aug 2026 20:22:55 +0800 Subject: [PATCH] 1 --- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 2 +- SGGL/Model/Model.cs | 921 +++++++++++++++++++++--- 2 files changed, 839 insertions(+), 84 deletions(-) diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 66a80cd3..2c8589e7 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -17444,7 +17444,7 @@ - + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 416ab46a..9a776216 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -728,6 +728,9 @@ namespace Model partial void InsertHJGL_PreWeldCuttingCheck(HJGL_PreWeldCuttingCheck instance); partial void UpdateHJGL_PreWeldCuttingCheck(HJGL_PreWeldCuttingCheck instance); partial void DeleteHJGL_PreWeldCuttingCheck(HJGL_PreWeldCuttingCheck instance); + partial void InsertHJGL_PreWeldCuttingCheckMaterial(HJGL_PreWeldCuttingCheckMaterial instance); + partial void UpdateHJGL_PreWeldCuttingCheckMaterial(HJGL_PreWeldCuttingCheckMaterial instance); + partial void DeleteHJGL_PreWeldCuttingCheckMaterial(HJGL_PreWeldCuttingCheckMaterial instance); partial void InsertHJGL_PreWeldFitupCheck(HJGL_PreWeldFitupCheck instance); partial void UpdateHJGL_PreWeldFitupCheck(HJGL_PreWeldFitupCheck instance); partial void DeleteHJGL_PreWeldFitupCheck(HJGL_PreWeldFitupCheck instance); @@ -743,6 +746,9 @@ namespace Model partial void InsertHJGL_TrainNumberManage(HJGL_TrainNumberManage instance); partial void UpdateHJGL_TrainNumberManage(HJGL_TrainNumberManage instance); partial void DeleteHJGL_TrainNumberManage(HJGL_TrainNumberManage instance); + partial void InsertHJGL_WeldAppearanceCheck(HJGL_WeldAppearanceCheck instance); + partial void UpdateHJGL_WeldAppearanceCheck(HJGL_WeldAppearanceCheck instance); + partial void DeleteHJGL_WeldAppearanceCheck(HJGL_WeldAppearanceCheck instance); partial void InsertHJGL_WeldingDaily(HJGL_WeldingDaily instance); partial void UpdateHJGL_WeldingDaily(HJGL_WeldingDaily instance); partial void DeleteHJGL_WeldingDaily(HJGL_WeldingDaily instance); @@ -3851,6 +3857,14 @@ namespace Model } } + public System.Data.Linq.Table HJGL_PreWeldCuttingCheckMaterial + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table HJGL_PreWeldFitupCheck { get @@ -3899,6 +3913,14 @@ namespace Model } } + public System.Data.Linq.Table HJGL_WeldAppearanceCheck + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table HJGL_WeldingDaily { get @@ -92934,7 +92956,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -94774,8 +94796,6 @@ namespace Model private EntityRef _Base_PipingClass; - private EntityRef _HJGL_Pipeline; - private EntityRef _Person_Persons; private EntityRef _WBS_UnitWork; @@ -94823,7 +94843,6 @@ namespace Model this._Base_Unit = default(EntityRef); this._Base_Project = default(EntityRef); this._Base_PipingClass = default(EntityRef); - this._HJGL_Pipeline = default(EntityRef); this._Person_Persons = default(EntityRef); this._WBS_UnitWork = default(EntityRef); this._HJGL_Batch_PointBatchItem = new EntitySet(new Action(this.attach_HJGL_Batch_PointBatchItem), new Action(this.detach_HJGL_Batch_PointBatchItem)); @@ -95025,10 +95044,6 @@ namespace Model { if ((this._PipelineId != value)) { - if (this._HJGL_Pipeline.HasLoadedOrAssignedValue) - { - throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); - } this.OnPipelineIdChanging(value); this.SendPropertyChanging(); this._PipelineId = value; @@ -95312,40 +95327,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Batch_PointBatch_HJGL_Pipeline", Storage="_HJGL_Pipeline", ThisKey="PipelineId", OtherKey="PipelineId", IsForeignKey=true)] - public HJGL_Pipeline HJGL_Pipeline - { - get - { - return this._HJGL_Pipeline.Entity; - } - set - { - HJGL_Pipeline previousValue = this._HJGL_Pipeline.Entity; - if (((previousValue != value) - || (this._HJGL_Pipeline.HasLoadedOrAssignedValue == false))) - { - this.SendPropertyChanging(); - if ((previousValue != null)) - { - this._HJGL_Pipeline.Entity = null; - previousValue.HJGL_Batch_PointBatch.Remove(this); - } - this._HJGL_Pipeline.Entity = value; - if ((value != null)) - { - value.HJGL_Batch_PointBatch.Add(this); - this._PipelineId = value.PipelineId; - } - else - { - this._PipelineId = default(string); - } - this.SendPropertyChanged("HJGL_Pipeline"); - } - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Batch_PointBatch_Person_Persons", Storage="_Person_Persons", ThisKey="WelderId", OtherKey="PersonId", IsForeignKey=true)] public Person_Persons Person_Persons { @@ -95502,6 +95483,8 @@ namespace Model private string _PCoverWelderId; + private string _NDT; + private EntitySet _HJGL_Batch_BatchTrustItem; private EntityRef _HJGL_Batch_PointBatch; @@ -95550,6 +95533,8 @@ namespace Model partial void OnPBackingWelderIdChanged(); partial void OnPCoverWelderIdChanging(string value); partial void OnPCoverWelderIdChanged(); + partial void OnNDTChanging(string value); + partial void OnNDTChanged(); #endregion public HJGL_Batch_PointBatchItem() @@ -95933,6 +95918,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDT", DbType="NVarChar(300)")] + public string NDT + { + get + { + return this._NDT; + } + set + { + if ((this._NDT != value)) + { + this.OnNDTChanging(value); + this.SendPropertyChanging(); + this._NDT = value; + this.SendPropertyChanged("NDT"); + this.OnNDTChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Batch_BatchTrustItem_HJGL_Batch_PointBatchItem", Storage="_HJGL_Batch_BatchTrustItem", ThisKey="PointBatchItemId", OtherKey="PointBatchItemId", DeleteRule="NO ACTION")] public EntitySet HJGL_Batch_BatchTrustItem { @@ -101669,7 +101674,7 @@ namespace Model private string _Code; private string _DesignInstitute; - + private EntityRef _Base_Project; private EntitySet _HJGL_PipeLineMat; @@ -101954,7 +101959,7 @@ namespace Model } } } - + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_MaterialCodeLib_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -104756,8 +104761,6 @@ namespace Model private EntityRef _Base_TestMedium; - private EntitySet _HJGL_Batch_PointBatch; - private EntitySet _HJGL_LV_Pipeline; private EntitySet _HJGL_PC_Pipeline; @@ -104867,7 +104870,6 @@ namespace Model public HJGL_Pipeline() { this._Base_TestMedium = default(EntityRef); - this._HJGL_Batch_PointBatch = new EntitySet(new Action(this.attach_HJGL_Batch_PointBatch), new Action(this.detach_HJGL_Batch_PointBatch)); this._HJGL_LV_Pipeline = new EntitySet(new Action(this.attach_HJGL_LV_Pipeline), new Action(this.detach_HJGL_LV_Pipeline)); this._HJGL_PC_Pipeline = new EntitySet(new Action(this.attach_HJGL_PC_Pipeline), new Action(this.detach_HJGL_PC_Pipeline)); this._Base_DetectionRate = default(EntityRef); @@ -105671,19 +105673,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Batch_PointBatch_HJGL_Pipeline", Storage="_HJGL_Batch_PointBatch", ThisKey="PipelineId", OtherKey="PipelineId", DeleteRule="NO ACTION")] - public EntitySet HJGL_Batch_PointBatch - { - get - { - return this._HJGL_Batch_PointBatch; - } - set - { - this._HJGL_Batch_PointBatch.Assign(value); - } - } - [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_LV_Pipeline_HJGL_Pipeline", Storage="_HJGL_LV_Pipeline", ThisKey="PipelineId", OtherKey="PipelineId", DeleteRule="NO ACTION")] public EntitySet HJGL_LV_Pipeline { @@ -106033,18 +106022,6 @@ namespace Model } } - private void attach_HJGL_Batch_PointBatch(HJGL_Batch_PointBatch entity) - { - this.SendPropertyChanging(); - entity.HJGL_Pipeline = this; - } - - private void detach_HJGL_Batch_PointBatch(HJGL_Batch_PointBatch entity) - { - this.SendPropertyChanging(); - entity.HJGL_Pipeline = null; - } - private void attach_HJGL_LV_Pipeline(HJGL_LV_Pipeline entity) { this.SendPropertyChanging(); @@ -106868,7 +106845,7 @@ namespace Model private string _WeldJointId; private string _MaterialCode2; - + private string _PipeArea; private EntityRef _HJGL_MaterialCodeLib; @@ -107073,7 +107050,7 @@ namespace Model } } } - + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeArea", DbType="NChar(1)")] public string PipeArea { @@ -107223,6 +107200,16 @@ namespace Model private string _RectifyRequirement; + private int _ReviewState; + + private string _SpecialReviewerId; + + private string _ReviewerId; + + private System.Nullable _ReviewTime; + + private EntitySet _HJGL_PreWeldCuttingCheckMaterial; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -107261,10 +107248,19 @@ namespace Model partial void OnUnqualifiedReasonChanged(); partial void OnRectifyRequirementChanging(string value); partial void OnRectifyRequirementChanged(); + partial void OnReviewStateChanging(int value); + partial void OnReviewStateChanged(); + partial void OnSpecialReviewerIdChanging(string value); + partial void OnSpecialReviewerIdChanged(); + partial void OnReviewerIdChanging(string value); + partial void OnReviewerIdChanged(); + partial void OnReviewTimeChanging(System.Nullable value); + partial void OnReviewTimeChanged(); #endregion public HJGL_PreWeldCuttingCheck() { + this._HJGL_PreWeldCuttingCheckMaterial = new EntitySet(new Action(this.attach_HJGL_PreWeldCuttingCheckMaterial), new Action(this.detach_HJGL_PreWeldCuttingCheckMaterial)); OnCreated(); } @@ -107608,6 +107604,358 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewState", DbType="Int NOT NULL")] + public int ReviewState + { + get + { + return this._ReviewState; + } + set + { + if ((this._ReviewState != value)) + { + this.OnReviewStateChanging(value); + this.SendPropertyChanging(); + this._ReviewState = value; + this.SendPropertyChanged("ReviewState"); + this.OnReviewStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialReviewerId", DbType="NVarChar(50)")] + public string SpecialReviewerId + { + get + { + return this._SpecialReviewerId; + } + set + { + if ((this._SpecialReviewerId != value)) + { + this.OnSpecialReviewerIdChanging(value); + this.SendPropertyChanging(); + this._SpecialReviewerId = value; + this.SendPropertyChanged("SpecialReviewerId"); + this.OnSpecialReviewerIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewerId", DbType="NVarChar(50)")] + public string ReviewerId + { + get + { + return this._ReviewerId; + } + set + { + if ((this._ReviewerId != value)) + { + this.OnReviewerIdChanging(value); + this.SendPropertyChanging(); + this._ReviewerId = value; + this.SendPropertyChanged("ReviewerId"); + this.OnReviewerIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewTime", DbType="DateTime")] + public System.Nullable ReviewTime + { + get + { + return this._ReviewTime; + } + set + { + if ((this._ReviewTime != value)) + { + this.OnReviewTimeChanging(value); + this.SendPropertyChanging(); + this._ReviewTime = value; + this.SendPropertyChanged("ReviewTime"); + this.OnReviewTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_PreWeldCuttingCheckMaterial_Check", Storage="_HJGL_PreWeldCuttingCheckMaterial", ThisKey="CuttingCheckId", OtherKey="CuttingCheckId", DeleteRule="NO ACTION")] + public EntitySet HJGL_PreWeldCuttingCheckMaterial + { + get + { + return this._HJGL_PreWeldCuttingCheckMaterial; + } + set + { + this._HJGL_PreWeldCuttingCheckMaterial.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_HJGL_PreWeldCuttingCheckMaterial(HJGL_PreWeldCuttingCheckMaterial entity) + { + this.SendPropertyChanging(); + entity.HJGL_PreWeldCuttingCheck = this; + } + + private void detach_HJGL_PreWeldCuttingCheckMaterial(HJGL_PreWeldCuttingCheckMaterial entity) + { + this.SendPropertyChanging(); + entity.HJGL_PreWeldCuttingCheck = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HJGL_PreWeldCuttingCheckMaterial")] + public partial class HJGL_PreWeldCuttingCheckMaterial : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CuttingCheckMaterialId; + + private string _CuttingCheckId; + + private string _PipeLineMatId; + + private int _MaterialSide; + + private string _OriginalMainCode; + + private string _ReportedMainCode; + + private bool _IsBatchChanged; + + private EntityRef _HJGL_PreWeldCuttingCheck; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCuttingCheckMaterialIdChanging(string value); + partial void OnCuttingCheckMaterialIdChanged(); + partial void OnCuttingCheckIdChanging(string value); + partial void OnCuttingCheckIdChanged(); + partial void OnPipeLineMatIdChanging(string value); + partial void OnPipeLineMatIdChanged(); + partial void OnMaterialSideChanging(int value); + partial void OnMaterialSideChanged(); + partial void OnOriginalMainCodeChanging(string value); + partial void OnOriginalMainCodeChanged(); + partial void OnReportedMainCodeChanging(string value); + partial void OnReportedMainCodeChanged(); + partial void OnIsBatchChangedChanging(bool value); + partial void OnIsBatchChangedChanged(); + #endregion + + public HJGL_PreWeldCuttingCheckMaterial() + { + this._HJGL_PreWeldCuttingCheck = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CuttingCheckMaterialId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CuttingCheckMaterialId + { + get + { + return this._CuttingCheckMaterialId; + } + set + { + if ((this._CuttingCheckMaterialId != value)) + { + this.OnCuttingCheckMaterialIdChanging(value); + this.SendPropertyChanging(); + this._CuttingCheckMaterialId = value; + this.SendPropertyChanged("CuttingCheckMaterialId"); + this.OnCuttingCheckMaterialIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CuttingCheckId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string CuttingCheckId + { + get + { + return this._CuttingCheckId; + } + set + { + if ((this._CuttingCheckId != value)) + { + if (this._HJGL_PreWeldCuttingCheck.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCuttingCheckIdChanging(value); + this.SendPropertyChanging(); + this._CuttingCheckId = value; + this.SendPropertyChanged("CuttingCheckId"); + this.OnCuttingCheckIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeLineMatId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string PipeLineMatId + { + get + { + return this._PipeLineMatId; + } + set + { + if ((this._PipeLineMatId != value)) + { + this.OnPipeLineMatIdChanging(value); + this.SendPropertyChanging(); + this._PipeLineMatId = value; + this.SendPropertyChanged("PipeLineMatId"); + this.OnPipeLineMatIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialSide", DbType="Int NOT NULL")] + public int MaterialSide + { + get + { + return this._MaterialSide; + } + set + { + if ((this._MaterialSide != value)) + { + this.OnMaterialSideChanging(value); + this.SendPropertyChanging(); + this._MaterialSide = value; + this.SendPropertyChanged("MaterialSide"); + this.OnMaterialSideChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OriginalMainCode", DbType="NVarChar(100)")] + public string OriginalMainCode + { + get + { + return this._OriginalMainCode; + } + set + { + if ((this._OriginalMainCode != value)) + { + this.OnOriginalMainCodeChanging(value); + this.SendPropertyChanging(); + this._OriginalMainCode = value; + this.SendPropertyChanged("OriginalMainCode"); + this.OnOriginalMainCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReportedMainCode", DbType="NVarChar(100)")] + public string ReportedMainCode + { + get + { + return this._ReportedMainCode; + } + set + { + if ((this._ReportedMainCode != value)) + { + this.OnReportedMainCodeChanging(value); + this.SendPropertyChanging(); + this._ReportedMainCode = value; + this.SendPropertyChanged("ReportedMainCode"); + this.OnReportedMainCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsBatchChanged", DbType="Bit NOT NULL")] + public bool IsBatchChanged + { + get + { + return this._IsBatchChanged; + } + set + { + if ((this._IsBatchChanged != value)) + { + this.OnIsBatchChangedChanging(value); + this.SendPropertyChanging(); + this._IsBatchChanged = value; + this.SendPropertyChanged("IsBatchChanged"); + this.OnIsBatchChangedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_PreWeldCuttingCheckMaterial_Check", Storage="_HJGL_PreWeldCuttingCheck", ThisKey="CuttingCheckId", OtherKey="CuttingCheckId", IsForeignKey=true)] + public HJGL_PreWeldCuttingCheck HJGL_PreWeldCuttingCheck + { + get + { + return this._HJGL_PreWeldCuttingCheck.Entity; + } + set + { + HJGL_PreWeldCuttingCheck previousValue = this._HJGL_PreWeldCuttingCheck.Entity; + if (((previousValue != value) + || (this._HJGL_PreWeldCuttingCheck.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._HJGL_PreWeldCuttingCheck.Entity = null; + previousValue.HJGL_PreWeldCuttingCheckMaterial.Remove(this); + } + this._HJGL_PreWeldCuttingCheck.Entity = value; + if ((value != null)) + { + value.HJGL_PreWeldCuttingCheckMaterial.Add(this); + this._CuttingCheckId = value.CuttingCheckId; + } + else + { + this._CuttingCheckId = default(string); + } + this.SendPropertyChanged("HJGL_PreWeldCuttingCheck"); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -107789,7 +108137,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrooveTypeId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrooveTypeId", DbType="NVarChar(50)")] public string GrooveTypeId { get @@ -110532,6 +110880,349 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HJGL_WeldAppearanceCheck")] + public partial class HJGL_WeldAppearanceCheck : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _AppearanceCheckId; + + private string _ProjectId; + + private string _WeldJointId; + + private bool _IsQualified; + + private string _CheckPerson; + + private System.DateTime _CheckTime; + + private string _Remark; + + private string _CreateUser; + + private System.DateTime _CreateTime; + + private string _ModifyUser; + + private System.Nullable _ModifyTime; + + private EntityRef _HJGL_WeldJoint; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnAppearanceCheckIdChanging(string value); + partial void OnAppearanceCheckIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnWeldJointIdChanging(string value); + partial void OnWeldJointIdChanged(); + partial void OnIsQualifiedChanging(bool value); + partial void OnIsQualifiedChanged(); + partial void OnCheckPersonChanging(string value); + partial void OnCheckPersonChanged(); + partial void OnCheckTimeChanging(System.DateTime value); + partial void OnCheckTimeChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnCreateUserChanging(string value); + partial void OnCreateUserChanged(); + partial void OnCreateTimeChanging(System.DateTime value); + partial void OnCreateTimeChanged(); + partial void OnModifyUserChanging(string value); + partial void OnModifyUserChanged(); + partial void OnModifyTimeChanging(System.Nullable value); + partial void OnModifyTimeChanged(); + #endregion + + public HJGL_WeldAppearanceCheck() + { + this._HJGL_WeldJoint = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AppearanceCheckId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string AppearanceCheckId + { + get + { + return this._AppearanceCheckId; + } + set + { + if ((this._AppearanceCheckId != value)) + { + this.OnAppearanceCheckIdChanging(value); + this.SendPropertyChanging(); + this._AppearanceCheckId = value; + this.SendPropertyChanged("AppearanceCheckId"); + this.OnAppearanceCheckIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string WeldJointId + { + get + { + return this._WeldJointId; + } + set + { + if ((this._WeldJointId != value)) + { + if (this._HJGL_WeldJoint.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnWeldJointIdChanging(value); + this.SendPropertyChanging(); + this._WeldJointId = value; + this.SendPropertyChanged("WeldJointId"); + this.OnWeldJointIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsQualified", DbType="Bit NOT NULL")] + public bool IsQualified + { + get + { + return this._IsQualified; + } + set + { + if ((this._IsQualified != value)) + { + this.OnIsQualifiedChanging(value); + this.SendPropertyChanging(); + this._IsQualified = value; + this.SendPropertyChanged("IsQualified"); + this.OnIsQualifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckPerson", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string CheckPerson + { + get + { + return this._CheckPerson; + } + set + { + if ((this._CheckPerson != value)) + { + this.OnCheckPersonChanging(value); + this.SendPropertyChanging(); + this._CheckPerson = value; + this.SendPropertyChanged("CheckPerson"); + this.OnCheckPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckTime", DbType="DateTime NOT NULL")] + public System.DateTime CheckTime + { + get + { + return this._CheckTime; + } + set + { + if ((this._CheckTime != value)) + { + this.OnCheckTimeChanging(value); + this.SendPropertyChanging(); + this._CheckTime = value; + this.SendPropertyChanged("CheckTime"); + this.OnCheckTimeChanged(); + } + } + } + + [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="_CreateUser", DbType="NVarChar(50)")] + public string CreateUser + { + get + { + return this._CreateUser; + } + set + { + if ((this._CreateUser != value)) + { + this.OnCreateUserChanging(value); + this.SendPropertyChanging(); + this._CreateUser = value; + this.SendPropertyChanged("CreateUser"); + this.OnCreateUserChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateTime", DbType="DateTime NOT NULL")] + public 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.ColumnAttribute(Storage="_ModifyUser", DbType="NVarChar(50)")] + public string ModifyUser + { + get + { + return this._ModifyUser; + } + set + { + if ((this._ModifyUser != value)) + { + this.OnModifyUserChanging(value); + this.SendPropertyChanging(); + this._ModifyUser = value; + this.SendPropertyChanged("ModifyUser"); + this.OnModifyUserChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModifyTime", DbType="DateTime")] + public System.Nullable ModifyTime + { + get + { + return this._ModifyTime; + } + set + { + if ((this._ModifyTime != value)) + { + this.OnModifyTimeChanging(value); + this.SendPropertyChanging(); + this._ModifyTime = value; + this.SendPropertyChanged("ModifyTime"); + this.OnModifyTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_WeldAppearanceCheck_WeldJoint", Storage="_HJGL_WeldJoint", ThisKey="WeldJointId", OtherKey="WeldJointId", IsForeignKey=true)] + public HJGL_WeldJoint HJGL_WeldJoint + { + get + { + return this._HJGL_WeldJoint.Entity; + } + set + { + HJGL_WeldJoint previousValue = this._HJGL_WeldJoint.Entity; + if (((previousValue != value) + || (this._HJGL_WeldJoint.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._HJGL_WeldJoint.Entity = null; + previousValue.HJGL_WeldAppearanceCheck.Remove(this); + } + this._HJGL_WeldJoint.Entity = value; + if ((value != null)) + { + value.HJGL_WeldAppearanceCheck.Add(this); + this._WeldJointId = value.WeldJointId; + } + else + { + this._WeldJointId = default(string); + } + this.SendPropertyChanged("HJGL_WeldJoint"); + } + } + } + + 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.HJGL_WeldingDaily")] public partial class HJGL_WeldingDaily : INotifyPropertyChanging, INotifyPropertyChanged { @@ -111578,6 +112269,8 @@ namespace Model private EntitySet _HJGL_Hard_TrustItem; + private EntitySet _HJGL_WeldAppearanceCheck; + private EntityRef _Base_Consumables; private EntityRef _WeldingWireBase_Consumables; @@ -111740,6 +112433,7 @@ namespace Model { this._HJGL_Hard_Report = new EntitySet(new Action(this.attach_HJGL_Hard_Report), new Action(this.detach_HJGL_Hard_Report)); this._HJGL_Hard_TrustItem = new EntitySet(new Action(this.attach_HJGL_Hard_TrustItem), new Action(this.detach_HJGL_Hard_TrustItem)); + this._HJGL_WeldAppearanceCheck = new EntitySet(new Action(this.attach_HJGL_WeldAppearanceCheck), new Action(this.detach_HJGL_WeldAppearanceCheck)); this._Base_Consumables = default(EntityRef); this._WeldingWireBase_Consumables = default(EntityRef); this._Base_DetectionType = default(EntityRef); @@ -113045,6 +113739,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_WeldAppearanceCheck_WeldJoint", Storage="_HJGL_WeldAppearanceCheck", ThisKey="WeldJointId", OtherKey="WeldJointId", DeleteRule="NO ACTION")] + public EntitySet HJGL_WeldAppearanceCheck + { + get + { + return this._HJGL_WeldAppearanceCheck; + } + set + { + this._HJGL_WeldAppearanceCheck.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_WeldJoint_Base_Consumables", Storage="_Base_Consumables", ThisKey="WeldingRod", OtherKey="ConsumablesId", IsForeignKey=true)] public Base_Consumables Base_Consumables { @@ -113612,6 +114319,18 @@ namespace Model entity.HJGL_WeldJoint = null; } + private void attach_HJGL_WeldAppearanceCheck(HJGL_WeldAppearanceCheck entity) + { + this.SendPropertyChanging(); + entity.HJGL_WeldJoint = this; + } + + private void detach_HJGL_WeldAppearanceCheck(HJGL_WeldAppearanceCheck entity) + { + this.SendPropertyChanging(); + entity.HJGL_WeldJoint = null; + } + private void attach_HJGL_HotProess_Report(HJGL_HotProess_Report entity) { this.SendPropertyChanging(); @@ -285231,7 +285950,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -285247,7 +285966,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NewTrustBatchCode", DbType="NVarChar(52)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NewTrustBatchCode", DbType="NVarChar(102)")] public string NewTrustBatchCode { get @@ -285810,7 +286529,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -286397,7 +287116,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -286560,7 +287279,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -302120,7 +302839,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -304258,6 +304977,10 @@ namespace Model private string _CheckResult; + private System.Nullable _WeldAppearanceIsQualified; + + private string _WeldAppearanceResult; + private string _PipelineId; private string _JointArea; @@ -305620,7 +306343,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get @@ -305668,6 +306391,38 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldAppearanceIsQualified", DbType="Bit")] + public System.Nullable WeldAppearanceIsQualified + { + get + { + return this._WeldAppearanceIsQualified; + } + set + { + if ((this._WeldAppearanceIsQualified != value)) + { + this._WeldAppearanceIsQualified = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldAppearanceResult", DbType="NVarChar(3) NOT NULL", CanBeNull=false)] + public string WeldAppearanceResult + { + get + { + return this._WeldAppearanceResult; + } + set + { + if ((this._WeldAppearanceResult != value)) + { + this._WeldAppearanceResult = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineId", DbType="NVarChar(50)")] public string PipelineId { @@ -306665,7 +307420,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TrustBatchCode", DbType="NVarChar(100)")] public string TrustBatchCode { get