Add Excel statusbar message for exported lines count
This commit is contained in:
parent
df1a2f9d91
commit
fbe97d706c
@ -40,6 +40,7 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
int amountColumn = OfferSheet.amountColumn.Value;
|
||||
int skuColumn = OfferSheet.skuColumn.Value;
|
||||
int exportedValues = 0;
|
||||
|
||||
foreach (KeyValuePair<string, double> kvp in values)
|
||||
{
|
||||
@ -51,9 +52,12 @@ namespace RehauSku.PriceListTools
|
||||
"Отсутствует позиция в конечной таблице заказов",
|
||||
System.Windows.Forms.MessageBoxButtons.OK,
|
||||
System.Windows.Forms.MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ws.Cells[cell.Row, amountColumn].Value = kvp.Value;
|
||||
exportedValues++;
|
||||
}
|
||||
}
|
||||
|
||||
AutoFilter filter = ws.AutoFilter;
|
||||
@ -61,6 +65,7 @@ namespace RehauSku.PriceListTools
|
||||
|
||||
filter.Range.AutoFilter(amountColumn - firstFilterColumn + 1, "<>");
|
||||
ws.Range["A1"].Activate();
|
||||
ws.Application.StatusBar = $"Экспортировано {exportedValues} строк из {values.Count}";
|
||||
}
|
||||
|
||||
public class PriceListSheet
|
||||
|
Loading…
Reference in New Issue
Block a user