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)
|
|
|
|
|
{
|
2022-01-28 18:15:13 +03:00
|
|
|
|
FillColumnsWithDictionary(source.PositionAmount, TargetFile.amountCell.Column);
|
2022-01-27 20:43:19 +03:00
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|