From 7b8ae93d47186c442ff890a1a83d108f115924c7 Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期一, 24 三月 2025 17:25:14 +0800 Subject: [PATCH] 快速建模,模型编辑 差不多 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyViewModel.cs | 84 +++++++++++++++++++++++++++++------------ 1 files changed, 59 insertions(+), 25 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyViewModel.cs index 98d5c69..fb911ab 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/01-home/03-property/HomeXhsProjectPropertyViewModel.cs @@ -1,30 +1,37 @@ 锘縩amespace HStation.WinFrmUI { /// <summary> - /// + /// /// </summary> [TypeConverter(typeof(PropertySorter))] public class HomeXhsProjectPropertyViewModel { /// <summary> - /// + /// /// </summary> - public HomeXhsProjectPropertyViewModel() { } + public HomeXhsProjectPropertyViewModel() + { } /// <summary> - /// + /// /// </summary> - public HomeXhsProjectPropertyViewModel(XhsProjectStdDto rhs) + public HomeXhsProjectPropertyViewModel(XhsProjectVmo rhs) { this.NO = rhs.NO; this.Name = rhs.Name; - this.PublishStatus = rhs.PublishStatus; + this.Address = rhs.Address; + this.Customer = rhs.Customer; + this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); + this.TagName = rhs.TagName; + this.Description = rhs.Description; + + this.Project = rhs; } /// <summary> /// 缂栧彿 /// </summary> - [DisplayName("缂栧彿")] + [DisplayName("椤圭洰缂栧彿")] [Category("鍩烘湰淇℃伅")] [PropertyOrder(1)] [Browsable(true)] @@ -33,36 +40,63 @@ /// <summary> /// 鍚嶇О /// </summary> - [DisplayName("鍚嶇О")] + [DisplayName("椤圭洰鍚嶇О")] [Category("鍩烘湰淇℃伅")] [PropertyOrder(2)] [Browsable(true)] public string Name { get; set; } /// <summary> - /// 鍙戝竷鐘舵�� + /// 璇︾粏鍦板潃 /// </summary> - [DisplayName("鍙戝竷鐘舵��")] + [DisplayName("璇︾粏鍦板潃")] [Category("鍩烘湰淇℃伅")] - [PropertyOrder(3)] + [PropertyOrder(6)] + [MultiText] [Browsable(true)] - public ePublishStatus PublishStatus { get; set; } + public string Address { get; set; } + /// <summary> + /// 瀹㈡埛鍚嶇О + /// </summary> + [DisplayName("瀹㈡埛鍚嶇О")] + [Category("鍩烘湰淇℃伅")] + [PropertyOrder(7)] + [Browsable(true)] + public string Customer { get; set; } + /// <summary> + /// 鏍囩 + /// </summary> + [DisplayName("鏍囩")] + [Category("鍩烘湰淇℃伅")] + [PropertyOrder(8)] + [Browsable(true)] + public string Flags { get; set; } + /// <summary> + /// 鏍囧織 + /// </summary> + [DisplayName("鏍囧織")] + [Category("鍩烘湰淇℃伅")] + [PropertyOrder(9)] + [Browsable(true)] + public string TagName { get; set; } + /// <summary> + /// 璇存槑 + /// </summary> + [DisplayName("璇存槑")] + [Category("鍩烘湰淇℃伅")] + [PropertyOrder(10)] + [Browsable(true)] + [MultiText] + public string Description { get; set; } - - - - - - - - - - - - + /// <summary> + /// + /// </summary> + [Browsable(false)] + public XhsProjectVmo Project { get; set; } } -} +} \ No newline at end of file -- Gitblit v1.9.3