diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index bd0cd881..1e42f01c 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1046,6 +1046,15 @@ namespace Model partial void InsertPlan_SubPlanApprove(Plan_SubPlanApprove instance); partial void UpdatePlan_SubPlanApprove(Plan_SubPlanApprove instance); partial void DeletePlan_SubPlanApprove(Plan_SubPlanApprove instance); + partial void InsertProcessControl_InspectionManagement(ProcessControl_InspectionManagement instance); + partial void UpdateProcessControl_InspectionManagement(ProcessControl_InspectionManagement instance); + partial void DeleteProcessControl_InspectionManagement(ProcessControl_InspectionManagement instance); + partial void InsertProcessControl_InspectionManagementApprove(ProcessControl_InspectionManagementApprove instance); + partial void UpdateProcessControl_InspectionManagementApprove(ProcessControl_InspectionManagementApprove instance); + partial void DeleteProcessControl_InspectionManagementApprove(ProcessControl_InspectionManagementApprove instance); + partial void InsertProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail instance); + partial void UpdateProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail instance); + partial void DeleteProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail instance); partial void InsertProject_CQMSData_CQMS(Project_CQMSData_CQMS instance); partial void UpdateProject_CQMSData_CQMS(Project_CQMSData_CQMS instance); partial void DeleteProject_CQMSData_CQMS(Project_CQMSData_CQMS instance); @@ -1502,6 +1511,9 @@ namespace Model partial void InsertUnqualified_WorkContactApprove(Unqualified_WorkContactApprove instance); partial void UpdateUnqualified_WorkContactApprove(Unqualified_WorkContactApprove instance); partial void DeleteUnqualified_WorkContactApprove(Unqualified_WorkContactApprove instance); + partial void InsertWBS_BreakdownProject(WBS_BreakdownProject instance); + partial void UpdateWBS_BreakdownProject(WBS_BreakdownProject instance); + partial void DeleteWBS_BreakdownProject(WBS_BreakdownProject instance); partial void InsertWBS_ControlItemAndCycle(WBS_ControlItemAndCycle instance); partial void UpdateWBS_ControlItemAndCycle(WBS_ControlItemAndCycle instance); partial void DeleteWBS_ControlItemAndCycle(WBS_ControlItemAndCycle instance); @@ -1511,6 +1523,9 @@ namespace Model partial void InsertWBS_ControlItemProject(WBS_ControlItemProject instance); partial void UpdateWBS_ControlItemProject(WBS_ControlItemProject instance); partial void DeleteWBS_ControlItemProject(WBS_ControlItemProject instance); + partial void InsertWBS_DivisionProject(WBS_DivisionProject instance); + partial void UpdateWBS_DivisionProject(WBS_DivisionProject instance); + partial void DeleteWBS_DivisionProject(WBS_DivisionProject instance); partial void InsertWBS_UnitWork(WBS_UnitWork instance); partial void UpdateWBS_UnitWork(WBS_UnitWork instance); partial void DeleteWBS_UnitWork(WBS_UnitWork instance); @@ -4322,6 +4337,30 @@ namespace Model } } + public System.Data.Linq.Table ProcessControl_InspectionManagement + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ProcessControl_InspectionManagementApprove + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ProcessControl_InspectionManagementDetail + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Project_CQMSData_CQMS { get @@ -6194,6 +6233,14 @@ namespace Model } } + public System.Data.Linq.Table WBS_BreakdownProject + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table WBS_ControlItemAndCycle { get @@ -6218,6 +6265,14 @@ namespace Model } } + public System.Data.Linq.Table WBS_DivisionProject + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table WBS_UnitWork { get @@ -12430,6 +12485,10 @@ namespace Model private string _Remark; + private string _CertificateType; + + private System.Nullable _IsRegisterHSSE; + private EntitySet _QualityAudit_EquipmentPersonQuality; private EntitySet _QualityAudit_PersonQuality; @@ -12446,6 +12505,10 @@ namespace Model partial void OnCertificateNameChanged(); partial void OnRemarkChanging(string value); partial void OnRemarkChanged(); + partial void OnCertificateTypeChanging(string value); + partial void OnCertificateTypeChanged(); + partial void OnIsRegisterHSSEChanging(System.Nullable value); + partial void OnIsRegisterHSSEChanged(); #endregion public Base_Certificate() @@ -12535,6 +12598,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateType", DbType="Char(1)")] + public string CertificateType + { + get + { + return this._CertificateType; + } + set + { + if ((this._CertificateType != value)) + { + this.OnCertificateTypeChanging(value); + this.SendPropertyChanging(); + this._CertificateType = value; + this.SendPropertyChanged("CertificateType"); + this.OnCertificateTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsRegisterHSSE", DbType="Bit")] + public System.Nullable IsRegisterHSSE + { + get + { + return this._IsRegisterHSSE; + } + set + { + if ((this._IsRegisterHSSE != value)) + { + this.OnIsRegisterHSSEChanging(value); + this.SendPropertyChanging(); + this._IsRegisterHSSE = value; + this.SendPropertyChanged("IsRegisterHSSE"); + this.OnIsRegisterHSSEChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_QualityAudit_EquipmentPersonQuality_Base_Certificate", Storage="_QualityAudit_EquipmentPersonQuality", ThisKey="CertificateId", OtherKey="CertificateId", DeleteRule="NO ACTION")] public EntitySet QualityAudit_EquipmentPersonQuality { @@ -12622,6 +12725,8 @@ namespace Model private EntitySet _Comprehensive_InspectionMachine; + private EntitySet _ProcessControl_InspectionManagement; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -12639,6 +12744,7 @@ namespace Model public Base_CNProfessional() { this._Comprehensive_InspectionMachine = new EntitySet(new Action(this.attach_Comprehensive_InspectionMachine), new Action(this.detach_Comprehensive_InspectionMachine)); + this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement)); OnCreated(); } @@ -12735,6 +12841,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_Base_CNProfessional", Storage="_ProcessControl_InspectionManagement", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement; + } + set + { + this._ProcessControl_InspectionManagement.Assign(value); + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -12766,6 +12885,18 @@ namespace Model this.SendPropertyChanging(); entity.Base_CNProfessional = null; } + + private void attach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_CNProfessional = this; + } + + private void detach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_CNProfessional = null; + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_CompanyModel")] @@ -20109,6 +20240,8 @@ namespace Model private EntitySet _Plan_SubPlan; + private EntitySet _ProcessControl_InspectionManagement; + private EntitySet _Project_FileCabinet; private EntitySet _Project_HSEDiary; @@ -20197,6 +20330,10 @@ namespace Model private EntitySet _Unqualified_WorkContact; + private EntitySet _WBS_BreakdownProject; + + private EntitySet _WBS_DivisionProject; + private EntitySet _WBS_WorkPackageProject; private EntitySet _Welder_TestPlan; @@ -20382,6 +20519,7 @@ namespace Model this._HJGL_WeldingDaily = new EntitySet(new Action(this.attach_HJGL_WeldingDaily), new Action(this.detach_HJGL_WeldingDaily)); this._Plan_MainPlan = new EntitySet(new Action(this.attach_Plan_MainPlan), new Action(this.detach_Plan_MainPlan)); this._Plan_SubPlan = new EntitySet(new Action(this.attach_Plan_SubPlan), new Action(this.detach_Plan_SubPlan)); + this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement)); this._Project_FileCabinet = new EntitySet(new Action(this.attach_Project_FileCabinet), new Action(this.detach_Project_FileCabinet)); this._Project_HSEDiary = new EntitySet(new Action(this.attach_Project_HSEDiary), new Action(this.detach_Project_HSEDiary)); this._Project_ProjectUnit = new EntitySet(new Action(this.attach_Project_ProjectUnit), new Action(this.detach_Project_ProjectUnit)); @@ -20426,6 +20564,8 @@ namespace Model this._Training_TestPlan = new EntitySet(new Action(this.attach_Training_TestPlan), new Action(this.detach_Training_TestPlan)); this._Training_TestRecord = new EntitySet(new Action(this.attach_Training_TestRecord), new Action(this.detach_Training_TestRecord)); this._Unqualified_WorkContact = new EntitySet(new Action(this.attach_Unqualified_WorkContact), new Action(this.detach_Unqualified_WorkContact)); + this._WBS_BreakdownProject = new EntitySet(new Action(this.attach_WBS_BreakdownProject), new Action(this.detach_WBS_BreakdownProject)); + this._WBS_DivisionProject = new EntitySet(new Action(this.attach_WBS_DivisionProject), new Action(this.detach_WBS_DivisionProject)); this._WBS_WorkPackageProject = new EntitySet(new Action(this.attach_WBS_WorkPackageProject), new Action(this.detach_WBS_WorkPackageProject)); this._Welder_TestPlan = new EntitySet(new Action(this.attach_Welder_TestPlan), new Action(this.detach_Welder_TestPlan)); this._WPQ_WPQList = new EntitySet(new Action(this.attach_WPQ_WPQList), new Action(this.detach_WPQ_WPQList)); @@ -22412,6 +22552,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_Base_Project", Storage="_ProcessControl_InspectionManagement", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement; + } + set + { + this._ProcessControl_InspectionManagement.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_FileCabinet_Base_Project", Storage="_Project_FileCabinet", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Project_FileCabinet { @@ -22984,6 +23137,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_BreakdownProject_Base_Project", Storage="_WBS_BreakdownProject", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet WBS_BreakdownProject + { + get + { + return this._WBS_BreakdownProject; + } + set + { + this._WBS_BreakdownProject.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_DivisionProject_Base_Project", Storage="_WBS_DivisionProject", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet WBS_DivisionProject + { + get + { + return this._WBS_DivisionProject; + } + set + { + this._WBS_DivisionProject.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_WorkPackageProject_Base_Project", Storage="_WBS_WorkPackageProject", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet WBS_WorkPackageProject { @@ -24344,6 +24523,18 @@ namespace Model entity.Base_Project = null; } + private void attach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Project_FileCabinet(Project_FileCabinet entity) { this.SendPropertyChanging(); @@ -24872,6 +25063,30 @@ namespace Model entity.Base_Project = null; } + private void attach_WBS_BreakdownProject(WBS_BreakdownProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_WBS_BreakdownProject(WBS_BreakdownProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_WBS_DivisionProject(WBS_DivisionProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_WBS_DivisionProject(WBS_DivisionProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_WBS_WorkPackageProject(WBS_WorkPackageProject entity) { this.SendPropertyChanging(); @@ -28690,6 +28905,8 @@ namespace Model private EntitySet _Plan_SubPlan; + private EntitySet _ProcessControl_InspectionManagement; + private EntitySet _Project_ProjectUnit; private EntitySet _ProjectData_TeamGroup; @@ -28876,6 +29093,7 @@ namespace Model this._Person_Persons = new EntitySet(new Action(this.attach_Person_Persons), new Action(this.detach_Person_Persons)); this._HJGL_WeldingDaily = new EntitySet(new Action(this.attach_HJGL_WeldingDaily), new Action(this.detach_HJGL_WeldingDaily)); this._Plan_SubPlan = new EntitySet(new Action(this.attach_Plan_SubPlan), new Action(this.detach_Plan_SubPlan)); + this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement)); this._Project_ProjectUnit = new EntitySet(new Action(this.attach_Project_ProjectUnit), new Action(this.detach_Project_ProjectUnit)); this._ProjectData_TeamGroup = new EntitySet(new Action(this.attach_ProjectData_TeamGroup), new Action(this.detach_ProjectData_TeamGroup)); this._ProjectSupervision_CheckNotice = new EntitySet(new Action(this.attach_ProjectSupervision_CheckNotice), new Action(this.detach_ProjectSupervision_CheckNotice)); @@ -30399,6 +30617,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_Base_Unit", Storage="_ProcessControl_InspectionManagement", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement; + } + set + { + this._ProcessControl_InspectionManagement.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Project_ProjectUnit_Base_Unit", Storage="_Project_ProjectUnit", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] public EntitySet Project_ProjectUnit { @@ -31693,6 +31924,18 @@ namespace Model entity.Base_Unit = null; } + private void attach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + private void attach_Project_ProjectUnit(Project_ProjectUnit entity) { this.SendPropertyChanging(); @@ -88963,7 +89206,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] public string CanWelderCode { get @@ -88983,7 +89226,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")] public string CanWelderId { get @@ -166864,6 +167107,1567 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProcessControl_InspectionManagement")] + public partial class ProcessControl_InspectionManagement : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InspectionId; + + private string _ProjectId; + + private string _UnitId; + + private string _CNProfessionalId; + + private string _InspectionCode; + + private string _UnitWorkId; + + private string _Branch; + + private string _ControlPointType; + + private string _AcceptanceSite; + + private System.Nullable _IsOnceQualified; + + private System.Nullable _InspectionDate; + + private string _AttachUrl; + + private System.Nullable _CheckDate; + + private string _CheckMan; + + private string _UnqualifiedReason; + + private string _NoticeCode; + + private string _AcceptanceCheckMan; + + private string _ParentDivisionProjectId; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private string _FileType; + + private string _AttachUrl2; + + private string _MainSendUnitId; + + private string _CCUnitIds; + + private System.Nullable _PlanComplateDate; + + private string _AuditMan; + + private string _Status; + + private string _CompileMan2; + + private System.Nullable _RePlanComplateDate; + + private string _UnqualifiedOption; + + private EntityRef _Base_CNProfessional; + + private EntityRef _Base_Project; + + private EntityRef _Base_Unit; + + private EntityRef _WBS_UnitWork; + + private EntitySet _ProcessControl_InspectionManagementApprove; + + private EntitySet _ProcessControl_InspectionManagementDetail; + + #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 OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnCNProfessionalIdChanging(string value); + partial void OnCNProfessionalIdChanged(); + partial void OnInspectionCodeChanging(string value); + partial void OnInspectionCodeChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnBranchChanging(string value); + partial void OnBranchChanged(); + partial void OnControlPointTypeChanging(string value); + partial void OnControlPointTypeChanged(); + partial void OnAcceptanceSiteChanging(string value); + partial void OnAcceptanceSiteChanged(); + partial void OnIsOnceQualifiedChanging(System.Nullable value); + partial void OnIsOnceQualifiedChanged(); + partial void OnInspectionDateChanging(System.Nullable value); + partial void OnInspectionDateChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnCheckDateChanging(System.Nullable value); + partial void OnCheckDateChanged(); + partial void OnCheckManChanging(string value); + partial void OnCheckManChanged(); + partial void OnUnqualifiedReasonChanging(string value); + partial void OnUnqualifiedReasonChanged(); + partial void OnNoticeCodeChanging(string value); + partial void OnNoticeCodeChanged(); + partial void OnAcceptanceCheckManChanging(string value); + partial void OnAcceptanceCheckManChanged(); + partial void OnParentDivisionProjectIdChanging(string value); + partial void OnParentDivisionProjectIdChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnFileTypeChanging(string value); + partial void OnFileTypeChanged(); + partial void OnAttachUrl2Changing(string value); + partial void OnAttachUrl2Changed(); + partial void OnMainSendUnitIdChanging(string value); + partial void OnMainSendUnitIdChanged(); + partial void OnCCUnitIdsChanging(string value); + partial void OnCCUnitIdsChanged(); + partial void OnPlanComplateDateChanging(System.Nullable value); + partial void OnPlanComplateDateChanged(); + partial void OnAuditManChanging(string value); + partial void OnAuditManChanged(); + partial void OnStatusChanging(string value); + partial void OnStatusChanged(); + partial void OnCompileMan2Changing(string value); + partial void OnCompileMan2Changed(); + partial void OnRePlanComplateDateChanging(System.Nullable value); + partial void OnRePlanComplateDateChanged(); + partial void OnUnqualifiedOptionChanging(string value); + partial void OnUnqualifiedOptionChanged(); + #endregion + + public ProcessControl_InspectionManagement() + { + this._Base_CNProfessional = default(EntityRef); + this._Base_Project = default(EntityRef); + this._Base_Unit = default(EntityRef); + this._WBS_UnitWork = default(EntityRef); + this._ProcessControl_InspectionManagementApprove = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagementApprove), new Action(this.detach_ProcessControl_InspectionManagementApprove)); + this._ProcessControl_InspectionManagementDetail = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagementDetail), new Action(this.detach_ProcessControl_InspectionManagementDetail)); + 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="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + 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="_UnitId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")] + public string CNProfessionalId + { + get + { + return this._CNProfessionalId; + } + set + { + if ((this._CNProfessionalId != value)) + { + if (this._Base_CNProfessional.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnCNProfessionalIdChanging(value); + this.SendPropertyChanging(); + this._CNProfessionalId = value; + this.SendPropertyChanged("CNProfessionalId"); + this.OnCNProfessionalIdChanged(); + } + } + } + + [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="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + if (this._WBS_UnitWork.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Branch", DbType="NVarChar(50)")] + public string Branch + { + get + { + return this._Branch; + } + set + { + if ((this._Branch != value)) + { + this.OnBranchChanging(value); + this.SendPropertyChanging(); + this._Branch = value; + this.SendPropertyChanged("Branch"); + this.OnBranchChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControlPointType", DbType="NVarChar(50)")] + public string ControlPointType + { + get + { + return this._ControlPointType; + } + set + { + if ((this._ControlPointType != value)) + { + this.OnControlPointTypeChanging(value); + this.SendPropertyChanging(); + this._ControlPointType = value; + this.SendPropertyChanged("ControlPointType"); + this.OnControlPointTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceSite", DbType="NVarChar(50)")] + public string AcceptanceSite + { + get + { + return this._AcceptanceSite; + } + set + { + if ((this._AcceptanceSite != value)) + { + this.OnAcceptanceSiteChanging(value); + this.SendPropertyChanging(); + this._AcceptanceSite = value; + this.SendPropertyChanged("AcceptanceSite"); + this.OnAcceptanceSiteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOnceQualified", DbType="Bit")] + public System.Nullable IsOnceQualified + { + get + { + return this._IsOnceQualified; + } + set + { + if ((this._IsOnceQualified != value)) + { + this.OnIsOnceQualifiedChanging(value); + this.SendPropertyChanging(); + this._IsOnceQualified = value; + this.SendPropertyChanged("IsOnceQualified"); + this.OnIsOnceQualifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionDate", DbType="DateTime")] + public System.Nullable InspectionDate + { + get + { + return this._InspectionDate; + } + set + { + if ((this._InspectionDate != value)) + { + this.OnInspectionDateChanging(value); + this.SendPropertyChanging(); + this._InspectionDate = value; + this.SendPropertyChanged("InspectionDate"); + this.OnInspectionDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckDate", DbType="DateTime")] + public System.Nullable CheckDate + { + get + { + return this._CheckDate; + } + set + { + if ((this._CheckDate != value)) + { + this.OnCheckDateChanging(value); + this.SendPropertyChanging(); + this._CheckDate = value; + this.SendPropertyChanged("CheckDate"); + this.OnCheckDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMan", DbType="NVarChar(50)")] + public string CheckMan + { + get + { + return this._CheckMan; + } + set + { + if ((this._CheckMan != value)) + { + this.OnCheckManChanging(value); + this.SendPropertyChanging(); + this._CheckMan = value; + this.SendPropertyChanged("CheckMan"); + this.OnCheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnqualifiedReason", DbType="NVarChar(1000)")] + public string UnqualifiedReason + { + get + { + return this._UnqualifiedReason; + } + set + { + if ((this._UnqualifiedReason != value)) + { + this.OnUnqualifiedReasonChanging(value); + this.SendPropertyChanging(); + this._UnqualifiedReason = value; + this.SendPropertyChanged("UnqualifiedReason"); + this.OnUnqualifiedReasonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NoticeCode", DbType="NVarChar(50)")] + public string NoticeCode + { + get + { + return this._NoticeCode; + } + set + { + if ((this._NoticeCode != value)) + { + this.OnNoticeCodeChanging(value); + this.SendPropertyChanging(); + this._NoticeCode = value; + this.SendPropertyChanged("NoticeCode"); + this.OnNoticeCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceCheckMan", DbType="NVarChar(50)")] + public string AcceptanceCheckMan + { + get + { + return this._AcceptanceCheckMan; + } + set + { + if ((this._AcceptanceCheckMan != value)) + { + this.OnAcceptanceCheckManChanging(value); + this.SendPropertyChanging(); + this._AcceptanceCheckMan = value; + this.SendPropertyChanged("AcceptanceCheckMan"); + this.OnAcceptanceCheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ParentDivisionProjectId", DbType="NVarChar(50)")] + public string ParentDivisionProjectId + { + get + { + return this._ParentDivisionProjectId; + } + set + { + if ((this._ParentDivisionProjectId != value)) + { + this.OnParentDivisionProjectIdChanging(value); + this.SendPropertyChanging(); + this._ParentDivisionProjectId = value; + this.SendPropertyChanged("ParentDivisionProjectId"); + this.OnParentDivisionProjectIdChanged(); + } + } + } + + [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="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileType", DbType="NVarChar(10)")] + public string FileType + { + get + { + return this._FileType; + } + set + { + if ((this._FileType != value)) + { + this.OnFileTypeChanging(value); + this.SendPropertyChanging(); + this._FileType = value; + this.SendPropertyChanged("FileType"); + this.OnFileTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl2", DbType="NVarChar(2000)")] + public string AttachUrl2 + { + get + { + return this._AttachUrl2; + } + set + { + if ((this._AttachUrl2 != value)) + { + this.OnAttachUrl2Changing(value); + this.SendPropertyChanging(); + this._AttachUrl2 = value; + this.SendPropertyChanged("AttachUrl2"); + this.OnAttachUrl2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainSendUnitId", DbType="NVarChar(500)")] + public string MainSendUnitId + { + get + { + return this._MainSendUnitId; + } + set + { + if ((this._MainSendUnitId != value)) + { + this.OnMainSendUnitIdChanging(value); + this.SendPropertyChanging(); + this._MainSendUnitId = value; + this.SendPropertyChanged("MainSendUnitId"); + this.OnMainSendUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CCUnitIds", DbType="NVarChar(500)")] + public string CCUnitIds + { + get + { + return this._CCUnitIds; + } + set + { + if ((this._CCUnitIds != value)) + { + this.OnCCUnitIdsChanging(value); + this.SendPropertyChanging(); + this._CCUnitIds = value; + this.SendPropertyChanged("CCUnitIds"); + this.OnCCUnitIdsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanComplateDate", DbType="DateTime")] + public System.Nullable PlanComplateDate + { + get + { + return this._PlanComplateDate; + } + set + { + if ((this._PlanComplateDate != value)) + { + this.OnPlanComplateDateChanging(value); + this.SendPropertyChanging(); + this._PlanComplateDate = value; + this.SendPropertyChanged("PlanComplateDate"); + this.OnPlanComplateDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditMan", DbType="NVarChar(50)")] + public string AuditMan + { + get + { + return this._AuditMan; + } + set + { + if ((this._AuditMan != value)) + { + this.OnAuditManChanging(value); + this.SendPropertyChanging(); + this._AuditMan = value; + this.SendPropertyChanged("AuditMan"); + this.OnAuditManChanged(); + } + } + } + + [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="_CompileMan2", DbType="NVarChar(50)")] + public string CompileMan2 + { + get + { + return this._CompileMan2; + } + set + { + if ((this._CompileMan2 != value)) + { + this.OnCompileMan2Changing(value); + this.SendPropertyChanging(); + this._CompileMan2 = value; + this.SendPropertyChanged("CompileMan2"); + this.OnCompileMan2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RePlanComplateDate", DbType="DateTime")] + public System.Nullable RePlanComplateDate + { + get + { + return this._RePlanComplateDate; + } + set + { + if ((this._RePlanComplateDate != value)) + { + this.OnRePlanComplateDateChanging(value); + this.SendPropertyChanging(); + this._RePlanComplateDate = value; + this.SendPropertyChanged("RePlanComplateDate"); + this.OnRePlanComplateDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnqualifiedOption", DbType="NVarChar(500)")] + public string UnqualifiedOption + { + get + { + return this._UnqualifiedOption; + } + set + { + if ((this._UnqualifiedOption != value)) + { + this.OnUnqualifiedOptionChanging(value); + this.SendPropertyChanging(); + this._UnqualifiedOption = value; + this.SendPropertyChanged("UnqualifiedOption"); + this.OnUnqualifiedOptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_Base_CNProfessional", Storage="_Base_CNProfessional", ThisKey="CNProfessionalId", OtherKey="CNProfessionalId", IsForeignKey=true)] + public Base_CNProfessional Base_CNProfessional + { + get + { + return this._Base_CNProfessional.Entity; + } + set + { + Base_CNProfessional previousValue = this._Base_CNProfessional.Entity; + if (((previousValue != value) + || (this._Base_CNProfessional.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_CNProfessional.Entity = null; + previousValue.ProcessControl_InspectionManagement.Remove(this); + } + this._Base_CNProfessional.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagement.Add(this); + this._CNProfessionalId = value.CNProfessionalId; + } + else + { + this._CNProfessionalId = default(string); + } + this.SendPropertyChanged("Base_CNProfessional"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_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.ProcessControl_InspectionManagement.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagement.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_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.ProcessControl_InspectionManagement.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagement.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_WBS_UnitWork", Storage="_WBS_UnitWork", ThisKey="UnitWorkId", OtherKey="UnitWorkId", IsForeignKey=true)] + public WBS_UnitWork WBS_UnitWork + { + get + { + return this._WBS_UnitWork.Entity; + } + set + { + WBS_UnitWork previousValue = this._WBS_UnitWork.Entity; + if (((previousValue != value) + || (this._WBS_UnitWork.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._WBS_UnitWork.Entity = null; + previousValue.ProcessControl_InspectionManagement.Remove(this); + } + this._WBS_UnitWork.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagement.Add(this); + this._UnitWorkId = value.UnitWorkId; + } + else + { + this._UnitWorkId = default(string); + } + this.SendPropertyChanged("WBS_UnitWork"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementApprove_Solution_CQMSConstructSolution", Storage="_ProcessControl_InspectionManagementApprove", ThisKey="InspectionId", OtherKey="InspectionId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagementApprove + { + get + { + return this._ProcessControl_InspectionManagementApprove; + } + set + { + this._ProcessControl_InspectionManagementApprove.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementDetail_ProcessControl_InspectionManagement", Storage="_ProcessControl_InspectionManagementDetail", ThisKey="InspectionId", OtherKey="InspectionId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagementDetail + { + get + { + return this._ProcessControl_InspectionManagementDetail; + } + set + { + this._ProcessControl_InspectionManagementDetail.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_ProcessControl_InspectionManagementApprove(ProcessControl_InspectionManagementApprove entity) + { + this.SendPropertyChanging(); + entity.ProcessControl_InspectionManagement = this; + } + + private void detach_ProcessControl_InspectionManagementApprove(ProcessControl_InspectionManagementApprove entity) + { + this.SendPropertyChanging(); + entity.ProcessControl_InspectionManagement = null; + } + + private void attach_ProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail entity) + { + this.SendPropertyChanging(); + entity.ProcessControl_InspectionManagement = this; + } + + private void detach_ProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail entity) + { + this.SendPropertyChanging(); + entity.ProcessControl_InspectionManagement = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ProcessControl_InspectionManagementApprove")] + public partial class ProcessControl_InspectionManagementApprove : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InspectionManagementApproveId; + + private string _InspectionId; + + private string _ApproveMan; + + private System.Nullable _ApproveDate; + + private System.Nullable _IsAgree; + + private string _ApproveIdea; + + private string _ApproveType; + + private string _AttachUrl; + + private string _SignType; + + private System.Nullable _Edition; + + private EntityRef _ProcessControl_InspectionManagement; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInspectionManagementApproveIdChanging(string value); + partial void OnInspectionManagementApproveIdChanged(); + partial void OnInspectionIdChanging(string value); + partial void OnInspectionIdChanged(); + partial void OnApproveManChanging(string value); + partial void OnApproveManChanged(); + partial void OnApproveDateChanging(System.Nullable value); + partial void OnApproveDateChanged(); + partial void OnIsAgreeChanging(System.Nullable value); + partial void OnIsAgreeChanged(); + partial void OnApproveIdeaChanging(string value); + partial void OnApproveIdeaChanged(); + partial void OnApproveTypeChanging(string value); + partial void OnApproveTypeChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnSignTypeChanging(string value); + partial void OnSignTypeChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + #endregion + + public ProcessControl_InspectionManagementApprove() + { + this._ProcessControl_InspectionManagement = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionManagementApproveId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InspectionManagementApproveId + { + get + { + return this._InspectionManagementApproveId; + } + set + { + if ((this._InspectionManagementApproveId != value)) + { + this.OnInspectionManagementApproveIdChanging(value); + this.SendPropertyChanging(); + this._InspectionManagementApproveId = value; + this.SendPropertyChanged("InspectionManagementApproveId"); + this.OnInspectionManagementApproveIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50)")] + public string InspectionId + { + get + { + return this._InspectionId; + } + set + { + if ((this._InspectionId != value)) + { + if (this._ProcessControl_InspectionManagement.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="_ApproveMan", DbType="NVarChar(50)")] + public string ApproveMan + { + get + { + return this._ApproveMan; + } + set + { + if ((this._ApproveMan != value)) + { + this.OnApproveManChanging(value); + this.SendPropertyChanging(); + this._ApproveMan = value; + this.SendPropertyChanged("ApproveMan"); + this.OnApproveManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveDate", DbType="DateTime")] + public System.Nullable ApproveDate + { + get + { + return this._ApproveDate; + } + set + { + if ((this._ApproveDate != value)) + { + this.OnApproveDateChanging(value); + this.SendPropertyChanging(); + this._ApproveDate = value; + this.SendPropertyChanged("ApproveDate"); + this.OnApproveDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAgree", DbType="Bit")] + public System.Nullable IsAgree + { + get + { + return this._IsAgree; + } + set + { + if ((this._IsAgree != value)) + { + this.OnIsAgreeChanging(value); + this.SendPropertyChanging(); + this._IsAgree = value; + this.SendPropertyChanged("IsAgree"); + this.OnIsAgreeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")] + public string ApproveIdea + { + get + { + return this._ApproveIdea; + } + set + { + if ((this._ApproveIdea != value)) + { + this.OnApproveIdeaChanging(value); + this.SendPropertyChanging(); + this._ApproveIdea = value; + this.SendPropertyChanged("ApproveIdea"); + this.OnApproveIdeaChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveType", DbType="Char(1)")] + public string ApproveType + { + get + { + return this._ApproveType; + } + set + { + if ((this._ApproveType != value)) + { + this.OnApproveTypeChanging(value); + this.SendPropertyChanging(); + this._ApproveType = value; + this.SendPropertyChanged("ApproveType"); + this.OnApproveTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(200)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SignType", DbType="NVarChar(20)")] + public string SignType + { + get + { + return this._SignType; + } + set + { + if ((this._SignType != value)) + { + this.OnSignTypeChanging(value); + this.SendPropertyChanging(); + this._SignType = value; + this.SendPropertyChanged("SignType"); + this.OnSignTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int")] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementApprove_Solution_CQMSConstructSolution", Storage="_ProcessControl_InspectionManagement", ThisKey="InspectionId", OtherKey="InspectionId", IsForeignKey=true)] + public ProcessControl_InspectionManagement ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement.Entity; + } + set + { + ProcessControl_InspectionManagement previousValue = this._ProcessControl_InspectionManagement.Entity; + if (((previousValue != value) + || (this._ProcessControl_InspectionManagement.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ProcessControl_InspectionManagement.Entity = null; + previousValue.ProcessControl_InspectionManagementApprove.Remove(this); + } + this._ProcessControl_InspectionManagement.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagementApprove.Add(this); + this._InspectionId = value.InspectionId; + } + else + { + this._InspectionId = default(string); + } + this.SendPropertyChanged("ProcessControl_InspectionManagement"); + } + } + } + + 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.ProcessControl_InspectionManagementDetail")] + public partial class ProcessControl_InspectionManagementDetail : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InspectionDetailId; + + private string _InspectionId; + + private string _UnitWorkId; + + private string _Branch; + + private string _ControlPointType; + + private System.Nullable _CreateDate; + + private EntityRef _ProcessControl_InspectionManagement; + + private EntityRef _WBS_UnitWork; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInspectionDetailIdChanging(string value); + partial void OnInspectionDetailIdChanged(); + partial void OnInspectionIdChanging(string value); + partial void OnInspectionIdChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnBranchChanging(string value); + partial void OnBranchChanged(); + partial void OnControlPointTypeChanging(string value); + partial void OnControlPointTypeChanged(); + partial void OnCreateDateChanging(System.Nullable value); + partial void OnCreateDateChanged(); + #endregion + + public ProcessControl_InspectionManagementDetail() + { + this._ProcessControl_InspectionManagement = default(EntityRef); + this._WBS_UnitWork = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionDetailId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InspectionDetailId + { + get + { + return this._InspectionDetailId; + } + set + { + if ((this._InspectionDetailId != value)) + { + this.OnInspectionDetailIdChanging(value); + this.SendPropertyChanging(); + this._InspectionDetailId = value; + this.SendPropertyChanged("InspectionDetailId"); + this.OnInspectionDetailIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionId", DbType="NVarChar(50)")] + public string InspectionId + { + get + { + return this._InspectionId; + } + set + { + if ((this._InspectionId != value)) + { + if (this._ProcessControl_InspectionManagement.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="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + if (this._WBS_UnitWork.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Branch", DbType="NVarChar(50)")] + public string Branch + { + get + { + return this._Branch; + } + set + { + if ((this._Branch != value)) + { + this.OnBranchChanging(value); + this.SendPropertyChanging(); + this._Branch = value; + this.SendPropertyChanged("Branch"); + this.OnBranchChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControlPointType", DbType="NVarChar(50)")] + public string ControlPointType + { + get + { + return this._ControlPointType; + } + set + { + if ((this._ControlPointType != value)) + { + this.OnControlPointTypeChanging(value); + this.SendPropertyChanging(); + this._ControlPointType = value; + this.SendPropertyChanged("ControlPointType"); + this.OnControlPointTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")] + public System.Nullable CreateDate + { + get + { + return this._CreateDate; + } + set + { + if ((this._CreateDate != value)) + { + this.OnCreateDateChanging(value); + this.SendPropertyChanging(); + this._CreateDate = value; + this.SendPropertyChanged("CreateDate"); + this.OnCreateDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementDetail_ProcessControl_InspectionManagement", Storage="_ProcessControl_InspectionManagement", ThisKey="InspectionId", OtherKey="InspectionId", IsForeignKey=true)] + public ProcessControl_InspectionManagement ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement.Entity; + } + set + { + ProcessControl_InspectionManagement previousValue = this._ProcessControl_InspectionManagement.Entity; + if (((previousValue != value) + || (this._ProcessControl_InspectionManagement.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._ProcessControl_InspectionManagement.Entity = null; + previousValue.ProcessControl_InspectionManagementDetail.Remove(this); + } + this._ProcessControl_InspectionManagement.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagementDetail.Add(this); + this._InspectionId = value.InspectionId; + } + else + { + this._InspectionId = default(string); + } + this.SendPropertyChanged("ProcessControl_InspectionManagement"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementDetail_WBS_UnitWork", Storage="_WBS_UnitWork", ThisKey="UnitWorkId", OtherKey="UnitWorkId", IsForeignKey=true)] + public WBS_UnitWork WBS_UnitWork + { + get + { + return this._WBS_UnitWork.Entity; + } + set + { + WBS_UnitWork previousValue = this._WBS_UnitWork.Entity; + if (((previousValue != value) + || (this._WBS_UnitWork.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._WBS_UnitWork.Entity = null; + previousValue.ProcessControl_InspectionManagementDetail.Remove(this); + } + this._WBS_UnitWork.Entity = value; + if ((value != null)) + { + value.ProcessControl_InspectionManagementDetail.Add(this); + this._UnitWorkId = value.UnitWorkId; + } + else + { + this._UnitWorkId = default(string); + } + this.SendPropertyChanged("WBS_UnitWork"); + } + } + } + + 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.Project_CQMSData_CQMS")] public partial class Project_CQMSData_CQMS : INotifyPropertyChanging, INotifyPropertyChanged { @@ -188851,7 +190655,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardAndPunishDecision", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardAndPunishDecision", DbType="NVarChar(100)")] public string RewardAndPunishDecision { get @@ -200081,6 +201885,8 @@ namespace Model private System.Nullable _IsWeldOK; + private System.Nullable _IsSafetyMonitoring; + private EntityRef _Base_Project; private EntityRef _Base_Unit; @@ -200157,6 +201963,8 @@ namespace Model partial void OnIsWeldAuditChanged(); partial void OnIsWeldOKChanging(System.Nullable value); partial void OnIsWeldOKChanged(); + partial void OnIsSafetyMonitoringChanging(System.Nullable value); + partial void OnIsSafetyMonitoringChanged(); #endregion public SitePerson_Person() @@ -200794,6 +202602,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSafetyMonitoring", DbType="Bit")] + public System.Nullable IsSafetyMonitoring + { + get + { + return this._IsSafetyMonitoring; + } + set + { + if ((this._IsSafetyMonitoring != value)) + { + this.OnIsSafetyMonitoringChanging(value); + this.SendPropertyChanging(); + this._IsSafetyMonitoring = value; + this.SendPropertyChanged("IsSafetyMonitoring"); + this.OnIsSafetyMonitoringChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SitePerson_Person_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -243987,7 +245815,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] public string CanWelderCode { get @@ -244003,7 +245831,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")] public string CanWelderId { get @@ -263680,6 +265508,726 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_BreakdownProject")] + public partial class WBS_BreakdownProject : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _BreakdownProjectId; + + private string _ProjectId; + + private string _BreakdownCode; + + private string _BreakdownName; + + private string _DivisionProjectId; + + private string _Basis; + + private string _CheckPoints; + + private string _RecordAndCode; + + private string _Class; + + private System.Nullable _SortIndex; + + private string _Remark; + + private string _AttachUrl; + + private System.Nullable _IsSelected; + + private string _ModelURL; + + private string _UnitWorkId; + + private System.Nullable _IsAcceptance; + + private string _CompileMan; + + private System.Nullable _CompileDate; + + private System.Nullable _IsYellow; + + private string _FenBao; + + private string _WuHuan; + + private string _JianLi; + + private string _YeZhu; + + private string _SourceBreakdownId; + + private string _CheckAcceptType; + + private EntityRef _Base_Project; + + private EntityRef _WBS_DivisionProject; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnBreakdownProjectIdChanging(string value); + partial void OnBreakdownProjectIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnBreakdownCodeChanging(string value); + partial void OnBreakdownCodeChanged(); + partial void OnBreakdownNameChanging(string value); + partial void OnBreakdownNameChanged(); + partial void OnDivisionProjectIdChanging(string value); + partial void OnDivisionProjectIdChanged(); + partial void OnBasisChanging(string value); + partial void OnBasisChanged(); + partial void OnCheckPointsChanging(string value); + partial void OnCheckPointsChanged(); + partial void OnRecordAndCodeChanging(string value); + partial void OnRecordAndCodeChanged(); + partial void OnClassChanging(string value); + partial void OnClassChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnIsSelectedChanging(System.Nullable value); + partial void OnIsSelectedChanged(); + partial void OnModelURLChanging(string value); + partial void OnModelURLChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnIsAcceptanceChanging(System.Nullable value); + partial void OnIsAcceptanceChanged(); + partial void OnCompileManChanging(string value); + partial void OnCompileManChanged(); + partial void OnCompileDateChanging(System.Nullable value); + partial void OnCompileDateChanged(); + partial void OnIsYellowChanging(System.Nullable value); + partial void OnIsYellowChanged(); + partial void OnFenBaoChanging(string value); + partial void OnFenBaoChanged(); + partial void OnWuHuanChanging(string value); + partial void OnWuHuanChanged(); + partial void OnJianLiChanging(string value); + partial void OnJianLiChanged(); + partial void OnYeZhuChanging(string value); + partial void OnYeZhuChanged(); + partial void OnSourceBreakdownIdChanging(string value); + partial void OnSourceBreakdownIdChanged(); + partial void OnCheckAcceptTypeChanging(string value); + partial void OnCheckAcceptTypeChanged(); + #endregion + + public WBS_BreakdownProject() + { + this._Base_Project = default(EntityRef); + this._WBS_DivisionProject = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BreakdownProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string BreakdownProjectId + { + get + { + return this._BreakdownProjectId; + } + set + { + if ((this._BreakdownProjectId != value)) + { + this.OnBreakdownProjectIdChanging(value); + this.SendPropertyChanging(); + this._BreakdownProjectId = value; + this.SendPropertyChanged("BreakdownProjectId"); + this.OnBreakdownProjectIdChanged(); + } + } + } + + [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="_BreakdownCode", DbType="NVarChar(50)")] + public string BreakdownCode + { + get + { + return this._BreakdownCode; + } + set + { + if ((this._BreakdownCode != value)) + { + this.OnBreakdownCodeChanging(value); + this.SendPropertyChanging(); + this._BreakdownCode = value; + this.SendPropertyChanged("BreakdownCode"); + this.OnBreakdownCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BreakdownName", DbType="NVarChar(100)")] + public string BreakdownName + { + get + { + return this._BreakdownName; + } + set + { + if ((this._BreakdownName != value)) + { + this.OnBreakdownNameChanging(value); + this.SendPropertyChanging(); + this._BreakdownName = value; + this.SendPropertyChanged("BreakdownName"); + this.OnBreakdownNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DivisionProjectId", DbType="NVarChar(50)")] + public string DivisionProjectId + { + get + { + return this._DivisionProjectId; + } + set + { + if ((this._DivisionProjectId != value)) + { + if (this._WBS_DivisionProject.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnDivisionProjectIdChanging(value); + this.SendPropertyChanging(); + this._DivisionProjectId = value; + this.SendPropertyChanged("DivisionProjectId"); + this.OnDivisionProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Basis", DbType="NVarChar(500)")] + public string Basis + { + get + { + return this._Basis; + } + set + { + if ((this._Basis != value)) + { + this.OnBasisChanging(value); + this.SendPropertyChanging(); + this._Basis = value; + this.SendPropertyChanged("Basis"); + this.OnBasisChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckPoints", DbType="NVarChar(500)")] + public string CheckPoints + { + get + { + return this._CheckPoints; + } + set + { + if ((this._CheckPoints != value)) + { + this.OnCheckPointsChanging(value); + this.SendPropertyChanging(); + this._CheckPoints = value; + this.SendPropertyChanged("CheckPoints"); + this.OnCheckPointsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordAndCode", DbType="NVarChar(500)")] + public string RecordAndCode + { + get + { + return this._RecordAndCode; + } + set + { + if ((this._RecordAndCode != value)) + { + this.OnRecordAndCodeChanging(value); + this.SendPropertyChanging(); + this._RecordAndCode = value; + this.SendPropertyChanged("RecordAndCode"); + this.OnRecordAndCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Class", DbType="NVarChar(10)")] + public string Class + { + get + { + return this._Class; + } + set + { + if ((this._Class != value)) + { + this.OnClassChanging(value); + this.SendPropertyChanging(); + this._Class = value; + this.SendPropertyChanged("Class"); + this.OnClassChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] + public System.Nullable 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="_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.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(2000)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSelected", DbType="Bit")] + public System.Nullable IsSelected + { + get + { + return this._IsSelected; + } + set + { + if ((this._IsSelected != value)) + { + this.OnIsSelectedChanging(value); + this.SendPropertyChanging(); + this._IsSelected = value; + this.SendPropertyChanged("IsSelected"); + this.OnIsSelectedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ModelURL", DbType="NVarChar(2000)")] + public string ModelURL + { + get + { + return this._ModelURL; + } + set + { + if ((this._ModelURL != value)) + { + this.OnModelURLChanging(value); + this.SendPropertyChanging(); + this._ModelURL = value; + this.SendPropertyChanged("ModelURL"); + this.OnModelURLChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAcceptance", DbType="Bit")] + public System.Nullable IsAcceptance + { + get + { + return this._IsAcceptance; + } + set + { + if ((this._IsAcceptance != value)) + { + this.OnIsAcceptanceChanging(value); + this.SendPropertyChanging(); + this._IsAcceptance = value; + this.SendPropertyChanged("IsAcceptance"); + this.OnIsAcceptanceChanged(); + } + } + } + + [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="_CompileDate", DbType="DateTime")] + public System.Nullable CompileDate + { + get + { + return this._CompileDate; + } + set + { + if ((this._CompileDate != value)) + { + this.OnCompileDateChanging(value); + this.SendPropertyChanging(); + this._CompileDate = value; + this.SendPropertyChanged("CompileDate"); + this.OnCompileDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsYellow", DbType="Bit")] + public System.Nullable IsYellow + { + get + { + return this._IsYellow; + } + set + { + if ((this._IsYellow != value)) + { + this.OnIsYellowChanging(value); + this.SendPropertyChanging(); + this._IsYellow = value; + this.SendPropertyChanged("IsYellow"); + this.OnIsYellowChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FenBao", DbType="NVarChar(50)")] + public string FenBao + { + get + { + return this._FenBao; + } + set + { + if ((this._FenBao != value)) + { + this.OnFenBaoChanging(value); + this.SendPropertyChanging(); + this._FenBao = value; + this.SendPropertyChanged("FenBao"); + this.OnFenBaoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WuHuan", DbType="NVarChar(50)")] + public string WuHuan + { + get + { + return this._WuHuan; + } + set + { + if ((this._WuHuan != value)) + { + this.OnWuHuanChanging(value); + this.SendPropertyChanging(); + this._WuHuan = value; + this.SendPropertyChanged("WuHuan"); + this.OnWuHuanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JianLi", DbType="NVarChar(50)")] + public string JianLi + { + get + { + return this._JianLi; + } + set + { + if ((this._JianLi != value)) + { + this.OnJianLiChanging(value); + this.SendPropertyChanging(); + this._JianLi = value; + this.SendPropertyChanged("JianLi"); + this.OnJianLiChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YeZhu", DbType="NVarChar(50)")] + public string YeZhu + { + get + { + return this._YeZhu; + } + set + { + if ((this._YeZhu != value)) + { + this.OnYeZhuChanging(value); + this.SendPropertyChanging(); + this._YeZhu = value; + this.SendPropertyChanged("YeZhu"); + this.OnYeZhuChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SourceBreakdownId", DbType="NVarChar(50)")] + public string SourceBreakdownId + { + get + { + return this._SourceBreakdownId; + } + set + { + if ((this._SourceBreakdownId != value)) + { + this.OnSourceBreakdownIdChanging(value); + this.SendPropertyChanging(); + this._SourceBreakdownId = value; + this.SendPropertyChanged("SourceBreakdownId"); + this.OnSourceBreakdownIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckAcceptType", DbType="Char(1)")] + public string CheckAcceptType + { + get + { + return this._CheckAcceptType; + } + set + { + if ((this._CheckAcceptType != value)) + { + this.OnCheckAcceptTypeChanging(value); + this.SendPropertyChanging(); + this._CheckAcceptType = value; + this.SendPropertyChanged("CheckAcceptType"); + this.OnCheckAcceptTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_BreakdownProject_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.WBS_BreakdownProject.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.WBS_BreakdownProject.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_BreakdownProject_WBS_DivisionProject", Storage="_WBS_DivisionProject", ThisKey="DivisionProjectId", OtherKey="DivisionProjectId", IsForeignKey=true)] + public WBS_DivisionProject WBS_DivisionProject + { + get + { + return this._WBS_DivisionProject.Entity; + } + set + { + WBS_DivisionProject previousValue = this._WBS_DivisionProject.Entity; + if (((previousValue != value) + || (this._WBS_DivisionProject.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._WBS_DivisionProject.Entity = null; + previousValue.WBS_BreakdownProject.Remove(this); + } + this._WBS_DivisionProject.Entity = value; + if ((value != null)) + { + value.WBS_BreakdownProject.Add(this); + this._DivisionProjectId = value.DivisionProjectId; + } + else + { + this._DivisionProjectId = default(string); + } + this.SendPropertyChanged("WBS_DivisionProject"); + } + } + } + + 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.WBS_ControlItemAndCycle")] public partial class WBS_ControlItemAndCycle : INotifyPropertyChanging, INotifyPropertyChanged { @@ -264860,6 +267408,377 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_DivisionProject")] + public partial class WBS_DivisionProject : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DivisionProjectId; + + private string _ProjectId; + + private string _DivisionCode; + + private string _DivisionName; + + private System.Nullable _SortIndex; + + private string _SuperDivisionId; + + private string _CNProfessionalId; + + private System.Nullable _IsSelected; + + private string _UnitWorkId; + + private string _OldDivisionId; + + private string _SubItemType; + + private EntitySet _WBS_BreakdownProject; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDivisionProjectIdChanging(string value); + partial void OnDivisionProjectIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnDivisionCodeChanging(string value); + partial void OnDivisionCodeChanged(); + partial void OnDivisionNameChanging(string value); + partial void OnDivisionNameChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + partial void OnSuperDivisionIdChanging(string value); + partial void OnSuperDivisionIdChanged(); + partial void OnCNProfessionalIdChanging(string value); + partial void OnCNProfessionalIdChanged(); + partial void OnIsSelectedChanging(System.Nullable value); + partial void OnIsSelectedChanged(); + partial void OnUnitWorkIdChanging(string value); + partial void OnUnitWorkIdChanged(); + partial void OnOldDivisionIdChanging(string value); + partial void OnOldDivisionIdChanged(); + partial void OnSubItemTypeChanging(string value); + partial void OnSubItemTypeChanged(); + #endregion + + public WBS_DivisionProject() + { + this._WBS_BreakdownProject = new EntitySet(new Action(this.attach_WBS_BreakdownProject), new Action(this.detach_WBS_BreakdownProject)); + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DivisionProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DivisionProjectId + { + get + { + return this._DivisionProjectId; + } + set + { + if ((this._DivisionProjectId != value)) + { + this.OnDivisionProjectIdChanging(value); + this.SendPropertyChanging(); + this._DivisionProjectId = value; + this.SendPropertyChanged("DivisionProjectId"); + this.OnDivisionProjectIdChanged(); + } + } + } + + [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="_DivisionCode", DbType="NVarChar(50)")] + public string DivisionCode + { + get + { + return this._DivisionCode; + } + set + { + if ((this._DivisionCode != value)) + { + this.OnDivisionCodeChanging(value); + this.SendPropertyChanging(); + this._DivisionCode = value; + this.SendPropertyChanged("DivisionCode"); + this.OnDivisionCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DivisionName", DbType="NVarChar(100)")] + public string DivisionName + { + get + { + return this._DivisionName; + } + set + { + if ((this._DivisionName != value)) + { + this.OnDivisionNameChanging(value); + this.SendPropertyChanging(); + this._DivisionName = value; + this.SendPropertyChanged("DivisionName"); + this.OnDivisionNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] + public System.Nullable 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="_SuperDivisionId", DbType="NVarChar(50)")] + public string SuperDivisionId + { + get + { + return this._SuperDivisionId; + } + set + { + if ((this._SuperDivisionId != value)) + { + this.OnSuperDivisionIdChanging(value); + this.SendPropertyChanging(); + this._SuperDivisionId = value; + this.SendPropertyChanged("SuperDivisionId"); + this.OnSuperDivisionIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")] + public string CNProfessionalId + { + get + { + return this._CNProfessionalId; + } + set + { + if ((this._CNProfessionalId != value)) + { + this.OnCNProfessionalIdChanging(value); + this.SendPropertyChanging(); + this._CNProfessionalId = value; + this.SendPropertyChanged("CNProfessionalId"); + this.OnCNProfessionalIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSelected", DbType="Bit")] + public System.Nullable IsSelected + { + get + { + return this._IsSelected; + } + set + { + if ((this._IsSelected != value)) + { + this.OnIsSelectedChanging(value); + this.SendPropertyChanging(); + this._IsSelected = value; + this.SendPropertyChanged("IsSelected"); + this.OnIsSelectedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkId", DbType="NVarChar(50)")] + public string UnitWorkId + { + get + { + return this._UnitWorkId; + } + set + { + if ((this._UnitWorkId != value)) + { + this.OnUnitWorkIdChanging(value); + this.SendPropertyChanging(); + this._UnitWorkId = value; + this.SendPropertyChanged("UnitWorkId"); + this.OnUnitWorkIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OldDivisionId", DbType="NVarChar(50)")] + public string OldDivisionId + { + get + { + return this._OldDivisionId; + } + set + { + if ((this._OldDivisionId != value)) + { + this.OnOldDivisionIdChanging(value); + this.SendPropertyChanging(); + this._OldDivisionId = value; + this.SendPropertyChanged("OldDivisionId"); + this.OnOldDivisionIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubItemType", DbType="Char(1)")] + public string SubItemType + { + get + { + return this._SubItemType; + } + set + { + if ((this._SubItemType != value)) + { + this.OnSubItemTypeChanging(value); + this.SendPropertyChanging(); + this._SubItemType = value; + this.SendPropertyChanged("SubItemType"); + this.OnSubItemTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_BreakdownProject_WBS_DivisionProject", Storage="_WBS_BreakdownProject", ThisKey="DivisionProjectId", OtherKey="DivisionProjectId", DeleteRule="NO ACTION")] + public EntitySet WBS_BreakdownProject + { + get + { + return this._WBS_BreakdownProject; + } + set + { + this._WBS_BreakdownProject.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_DivisionProject_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.WBS_DivisionProject.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.WBS_DivisionProject.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)); + } + } + + private void attach_WBS_BreakdownProject(WBS_BreakdownProject entity) + { + this.SendPropertyChanging(); + entity.WBS_DivisionProject = this; + } + + private void detach_WBS_BreakdownProject(WBS_BreakdownProject entity) + { + this.SendPropertyChanging(); + entity.WBS_DivisionProject = null; + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.WBS_UnitWork")] public partial class WBS_UnitWork : INotifyPropertyChanging, INotifyPropertyChanged { @@ -264922,6 +267841,10 @@ namespace Model private EntitySet _HJGL_WeldingDaily; + private EntitySet _ProcessControl_InspectionManagement; + + private EntitySet _ProcessControl_InspectionManagementDetail; + private EntitySet _PTP_TestPackage; private EntitySet _SitePerson_Checking; @@ -264985,6 +267908,8 @@ namespace Model this._HJGL_Pipeline = new EntitySet(new Action(this.attach_HJGL_Pipeline), new Action(this.detach_HJGL_Pipeline)); this._HJGL_RepairRecord = new EntitySet(new Action(this.attach_HJGL_RepairRecord), new Action(this.detach_HJGL_RepairRecord)); this._HJGL_WeldingDaily = new EntitySet(new Action(this.attach_HJGL_WeldingDaily), new Action(this.detach_HJGL_WeldingDaily)); + this._ProcessControl_InspectionManagement = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagement), new Action(this.detach_ProcessControl_InspectionManagement)); + this._ProcessControl_InspectionManagementDetail = new EntitySet(new Action(this.attach_ProcessControl_InspectionManagementDetail), new Action(this.detach_ProcessControl_InspectionManagementDetail)); this._PTP_TestPackage = new EntitySet(new Action(this.attach_PTP_TestPackage), new Action(this.detach_PTP_TestPackage)); this._SitePerson_Checking = new EntitySet(new Action(this.attach_SitePerson_Checking), new Action(this.detach_SitePerson_Checking)); this._Solution_LargerHazardListItem = new EntitySet(new Action(this.attach_Solution_LargerHazardListItem), new Action(this.detach_Solution_LargerHazardListItem)); @@ -265462,6 +268387,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagement_WBS_UnitWork", Storage="_ProcessControl_InspectionManagement", ThisKey="UnitWorkId", OtherKey="UnitWorkId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagement + { + get + { + return this._ProcessControl_InspectionManagement; + } + set + { + this._ProcessControl_InspectionManagement.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProcessControl_InspectionManagementDetail_WBS_UnitWork", Storage="_ProcessControl_InspectionManagementDetail", ThisKey="UnitWorkId", OtherKey="UnitWorkId", DeleteRule="NO ACTION")] + public EntitySet ProcessControl_InspectionManagementDetail + { + get + { + return this._ProcessControl_InspectionManagementDetail; + } + set + { + this._ProcessControl_InspectionManagementDetail.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_PTP_TestPackage_WBS_UnitWork", Storage="_PTP_TestPackage", ThisKey="UnitWorkId", OtherKey="UnitWorkId", DeleteRule="NO ACTION")] public EntitySet PTP_TestPackage { @@ -265816,6 +268767,30 @@ namespace Model entity.WBS_UnitWork = null; } + private void attach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.WBS_UnitWork = this; + } + + private void detach_ProcessControl_InspectionManagement(ProcessControl_InspectionManagement entity) + { + this.SendPropertyChanging(); + entity.WBS_UnitWork = null; + } + + private void attach_ProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail entity) + { + this.SendPropertyChanging(); + entity.WBS_UnitWork = this; + } + + private void detach_ProcessControl_InspectionManagementDetail(ProcessControl_InspectionManagementDetail entity) + { + this.SendPropertyChanging(); + entity.WBS_UnitWork = null; + } + private void attach_PTP_TestPackage(PTP_TestPackage entity) { this.SendPropertyChanging();