From 9160fed58eafb90fceb229ea20dfb672541b134f Mon Sep 17 00:00:00 2001 From: hanqiangqiang <1364346467@qq.com> Date: Fri, 30 Jun 2023 17:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=88=9B=E5=BB=BA=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core/Common/DeviceData/GasUseData.cs | 49 +++++++++++++++++++ .../DeviceData/RealtimeGasFlowTrueTableRow.cs | 35 +++++++++++++ .../MECF.Framework.Common.csproj | 5 ++ 3 files changed, 89 insertions(+) create mode 100644 MECF.Framework.Common/Aitex/Core/Common/DeviceData/GasUseData.cs create mode 100644 MECF.Framework.Common/Aitex/Core/Common/DeviceData/RealtimeGasFlowTrueTableRow.cs 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