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 | 69 +++++++++++++++++++++++++--------- 1 files changed, 50 insertions(+), 19 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 ab51a5b..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 @@ -1,23 +1,23 @@ 锘縰sing 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,38 @@ this.TagName = project.TagName; this.SortCode = project.SortCode; this.Description = project.Description; + this.IsHaveBimface = IsHaveBimface; + this.ModelState = Yw.WinFrmUI.Bimface.eFileStatus.ConvertSucceed; } - /// <summary> - /// - /// </summary> - public XhsProjectMgrViewModel(XhsProjectDto project, bool hasLocation) : this(project) + public XhsProjectMgrViewModel(Vmo.Xhs.XhsProjectExtensions project, bool IsHaveBimface, int BimfaceState) { - 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; + this.IsHaveBimface = IsHaveBimface; + this.ModelState = (Yw.WinFrmUI.Bimface.eFileStatus)BimfaceState; + } + + public void Reset(Vmo.Xhs.XhsProjectExtensions project) + { + 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 +118,12 @@ public string Customer { get; set; } /// <summary> + /// 妯″瀷鐘舵�� + /// </summary> + [Display(Name = "妯″瀷鐘舵��")] + public Yw.WinFrmUI.Bimface.eFileStatus ModelState { get; set; } + + /// <summary> /// 鏍囩 /// </summary> [Display(Name = "鏍囩")] @@ -117,14 +147,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; } } -} +} \ No newline at end of file -- Gitblit v1.9.3