RhSolutions-AddIn/src/PriceListTools/MergeTool.cs

26 lines
567 B
C#
Raw Normal View History

2022-01-27 17:34:03 +03:00
using System.Collections.Generic;
using System.Linq;
namespace RehauSku.PriceListTools
2021-12-24 16:22:03 +03:00
{
2022-01-27 10:22:30 +03:00
internal class MergeTool : PriceListTool
2021-12-24 16:22:03 +03:00
{
2022-01-27 17:34:03 +03:00
public List<Source> SourceFiles;
public void FillTarget()
{
ExcelApp.ScreenUpdating = false;
2022-01-27 20:43:19 +03:00
foreach (Source source in SourceFiles)
{
FillColumn(source.SkuAmount, TargetFile.amountCell.Column);
}
2022-01-27 17:34:03 +03:00
FilterByAmount();
ExcelApp.ScreenUpdating = true;
2021-12-24 16:22:03 +03:00
2022-01-27 17:34:03 +03:00
Forms.Dialog.SaveWorkbookAs();
}
2021-12-24 16:22:03 +03:00
}
}