From d3cf19f5fc555eb53d74ca08f157cca5c3c8311c Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 14 八月 2024 10:57:20 +0800 Subject: [PATCH] 界面调整 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 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 0dc9ecc..ab51a5b 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 @@ -14,21 +14,29 @@ /// </summary> public XhsProjectMgrViewModel() { } + /// <summary> + /// + /// </summary> public XhsProjectMgrViewModel(XhsProjectDto project) { this.ID = project.ID; this.ParentID = project.ParentID; this.NO = project.NO; this.Name = project.Name; - this.StartTime = project.StartTime?.ToStandardString(); - this.EndTime = project?.EndTime?.ToStandardString(); - this.PublishStatus = project.PublishStatus.GetDisplayText(); 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> + /// + /// </summary> + public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project) + { + this.HasLocation = hasLocation; } /// <summary> @@ -109,6 +117,12 @@ [Display(Name = "璇存槑")] public string Description { get; set; } + /// <summary> + /// 瀹氫綅 + /// </summary> + [Display(Name = "瀹氫綅")] + public bool HasLocation { get; set; } + -- Gitblit v1.9.3