Imprägnierungsprotokolle werden erstellt
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user