Imprägnierungsprotokolle werden erstellt

This commit is contained in:
HuskyTeufel
2019-10-22 16:54:21 +02:00
parent 416db297b4
commit 9747e129cc
16 changed files with 386 additions and 22 deletions

View File

@@ -1,9 +1,11 @@
using Database;
using FluentFTP;
using KlassenBIB;
using SanShared;
using SanShared.Exceptions;
using SchnittstelleImporter;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -193,5 +195,33 @@ namespace SanSystem
frmImprägnierBerichtList frmImprägnierBerichtList = new frmImprägnierBerichtList();
frmImprägnierBerichtList.ShowDialog();
}
private void MassenberichteToolStripMenuItem_Click(object sender, EventArgs e)
{
List<InlinerSanierung> ausdruck = new List<InlinerSanierung>();
foreach(Inspektionsobjekt objekte in Database.Datenbank.Instance.loadedProjekt.Objekte)
{
foreach(AbstractSanieren san in objekte.Sanierung)
{
if(san is InlinerSanierung)
{
ausdruck.Add((InlinerSanierung)san);
}
}
}
foreach(InlinerSanierung san in ausdruck)
{
string destinationPath = san.CheckVerzeichnisse(Global.Instance.Projektpfad);
Hashtable hashtable = san.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt);
DirectoryInfo directory = Directory.GetParent(destinationPath);
string speicherpfad = Path.Combine(directory.FullName,"Einbauprotokolle");
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, san.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>(),null,true);
}
//options.ShowDialog();
MessageBox.Show("Fertig");
}
}
}