diff --git a/MECF.Framework.Common/Aitex/Core/Common/DeviceData/GasUseData.cs b/MECF.Framework.Common/Aitex/Core/Common/DeviceData/GasUseData.cs new file mode 100644 index 0000000..8c9711f --- /dev/null +++ b/MECF.Framework.Common/Aitex/Core/Common/DeviceData/GasUseData.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MECF.Framework.Common.Aitex.Core.Common.DeviceData +{ + /// + /// 气体流量实体对象 + /// + public class GasUseData + { + /// + /// 气体名称 + /// + public string Name { get; set; } + private double _runVolume; + /// + /// 气体Run的用量 + /// + public double RunVolume + { + get { return _runVolume; } + set + { + _runVolume = value; + Volume = _runVolume + _ventVolume; + } + } + private double _ventVolume; + /// + /// 气体Vent用量 + /// + public double VentVolume + { + get { return _ventVolume; } + set + { + _ventVolume = value; + Volume = _runVolume + _ventVolume; + } + } + /// + /// 气体用量总和 + /// + public double Volume { get; set; } + } +} diff --git a/MECF.Framework.Common/Aitex/Core/Common/DeviceData/RealtimeGasFlowTrueTableRow.cs b/MECF.Framework.Common/Aitex/Core/Common/DeviceData/RealtimeGasFlowTrueTableRow.cs new file mode 100644 index 0000000..0021217 --- /dev/null +++ b/MECF.Framework.Common/Aitex/Core/Common/DeviceData/RealtimeGasFlowTrueTableRow.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MECF.Framework.Common.Aitex.Core.Common.DeviceData +{ + /// + /// 真值表配置的名称和值对象,对应单个单元格 + /// + public class NameValue + { + /// + /// 控制项的名称 + /// + public string Name { get; set; } + /// + /// 控制项的状态 + /// + public double Value { get; set; } + /// + /// /实际控制者,根据此名称从系统中Get对应对象 + /// + public string ControlName { get; set; } + } + /// + /// 真值表配置一行对象 + /// + public class RealtimeGasFlowTrueTableRow + { + public List InputList { get; set; } = new List(); + public List OutputList { get; set; } = new List(); + } +} diff --git a/MECF.Framework.Common/MECF.Framework.Common.csproj b/MECF.Framework.Common/MECF.Framework.Common.csproj index c7ad764..9ba7840 100644 --- a/MECF.Framework.Common/MECF.Framework.Common.csproj +++ b/MECF.Framework.Common/MECF.Framework.Common.csproj @@ -238,6 +238,7 @@ + @@ -254,6 +255,7 @@ + @@ -968,5 +970,8 @@ + + + \ No newline at end of file