Browse Source

修改颗粒列表一定情况下导出进度条101的问题

cxs 11 months ago
parent
commit
55c7bc7b54

+ 3 - 2
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePage.cs

@@ -1874,8 +1874,9 @@ namespace OTSIncAReportGrids
                 {
                     if (dgV_ParticlesDevidePage.Rows.Count > 100)
                     {
+
                         if (i_row%(dgV_ParticlesDevidePage.Rows.Count / 100) == 0)
-                            m_frm_userprogress.SetProgressValueAndText(((i_row / dgV_ParticlesDevidePage.Rows.Count) / 100), "export:" + i_row + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
+                            m_frm_userprogress.SetProgressValueAndText(i_row * 100/ dgV_ParticlesDevidePage.Rows.Count, "export:" + i_row + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
                     }
                     row = sheet.CreateRow(2 + i_row);
                     row.Height = 45 * 20;
@@ -2007,7 +2008,7 @@ namespace OTSIncAReportGrids
                 file.Close();
 
                 //MessageBox.Show("Export complete!");
-                //m_frm_userprogress.SetProgressValueAndText(100, "export:" + dgV_ParticlesDevidePage.Rows.Count + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
+                m_frm_userprogress.SetProgressValueAndText(100, "export:" + dgV_ParticlesDevidePage.Rows.Count + "/total:" + dgV_ParticlesDevidePage.Rows.Count);
                 //加载完成,关闭进度条
                 m_frm_userprogress.Close();