Pārlūkot izejas kodu

1. 修复TM.ChamberPressure不记录的bug,初始原代码已做过滤

zhouhr 1 mēnesi atpakaļ
vecāks
revīzija
7fc13d0d48

+ 4 - 4
FrameworkLocal/Common/DataCollection/DataCollectionManager.cs

@@ -258,7 +258,7 @@ namespace Aitex.Core.RT.DataCollection
                         string preCreatedInsertSQL = string.Format("INSERT INTO \"{0}\"(\"time\" ", tableName);
                         foreach (var dataName in moduleDataItem[module].Keys)
                         {
-                            if (dataName.Contains("TM."))
+                            if (dataName.Contains("TM.") && dataName != "TM.ChamberPressure")
                                 continue;
                             preCreatedInsertSQL += string.Format(",\"{0}\"", dataName);
                         }
@@ -279,7 +279,7 @@ namespace Aitex.Core.RT.DataCollection
                             sb.Append(DateTime.Now.Ticks.ToString());
                             foreach (var dataName in moduleDataItem[module].Keys)
                             {
-                                if (dataName.Contains("TM."))
+                                if (dataName.Contains("TM.") && dataName != "TM.ChamberPressure")
                                     continue;
                                 sb.Append(",");
                                 var v1 = moduleDataItem[module][dataName].Invoke();
@@ -367,7 +367,7 @@ namespace Aitex.Core.RT.DataCollection
                 //table exist
                 foreach (var dataName in dataItem.Keys)
                 {
-                    if (dataName.Contains("TM."))
+                    if (dataName.Contains("TM.") && dataName != "TM.ChamberPressure")
                         continue;
 
                     if (!colNameList.Contains(dataName) )
@@ -412,7 +412,7 @@ namespace Aitex.Core.RT.DataCollection
                 string commentStr = "";
                 foreach (var dataName in dataItem.Keys)
                 {
-                    if (dataName.Contains("TM."))
+                    if (dataName.Contains("TM.") && dataName != "TM.ChamberPressure")
                         continue;
                     Type dataType = dataItem[dataName].Invoke().GetType();
                     if (dataType == typeof(Boolean))