Güteschutz erweitert

This commit is contained in:
HuskyTeufel
2020-04-06 15:14:19 +02:00
parent f8a324210b
commit 3f428be5f6
13 changed files with 144 additions and 53 deletions

View File

@@ -199,6 +199,7 @@ namespace SanSystem
private void MassenberichteToolStripMenuItem_Click(object sender, EventArgs e)
{
List<InlinerSanierung> ausdruck = new List<InlinerSanierung>();
List<BilderObject> bilder = new List<BilderObject>();
foreach(Inspektionsobjekt objekte in Database.Datenbank.Instance.loadedProjekt.Objekte)
{
foreach(AbstractSanieren san in objekte.Sanierung)
@@ -207,6 +208,23 @@ namespace SanSystem
{
ausdruck.Add((InlinerSanierung)san);
}
else if(san is SchachtAnbindung)
{
foreach(SavedBilder bild in (san as SchachtAnbindung).SavedBilders)
{
string komment = String.Empty;
if ((san as SchachtAnbindung).SchachtNummer != null)
{
komment = string.Format("{0} von Schacht: {1}", bild.Bildname, (san as SchachtAnbindung).SchachtNummer);
}
bilder.Add(new BilderObject()
{
Path = bild.Speicherpfad,
Kommentar = komment
});
}
}
}
}
@@ -217,7 +235,7 @@ namespace SanSystem
Hashtable hashtable = san.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt, DateTime.MinValue);
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);
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, san.Inspektionsobjekt.Objektbezeichnung, hashtable, bilder,null,true);
}
//options.ShowDialog();