diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs index bf6b6a5..c1ab325 100644 --- a/SanSystem/UCInliner.cs +++ b/SanSystem/UCInliner.cs @@ -314,6 +314,7 @@ namespace SanSystem Hashtable hashtable = inliner.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt,inliner.Offset); DirectoryInfo directory = Directory.GetParent(destinationPath); string speicherpfad = directory.FullName; + speicherpfad = Path.Combine(speicherpfad, "Einbauprotokolle"); List bilderObjects = new List(); foreach(Sanierung xsan in inliner.Inspektionsobjekt.Sanierung ) { @@ -344,8 +345,11 @@ namespace SanSystem private void GeneriereDP() { + string dichtheitsprüfungsPfad = Path.Combine(Global.Instance.Projektpfad, "Dichtheitsprüfung"); + if (!Directory.Exists(dichtheitsprüfungsPfad)) + Directory.CreateDirectory(dichtheitsprüfungsPfad); DateTime startprüfung = inliner.EndeAushaertung.AddMinutes(20); - ProtokolWriter protokollWriter = new ProtokolWriter("./dp/" + inliner.Inspektionsobjekt.Objektbezeichnung + ".txt"); + ProtokolWriter protokollWriter = new ProtokolWriter(dichtheitsprüfungsPfad + "/" + inliner.Inspektionsobjekt.Objektbezeichnung + ".txt"); protokollWriter.haltungsbezeichnung = inliner.Inspektionsobjekt.Objektbezeichnung; protokollWriter.Bauvorhaben_Ort = inliner.Inspektionsobjekt.OrtName; protokollWriter.Bauvorhaben_Strasse = inliner.Inspektionsobjekt.StrasseName + " " + inliner.Inspektionsobjekt.Hausnummer;