Bilder werden wieder im Ausdruck angefügt

This commit is contained in:
HuskyTeufel
2020-08-10 09:23:05 +02:00
parent 55bce99509
commit ce1a17640b
3 changed files with 40 additions and 1 deletions

View File

@@ -253,6 +253,7 @@ namespace SanSystem
{
ausdruck.Add((InlinerSanierung)san);
}
/*
else if(san is SchachtAnbindung)
{
foreach(SavedBilder bild in (san as SchachtAnbindung).SavedBilders)
@@ -270,12 +271,33 @@ namespace SanSystem
});
}
}
*/
}
}
foreach(InlinerSanierung san in ausdruck)
{
bilder.Clear();
foreach (Sanierung d in san.Inspektionsobjekt.Sanierung)
{
if (d is SchachtAnbindung)
{
foreach(SavedBilder c in (d as SchachtAnbindung).SavedBilders)
{
string komment = String.Empty;
if ((d as SchachtAnbindung).SchachtNummer != null)
{
komment = string.Format("{0} von Schacht: {1}", c.Bildname, (d as SchachtAnbindung).SchachtNummer);
}
bilder.Add(new BilderObject()
{
Path = c.Speicherpfad,
Kommentar = komment
});
}
}
}
string destinationPath = san.CheckVerzeichnisse(Global.Instance.Projektpfad);
Hashtable hashtable = san.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt, DateTime.MinValue);
DirectoryInfo directory = Directory.GetParent(destinationPath);