From b6f84233ce512c9f0f65d550b3892f4ba6c8afa5 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 23 八月 2024 10:01:10 +0800 Subject: [PATCH] 提交代码 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs index d6d40ab..fb78010 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/02-project/03-mgr/XhsProjectMgrViewModel.cs @@ -30,15 +30,24 @@ this.SortCode = project.SortCode; this.Description = project.Description; this.IsHaveBimface = IsHaveBimface; + this.ModelState = Yw.WinFrmUI.Bimface.eFileStatus.ConvertSucceed; } - /* /// <summary> - /// - /// </summary> - public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool hasLocation) : this(project) - { - this.HasLocation = hasLocation; - }*/ + public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool IsHaveBimface, 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.Flags = Yw.Untity.FlagsHelper.ToString(project.Flags); + this.TagName = project.TagName; + this.SortCode = project.SortCode; + this.Description = project.Description; + this.IsHaveBimface = IsHaveBimface; + this.ModelState = (Yw.WinFrmUI.Bimface.eFileStatus)BimfaceState; + } public void Reset(Vmo.Xhs.XhsProjectExtensions project) { @@ -112,7 +121,7 @@ /// 妯″瀷鐘舵�� /// </summary> [Display(Name = "妯″瀷鐘舵��")] - public int ModelState { get; set; } + public Yw.WinFrmUI.Bimface.eFileStatus ModelState { get; set; } /// <summary> /// 鏍囩 -- Gitblit v1.9.3