Browse Source

补丁(数据库中存在ParticleId列为-1,补丁修改剔除)

zhangjiaxin 1 week ago
parent
commit
cbe2628b47

+ 13 - 1
OTSIncAReportApp/3-ServiceCenter/DataOperation/DataAccess/ParticleData.cs

@@ -232,7 +232,19 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
                 DT.Rows[i]["ECD"] = Math.Sqrt((double)DT.Rows[i]["Area"] / Math.PI) * 2;
             }
 
-            return DT;
+            DataTable data = DT.Clone();
+
+			for (int i = 0; i < DT.Rows.Count; i++)
+            {
+                if (Convert.ToInt32(DT.Rows[i]["ParticleId"]) > -1)
+                {
+                    data.Rows.Add(DT.Rows[i].ItemArray);
+				}
+
+			}
+
+
+            return data;
         }
 
         public DataTable GetParticleAllforparticlelist(string fieldAndPartic)