| | |
| | | IRow rowTemp = SheetOne.CreateRow(i + 1); |
| | | for (int j = 0; j < properties.Count; j++) |
| | | { |
| | | var value = properties[j].GetValue(datas[i]); |
| | | var attr = attrs[j]; |
| | | var value = attr.IgnoreExport ? "" : properties[j].GetValue(datas[i]); |
| | | rowTemp.CreateCell(j).SetCellValue(value.ToString()); |
| | | } |
| | | } |
| | |
| | | string title = titleRow.GetCell(j).StringCellValue; |
| | | if (dict.ContainsKey(title)) |
| | | { |
| | | CellType ct = row.GetCell(j).CellType; |
| | | var cell = row.GetCell(j); |
| | | if (cell == null || cell.CellType == CellType.Blank) |
| | | continue; |
| | | CellType ct = cell.CellType; |
| | | object value = null; |
| | | if (ct == CellType.String) |
| | | value = row.GetCell(j).StringCellValue; |