duheng
2024-12-05 b26ae60e85d4a03a2426e6607e7afe89e1c10a5f
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
@@ -1,7 +1,4 @@
using DevExpress.Pdf.Native;
using HStation.Service.Xhs;
namespace HStation.WinFrmUI
namespace HStation.WinFrmUI
{
    /// <summary>
    ///
@@ -11,8 +8,7 @@
        /// <summary>
        ///
        /// </summary>
        public XhsProjectMgrViewModel()
        { }
        public XhsProjectMgrViewModel() { }
        public enum eFileStatus
        {
@@ -71,7 +67,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.MapInfoVmo mapInfo)
        {
            this.ID = project.ID;
            this.ParentID = project.ParentID;
@@ -81,6 +77,7 @@
            {
                this.Address = Yw.Model.Map.Marker.ToModel(mapInfo.Position).Address;
            }
            this.Customer = project.Customer;
            this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags);
            this.TagName = project.TagName;
@@ -90,7 +87,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;
@@ -102,6 +99,20 @@
            this.TagName = project.TagName;
            this.SortCode = project.SortCode;
            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)
@@ -141,34 +152,16 @@
        public string Name { get; set; }
        /// <summary>
        /// 生效时间
        /// 客户
        /// </summary>
        [Display(Name = "生效时间")]
        public string StartTime { get; set; }
        /// <summary>
        /// 失效时间
        /// </summary>
        [Display(Name = "失效时间")]
        public string EndTime { get; set; }
        /// <summary>
        /// 发布状态
        /// </summary>
        [Display(Name = "发布状态")]
        public string PublishStatus { get; set; }
        [Display(Name = "客户名称")]
        public string Customer { get; set; }
        /// <summary>
        /// 详细地址
        /// </summary>
        [Display(Name = "详细地址")]
        public string Address { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        [Display(Name = "客户名称")]
        public string Customer { get; set; }
        /// <summary>
        /// 模型状态
@@ -200,11 +193,14 @@
        [Display(Name = "说明")]
        public string Description { get; set; }
        /*      /// <summary>
              /// 定位
              /// </summary>
              [Display(Name = "定位")]
              public bool HasLocation { get; set; }*/
        /// <summary>
        /// 定位
        /// </summary>
        [Display(Name = "定位")]
        public bool HasLocation { get; set; }
        public bool HasModel { get; set; }
        /// <summary>
        /// 是否存在三维模型