xiaochanghai 11 months ago
parent e8eba7a975
commit 0a226fda91
  1. 5
      Tiobon.Core.Common/Helper/NPOIHelper.cs

@ -285,12 +285,17 @@ public class NPOIHelper
for (int i = (sheet.FirstRowNum + 1); i <= sheet.LastRowNum; i++)
{
IRow row = sheet.GetRow(i);
if(row is null)
continue;
//if (row.GetCell(row.FirstCellNum) != null && row.GetCell(row.FirstCellNum).ToString().Length > 0)
//if (row.GetCell(row.FirstCellNum) != null)
{
DataRow dataRow = dt.NewRow();
for (int j = row.FirstCellNum; j < cellCount; j++)
{
if(j<0)
continue;
if (row.GetCell(j) != null)
{
DateTime dateV = DateTime.MinValue;

Loading…
Cancel
Save