Browse Source

修改报告比例因子显示错误的bug

zhangjiaxin 2 weeks ago
parent
commit
6047c39601
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OTSIncAReportApp/1-UI/Control_Grids/ResultGrid.cs

+ 2 - 2
OTSIncAReportApp/1-UI/Control_Grids/ResultGrid.cs

@@ -160,7 +160,7 @@ namespace OTSIncAReportGrids
                 }
             }
 
-            double ratio = Math.Round(particleArea / filedsArea*double.Parse(sizestr),3);
+            double ratio = Math.Round(particleArea / (filedsArea * 1000000) *double.Parse(sizestr),3);
 
             keyValues.Add(table["col2"].ToString(), star.ToString("yyyy-MM-dd HH:mm:ss"));
             keyValues.Add(table["col3"].ToString(), end.ToString("yyyy-MM-dd HH:mm:ss"));
@@ -297,7 +297,7 @@ namespace OTSIncAReportGrids
                 }
             }
 
-            double ratio = Math.Round(particleArea / filedsArea * double.Parse(sizestr), 3);
+            double ratio = Math.Round(particleArea / (filedsArea * 1000000) * double.Parse(sizestr), 3);
 
             keyValues.Add(table["col2"].ToString(), star.ToString("yyyy-MM-dd HH:mm:ss"));
             keyValues.Add(table["col3"].ToString(), end.ToString("yyyy-MM-dd HH:mm:ss"));