From a9d1161b1df96e7ddad566335989a1444e433ef5 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 28 三月 2023 11:54:45 +0800
Subject: [PATCH] 2023年03月28日11:52:02

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
index 4d994e1..22e489a 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs
@@ -311,7 +311,7 @@
                                         }
                                     }
                                     break;
-                                case SPK.SensorEnvironment:
+                                case SPK.SensorEnvironment:case SPK.SensorEnvironmentHailin:
                                 case SPK.SensorEnvironment2:
                                 case SPK.SensorEnvironment3:
                                     {
@@ -386,6 +386,7 @@
 
                                     }
                                     break;
+                                case SPK.SensorPm10:
                                 case SPK.SensorCO2:
                                 case SPK.SensorPm25:
                                 case SPK.SensorTVOC:
@@ -671,7 +672,7 @@
                             {
                                 //鐢╯id鎵惧埌璁惧锛�
                                 var device = LogicMethod.Current.GetDevice(inputCondition.sid);
-                                if (device.spk == SPK.SensorEnvironment
+                                if (device.spk == SPK.SensorEnvironment || device.spk == SPK.SensorEnvironmentHailin
                                 || device.spk == SPK.SensorEnvironment2
                                 || device.spk == SPK.SensorEnvironment3
                                 )
@@ -756,6 +757,12 @@
                                 {
 
                                     this.SensorView(thisView, device, "co2", indexVulae);
+
+                                }
+                                else if (device.spk == SPK.SensorPm10)
+                                {
+
+                                    this.SensorView(thisView, device, "pm10", indexVulae);
 
                                 }
                                 else if (device.spk == SPK.SensorPm25)
@@ -2513,6 +2520,11 @@
                             strtext = Language.StringByID(StringId.co2) + new PublicInterface { }.GetString("co2", value);
                         }
                         break;
+                    case "pm10":
+                        {
+                            strtext = Language.StringByID(StringId.pm10) + new PublicInterface { }.GetString("pm25", value);
+                        }
+                        break;
                     case "pm25":
                         {
                             strtext = Language.StringByID(StringId.pm25) + new PublicInterface { }.GetString("pm25", value);
@@ -2539,8 +2551,9 @@
             Input inputedit = Logic.currlogic.input[indexVulae];
             ///鐘舵�佸��
             string stateValue = "";
-            foreach (var dic in inputedit.condition)
+            for (int i=0;i<inputedit.condition.Count;i++)
             {
+                var dic = inputedit.condition[i];
                 string comparator = dic["comparator"];
                 stateValue = dic["value"];
                 switch (key)
@@ -2579,6 +2592,11 @@
                             ConditionDeviceFunList.Current.PmCo2TvocAction(thisView, device, "co2", StringId.co2, indexVulae, true, stateValue);
                         }
                         break;
+                    case "pm10":
+                        {
+                            ConditionDeviceFunList.Current.PmCo2TvocAction(thisView, device, "pm10", StringId.pm10, indexVulae, true, stateValue);
+                        }
+                        break;
                     case "pm25":
                         {
                             ConditionDeviceFunList.Current.PmCo2TvocAction(thisView, device, "pm25", StringId.pm25, indexVulae, true, stateValue);

--
Gitblit v1.8.0