Find last row by Sku column

This commit is contained in:
Sergey Chebotar 2023-05-16 09:03:51 +03:00
parent 627195fafe
commit 2178c1bea3

View File

@ -95,7 +95,7 @@ public class ExcelReader : IReader, IDisposable
ProductLineCell = worksheet.Cells.Find(headers["ProductLine"]), ProductLineCell = worksheet.Cells.Find(headers["ProductLine"]),
NameCell = worksheet.Cells.Find(headers["Name"]), NameCell = worksheet.Cells.Find(headers["Name"]),
MeasureCell = worksheet.Cells.Find(headers["Measure"]); MeasureCell = worksheet.Cells.Find(headers["Measure"]);
var lastRowIndex = worksheet.Cells[worksheet.Rows.Count, AmountCell.Column] var lastRowIndex = worksheet.Cells[worksheet.Rows.Count, SkuCell.Column]
.End[XlDirection.xlUp].Row; .End[XlDirection.xlUp].Row;
Dictionary<Product, double> readResult = new(); Dictionary<Product, double> readResult = new();