lixiaojun
2024-08-06 62f18f31a10fd5597b45151f688e5189eba888fd
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; }