소스 검색

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

zhangjiaxin 1 주 전
부모
커밋
cbe2628b47
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      OTSIncAReportApp/3-ServiceCenter/DataOperation/DataAccess/ParticleData.cs

+ 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)