From 67abe8d2af8cf0a21d915ed62dcc4c738e9adcbc Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 30 八月 2024 18:39:00 +0800 Subject: [PATCH] 增加httpclient --- WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/00-viewModel/SysPropViewModel.cs | 89 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 84 insertions(+), 5 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/00-viewModel/SysPropViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/00-viewModel/SysPropViewModel.cs index 67bb3ba..fe2d3be 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/00-viewModel/SysPropViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic/02-SysPropManage/00-viewModel/SysPropViewModel.cs @@ -1,17 +1,45 @@ 锘縰sing Yw.Dto; +using Yw.Vmo.Core; namespace HStation.WinFrmUI.Basic { - public class SysPropViewModel : Yw.Dto.SysPropDto + public class SysPropViewModel { - public SysPropViewModel(SysPropDto rhs) + public SysPropViewModel(Yw.Vmo.SysProp rhs) { ID = rhs.ID; GroupID = rhs.GroupID; TypeID = rhs.TypeID; Name = rhs.Name; Code = rhs.Code; - Format = rhs.Format; + if (rhs.Format == Yw.Vmo.Core.ePropFormat.Bigint) + { + this.FormatDisPlayName = "闀挎暣鏁�"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Integer) + { + this.FormatDisPlayName = "鏁存暟"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.MultiText) + { + this.FormatDisPlayName = "澶氭枃鏈�"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Time) + { + this.FormatDisPlayName = "鏃堕棿"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Numeric) + { + this.FormatDisPlayName = "鏁板��"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Text) + { + this.FormatDisPlayName = "鏂囨湰"; + } + else + { + this.FormatDisPlayName = "甯冨皵"; + } UnitName = rhs.UnitName; IsNull = rhs.IsNull; DefaultValue = rhs.DefaultValue; @@ -19,12 +47,39 @@ Description = rhs.Description; } - public void Reset(UpdateSysPropInput rhs) + public void Reset(Yw.Vmo.SysProp rhs) { ID = rhs.ID; Name = rhs.Name; Code = rhs.Code; - Format = rhs.Format; + if (rhs.Format == Yw.Vmo.Core.ePropFormat.Bigint) + { + this.FormatDisPlayName = "闀挎暣鏁�"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Integer) + { + this.FormatDisPlayName = "鏁存暟"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.MultiText) + { + this.FormatDisPlayName = "澶氭枃鏈�"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Time) + { + this.FormatDisPlayName = "鏃堕棿"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Numeric) + { + this.FormatDisPlayName = "鏁板��"; + } + else if (rhs.Format == Yw.Vmo.Core.ePropFormat.Text) + { + this.FormatDisPlayName = "鏂囨湰"; + } + else + { + this.FormatDisPlayName = "甯冨皵"; + } UnitName = rhs.UnitName; IsNull = rhs.IsNull; DefaultValue = rhs.DefaultValue; @@ -32,5 +87,29 @@ } public string ExtendTypeDisPlayName { get; set; } + + public string FormatDisPlayName { get; set; } + + public long ID { get; set; } + + public long GroupID { get; set; } + + public long TypeID { get; set; } + + public string Name { get; set; } + + public string Code { get; set; } + + public ePropFormat Format { get; set; } + + public string UnitName { get; set; } + + public bool IsNull { get; set; } + + public string DefaultValue { get; set; } + + public int SortCode { get; set; } + + public string Description { get; set; } } } \ No newline at end of file -- Gitblit v1.9.3