Verzeichnis struktur bleibt aufgeräumt
This commit is contained in:
@@ -314,6 +314,7 @@ namespace SanSystem
|
|||||||
Hashtable hashtable = inliner.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt,inliner.Offset);
|
Hashtable hashtable = inliner.MakeProtokoll(destinationPath, Database.Datenbank.Instance.loadedProjekt,inliner.Offset);
|
||||||
DirectoryInfo directory = Directory.GetParent(destinationPath);
|
DirectoryInfo directory = Directory.GetParent(destinationPath);
|
||||||
string speicherpfad = directory.FullName;
|
string speicherpfad = directory.FullName;
|
||||||
|
speicherpfad = Path.Combine(speicherpfad, "Einbauprotokolle");
|
||||||
List<BilderObject> bilderObjects = new List<BilderObject>();
|
List<BilderObject> bilderObjects = new List<BilderObject>();
|
||||||
foreach(Sanierung xsan in inliner.Inspektionsobjekt.Sanierung )
|
foreach(Sanierung xsan in inliner.Inspektionsobjekt.Sanierung )
|
||||||
{
|
{
|
||||||
@@ -344,8 +345,11 @@ namespace SanSystem
|
|||||||
|
|
||||||
private void GeneriereDP()
|
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);
|
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.haltungsbezeichnung = inliner.Inspektionsobjekt.Objektbezeichnung;
|
||||||
protokollWriter.Bauvorhaben_Ort = inliner.Inspektionsobjekt.OrtName;
|
protokollWriter.Bauvorhaben_Ort = inliner.Inspektionsobjekt.OrtName;
|
||||||
protokollWriter.Bauvorhaben_Strasse = inliner.Inspektionsobjekt.StrasseName + " " + inliner.Inspektionsobjekt.Hausnummer;
|
protokollWriter.Bauvorhaben_Strasse = inliner.Inspektionsobjekt.StrasseName + " " + inliner.Inspektionsobjekt.Hausnummer;
|
||||||
|
|||||||
Reference in New Issue
Block a user