namespace HStation.WinFrmUI { /// /// 项目导入view model /// public class ImportXhsProjectViewModel { /// /// /// public ImportXhsProjectViewModel() { } /// /// /// 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; } /// /// /// 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 第一步选择压缩文件 /// /// 是否为本地 /// public bool IsLocal { get; set; } /// /// 本地压缩文件 /// public string LocalZipFile { get; set; } /// /// 云文件 /// public TransferRevitFileVmo TransferRevitFile { get; set; } #endregion #region 第二步录入项目信息 /// /// 项目id /// public long? ProjectID { get; set; } /// /// 编号 /// public string NO { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 详细地址 /// public string Address { get; set; } /// /// 客户 /// public string Customer { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// 项目站id /// public long? ProjectSiteID { get; set; } /// /// 项目 /// public HStation.Vmo.XhsProjectExtensionsVmo Project { get; set; } #endregion #region 第三步设置地图位置 /// /// 位置 /// public Yw.Model.Map.Marker Location { get; set; } /// /// 地图信息id /// public long? MapInfoID { get; set; } /// /// 位置信息 /// public Yw.Vmo.MapInfoVmo MapInfo { get; set; } #endregion #region 第四步自动生成项目 /// /// /// public HStation.Model.RevitModel RevitModel { get; set; } /// /// 水力模型id /// public long? HydroID { get; set; } /// /// 水力模型关联id /// public long? HydroRelationID { get; set; } /// /// bimfaceid /// public long? BimfaceId { get; set; } /// /// bimface 文件id /// public long? BimfaceFileID { get; set; } /// /// bimface 文件关联id /// public long? BimfaceFileRelationID { get; set; } /// /// Bimface 转换成功 /// public bool BimfaceConverted { get; set; } #endregion #region 第五步项目导入完成 /// /// 是否完成 /// public bool IsCompleted { get; set; } #endregion } }