Browse Source

修改报告程序颗粒列表选择All时每页颗粒数量显示错误的bug

zhangjiaxin 3 years ago
parent
commit
d2de4c9de8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      OTSIncAReportApp/Control_Grids/ParticlesGridDevidePage.cs

+ 5 - 1
OTSIncAReportApp/Control_Grids/ParticlesGridDevidePage.cs

@@ -531,7 +531,11 @@ namespace OTSIncAReportGrids
 
 
             ParticleData fielddata = new ParticleData(result.FilePath);
             ParticleData fielddata = new ParticleData(result.FilePath);
             DataTable particles = fielddata.GetInfoForPartucleDevidePage(PageIndex, pageSize, OrderFunction, condition);
             DataTable particles = fielddata.GetInfoForPartucleDevidePage(PageIndex, pageSize, OrderFunction, condition);
-            //PageSize = particles.Rows.Count;
+            if(PageSize==-1)
+            {
+                PageSize = particles.Rows.Count;
+            }
+
             if (particles == null)
             if (particles == null)
             {
             {
                 return;
                 return;