duheng
2024-08-21 6c88a90d2330a27c0052a22538f6ebd6200faae7
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs
@@ -1,23 +1,23 @@
using 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, bool IsHaveBimface)
        {
            this.ID = project.ID;
            this.ParentID = project.ParentID;
@@ -29,14 +29,29 @@
            this.TagName = project.TagName;
            this.SortCode = project.SortCode;
            this.Description = project.Description;
            this.IsHaveBimface = IsHaveBimface;
        }
        /// <summary>
        ///
        /// </summary>
        public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project)
        /*        /// <summary>
                ///
                /// </summary>
                public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool hasLocation) : this(project)
                {
                    this.HasLocation = hasLocation;
                }*/
        public void Reset(Vmo.Xhs.XhsProjectExtensions project)
        {
            this.HasLocation = hasLocation;
            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>
@@ -94,6 +109,12 @@
        public string Customer { get; set; }
        /// <summary>
        /// 模型状态
        /// </summary>
        [Display(Name = "模型状态")]
        public int ModelState { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        [Display(Name = "标签")]
@@ -117,14 +138,15 @@
        [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 IsHaveBimface { get; set; }
    }
}
}