lixiaojun
2024-09-11 ec0d0b6f8e3ac7791c736ae8aad69c4a1587cad9
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
@@ -1,5 +1,6 @@
using DevExpress.Pdf.Native;
using HStation.Service.Xhs;
using HStation.Vmo;
namespace HStation.WinFrmUI
{
@@ -71,7 +72,7 @@
            Noupload,
        }
        public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool IsHaveBimface, int BimfaceState, Yw.Vmo.Map.MapInfo mapInfo)
        public XhsProjectMgrViewModel(XhsProjectExtensionsVmo project, bool IsHaveBimface, int BimfaceState, Yw.Vmo.Map.MapInfo mapInfo)
        {
            this.ID = project.ID;
            this.ParentID = project.ParentID;
@@ -81,6 +82,8 @@
            {
                this.Address = Yw.Model.Map.Marker.ToModel(mapInfo.Position).Address;
            }
            this.CreateTime = project.NO.Substring(4, 10);
            this.Customer = project.Customer;
            this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags);
            this.TagName = project.TagName;
@@ -90,7 +93,7 @@
            this.ModelState = (eFileStatus)BimfaceState;
        }
        public void Reset(Vmo.Xhs.XhsProjectExtensions project)
        public void Reset(XhsProjectExtensionsVmo project)
        {
            this.ID = project.ID;
            this.ParentID = project.ParentID;
@@ -104,10 +107,25 @@
            this.Description = project.Description;
        }
        public void Reset(XhsProjectMgrViewModel project, int BimfaceState)
        {
            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.TagName = project.TagName;
            this.SortCode = project.SortCode;
            this.Description = project.Description;
            this.ModelState = (eFileStatus)BimfaceState;
        }
        public XhsProjectMgrViewModel(HStation.WinFrmUI.ImportXhsProjectViewModel project, int BimfaceState)
        {
            this.ID = (long)project.ProjectID;
            this.NO = project.NO;
            this.CreateTime = project.NO.Substring(4, 10);
            this.Name = project.Name;
            this.Address = project.Address;
            this.Customer = project.Customer;
@@ -165,6 +183,12 @@
        public string Address { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public string CreateTime { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        [Display(Name = "客户名称")]