From 9407658b38b9925685e9e47c89491edf2ebdd15b Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 14 八月 2024 10:58:11 +0800 Subject: [PATCH] 界面微调 program 冲突 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs | 36 +++++++++++++++++++++++------------- 1 files changed, 23 insertions(+), 13 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs index ab51a5b..7f909d7 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs @@ -1,23 +1,23 @@ 锘縰sing DevExpress.Pdf.Native; using HStation.Service.Xhs; - namespace HStation.WinFrmUI { /// <summary> - /// + /// /// </summary> public class XhsProjectMgrViewModel { /// <summary> - /// + /// /// </summary> - public XhsProjectMgrViewModel() { } + public XhsProjectMgrViewModel() + { } /// <summary> - /// + /// /// </summary> - public XhsProjectMgrViewModel(XhsProjectDto project) + public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project) { this.ID = project.ID; this.ParentID = project.ParentID; @@ -32,11 +32,25 @@ } /// <summary> - /// + /// /// </summary> - public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project) + public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool hasLocation) : this(project) { this.HasLocation = hasLocation; + } + + public void Reset(Vmo.Xhs.XhsProjectExtensions project) + { + this.ID = project.ID; + this.ParentID = project.ParentID; + this.NO = project.NO; + this.Name = project.Name; + this.Address = project.Address; + this.Customer = project.Customer; + this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags); + this.TagName = project.TagName; + this.SortCode = project.SortCode; + this.Description = project.Description; } /// <summary> @@ -122,9 +136,5 @@ /// </summary> [Display(Name = "瀹氫綅")] public bool HasLocation { get; set; } - - - - } -} +} \ No newline at end of file -- Gitblit v1.9.3