using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.Calculation.DispatchAna.Model { /// /// /// public class CurrentRecordBundle { /// /// /// public class RecordValue { /// /// /// public RecordValue(double v) { this.Value = v; } /// /// /// /// public RecordValue(IStation.Model.MonitorBasicRecord m) { double vvv = 0; m.GetDataValue(-1,out vvv); this.Value = vvv; } /// /// /// /// /// /// public RecordValue(string name , IStation.Model.MonitorBasicRecord m, int RountNumber=-1) { this.Name = name; double vvv = 0; m.GetDataValue(RountNumber, out vvv); if (RountNumber >= 0) { this.Value = Math.Round( vvv, RountNumber); } else { this.Value = vvv; } } /// /// /// /// /// public RecordValue(string name, double v) { this.Name = name; this.Value = v; } /// /// /// public string Name { get; set; } /// /// / /// public double Value { get; set; } } /// /// 压力值类型 0:表示压力 1:表示扬程 /// public int PressValueType { get; set; } /// /// 流量 /// public List FlowList { get; set; } /// /// 压力/扬程 /// public List PressList { get; set; } /// /// 水位 /// public List WaterLevelList { get; set; } /// /// 阀门 /// public List VavleOpenList { get; set; } } }