| | |
| | | using DevExpress.Pdf.Native; |
| | | using HStation.Service.Xhs; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | /// <summary> |
| | | /// |
| | |
| | | public XhsProjectMgrViewModel() |
| | | { } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project) |
| | | public enum eFileStatus |
| | | { |
| | | /// <summary> |
| | | /// 上传中 |
| | | /// </summary> |
| | | [Display(Name = "上传中")] |
| | | Uploading, |
| | | |
| | | /// <summary> |
| | | /// 上传成功 |
| | | /// </summary> |
| | | [Display(Name = "上传成功")] |
| | | UploadSucceed, |
| | | |
| | | /// <summary> |
| | | /// 转换中 |
| | | /// </summary> |
| | | [Display(Name = "转换中")] |
| | | Converting, |
| | | |
| | | /// <summary> |
| | | /// 转换成功 |
| | | /// </summary> |
| | | [Display(Name = "转换成功")] |
| | | ConvertSucceed, |
| | | |
| | | /// <summary> |
| | | /// 对比中 |
| | | /// </summary> |
| | | [Display(Name = "对比中")] |
| | | Comparing, |
| | | |
| | | /// <summary> |
| | | /// 对比成功 |
| | | /// </summary> |
| | | [Display(Name = "对比成功")] |
| | | CompareSucceed, |
| | | |
| | | /// <summary> |
| | | /// 集成中 |
| | | /// </summary> |
| | | [Display(Name = "集成中")] |
| | | Integrating, |
| | | |
| | | /// <summary> |
| | | /// 集成成功 |
| | | /// </summary> |
| | | [Display(Name = "集成成功")] |
| | | IntegrateSucceed, |
| | | |
| | | /// <summary> |
| | | /// 未上传 |
| | | /// </summary> |
| | | [Display(Name = "未上传")] |
| | | Noupload, |
| | | } |
| | | |
| | | public XhsProjectMgrViewModel(XhsProjectExtensionsVmo project, bool IsHaveBimface, int BimfaceState, Yw.Vmo.MapInfoVmo mapInfo) |
| | | { |
| | | this.ID = project.ID; |
| | | this.ParentID = project.ParentID; |
| | | this.NO = project.NO; |
| | | this.Name = project.Name; |
| | | if (mapInfo != null) |
| | | { |
| | | 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; |
| | | this.SortCode = project.SortCode; |
| | | this.Description = project.Description; |
| | | this.IsHaveBimface = IsHaveBimface; |
| | | this.ModelState = (eFileStatus)BimfaceState; |
| | | } |
| | | |
| | | public void Reset(XhsProjectExtensionsVmo project) |
| | | { |
| | | this.ID = project.ID; |
| | | this.ParentID = project.ParentID; |
| | |
| | | this.Description = project.Description; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool hasLocation) : this(project) |
| | | { |
| | | this.HasLocation = hasLocation; |
| | | } |
| | | |
| | | public void Reset(Vmo.Xhs.XhsProjectExtensions project) |
| | | public void Reset(XhsProjectMgrViewModel project, int BimfaceState) |
| | | { |
| | | this.ID = project.ID; |
| | | this.ParentID = project.ParentID; |
| | |
| | | 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; |
| | | 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; |
| | | this.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags); |
| | | this.TagName = project.TagName; |
| | | this.Description = project.Description; |
| | | } |
| | | |
| | |
| | | public string Address { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 创建时间 |
| | | /// </summary> |
| | | [Display(Name = "创建时间")] |
| | | public string CreateTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 客户 |
| | | /// </summary> |
| | | [Display(Name = "客户名称")] |
| | | public string Customer { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 模型状态 |
| | | /// </summary> |
| | | [Display(Name = "模型状态")] |
| | | public eFileStatus? ModelState { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标签 |
| | |
| | | [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; } |
| | | } |
| | | } |