From 77099b0179f28088d597f355e5db4012b6f20211 Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Thu, 3 Sep 2020 16:46:14 +0200 Subject: [PATCH] =?UTF-8?q?Verzeichnis=20struktur=20bleibt=20aufger=C3=A4u?= =?UTF-8?q?mt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SanSystem/UCInliner.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;