Просмотр исходного кода

Report program granularity settings for bug handling with display of 0 for large particle sizes above 1000

zhangjiaxin 2 месяцев назад
Родитель
Сommit
429b096f9e

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

@@ -261,7 +261,8 @@ namespace OTSIncAReportGrids
                     string d2 = colid[j].Split('~')[1];
                     if (d2 == "MAX")
                     {
-                        d2 = "999";
+                        int maxint = int.MaxValue;
+                        d2 = maxint.ToString();
                     }
                     DataRow[] datas = dtp.Select(getWhere(d2, d1, po, gridView.Rows[i].Cells[3].Value.ToString()));
                     gridView.Rows[i].Cells[j].Value = datas.Count();

+ 2 - 2
OTSIncAReportApp/1-UI/OTSReportExport/DataIntegration/BasicData.cs

@@ -303,7 +303,7 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
 						string d1 = sizeColumns[a].Split('≥')[1];
 						string d2;
 						if (a == sizeColumns.Count - 1)
-							d2 = "9999999999999";
+							d2 = int.MaxValue.ToString();
 						else
 							d2 = sizeColumns[a + 1].Split('≥')[1];
 
@@ -317,7 +317,7 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
 					{
 						string d1 = sizeColumns[a].Split('~')[0];
 						string d2 = sizeColumns[a].Split('~')[1];
-						if (d2 == "MAX") d2 = "999999999";
+						if (d2 == "MAX") d2 = int.MaxValue.ToString();
 						DataRow[] datas = dtp.Select(getWhere(d2, d1, measureCol, dt.Rows[i]["TypeId"].ToString()));
 						dr[sizeColumns[a]] = datas.Length;
 					}