Dichtheitsprüfung wird erzeugt

This commit is contained in:
HuskyTeufel
2020-06-11 09:31:39 +02:00
parent 373942e439
commit ff1b2423f2
2 changed files with 102 additions and 62 deletions

View File

@@ -16,6 +16,7 @@ using System.Collections;
using CSVParser;
using BerichtGen;
using SanShared.Exceptions;
using Dichtheitsprüfung;
namespace SanSystem
{
@@ -337,5 +338,31 @@ namespace SanSystem
BerichtGen.FrmOptions options = new BerichtGen.FrmOptions("JUME", "liner_einbauBlueLight.docx", speicherpfad, inliner.Inspektionsobjekt.Objektbezeichnung, hashtable, bilderObjects);
options.ShowDialog();
}
private void Btn_gen_dp_Click(object sender, EventArgs e)
{
ProtokolWriter protokollWriter = new ProtokolWriter(inliner.Inspektionsobjekt.Objektbezeichnung+".txt");
protokollWriter.haltungsbezeichnung = inliner.Inspektionsobjekt.Objektbezeichnung;
protokollWriter.Bauvorhaben_Ort = inliner.Inspektionsobjekt.OrtName;
protokollWriter.Bauvorhaben_Strasse = inliner.Inspektionsobjekt.StrasseName + " " + inliner.Inspektionsobjekt.Hausnummer;
protokollWriter.Bauvorhaben_Standort = "";
protokollWriter.vonSchacht = inliner.Inspektionsobjekt.VonPunkt;
protokollWriter.bisSchacht = inliner.Inspektionsobjekt.BisPunkt;
protokollWriter.durchmesser = inliner.Inspektionsobjekt.Kanalrohrweite;
protokollWriter.rohrlaenge = Convert.ToDecimal(inliner.Inspektionsobjekt.Haltungslaenge);
protokollWriter.AuftraggeberName = Database.Datenbank.Instance.loadedProjekt.Auftraggeber.Name;
protokollWriter.AuftraggeberOrt = Database.Datenbank.Instance.loadedProjekt.Auftraggeber.Ort;
protokollWriter.AuftraggeberStrasse = Database.Datenbank.Instance.loadedProjekt.Auftraggeber.Strasse;
protokollWriter.AuftraggeberTel = "";
DateTime startprüfung = inliner.EndeAushaertung.AddMinutes(20);
protokollWriter.GenerateMessreiheÜberdruck(startprüfung, 100);
protokollWriter.Ersetzen();
protokollWriter.WriteFile();
MessageBox.Show("Fertig");
}
}
}