namespace Yw.WinFrmUI { /// /// /// public class HydroMonitorValueViewModel { /// /// /// public HydroMonitorValueViewModel() { } /// /// /// public HydroMonitorValueViewModel(Yw.Vmo.HydroMonitorVmo vmo, Yw.Model.HydroVisualInfo visual) { this.VisualName = visual.Name; this.PropName = HydroMonitorPropHelper.GetName(vmo.PropName); this.MonitorValue = null; this.UnitName = HydroMonitorPropHelper.GetUnit(vmo.PropName); this.SortCode = vmo.SortCode; this.Description = vmo.Description; this.Vmo = vmo; } /// /// 构件 /// [DisplayName("构件")] public string VisualName { get; set; } /// /// 属性 /// [DisplayName("属性")] public string PropName { get; set; } /// /// 值 /// [DisplayName("值")] public double? MonitorValue { get; set; } /// /// 单位 /// [DisplayName("单位")] public string UnitName { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// [DisplayName("说明")] public string Description { get; set; } /// /// vmo /// public Yw.Vmo.HydroMonitorVmo Vmo { get; set; } } }