|
|
|
@ -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; |
|
|
|
|