lixiaojun
2024-12-05 fc818ac66ff6b30f40252fcc28b92970d62a765a
WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/01-import/00-core/ImportXhsProjectViewModel.cs
@@ -5,17 +5,65 @@
    /// </summary>
    public class ImportXhsProjectViewModel
    {
        /// <summary>
        ///
        /// </summary>
        public ImportXhsProjectViewModel() { }
        /// <summary>
        ///
        /// </summary>
        public ImportXhsProjectViewModel(HStation.Vmo.XhsProjectExtensionsVmo project)
        {
            this.ProjectID = project.ID;
            this.NO = project.NO;
            this.Name = project.Name;
            this.Address = project.Address;
            this.Customer = project.Customer;
            this.Flags = project.Flags;
            this.TagName = project.TagName;
            this.Description = project.Description;
            this.ProjectSiteID = project.SiteList?.FirstOrDefault()?.ID;
            this.Project = project;
        }
        /// <summary>
        ///
        /// </summary>
        public ImportXhsProjectViewModel(HStation.Vmo.XhsProjectExtensionsVmo project, Yw.Vmo.MapInfoVmo mapInfo) : this(project)
        {
            this.MapInfoID = mapInfo.ID;
            this.Location = Yw.Model.Map.Marker.ToModel(mapInfo.Position);
            this.MapInfo = mapInfo;
        }
        #region 第一步选择压缩文件
        /// <summary>
        /// 压缩文件
        /// 是否为本地
        /// </summary>
        public string ZipFile { get; set; }
        public bool IsLocal { get; set; }
        /// <summary>
        /// 本地压缩文件
        /// </summary>
        public string LocalZipFile { get; set; }
        /// <summary>
        /// 云文件
        /// </summary>
        public TransferRevitFileVmo TransferRevitFile { get; set; }
        #endregion
        #region 第二步录入项目信息
        /// <summary>
        /// 项目id
        /// </summary>
        public long? ProjectID { get; set; }
        /// <summary>
        /// 编号
@@ -52,6 +100,16 @@
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 项目站id
        /// </summary>
        public long? ProjectSiteID { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        public HStation.Vmo.XhsProjectExtensionsVmo Project { get; set; }
        #endregion
        #region 第三步设置地图位置
@@ -61,6 +119,66 @@
        /// </summary>
        public Yw.Model.Map.Marker Location { get; set; }
        /// <summary>
        /// 地图信息id
        /// </summary>
        public long? MapInfoID { get; set; }
        /// <summary>
        /// 位置信息
        /// </summary>
        public Yw.Vmo.MapInfoVmo MapInfo { get; set; }
        #endregion
        #region 第四步自动生成项目
        /// <summary>
        ///
        /// </summary>
        public HStation.Model.RevitModel RevitModel { get; set; }
        /// <summary>
        /// 水力模型id
        /// </summary>
        public long? HydroID { get; set; }
        /// <summary>
        /// 水力模型关联id
        /// </summary>
        public long? HydroRelationID { get; set; }
        /// <summary>
        /// bimfaceid
        /// </summary>
        public long? BimfaceId { get; set; }
        /// <summary>
        /// bimface 文件id
        /// </summary>
        public long? BimfaceFileID { get; set; }
        /// <summary>
        /// bimface 文件关联id
        /// </summary>
        public long? BimfaceFileRelationID { get; set; }
        /// <summary>
        /// Bimface 转换成功
        /// </summary>
        public bool BimfaceConverted { get; set; }
        #endregion
        #region 第五步项目导入完成
        /// <summary>
        /// 是否完成
        /// </summary>
        public bool IsCompleted { get; set; }
        #endregion