From fd681339c81201ed6fb3303647ecab89e3e6c0c1 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 17 七月 2024 09:50:11 +0800 Subject: [PATCH] 调度逻辑修改,新增笛卡尔积过滤循环 --- Test/IStation.Win/ViewModel/ModelValidViewModel.cs | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Test/IStation.Win/ViewModel/ModelValidViewModel.cs b/Test/IStation.Win/ViewModel/ModelValidViewModel.cs index 389354b..58151a7 100644 --- a/Test/IStation.Win/ViewModel/ModelValidViewModel.cs +++ b/Test/IStation.Win/ViewModel/ModelValidViewModel.cs @@ -8,38 +8,38 @@ public class ModelValidViewModel { [Display(Name = "鏃堕棿")] - public DateTime Time { get; set; } - - [Display(Name = "鍊肩被鍨�")] + public DateTime Time { get; set; } + + [Display(Name = "鍊肩被鍨�")] public eValueType ValueType { get; set; } - - [Display(Name = "妯″瀷鏍囪瘑")] + + [Display(Name = "妯″瀷鏍囪瘑")] public string ModelId { get; set; } - - [Display(Name = "Scada鏍囪瘑")] + + [Display(Name = "Scada鏍囪瘑")] public string ScadaId { get; set; } - - [Display(Name = "妯″瀷鍊�")] - public double? ModeValue { get; set; } - - [Display(Name = "Scada鍊�")] + + [Display(Name = "妯″瀷鍊�")] + public double? ModelValue { get; set; } + + [Display(Name = "Scada鍊�")] public double? ScadaValue { get; set; } - - [Display(Name = "宸��")] + + [Display(Name = "宸��")] public double? DifferenceValue { get; set; } public void Round() { - if (this.ModeValue.HasValue) + if (this.ModelValue.HasValue) if (this.ValueType == eValueType.Head) { - this.ModeValue = Math.Round(this.ModeValue.Value, 5); + this.ModelValue = Math.Round(this.ModelValue.Value, 5); } else { - this.ModeValue = Math.Round(this.ModeValue.Value, 2); + this.ModelValue = Math.Round(this.ModelValue.Value, 2); } if (this.ScadaValue.HasValue) -- Gitblit v1.9.3