Pārlūkot izejas kodu

修复报告程序三元相图报错的问题

zhangjiaxin 3 gadi atpakaļ
vecāks
revīzija
261b721251

+ 1 - 1
OTSIncAReportApp/1-UI/Control_ECharts/EChart_Trianglediagram.cs

@@ -279,7 +279,7 @@ namespace OTSIncAReportApp.Control_ECharts
                 case "DMIN":
                     po = "DMIN";
                     break;
-                case "Area":
+                case "CIRCLE":
                     po = "Area";
                     break;
                 case "FERET":

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

@@ -207,7 +207,10 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
             }
 
             DataTable DT = dbHelper.ExecuteDataTable(sqlp, null);
-
+            for (int i = 0; i < DT.Rows.Count; i++)
+            {
+                DT.Rows[i]["Area"] = Math.Sqrt((double)DT.Rows[i]["Area"] / Math.PI) * 2;
+            }
             return DT;
         }