浏览代码

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

zhangjiaxin 3 年之前
父节点
当前提交
d2de4c9de8
共有 1 个文件被更改,包括 5 次插入1 次删除
  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);
             DataTable particles = fielddata.GetInfoForPartucleDevidePage(PageIndex, pageSize, OrderFunction, condition);
-            //PageSize = particles.Rows.Count;
+            if(PageSize==-1)
+            {
+                PageSize = particles.Rows.Count;
+            }
+
             if (particles == null)
             {
                 return;