Skip to content

Commit

Permalink
#3 Origineel importbestand wordt nu ook in dezelfde map gekopieerd.
Browse files Browse the repository at this point in the history
  • Loading branch information
aredfox committed Nov 19, 2017
1 parent 9271dfd commit d33e83b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,13 @@ private void Export(object sender, DoWorkEventArgs e) {
}
_backgroundWorker.ReportProgress(Convert.ToInt32(95), $"Opslaan EXCEL bestand...");
xl.Save();

_backgroundWorker.ReportProgress(Convert.ToInt32(97), $"Kopiëren origineel EXCEL importbestand...");
try {
ImportResult.OriginalImportFile.CopyTo(Path.Combine(ExportDirectory.FullName,
ImportResult.OriginalImportFile.Name));
} catch(Exception ex) { }

_backgroundWorker.ReportProgress(Convert.ToInt32(100), $"Opslaan EXCEL bestand...");
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
using Kostenverdeling.Model.Common;
using Kostenverdeling.Model.Settings;
using Kostenverdeling.Model.InvoiceSimulation;
Expand All @@ -12,6 +13,8 @@ public sealed class EBloxImportResult {
public EBloxImportResult() {
}

public FileInfo OriginalImportFile { get; internal set; }

public EBloxImportOptions ImportOptions { get; internal set; }
public CalculationSettings CalculationSettings { get; internal set; }
public InvoiceSimulationSettings InvoiceSimulationSettings { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public EBloxImportResult Import(FileInfo source) {
InvoiceSimulationSettings = _invoiceSimulationSettingsLoader.Load(),
DepartmentRepository = _businessDepartmentRepository,
EmployeeRepository = _employeeRepository,
CostCategoryRepository = _costCategoryRepository
CostCategoryRepository = _costCategoryRepository,
OriginalImportFile = source
};
}

Expand Down

0 comments on commit d33e83b

Please sign in to comment.