Browse Source

Merge branch 'OTSRelease3_2' of http://36.129.169.60:30080/gogsadmin/OTS into OTSRelease3_2

zhangjiaxin 4 ngày trước cách đây
mục cha
commit
9b41ed6e10

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

@@ -1506,8 +1506,14 @@ namespace OTSIncAReportGrids
                         else
                         {
                             //非图像列
-
-                            cell.SetCellValue(dgV_ParticlesDevidePage[i_cell, i_row].Value.ToString());
+                            double dval = 0;
+                            if(double.TryParse(dgV_ParticlesDevidePage[i_cell, i_row].Value.ToString(), out dval))
+                            {
+                                cell.SetCellType(CellType.Numeric);
+                                cell.SetCellValue(dval);
+                            }
+                            else
+                                cell.SetCellValue(dgV_ParticlesDevidePage[i_cell, i_row].Value.ToString());
                         }
 
                     }