Bilder werdem erstellt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user