diff --git a/KlassenBIB/KlassenBIB.csproj b/KlassenBIB/KlassenBIB.csproj
index 626a86a..16fc2bd 100644
--- a/KlassenBIB/KlassenBIB.csproj
+++ b/KlassenBIB/KlassenBIB.csproj
@@ -47,6 +47,7 @@
+
diff --git a/KlassenBIB/LinerChargen.cs b/KlassenBIB/LinerChargen.cs
new file mode 100644
index 0000000..466780a
--- /dev/null
+++ b/KlassenBIB/LinerChargen.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace KlassenBIB
+{
+ public static class LinerChargen
+ {
+ public static Dictionary> GenLinerChargenOverview(List ProjektListe)
+ {
+ Dictionary> Daten = new Dictionary>();
+ foreach(Projekt projekt in ProjektListe)
+ {
+ foreach(Inspektionsobjekt objekt in projekt.Objekte)
+ {
+ foreach(Sanierung sanierung in objekt.Sanierung)
+ {
+ if (!(sanierung is InlinerSanierung)) continue;
+
+ if (!((sanierung as InlinerSanierung).Imprägnierungsbericht is WerkseitigImprägniert)) continue;
+
+ WerkseitigImprägniert imprignierung = ((sanierung as InlinerSanierung).Imprägnierungsbericht as WerkseitigImprägniert);
+ string datenbezeichnung = projekt.Nummer + " # " + objekt.Objektbezeichnung;
+ if (Daten.ContainsKey(imprignierung.Imprägniernummer))
+ {
+ Daten[imprignierung.Imprägniernummer].Add(datenbezeichnung);
+ }
+ else
+ {
+ Daten.Add(imprignierung.Imprägniernummer, new List() { datenbezeichnung });
+ }
+ }
+ }
+ }
+ return Daten;
+ }
+ }
+}
diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs
index fb2c35b..2179785 100644
--- a/SanSystem/frmMain.cs
+++ b/SanSystem/frmMain.cs
@@ -289,8 +289,30 @@ namespace SanSystem
private void VerbrauchToolStripMenuItem_Click(object sender, EventArgs e)
{
- FrmGetDataFromBluelight frmGetDataFromBluelight = new FrmGetDataFromBluelight();
- frmGetDataFromBluelight.ShowDialog();
+ /*FrmGetDataFromBluelight frmGetDataFromBluelight = new FrmGetDataFromBluelight();
+ frmGetDataFromBluelight.ShowDialog();*/
+ Dictionary> daten = KlassenBIB.LinerChargen.GenLinerChargenOverview(Datenbank.Instance.TeufelDB.Projekte);
+ List content = new List();
+ foreach (KeyValuePair> x in daten)
+ {
+ content.Add(x.Key);
+
+ content.Add("================");
+ foreach(string values in x.Value)
+ {
+ content.Add(values);
+ }
+ content.Add("##############");
+ }
+
+ string[] datencontent = new string[content.Count];
+ for(int i = 0; i < content.Count; i++)
+ {
+ datencontent[i] = content[i];
+ }
+
+ File.WriteAllLines("linercharges.txt", datencontent);
+
}
}
}