From 0859032a8242f870f2e717b7aeb8de42c2c86155 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 13 八月 2024 18:35:06 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- 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