From 01ce3c0381d7eddd32dc1f39aaf80bc6492e29d0 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Sun, 18 Sep 2022 23:22:47 +0800 Subject: [PATCH] =?UTF-8?q?20220918=20=E7=84=8A=E6=8E=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_V2022-09-18 lpf.sql | 3 + .../版本日志/SGGLDB_V2022-09-18修改明细.txt | 8 + SGGL/BLL/HJGL/DataImport/DataImportService.cs | 2 +- .../HJGL/DataImport/DrawingImport.aspx | 8 +- .../HJGL/DataImport/DrawingImportEdit.aspx | 2 +- .../HJGL/DataImport/DrawingImportEdit.aspx.cs | 3 +- .../HJGL/DataImport/TDMImport.aspx | 8 +- .../HJGL/DataImport/TDMImportEdit.aspx | 2 +- .../HJGL/DataImport/TDMImportEdit.aspx.cs | 3 +- .../HJGL/InfoQuery/PipelineQuery.aspx | 2 +- .../HJGL/InfoQuery/PipelineQuery.aspx.cs | 20 +- .../HJGL/PreDesign/PackagingManage.aspx | 2 +- .../PreDesign/PackagingManageEdit.aspx.cs | 3 +- .../HJGL/PreDesign/PackagingManageView.aspx | 2 +- .../HJGL/PreDesign/PrePipeline.aspx | 6 +- .../HJGL/PreDesign/YardPlanning.aspx | 16 +- .../HJGL/WeldingManage/WeldingConDate.aspx.cs | 1 + SGGL/Model/Model.cs | 1352 +++++++++++++++-- 18 files changed, 1322 insertions(+), 121 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2022-09-18 lpf.sql create mode 100644 DataBase/版本日志/SGGLDB_V2022-09-18修改明细.txt diff --git a/DataBase/版本日志/SGGLDB_V2022-09-18 lpf.sql b/DataBase/版本日志/SGGLDB_V2022-09-18 lpf.sql new file mode 100644 index 00000000..84a60ca7 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2022-09-18 lpf.sql @@ -0,0 +1,3 @@ +select * from HJGL_DataImport + +alter table HJGL_DataImport alter column CreateDate datetime \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_V2022-09-18修改明细.txt b/DataBase/版本日志/SGGLDB_V2022-09-18修改明细.txt new file mode 100644 index 00000000..0c0357cb --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2022-09-18修改明细.txt @@ -0,0 +1,8 @@ + +--ADD BY lipengfei 2022-09-16 +1修改数据导入上传时间类型 +2.根据焊接测试修改 +--END + + + diff --git a/SGGL/BLL/HJGL/DataImport/DataImportService.cs b/SGGL/BLL/HJGL/DataImport/DataImportService.cs index 1eebb310..85b805ac 100644 --- a/SGGL/BLL/HJGL/DataImport/DataImportService.cs +++ b/SGGL/BLL/HJGL/DataImport/DataImportService.cs @@ -46,7 +46,7 @@ namespace BLL public static Model.HJGL_DataImport GetLatestFileByFileName(string FileName, string project) { var q = (from x in Funs.DB.HJGL_DataImport - where x.FileName == FileName && x.ProjectId == project + where x.FileName.Contains(FileName) && x.ProjectId == project select x ).OrderByDescending(x => x.Version).FirstOrDefault(); return q; diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx index f699cdb3..1f57eda8 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx @@ -41,8 +41,8 @@ Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="数据" TitleToolTip="数据" AutoScroll="true"> - - diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx index 1bd5846f..ba19648a 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx @@ -30,7 +30,7 @@ --%> - + diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx.cs index 600ee8c2..ba9bd009 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImportEdit.aspx.cs @@ -106,7 +106,8 @@ namespace FineUIPro.Web.HJGL.DataImport ShowNotify(result, MessageBoxIcon.Warning); } - PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + // PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } } diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx index 821d2581..40dd942f 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx @@ -41,7 +41,7 @@ Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="数据" TitleToolTip="数据" AutoScroll="true"> - + TextAlign="Left" Width="50px"> @@ -118,7 +118,7 @@ Layout="Fit" ShowHeader="false" RegionSplitWidth="20px" BodyPadding="1px" Height="400px" IconFont="PlusCircle" Title="历史记录" TitleToolTip="历史记录" AutoScroll="true"> - diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx index 42adc4cf..a6aafcaa 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx @@ -31,7 +31,7 @@ --%> - + diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx.cs index aecdb204..42f85793 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImportEdit.aspx.cs @@ -104,7 +104,8 @@ namespace FineUIPro.Web.HJGL.DataImport ShowNotify(result, MessageBoxIcon.Warning); } - PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + // PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx index cbaeec77..0baf50bc 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx @@ -73,7 +73,7 @@ - - - + - + - diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx index ee823e68..daf72011 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx @@ -12,27 +12,27 @@ + Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="堆场规划示意图" + TitleToolTip="堆场规划示意图" AutoScroll="true"> + ShowBorder="true" Title="堆场规划示意图" ShowHeader="true" runat="server"> - + - + @@ -42,7 +42,7 @@ diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs index eadd9b7e..ef9cfce5 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs @@ -29,6 +29,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage rootNode1.NodeID = "1"; rootNode1.Text = "建筑工程"; rootNode1.CommandName = "建筑工程"; + rootNode1.Selectable = false; this.tvControlItem.Nodes.Add(rootNode1); TreeNode rootNode2 = new TreeNode(); diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 7818c792..c672e14c 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -347,6 +347,12 @@ namespace Model partial void InsertCheck_TechnicalContactListApprove(Check_TechnicalContactListApprove instance); partial void UpdateCheck_TechnicalContactListApprove(Check_TechnicalContactListApprove instance); partial void DeleteCheck_TechnicalContactListApprove(Check_TechnicalContactListApprove instance); + partial void InsertConManager_LongList(ConManager_LongList instance); + partial void UpdateConManager_LongList(ConManager_LongList instance); + partial void DeleteConManager_LongList(ConManager_LongList instance); + partial void InsertConManager_SubAchievement(ConManager_SubAchievement instance); + partial void UpdateConManager_SubAchievement(ConManager_SubAchievement instance); + partial void DeleteConManager_SubAchievement(ConManager_SubAchievement instance); partial void InsertCostGoods_CostManage(CostGoods_CostManage instance); partial void UpdateCostGoods_CostManage(CostGoods_CostManage instance); partial void DeleteCostGoods_CostManage(CostGoods_CostManage instance); @@ -752,6 +758,9 @@ namespace Model partial void InsertPerson_Persons(Person_Persons instance); partial void UpdatePerson_Persons(Person_Persons instance); partial void DeletePerson_Persons(Person_Persons instance); + partial void InsertPerson_PersonsCertificate(Person_PersonsCertificate instance); + partial void UpdatePerson_PersonsCertificate(Person_PersonsCertificate instance); + partial void DeletePerson_PersonsCertificate(Person_PersonsCertificate instance); partial void InsertPerson_PersonTrain(Person_PersonTrain instance); partial void UpdatePerson_PersonTrain(Person_PersonTrain instance); partial void DeletePerson_PersonTrain(Person_PersonTrain instance); @@ -2286,6 +2295,22 @@ namespace Model } } + public System.Data.Linq.Table ConManager_LongList + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table ConManager_SubAchievement + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table CostGoods_CostManage { get @@ -3374,6 +3399,14 @@ namespace Model } } + public System.Data.Linq.Table Person_PersonsCertificate + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Person_PersonTrain { get @@ -50000,6 +50033,802 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ConManager_LongList")] + public partial class ConManager_LongList : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ConManagerLongListId; + + private System.Nullable _State; + + private string _SubUnitName; + + private string _SubUnitNature; + + private string _Corporate; + + private string _Address; + + private string _CollCropCode; + + private string _RegisteredCapital; + + private string _SubjectNatureLevel; + + private string _OtherNatureLevel; + + private string _MainBusiness; + + private string _OpeningBank_TT; + + private string _BankAccount_TT; + + private string _OpeningBank_electrophore; + + private string _BankAccount_electrophore; + + private string _LineNumber_electrophore; + + private string _LinkUserName; + + private string _LinkUserPosition; + + private string _LinkUserMobile; + + private string _LinkUserEMail; + + private string _Personal_all; + + private string _Personal_Skilled; + + private string _Personal_Manager; + + private string _Personal_Reg; + + private string _AchievementId; + + private string _IsQualifiedSub; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnConManagerLongListIdChanging(string value); + partial void OnConManagerLongListIdChanged(); + partial void OnStateChanging(System.Nullable value); + partial void OnStateChanged(); + partial void OnSubUnitNameChanging(string value); + partial void OnSubUnitNameChanged(); + partial void OnSubUnitNatureChanging(string value); + partial void OnSubUnitNatureChanged(); + partial void OnCorporateChanging(string value); + partial void OnCorporateChanged(); + partial void OnAddressChanging(string value); + partial void OnAddressChanged(); + partial void OnCollCropCodeChanging(string value); + partial void OnCollCropCodeChanged(); + partial void OnRegisteredCapitalChanging(string value); + partial void OnRegisteredCapitalChanged(); + partial void OnSubjectNatureLevelChanging(string value); + partial void OnSubjectNatureLevelChanged(); + partial void OnOtherNatureLevelChanging(string value); + partial void OnOtherNatureLevelChanged(); + partial void OnMainBusinessChanging(string value); + partial void OnMainBusinessChanged(); + partial void OnOpeningBank_TTChanging(string value); + partial void OnOpeningBank_TTChanged(); + partial void OnBankAccount_TTChanging(string value); + partial void OnBankAccount_TTChanged(); + partial void OnOpeningBank_electrophoreChanging(string value); + partial void OnOpeningBank_electrophoreChanged(); + partial void OnBankAccount_electrophoreChanging(string value); + partial void OnBankAccount_electrophoreChanged(); + partial void OnLineNumber_electrophoreChanging(string value); + partial void OnLineNumber_electrophoreChanged(); + partial void OnLinkUserNameChanging(string value); + partial void OnLinkUserNameChanged(); + partial void OnLinkUserPositionChanging(string value); + partial void OnLinkUserPositionChanged(); + partial void OnLinkUserMobileChanging(string value); + partial void OnLinkUserMobileChanged(); + partial void OnLinkUserEMailChanging(string value); + partial void OnLinkUserEMailChanged(); + partial void OnPersonal_allChanging(string value); + partial void OnPersonal_allChanged(); + partial void OnPersonal_SkilledChanging(string value); + partial void OnPersonal_SkilledChanged(); + partial void OnPersonal_ManagerChanging(string value); + partial void OnPersonal_ManagerChanged(); + partial void OnPersonal_RegChanging(string value); + partial void OnPersonal_RegChanged(); + partial void OnAchievementIdChanging(string value); + partial void OnAchievementIdChanged(); + partial void OnIsQualifiedSubChanging(string value); + partial void OnIsQualifiedSubChanged(); + #endregion + + public ConManager_LongList() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConManagerLongListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ConManagerLongListId + { + get + { + return this._ConManagerLongListId; + } + set + { + if ((this._ConManagerLongListId != value)) + { + this.OnConManagerLongListIdChanging(value); + this.SendPropertyChanging(); + this._ConManagerLongListId = value; + this.SendPropertyChanged("ConManagerLongListId"); + this.OnConManagerLongListIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Int")] + public System.Nullable State + { + get + { + return this._State; + } + set + { + if ((this._State != value)) + { + this.OnStateChanging(value); + this.SendPropertyChanging(); + this._State = value; + this.SendPropertyChanged("State"); + this.OnStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitName", DbType="NVarChar(200)")] + public string SubUnitName + { + get + { + return this._SubUnitName; + } + set + { + if ((this._SubUnitName != value)) + { + this.OnSubUnitNameChanging(value); + this.SendPropertyChanging(); + this._SubUnitName = value; + this.SendPropertyChanged("SubUnitName"); + this.OnSubUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubUnitNature", DbType="NVarChar(200)")] + public string SubUnitNature + { + get + { + return this._SubUnitNature; + } + set + { + if ((this._SubUnitNature != value)) + { + this.OnSubUnitNatureChanging(value); + this.SendPropertyChanging(); + this._SubUnitNature = value; + this.SendPropertyChanged("SubUnitNature"); + this.OnSubUnitNatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Corporate", DbType="NVarChar(200)")] + public string Corporate + { + get + { + return this._Corporate; + } + set + { + if ((this._Corporate != value)) + { + this.OnCorporateChanging(value); + this.SendPropertyChanging(); + this._Corporate = value; + this.SendPropertyChanged("Corporate"); + this.OnCorporateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")] + public string Address + { + get + { + return this._Address; + } + set + { + if ((this._Address != value)) + { + this.OnAddressChanging(value); + this.SendPropertyChanging(); + this._Address = value; + this.SendPropertyChanged("Address"); + this.OnAddressChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CollCropCode", DbType="NVarChar(200)")] + public string CollCropCode + { + get + { + return this._CollCropCode; + } + set + { + if ((this._CollCropCode != value)) + { + this.OnCollCropCodeChanging(value); + this.SendPropertyChanging(); + this._CollCropCode = value; + this.SendPropertyChanged("CollCropCode"); + this.OnCollCropCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisteredCapital", DbType="NVarChar(50)")] + public string RegisteredCapital + { + get + { + return this._RegisteredCapital; + } + set + { + if ((this._RegisteredCapital != value)) + { + this.OnRegisteredCapitalChanging(value); + this.SendPropertyChanging(); + this._RegisteredCapital = value; + this.SendPropertyChanged("RegisteredCapital"); + this.OnRegisteredCapitalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubjectNatureLevel", DbType="NVarChar(200)")] + public string SubjectNatureLevel + { + get + { + return this._SubjectNatureLevel; + } + set + { + if ((this._SubjectNatureLevel != value)) + { + this.OnSubjectNatureLevelChanging(value); + this.SendPropertyChanging(); + this._SubjectNatureLevel = value; + this.SendPropertyChanged("SubjectNatureLevel"); + this.OnSubjectNatureLevelChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OtherNatureLevel", DbType="NVarChar(200)")] + public string OtherNatureLevel + { + get + { + return this._OtherNatureLevel; + } + set + { + if ((this._OtherNatureLevel != value)) + { + this.OnOtherNatureLevelChanging(value); + this.SendPropertyChanging(); + this._OtherNatureLevel = value; + this.SendPropertyChanged("OtherNatureLevel"); + this.OnOtherNatureLevelChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MainBusiness", DbType="NVarChar(1000)")] + public string MainBusiness + { + get + { + return this._MainBusiness; + } + set + { + if ((this._MainBusiness != value)) + { + this.OnMainBusinessChanging(value); + this.SendPropertyChanging(); + this._MainBusiness = value; + this.SendPropertyChanged("MainBusiness"); + this.OnMainBusinessChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OpeningBank_TT", DbType="NVarChar(100)")] + public string OpeningBank_TT + { + get + { + return this._OpeningBank_TT; + } + set + { + if ((this._OpeningBank_TT != value)) + { + this.OnOpeningBank_TTChanging(value); + this.SendPropertyChanging(); + this._OpeningBank_TT = value; + this.SendPropertyChanged("OpeningBank_TT"); + this.OnOpeningBank_TTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BankAccount_TT", DbType="NVarChar(100)")] + public string BankAccount_TT + { + get + { + return this._BankAccount_TT; + } + set + { + if ((this._BankAccount_TT != value)) + { + this.OnBankAccount_TTChanging(value); + this.SendPropertyChanging(); + this._BankAccount_TT = value; + this.SendPropertyChanged("BankAccount_TT"); + this.OnBankAccount_TTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OpeningBank_electrophore", DbType="NVarChar(100)")] + public string OpeningBank_electrophore + { + get + { + return this._OpeningBank_electrophore; + } + set + { + if ((this._OpeningBank_electrophore != value)) + { + this.OnOpeningBank_electrophoreChanging(value); + this.SendPropertyChanging(); + this._OpeningBank_electrophore = value; + this.SendPropertyChanged("OpeningBank_electrophore"); + this.OnOpeningBank_electrophoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BankAccount_electrophore", DbType="NVarChar(100)")] + public string BankAccount_electrophore + { + get + { + return this._BankAccount_electrophore; + } + set + { + if ((this._BankAccount_electrophore != value)) + { + this.OnBankAccount_electrophoreChanging(value); + this.SendPropertyChanging(); + this._BankAccount_electrophore = value; + this.SendPropertyChanged("BankAccount_electrophore"); + this.OnBankAccount_electrophoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LineNumber_electrophore", DbType="NVarChar(100)")] + public string LineNumber_electrophore + { + get + { + return this._LineNumber_electrophore; + } + set + { + if ((this._LineNumber_electrophore != value)) + { + this.OnLineNumber_electrophoreChanging(value); + this.SendPropertyChanging(); + this._LineNumber_electrophore = value; + this.SendPropertyChanged("LineNumber_electrophore"); + this.OnLineNumber_electrophoreChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkUserName", DbType="NVarChar(50)")] + public string LinkUserName + { + get + { + return this._LinkUserName; + } + set + { + if ((this._LinkUserName != value)) + { + this.OnLinkUserNameChanging(value); + this.SendPropertyChanging(); + this._LinkUserName = value; + this.SendPropertyChanged("LinkUserName"); + this.OnLinkUserNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkUserPosition", DbType="NVarChar(100)")] + public string LinkUserPosition + { + get + { + return this._LinkUserPosition; + } + set + { + if ((this._LinkUserPosition != value)) + { + this.OnLinkUserPositionChanging(value); + this.SendPropertyChanging(); + this._LinkUserPosition = value; + this.SendPropertyChanged("LinkUserPosition"); + this.OnLinkUserPositionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkUserMobile", DbType="NVarChar(50)")] + public string LinkUserMobile + { + get + { + return this._LinkUserMobile; + } + set + { + if ((this._LinkUserMobile != value)) + { + this.OnLinkUserMobileChanging(value); + this.SendPropertyChanging(); + this._LinkUserMobile = value; + this.SendPropertyChanged("LinkUserMobile"); + this.OnLinkUserMobileChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LinkUserEMail", DbType="NVarChar(50)")] + public string LinkUserEMail + { + get + { + return this._LinkUserEMail; + } + set + { + if ((this._LinkUserEMail != value)) + { + this.OnLinkUserEMailChanging(value); + this.SendPropertyChanging(); + this._LinkUserEMail = value; + this.SendPropertyChanged("LinkUserEMail"); + this.OnLinkUserEMailChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Personal_all", DbType="NVarChar(200)")] + public string Personal_all + { + get + { + return this._Personal_all; + } + set + { + if ((this._Personal_all != value)) + { + this.OnPersonal_allChanging(value); + this.SendPropertyChanging(); + this._Personal_all = value; + this.SendPropertyChanged("Personal_all"); + this.OnPersonal_allChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Personal_Skilled", DbType="NVarChar(200)")] + public string Personal_Skilled + { + get + { + return this._Personal_Skilled; + } + set + { + if ((this._Personal_Skilled != value)) + { + this.OnPersonal_SkilledChanging(value); + this.SendPropertyChanging(); + this._Personal_Skilled = value; + this.SendPropertyChanged("Personal_Skilled"); + this.OnPersonal_SkilledChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Personal_Manager", DbType="NVarChar(200)")] + public string Personal_Manager + { + get + { + return this._Personal_Manager; + } + set + { + if ((this._Personal_Manager != value)) + { + this.OnPersonal_ManagerChanging(value); + this.SendPropertyChanging(); + this._Personal_Manager = value; + this.SendPropertyChanged("Personal_Manager"); + this.OnPersonal_ManagerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Personal_Reg", DbType="NVarChar(200)")] + public string Personal_Reg + { + get + { + return this._Personal_Reg; + } + set + { + if ((this._Personal_Reg != value)) + { + this.OnPersonal_RegChanging(value); + this.SendPropertyChanging(); + this._Personal_Reg = value; + this.SendPropertyChanged("Personal_Reg"); + this.OnPersonal_RegChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AchievementId", DbType="NVarChar(50)")] + public string AchievementId + { + get + { + return this._AchievementId; + } + set + { + if ((this._AchievementId != value)) + { + this.OnAchievementIdChanging(value); + this.SendPropertyChanging(); + this._AchievementId = value; + this.SendPropertyChanged("AchievementId"); + this.OnAchievementIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsQualifiedSub", DbType="NVarChar(50)")] + public string IsQualifiedSub + { + get + { + return this._IsQualifiedSub; + } + set + { + if ((this._IsQualifiedSub != value)) + { + this.OnIsQualifiedSubChanging(value); + this.SendPropertyChanging(); + this._IsQualifiedSub = value; + this.SendPropertyChanged("IsQualifiedSub"); + this.OnIsQualifiedSubChanged(); + } + } + } + + 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.ConManager_SubAchievement")] + public partial class ConManager_SubAchievement : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _AchievementId; + + private string _ProjectName; + + private string _Remark; + + private string _HonorAward; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnAchievementIdChanging(string value); + partial void OnAchievementIdChanged(); + partial void OnProjectNameChanging(string value); + partial void OnProjectNameChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnHonorAwardChanging(string value); + partial void OnHonorAwardChanged(); + #endregion + + public ConManager_SubAchievement() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AchievementId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string AchievementId + { + get + { + return this._AchievementId; + } + set + { + if ((this._AchievementId != value)) + { + this.OnAchievementIdChanging(value); + this.SendPropertyChanging(); + this._AchievementId = value; + this.SendPropertyChanged("AchievementId"); + this.OnAchievementIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(200)")] + public string ProjectName + { + get + { + return this._ProjectName; + } + set + { + if ((this._ProjectName != value)) + { + this.OnProjectNameChanging(value); + this.SendPropertyChanging(); + this._ProjectName = value; + this.SendPropertyChanged("ProjectName"); + this.OnProjectNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(1000)")] + 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="_HonorAward", DbType="NVarChar(1000)")] + public string HonorAward + { + get + { + return this._HonorAward; + } + set + { + if ((this._HonorAward != value)) + { + this.OnHonorAwardChanging(value); + this.SendPropertyChanging(); + this._HonorAward = value; + this.SendPropertyChanged("HonorAward"); + this.OnHonorAwardChanged(); + } + } + } + + 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.CostGoods_CostManage")] public partial class CostGoods_CostManage : INotifyPropertyChanging, INotifyPropertyChanged { @@ -66007,7 +66836,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="Date")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreateDate", DbType="DateTime")] public System.Nullable CreateDate { get @@ -66062,8 +66891,6 @@ namespace Model private string _ImportType; - private string _DataClassification; - private string _FileName; private string _FilePath; @@ -66082,6 +66909,8 @@ namespace Model private string _CreateDate; + private string _DataClassification; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -66094,8 +66923,6 @@ namespace Model partial void OnUnitWorkIdChanged(); partial void OnImportTypeChanging(string value); partial void OnImportTypeChanged(); - partial void OnDataClassificationChanging(string value); - partial void OnDataClassificationChanged(); partial void OnFileNameChanging(string value); partial void OnFileNameChanged(); partial void OnFilePathChanging(string value); @@ -66114,6 +66941,8 @@ namespace Model partial void OnCreateManChanged(); partial void OnCreateDateChanging(string value); partial void OnCreateDateChanged(); + partial void OnDataClassificationChanging(string value); + partial void OnDataClassificationChanged(); #endregion public HJGL_DesignBasisDataImport() @@ -66201,26 +67030,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataClassification", DbType="VarChar(50)")] - public string DataClassification - { - get - { - return this._DataClassification; - } - set - { - if ((this._DataClassification != value)) - { - this.OnDataClassificationChanging(value); - this.SendPropertyChanging(); - this._DataClassification = value; - this.SendPropertyChanged("DataClassification"); - this.OnDataClassificationChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileName", DbType="VarChar(500)")] public string FileName { @@ -66401,6 +67210,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataClassification", DbType="VarChar(50)")] + public string DataClassification + { + get + { + return this._DataClassification; + } + set + { + if ((this._DataClassification != value)) + { + this.OnDataClassificationChanging(value); + this.SendPropertyChanging(); + this._DataClassification = value; + this.SendPropertyChanged("DataClassification"); + this.OnDataClassificationChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -66434,10 +67263,10 @@ namespace Model private string _UnitWorkId; - private string _DataClassification; - private System.Nullable _Version; + private string _DataClassification; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -66448,10 +67277,10 @@ namespace Model partial void OnProjectIdChanged(); partial void OnUnitWorkIdChanging(string value); partial void OnUnitWorkIdChanged(); - partial void OnDataClassificationChanging(string value); - partial void OnDataClassificationChanged(); partial void OnVersionChanging(System.Nullable value); partial void OnVersionChanged(); + partial void OnDataClassificationChanging(string value); + partial void OnDataClassificationChanged(); #endregion public HJGL_DesignBasisDataImportVerSionLog() @@ -66519,26 +67348,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataClassification", DbType="VarChar(50)")] - public string DataClassification - { - get - { - return this._DataClassification; - } - set - { - if ((this._DataClassification != value)) - { - this.OnDataClassificationChanging(value); - this.SendPropertyChanging(); - this._DataClassification = value; - this.SendPropertyChanged("DataClassification"); - this.OnDataClassificationChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Version", DbType="Decimal(18,1)")] public System.Nullable Version { @@ -66559,6 +67368,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DataClassification", DbType="VarChar(50)")] + public string DataClassification + { + get + { + return this._DataClassification; + } + set + { + if ((this._DataClassification != value)) + { + this.OnDataClassificationChanging(value); + this.SendPropertyChanging(); + this._DataClassification = value; + this.SendPropertyChanged("DataClassification"); + this.OnDataClassificationChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -73383,7 +74212,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -124056,6 +124885,284 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_PersonsCertificate")] + public partial class Person_PersonsCertificate : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _PersonsCertificateId; + + private string _PersonId; + + private string _CertificateId; + + private string _CertificateCode; + + private string _SendUnit; + + private System.Nullable _SendDate; + + private System.Nullable _RegisterDate; + + private string _Major; + + private System.Nullable _ValidityDate; + + private string _Url; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnPersonsCertificateIdChanging(string value); + partial void OnPersonsCertificateIdChanged(); + partial void OnPersonIdChanging(string value); + partial void OnPersonIdChanged(); + partial void OnCertificateIdChanging(string value); + partial void OnCertificateIdChanged(); + partial void OnCertificateCodeChanging(string value); + partial void OnCertificateCodeChanged(); + partial void OnSendUnitChanging(string value); + partial void OnSendUnitChanged(); + partial void OnSendDateChanging(System.Nullable value); + partial void OnSendDateChanged(); + partial void OnRegisterDateChanging(System.Nullable value); + partial void OnRegisterDateChanged(); + partial void OnMajorChanging(string value); + partial void OnMajorChanged(); + partial void OnValidityDateChanging(System.Nullable value); + partial void OnValidityDateChanged(); + partial void OnUrlChanging(string value); + partial void OnUrlChanged(); + #endregion + + public Person_PersonsCertificate() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonsCertificateId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string PersonsCertificateId + { + get + { + return this._PersonsCertificateId; + } + set + { + if ((this._PersonsCertificateId != value)) + { + this.OnPersonsCertificateIdChanging(value); + this.SendPropertyChanging(); + this._PersonsCertificateId = value; + this.SendPropertyChanged("PersonsCertificateId"); + this.OnPersonsCertificateIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonId", DbType="NVarChar(50)")] + public string PersonId + { + get + { + return this._PersonId; + } + set + { + if ((this._PersonId != value)) + { + this.OnPersonIdChanging(value); + this.SendPropertyChanging(); + this._PersonId = value; + this.SendPropertyChanged("PersonId"); + this.OnPersonIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateId", DbType="NVarChar(50)")] + public string CertificateId + { + get + { + return this._CertificateId; + } + set + { + if ((this._CertificateId != value)) + { + this.OnCertificateIdChanging(value); + this.SendPropertyChanging(); + this._CertificateId = value; + this.SendPropertyChanged("CertificateId"); + this.OnCertificateIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateCode", DbType="NVarChar(50)")] + public string CertificateCode + { + get + { + return this._CertificateCode; + } + set + { + if ((this._CertificateCode != value)) + { + this.OnCertificateCodeChanging(value); + this.SendPropertyChanging(); + this._CertificateCode = value; + this.SendPropertyChanged("CertificateCode"); + this.OnCertificateCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SendUnit", DbType="NVarChar(500)")] + public string SendUnit + { + get + { + return this._SendUnit; + } + set + { + if ((this._SendUnit != value)) + { + this.OnSendUnitChanging(value); + this.SendPropertyChanging(); + this._SendUnit = value; + this.SendPropertyChanged("SendUnit"); + this.OnSendUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SendDate", DbType="DateTime")] + public System.Nullable SendDate + { + get + { + return this._SendDate; + } + set + { + if ((this._SendDate != value)) + { + this.OnSendDateChanging(value); + this.SendPropertyChanging(); + this._SendDate = value; + this.SendPropertyChanged("SendDate"); + this.OnSendDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RegisterDate", DbType="DateTime")] + public System.Nullable RegisterDate + { + get + { + return this._RegisterDate; + } + set + { + if ((this._RegisterDate != value)) + { + this.OnRegisterDateChanging(value); + this.SendPropertyChanging(); + this._RegisterDate = value; + this.SendPropertyChanged("RegisterDate"); + this.OnRegisterDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Major", DbType="NVarChar(50)")] + public string Major + { + get + { + return this._Major; + } + set + { + if ((this._Major != value)) + { + this.OnMajorChanging(value); + this.SendPropertyChanging(); + this._Major = value; + this.SendPropertyChanged("Major"); + this.OnMajorChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ValidityDate", DbType="DateTime")] + public System.Nullable ValidityDate + { + get + { + return this._ValidityDate; + } + set + { + if ((this._ValidityDate != value)) + { + this.OnValidityDateChanging(value); + this.SendPropertyChanging(); + this._ValidityDate = value; + this.SendPropertyChanged("ValidityDate"); + this.OnValidityDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Url", DbType="NVarChar(2000)")] + public string Url + { + get + { + return this._Url; + } + set + { + if ((this._Url != value)) + { + this.OnUrlChanging(value); + this.SendPropertyChanging(); + this._Url = value; + this.SendPropertyChanged("Url"); + this.OnUrlChanged(); + } + } + } + + 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.Person_PersonTrain")] public partial class Person_PersonTrain : INotifyPropertyChanging, INotifyPropertyChanged { @@ -137363,8 +138470,6 @@ namespace Model private System.Nullable _Status; - private string _ContactUnitOfPartyA; - private string _ContactPersonOfPartyA; private string _ContactPersonOfPartyB; @@ -137389,6 +138494,8 @@ namespace Model private System.Nullable _IsItACentralizedPurchaseSupplier; + private string _ContactUnitOfPartyA; + private string _Clause; private string _MainContent; @@ -137475,8 +138582,6 @@ namespace Model partial void OnCreateDateChanged(); partial void OnStatusChanging(System.Nullable value); partial void OnStatusChanged(); - partial void OnContactUnitOfPartyAChanging(string value); - partial void OnContactUnitOfPartyAChanged(); partial void OnContactPersonOfPartyAChanging(string value); partial void OnContactPersonOfPartyAChanged(); partial void OnContactPersonOfPartyBChanging(string value); @@ -137501,6 +138606,8 @@ namespace Model partial void OnSubcontractingMethodChanged(); partial void OnIsItACentralizedPurchaseSupplierChanging(System.Nullable value); partial void OnIsItACentralizedPurchaseSupplierChanged(); + partial void OnContactUnitOfPartyAChanging(string value); + partial void OnContactUnitOfPartyAChanged(); partial void OnClauseChanging(string value); partial void OnClauseChanged(); partial void OnMainContentChanging(string value); @@ -138228,26 +139335,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactUnitOfPartyA", DbType="VarChar(50)")] - public string ContactUnitOfPartyA - { - get - { - return this._ContactUnitOfPartyA; - } - set - { - if ((this._ContactUnitOfPartyA != value)) - { - this.OnContactUnitOfPartyAChanging(value); - this.SendPropertyChanging(); - this._ContactUnitOfPartyA = value; - this.SendPropertyChanged("ContactUnitOfPartyA"); - this.OnContactUnitOfPartyAChanged(); - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactPersonOfPartyA", DbType="VarChar(50)")] public string ContactPersonOfPartyA { @@ -138488,6 +139575,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContactUnitOfPartyA", DbType="VarChar(50)")] + public string ContactUnitOfPartyA + { + get + { + return this._ContactUnitOfPartyA; + } + set + { + if ((this._ContactUnitOfPartyA != value)) + { + this.OnContactUnitOfPartyAChanging(value); + this.SendPropertyChanging(); + this._ContactUnitOfPartyA = value; + this.SendPropertyChanged("ContactUnitOfPartyA"); + this.OnContactUnitOfPartyAChanged(); + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Clause", DbType="NVarChar(1000)")] public string Clause { @@ -179944,6 +181051,8 @@ namespace Model private EntityRef _WBS_UnitWork; + private EntityRef _WBS_WorkPackage; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -179977,6 +181086,7 @@ namespace Model this._Base_Unit = default(EntityRef); this._Solution_LargerHazardList = default(EntityRef); this._WBS_UnitWork = default(EntityRef); + this._WBS_WorkPackage = default(EntityRef); OnCreated(); } @@ -180079,6 +181189,10 @@ namespace Model { if ((this._WorkPackageId != value)) { + if (this._WBS_WorkPackage.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } this.OnWorkPackageIdChanging(value); this.SendPropertyChanging(); this._WorkPackageId = value; @@ -180314,6 +181428,40 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_LargerHazardListItem_WBS_WorkPackage", Storage="_WBS_WorkPackage", ThisKey="WorkPackageId", OtherKey="WorkPackageId", IsForeignKey=true)] + public WBS_WorkPackage WBS_WorkPackage + { + get + { + return this._WBS_WorkPackage.Entity; + } + set + { + WBS_WorkPackage previousValue = this._WBS_WorkPackage.Entity; + if (((previousValue != value) + || (this._WBS_WorkPackage.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._WBS_WorkPackage.Entity = null; + previousValue.Solution_LargerHazardListItem.Remove(this); + } + this._WBS_WorkPackage.Entity = value; + if ((value != null)) + { + value.Solution_LargerHazardListItem.Add(this); + this._WorkPackageId = value.WorkPackageId; + } + else + { + this._WorkPackageId = default(string); + } + this.SendPropertyChanged("WBS_WorkPackage"); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -202801,7 +203949,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -207242,7 +208390,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -209972,7 +211120,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -210871,7 +212019,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -211248,7 +212396,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -211441,7 +212589,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -211674,7 +212822,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -212504,7 +213652,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -213489,7 +214637,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -215675,7 +216823,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -220467,7 +221615,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -221097,7 +222245,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -221792,7 +222940,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -222375,7 +223523,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(50)")] public string PipelineCode { get @@ -231648,6 +232796,8 @@ namespace Model private System.Nullable _Costs; + private EntitySet _Solution_LargerHazardListItem; + private EntitySet _WBS_ControlItemAndCycle; private EntityRef _WBS_UnitWork; @@ -231694,6 +232844,7 @@ namespace Model public WBS_WorkPackage() { + this._Solution_LargerHazardListItem = new EntitySet(new Action(this.attach_Solution_LargerHazardListItem), new Action(this.detach_Solution_LargerHazardListItem)); this._WBS_ControlItemAndCycle = new EntitySet(new Action(this.attach_WBS_ControlItemAndCycle), new Action(this.detach_WBS_ControlItemAndCycle)); this._WBS_UnitWork = default(EntityRef); OnCreated(); @@ -232043,6 +233194,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Solution_LargerHazardListItem_WBS_WorkPackage", Storage="_Solution_LargerHazardListItem", ThisKey="WorkPackageId", OtherKey="WorkPackageId", DeleteRule="NO ACTION")] + public EntitySet Solution_LargerHazardListItem + { + get + { + return this._Solution_LargerHazardListItem; + } + set + { + this._Solution_LargerHazardListItem.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_WBS_ControlItemAndCycle_WBS_ControlItemAndCycle", Storage="_WBS_ControlItemAndCycle", ThisKey="WorkPackageId", OtherKey="WorkPackageId", DeleteRule="NO ACTION")] public EntitySet WBS_ControlItemAndCycle { @@ -232110,6 +233274,18 @@ namespace Model } } + private void attach_Solution_LargerHazardListItem(Solution_LargerHazardListItem entity) + { + this.SendPropertyChanging(); + entity.WBS_WorkPackage = this; + } + + private void detach_Solution_LargerHazardListItem(Solution_LargerHazardListItem entity) + { + this.SendPropertyChanging(); + entity.WBS_WorkPackage = null; + } + private void attach_WBS_ControlItemAndCycle(WBS_ControlItemAndCycle entity) { this.SendPropertyChanging();