aboutsummaryrefslogtreecommitdiff
path: root/src/PriceListTools/PriceList.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-03 13:17:39 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-03 13:17:39 +0300
commitfbe97d706cb87374a469f2e7df5c177877d6616b (patch)
treef8d7c8765a11e23023fcd03bcd87206f2e59a2b8 /src/PriceListTools/PriceList.cs
parentdf1a2f9d91c78e7a87a8b1be643c0f7269cad761 (diff)
Add Excel statusbar message for exported lines count
Diffstat (limited to 'src/PriceListTools/PriceList.cs')
-rw-r--r--src/PriceListTools/PriceList.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/PriceListTools/PriceList.cs b/src/PriceListTools/PriceList.cs
index e67d573..35b3f7d 100644
--- a/src/PriceListTools/PriceList.cs
+++ b/src/PriceListTools/PriceList.cs
@@ -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