2022-02-02 09:46:47 +03:00
|
|
|
|
using RehauSku.Interface;
|
|
|
|
|
using System.Collections.Generic;
|
2022-01-27 17:34:03 +03:00
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
{
|
2022-01-27 20:43:19 +03:00
|
|
|
|
foreach (Source source in SourceFiles)
|
|
|
|
|
{
|
2022-02-01 20:32:29 +03:00
|
|
|
|
foreach (var kvp in source.PositionAmount)
|
|
|
|
|
FillColumnsWithDictionary(kvp, TargetFile.amountCell.Column);
|
2022-01-27 20:43:19 +03:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-27 17:34:03 +03:00
|
|
|
|
FilterByAmount();
|
2021-12-24 16:22:03 +03:00
|
|
|
|
|
2022-02-02 09:46:47 +03:00
|
|
|
|
Dialog.SaveWorkbookAs();
|
2022-01-27 17:34:03 +03:00
|
|
|
|
}
|
2021-12-24 16:22:03 +03:00
|
|
|
|
}
|
|
|
|
|
}
|