Bilder werdem erstellt

This commit is contained in:
HuskyTeufel
2020-03-31 18:34:36 +02:00
parent f83ec8cfcd
commit f8a324210b
5 changed files with 98 additions and 5 deletions

View File

@@ -302,7 +302,27 @@ namespace SanSystem
Hashtable hashtable = inliner.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt,inliner.Offset);
DirectoryInfo directory = Directory.GetParent(destinationPath);
string speicherpfad = directory.FullName;
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, new List<BilderObject>());
List<BilderObject> bilderObjects = new List<BilderObject>();
foreach(Sanierung xsan in inliner.Inspektionsobjekt.Sanierung )
{
// Debugger.Break();
if (xsan is SchachtAnbindung)
{
SchachtAnbindung schacht = (xsan as SchachtAnbindung);
foreach(SavedBilder bild in schacht.SavedBilders)
{
bilderObjects.Add(new BilderObject()
{
Path = bild.Speicherpfad,
Kommentar = string.Format("{0} von Schacht: {1}", bild.Bildname, schacht.SchachtNummer)
});
}
}
}
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, bilderObjects);
options.ShowDialog();
}
}