From ff1b2423f208fe44c6992a84564000276f9f0dcb Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Thu, 11 Jun 2020 09:31:39 +0200 Subject: [PATCH] =?UTF-8?q?Dichtheitspr=C3=BCfung=20wird=20erzeugt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SanSystem/UCInliner.Designer.cs | 137 +++++++++++++++++--------------- SanSystem/UCInliner.cs | 27 +++++++ 2 files changed, 102 insertions(+), 62 deletions(-) diff --git a/SanSystem/UCInliner.Designer.cs b/SanSystem/UCInliner.Designer.cs index 16e1012..af3b617 100644 --- a/SanSystem/UCInliner.Designer.cs +++ b/SanSystem/UCInliner.Designer.cs @@ -30,6 +30,9 @@ { this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage2 = new System.Windows.Forms.TabPage(); + this.label6 = new System.Windows.Forms.Label(); + this.txt_einbaudruck = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); this.btn_open_file = new System.Windows.Forms.Button(); this.cb_preliner = new System.Windows.Forms.CheckBox(); this.txt_besatzung = new System.Windows.Forms.TextBox(); @@ -47,6 +50,10 @@ this.cbb_wetter = new System.Windows.Forms.ComboBox(); this.label24 = new System.Windows.Forms.Label(); this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.txt_einbau_temp = new System.Windows.Forms.TextBox(); + this.txt_lagerung_temp = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); this.btn_get_temp = new System.Windows.Forms.Button(); this.txt_temp_kanal = new System.Windows.Forms.TextBox(); this.txt_temp_aussen = new System.Windows.Forms.TextBox(); @@ -55,13 +62,7 @@ this.cb_stvo = new System.Windows.Forms.CheckBox(); this.cb_wasserhaltung = new System.Windows.Forms.CheckBox(); this.cb_genehmigung = new System.Windows.Forms.CheckBox(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.txt_lagerung_temp = new System.Windows.Forms.TextBox(); - this.txt_einbau_temp = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.txt_einbaudruck = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); + this.btn_gen_dp = new System.Windows.Forms.Button(); this.tabControl1.SuspendLayout(); this.tabPage2.SuspendLayout(); this.groupBox1.SuspendLayout(); @@ -82,6 +83,7 @@ // // tabPage2 // + this.tabPage2.Controls.Add(this.btn_gen_dp); this.tabPage2.Controls.Add(this.label6); this.tabPage2.Controls.Add(this.txt_einbaudruck); this.tabPage2.Controls.Add(this.label5); @@ -111,6 +113,31 @@ this.tabPage2.Text = "Vorraussetzungen"; this.tabPage2.UseVisualStyleBackColor = true; // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(713, 337); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(42, 25); + this.label6.TabIndex = 42; + this.label6.Text = "Bar"; + // + // txt_einbaudruck + // + this.txt_einbaudruck.Location = new System.Drawing.Point(564, 334); + this.txt_einbaudruck.Name = "txt_einbaudruck"; + this.txt_einbaudruck.Size = new System.Drawing.Size(138, 30); + this.txt_einbaudruck.TabIndex = 41; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(398, 337); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(121, 25); + this.label5.TabIndex = 40; + this.label5.Text = "Einbaudruck"; + // // btn_open_file // this.btn_open_file.Location = new System.Drawing.Point(946, 109); @@ -294,6 +321,38 @@ this.groupBox3.TabStop = false; this.groupBox3.Text = "Temperatur"; // + // txt_einbau_temp + // + this.txt_einbau_temp.Location = new System.Drawing.Point(229, 166); + this.txt_einbau_temp.Name = "txt_einbau_temp"; + this.txt_einbau_temp.Size = new System.Drawing.Size(100, 30); + this.txt_einbau_temp.TabIndex = 22; + // + // txt_lagerung_temp + // + this.txt_lagerung_temp.Location = new System.Drawing.Point(229, 123); + this.txt_lagerung_temp.Name = "txt_lagerung_temp"; + this.txt_lagerung_temp.Size = new System.Drawing.Size(100, 30); + this.txt_lagerung_temp.TabIndex = 21; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(15, 171); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(168, 25); + this.label4.TabIndex = 20; + this.label4.Text = "Liner beim Einbau"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(15, 123); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(131, 25); + this.label3.TabIndex = 19; + this.label3.Text = "Linerlagerung"; + // // btn_get_temp // this.btn_get_temp.Location = new System.Drawing.Point(351, 27); @@ -378,62 +437,15 @@ this.cb_genehmigung.Text = "Genehmigung wurde eingeholt"; this.cb_genehmigung.UseVisualStyleBackColor = true; // - // label3 + // btn_gen_dp // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(15, 123); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(131, 25); - this.label3.TabIndex = 19; - this.label3.Text = "Linerlagerung"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(15, 171); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(168, 25); - this.label4.TabIndex = 20; - this.label4.Text = "Liner beim Einbau"; - // - // txt_lagerung_temp - // - this.txt_lagerung_temp.Location = new System.Drawing.Point(229, 123); - this.txt_lagerung_temp.Name = "txt_lagerung_temp"; - this.txt_lagerung_temp.Size = new System.Drawing.Size(100, 30); - this.txt_lagerung_temp.TabIndex = 21; - // - // txt_einbau_temp - // - this.txt_einbau_temp.Location = new System.Drawing.Point(229, 166); - this.txt_einbau_temp.Name = "txt_einbau_temp"; - this.txt_einbau_temp.Size = new System.Drawing.Size(100, 30); - this.txt_einbau_temp.TabIndex = 22; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(398, 337); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(121, 25); - this.label5.TabIndex = 40; - this.label5.Text = "Einbaudruck"; - // - // txt_einbaudruck - // - this.txt_einbaudruck.Location = new System.Drawing.Point(564, 334); - this.txt_einbaudruck.Name = "txt_einbaudruck"; - this.txt_einbaudruck.Size = new System.Drawing.Size(138, 30); - this.txt_einbaudruck.TabIndex = 41; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(713, 337); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(42, 25); - this.label6.TabIndex = 42; - this.label6.Text = "Bar"; + this.btn_gen_dp.Location = new System.Drawing.Point(808, 387); + this.btn_gen_dp.Name = "btn_gen_dp"; + this.btn_gen_dp.Size = new System.Drawing.Size(167, 103); + this.btn_gen_dp.TabIndex = 43; + this.btn_gen_dp.Text = "button1"; + this.btn_gen_dp.UseVisualStyleBackColor = true; + this.btn_gen_dp.Click += new System.EventHandler(this.Btn_gen_dp_Click); // // UCInliner // @@ -492,5 +504,6 @@ private System.Windows.Forms.TextBox txt_einbaudruck; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; + private System.Windows.Forms.Button btn_gen_dp; } } diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs index eb696c3..795df50 100644 --- a/SanSystem/UCInliner.cs +++ b/SanSystem/UCInliner.cs @@ -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"); + + + + } } }