From d2537d1a7523e36665f97455d5b66f3f7a9fc75d Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Wed, 20 Apr 2022 14:59:34 +0200 Subject: [PATCH] KlassenDLL im Main integriert --- Database/Database.csproj | 68 - Database/Properties/AssemblyInfo.cs | 36 - Database/app.config | 31 - Database/packages.config | 4 - Dongle/Dongle.csproj | 60 - Dongle/Properties/AssemblyInfo.cs | 36 - KlassenBIB/KlassenBIB.csproj | 105 - KlassenBIB/Properties/AssemblyInfo.cs | 36 - KlassenBIB/app.config | 31 - KlassenBIBTests/InspektionsobjektTests.cs | 103 - KlassenBIBTests/KlassenBIBTests.csproj | 109 - KlassenBIBTests/Properties/AssemblyInfo.cs | 36 - KlassenBIBTests/app.config | 31 - KlassenBIBTests/packages.config | 5 - Language/Language.cs | 25 - Language/Language.csproj | 58 - Language/Properties/AssemblyInfo.cs | 36 - SanShared/IImportedObjekte.cs | 28 + SanShared/IInspektionsobjekt.cs | 12 + SanShared/SanShared.csproj | 2 + SanSystem/BerichtGen/Bericht.cs | 236 + SanSystem/BerichtGen/BerichtWorker.cs | 36 + SanSystem/BerichtGen/FrmOptions.Designer.cs | 136 + SanSystem/BerichtGen/FrmOptions.cs | 107 + SanSystem/BerichtGen/FrmOptions.resx | 120 + SanSystem/BerichtGen/FrmPDFViewer.Designer.cs | 97 + SanSystem/BerichtGen/FrmPDFViewer.cs | 34 + SanSystem/BerichtGen/FrmPDFViewer.resx | 127 + SanSystem/BerichtGen/makeGraphic.cs | 121 + SanSystem/CSVParser/AcceptedCSVFormats.cs | 9 + SanSystem/CSVParser/BlueLight.cs | 73 + SanSystem/CSVParser/CSVParser.cs | 28 + SanSystem/CSVParser/CsvParserFactory.cs | 25 + SanSystem/CSVParser/UVRelining.cs | 56 + {Database => SanSystem/Database}/Datenbank.cs | 2 - .../Database}/UpdateDatabase.cs | 0 .../KlassenBIB}/Auftraggeber.cs | 0 .../KlassenBIB}/AusgefuehrteTaetigkeiten.cs | 0 .../Collections/AbwasserTechnischeAnlage.cs | 0 .../Collections/AuftraggeberList.cs | 0 .../Collections/AusgefuehrteTaetigkeiten.cs | 0 .../KlassenBIB}/Collections/Bilder.cs | 0 .../KlassenBIB}/Collections/ChargeNummer.cs | 0 .../Collections/ImprägnierBericht.cs | 0 .../Collections/Inspektionskuerzeln.cs | 0 .../Collections/Leistungsverzeichnis.cs | 0 .../KlassenBIB}/Collections/Projekte.cs | 0 .../KlassenBIB}/Collections/Sanierung.cs | 0 .../Collections/Sanierungskonzept.cs | 0 {KlassenBIB => SanSystem/KlassenBIB}/DB.cs | 0 .../KlassenBIB}/IImportedObjekte.cs | 0 .../KlassenBIB}/Inspektionskuerzeln.cs | 0 .../KlassenBIB}/Inspektionsobjekt.cs | 2 +- .../KlassenBIB}/LeistungsVerzeichnis.cs | 0 .../KlassenBIB}/Lieferschein.cs | 0 .../KlassenBIB}/LinerChargen.cs | 0 .../KlassenBIB}/Projekt.cs | 0 .../KlassenBIB}/Sanierung/AbstractSanieren.cs | 0 .../Renovation/AbstractImprägnier.cs | 0 .../Renovation/ImprägnierungStrukture.cs | 0 .../Sanierung/Renovation/InlinerSanierung.cs | 0 .../Sanierung/Renovation/UVAnlagenTyp.cs | 0 .../Sanierung/Renovation/VorOrtImprägnier.cs | 0 .../Renovation/WerkseitigImprägniert.cs | 0 .../KlassenBIB}/Sanierung/Reparatur.cs | 0 .../Sanierung/Reparatur/Hutprofil.cs | 0 .../Sanierung/Reparatur/Kurzliner.cs | 0 .../Sanierung/Reparatur/Quicklock.cs | 0 .../Sanierung/Reparatur/SanMitHarz.cs | 0 .../KlassenBIB}/Sanierung/Sanierung.cs | 0 .../Sanierung/StructChargeNummern.cs | 0 .../KlassenBIB}/Sanierungskonzept.cs | 0 .../KlassenBIB}/SavedBilder.cs | 0 .../KlassenBIB}/SchachtAnbindung.cs | 0 SanSystem/SanShared/BerichtWorker.cs | 13 + SanSystem/SanShared/BilderObject.cs | 27 + SanSystem/SanShared/Dongle.cs | 170 + .../Exceptions/CSVImportException.cs | 28 + .../DataBaseVersionMismatchException.cs | 45 + .../Exceptions/LangNotFoundException.cs | 45 + SanSystem/SanShared/IAuftraggeber.cs | 25 + SanSystem/SanShared/IImportedObjekte.cs | 28 + SanSystem/SanShared/IInspektionsobjekt.cs | 12 + SanSystem/SanShared/IMakeProtokol.cs | 23 + SanSystem/SanShared/IProjekt.cs | 9 + SanSystem/SanShared/IReadCSVData.cs | 24 + SanSystem/SanShared/ITemperature.cs | 21 + SanSystem/SanShared/UVcsvStrukture.cs | 35 + SanSystem/SanSystem.csproj | 171 +- SanSystem/SchnittstelleImporter/I2006XML.cs | 199 + .../SchnittstelleImporter/ImportBuilder.cs | 39 + .../XML2006/Anschlussdaten.cs | 45 + .../SchnittstelleImporter/XML2006/Enums.cs | 112 + .../InspizierteAbwassertechnischeAnlage.cs | 83 + .../SchnittstelleImporter/XML2006/Lage.cs | 55 + .../XML2006/OptischeInspektion.cs | 70 + .../XML2006/RGrunddaten.cs | 100 + .../SchnittstelleImporter/XML2006/RZustand.cs | 102 + .../XML2006/Rohrleitung.cs | 96 + .../SchemaDateien/0610-betriebsdaten.xsd | 289 + .../SchemaDateien/0610-hydraulikdaten.xsd | 2192 ++++++ .../XML2006/SchemaDateien/0610-metadaten.xsd | 478 ++ .../SchemaDateien/0610-referenzlisten.xsd | 6912 +++++++++++++++++ .../XML2006/SchemaDateien/0610-stammdaten.xsd | 2065 +++++ .../SchemaDateien/0610-zustandsdaten.xsd | 1051 +++ .../XML2006/XMLParser.cs | 286 + SanSystem/TempCAN/TemperaturBuilder.cs | 41 + SanSystem/TempCAN/TinkerForgeTemperatur.cs | 68 + SanSystem/frmMain.cs | 2 + SanSystem/packages.config | 6 + SanVerwaltung.sln | 60 - SchnittstelleImporter/I2006XML.cs | 12 +- SchnittstelleImporter/ImportBuilder.cs | 2 +- .../SchnittstelleImporter.csproj | 7 +- SchnittstelleImporterTests/I2006XMLTests.cs | 20 - SchnittstelleImporterTests/ImportTests.cs | 22 - .../Properties/AssemblyInfo.cs | 36 - .../SchnittstelleImporterTests.csproj | 113 - .../XML2006/XMLParserTests.cs | 22 - SchnittstelleImporterTests/app.config | 31 - SchnittstelleImporterTests/packages.config | 5 - TempCAN/TempCAN.csproj | 6 - 122 files changed, 16199 insertions(+), 1165 deletions(-) delete mode 100644 Database/Database.csproj delete mode 100644 Database/Properties/AssemblyInfo.cs delete mode 100644 Database/app.config delete mode 100644 Database/packages.config delete mode 100644 Dongle/Dongle.csproj delete mode 100644 Dongle/Properties/AssemblyInfo.cs delete mode 100644 KlassenBIB/KlassenBIB.csproj delete mode 100644 KlassenBIB/Properties/AssemblyInfo.cs delete mode 100644 KlassenBIB/app.config delete mode 100644 KlassenBIBTests/InspektionsobjektTests.cs delete mode 100644 KlassenBIBTests/KlassenBIBTests.csproj delete mode 100644 KlassenBIBTests/Properties/AssemblyInfo.cs delete mode 100644 KlassenBIBTests/app.config delete mode 100644 KlassenBIBTests/packages.config delete mode 100644 Language/Language.cs delete mode 100644 Language/Language.csproj delete mode 100644 Language/Properties/AssemblyInfo.cs create mode 100644 SanShared/IImportedObjekte.cs create mode 100644 SanShared/IInspektionsobjekt.cs create mode 100644 SanSystem/BerichtGen/Bericht.cs create mode 100644 SanSystem/BerichtGen/BerichtWorker.cs create mode 100644 SanSystem/BerichtGen/FrmOptions.Designer.cs create mode 100644 SanSystem/BerichtGen/FrmOptions.cs create mode 100644 SanSystem/BerichtGen/FrmOptions.resx create mode 100644 SanSystem/BerichtGen/FrmPDFViewer.Designer.cs create mode 100644 SanSystem/BerichtGen/FrmPDFViewer.cs create mode 100644 SanSystem/BerichtGen/FrmPDFViewer.resx create mode 100644 SanSystem/BerichtGen/makeGraphic.cs create mode 100644 SanSystem/CSVParser/AcceptedCSVFormats.cs create mode 100644 SanSystem/CSVParser/BlueLight.cs create mode 100644 SanSystem/CSVParser/CSVParser.cs create mode 100644 SanSystem/CSVParser/CsvParserFactory.cs create mode 100644 SanSystem/CSVParser/UVRelining.cs rename {Database => SanSystem/Database}/Datenbank.cs (97%) rename {Database => SanSystem/Database}/UpdateDatabase.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Auftraggeber.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/AusgefuehrteTaetigkeiten.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/AbwasserTechnischeAnlage.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/AuftraggeberList.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/AusgefuehrteTaetigkeiten.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Bilder.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/ChargeNummer.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/ImprägnierBericht.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Inspektionskuerzeln.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Leistungsverzeichnis.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Projekte.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Sanierung.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Collections/Sanierungskonzept.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/DB.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/IImportedObjekte.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Inspektionskuerzeln.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Inspektionsobjekt.cs (97%) rename {KlassenBIB => SanSystem/KlassenBIB}/LeistungsVerzeichnis.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Lieferschein.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/LinerChargen.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Projekt.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/AbstractSanieren.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/AbstractImprägnier.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/ImprägnierungStrukture.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/InlinerSanierung.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/UVAnlagenTyp.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/VorOrtImprägnier.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Renovation/WerkseitigImprägniert.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Reparatur.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Reparatur/Hutprofil.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Reparatur/Kurzliner.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Reparatur/Quicklock.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Reparatur/SanMitHarz.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/Sanierung.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierung/StructChargeNummern.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/Sanierungskonzept.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/SavedBilder.cs (100%) rename {KlassenBIB => SanSystem/KlassenBIB}/SchachtAnbindung.cs (100%) create mode 100644 SanSystem/SanShared/BerichtWorker.cs create mode 100644 SanSystem/SanShared/BilderObject.cs create mode 100644 SanSystem/SanShared/Dongle.cs create mode 100644 SanSystem/SanShared/Exceptions/CSVImportException.cs create mode 100644 SanSystem/SanShared/Exceptions/DataBaseVersionMismatchException.cs create mode 100644 SanSystem/SanShared/Exceptions/LangNotFoundException.cs create mode 100644 SanSystem/SanShared/IAuftraggeber.cs create mode 100644 SanSystem/SanShared/IImportedObjekte.cs create mode 100644 SanSystem/SanShared/IInspektionsobjekt.cs create mode 100644 SanSystem/SanShared/IMakeProtokol.cs create mode 100644 SanSystem/SanShared/IProjekt.cs create mode 100644 SanSystem/SanShared/IReadCSVData.cs create mode 100644 SanSystem/SanShared/ITemperature.cs create mode 100644 SanSystem/SanShared/UVcsvStrukture.cs create mode 100644 SanSystem/SchnittstelleImporter/I2006XML.cs create mode 100644 SanSystem/SchnittstelleImporter/ImportBuilder.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/Enums.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/Lage.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/OptischeInspektion.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/RZustand.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-betriebsdaten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-hydraulikdaten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-metadaten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-referenzlisten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-stammdaten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-zustandsdaten.xsd create mode 100644 SanSystem/SchnittstelleImporter/XML2006/XMLParser.cs create mode 100644 SanSystem/TempCAN/TemperaturBuilder.cs create mode 100644 SanSystem/TempCAN/TinkerForgeTemperatur.cs delete mode 100644 SchnittstelleImporterTests/I2006XMLTests.cs delete mode 100644 SchnittstelleImporterTests/ImportTests.cs delete mode 100644 SchnittstelleImporterTests/Properties/AssemblyInfo.cs delete mode 100644 SchnittstelleImporterTests/SchnittstelleImporterTests.csproj delete mode 100644 SchnittstelleImporterTests/XML2006/XMLParserTests.cs delete mode 100644 SchnittstelleImporterTests/app.config delete mode 100644 SchnittstelleImporterTests/packages.config diff --git a/Database/Database.csproj b/Database/Database.csproj deleted file mode 100644 index 59fe57f..0000000 --- a/Database/Database.csproj +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Debug - AnyCPU - {B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB} - Library - Properties - Database - Database - v4.7.2 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\SharpZipLib.1.3.3\lib\net45\ICSharpCode.SharpZipLib.dll - - - - - - - - - - - - - - - - - - - - {c82bd650-466b-403f-bed9-2b1660771f54} - KlassenBIB - - - {c949087e-20e1-4a17-b021-faead363c1d8} - SanShared - - - - - - - - \ No newline at end of file diff --git a/Database/Properties/AssemblyInfo.cs b/Database/Properties/AssemblyInfo.cs deleted file mode 100644 index b862157..0000000 --- a/Database/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("Database")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Database")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("b0227727-6cf9-4e2e-9afe-5dd76deaa9db")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, -// indem Sie "*" wie unten gezeigt eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Database/app.config b/Database/app.config deleted file mode 100644 index c26df79..0000000 --- a/Database/app.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Database/packages.config b/Database/packages.config deleted file mode 100644 index b2939d7..0000000 --- a/Database/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Dongle/Dongle.csproj b/Dongle/Dongle.csproj deleted file mode 100644 index 1873849..0000000 --- a/Dongle/Dongle.csproj +++ /dev/null @@ -1,60 +0,0 @@ - - - - - Debug - AnyCPU - {3362303F-994B-412B-B50D-7C701D5751D6} - Library - Properties - Dongle - Dongle - v4.7.2 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - False - ..\3rdPackage\WibuCmNET.dll - - - False - ..\3rdPackage\wupi.net.dll - - - False - ..\3rdPackage\WupiEngineNet.dll - - - - - - - - \ No newline at end of file diff --git a/Dongle/Properties/AssemblyInfo.cs b/Dongle/Properties/AssemblyInfo.cs deleted file mode 100644 index f4ce5dc..0000000 --- a/Dongle/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("Dongle")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Dongle")] -[assembly: AssemblyCopyright("Copyright © 2022")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("3362303f-994b-412b-b50d-7c701d5751d6")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, -// indem Sie "*" wie unten gezeigt eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/KlassenBIB/KlassenBIB.csproj b/KlassenBIB/KlassenBIB.csproj deleted file mode 100644 index 16fc2bd..0000000 --- a/KlassenBIB/KlassenBIB.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Debug - AnyCPU - {C82BD650-466B-403F-BED9-2B1660771F54} - Library - Properties - KlassenBIB - KlassenBIB - v4.7.2 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {3022DA07-FD06-4AEA-9FC8-00D318E95A82} - BerichtGen - - - {3F79BD28-9BF6-4902-8977-41E9E71F8488} - CSVParser - - - {C949087E-20E1-4A17-B021-FAEAD363C1D8} - SanShared - - - - - - - \ No newline at end of file diff --git a/KlassenBIB/Properties/AssemblyInfo.cs b/KlassenBIB/Properties/AssemblyInfo.cs deleted file mode 100644 index 8b2d080..0000000 --- a/KlassenBIB/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("KlassenBIB")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("KlassenBIB")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("c82bd650-466b-403f-bed9-2b1660771f54")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, -// indem Sie "*" wie unten gezeigt eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/KlassenBIB/app.config b/KlassenBIB/app.config deleted file mode 100644 index c26df79..0000000 --- a/KlassenBIB/app.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/KlassenBIBTests/InspektionsobjektTests.cs b/KlassenBIBTests/InspektionsobjektTests.cs deleted file mode 100644 index c422250..0000000 --- a/KlassenBIBTests/InspektionsobjektTests.cs +++ /dev/null @@ -1,103 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using KlassenBIB; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Xaml; - -namespace KlassenBIB.Tests -{ - [TestClass()] - public class InspektionsobjektTests - { - [TestMethod()] - public void XAMLDeserializeTest() - { - string filepath = @"C:\Users\OBremer\Desktop\SanVerwaltung\KlassenBIB\database.xaml"; - var x = XamlServices.Load(filepath) as KlassenBIB.Projekt; - } - - [TestMethod()] - public void XAMLSerializeTest() - { - /* - Projekt projekt = new Projekt(); - projekt.Nummer = "16/219"; - projekt.Ort = "Oldenburg"; - - AbwasserTechnischeAnlageCollection abwasserTechnischeAnlageCollection = new AbwasserTechnischeAnlageCollection(); - - - Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); - inspektionsobjekt.Objektbezeichnung = "122345"; - inspektionsobjekt.StrasseName = "Dieselstraße"; - inspektionsobjekt.OrtName = "Meppen"; - inspektionsobjekt.Projektnummer = "18-850-034"; - inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln() - { - Hauptkode = "BCD", - Charakterisierung1 = "XP" - }); - inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln() - { - Hauptkode = "BCA", - Charakterisierung1 = "A", - Charakterisierung2 = "A", - Quantifizierung1 = 150, - Quantifizierung2 = 150, - }); - - InlinerSanierung inliner = new InlinerSanierung(); - inliner.Guid = Guid.NewGuid(); - inliner.TempAusen = 1; - inliner.STVOAbsicherung = true; - inliner.DatumKalibrierung = DateTime.Now; - inliner.HDReinigungDatum = DateTime.Now; - inliner.Datum = DateTime.Now; - //inliner = inliner; - inliner.Inspektionsobjekt = inspektionsobjekt; - - abwasserTechnischeAnlageCollection.Add(inspektionsobjekt); - - projekt.Objekte.Add(inspektionsobjekt); - - - - - - - XamlServices.Save("projekt1.xaml", projekt); - */ - } - [TestMethod()] - public void InspektionsobjektTest() - { - Projekt projekt = new Projekt(); - projekt.Ort = "Oldenburg"; - - - - Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); - inspektionsobjekt.Objektbezeichnung = "SW01"; - inspektionsobjekt.VonPunkt = "SW01"; - inspektionsobjekt.BisPunkt = "SW02"; - inspektionsobjekt.Haltungslaenge = 10; - inspektionsobjekt.RohrMaterial = "Steinzeug"; - inspektionsobjekt.Kanalrohrweite = 150; - - InlinerSanierung sanierung = new InlinerSanierung(); - //sanierung.InspektionsObjekt = inspektionsobjekt; - sanierung.Guid = Guid.NewGuid(); - sanierung.WasserhaltungEingerichtet = true; - sanierung.DatumKalibrierung = DateTime.Now; - - - - - //Assert.AreEqual(sanierung.GesamtHarzBedarf, 18m); - - } - } -} diff --git a/KlassenBIBTests/KlassenBIBTests.csproj b/KlassenBIBTests/KlassenBIBTests.csproj deleted file mode 100644 index f3e8f7f..0000000 --- a/KlassenBIBTests/KlassenBIBTests.csproj +++ /dev/null @@ -1,109 +0,0 @@ - - - - - Debug - AnyCPU - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8} - Library - Properties - KlassenBIBTests - KlassenBIBTests - v4.7.2 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MSTest.TestFramework.2.2.9-preview-20220210-07\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\packages\MSTest.TestFramework.2.2.9-preview-20220210-07\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - - - - - - - - - - - - - - - - - - - - - - - - {C82BD650-466B-403F-BED9-2B1660771F54} - KlassenBIB - - - - - - - False - - - False - - - False - - - False - - - - - - - - - Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". - - - - - - - \ No newline at end of file diff --git a/KlassenBIBTests/Properties/AssemblyInfo.cs b/KlassenBIBTests/Properties/AssemblyInfo.cs deleted file mode 100644 index 4444975..0000000 --- a/KlassenBIBTests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über folgende -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("KlassenBIBTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("KlassenBIBTests")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Wenn ComVisible auf "false" festgelegt wird, sind die Typen innerhalb dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("0fec903e-6c9f-48ac-a207-0baca184aaa8")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern -// übernehmen, indem Sie "*" eingeben: -// [Assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/KlassenBIBTests/app.config b/KlassenBIBTests/app.config deleted file mode 100644 index c26df79..0000000 --- a/KlassenBIBTests/app.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/KlassenBIBTests/packages.config b/KlassenBIBTests/packages.config deleted file mode 100644 index 479d101..0000000 --- a/KlassenBIBTests/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Language/Language.cs b/Language/Language.cs deleted file mode 100644 index cb102d9..0000000 --- a/Language/Language.cs +++ /dev/null @@ -1,25 +0,0 @@ -using SanShared; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Language -{ - public enum BUILTINLANGUAGES - { - GERMAN = 0 - } - public static class Language - { - public static ILanguage GetLanguage(BUILTINLANGUAGES lang) - { - switch(lang) - { - case BUILTINLANGUAGES.GERMAN: return new DE(); - default: throw new SanShared.Exceptions.LangNotFoundException(string.Format("Language {0} not found",lang)); - } - } - } -} diff --git a/Language/Language.csproj b/Language/Language.csproj deleted file mode 100644 index 268384f..0000000 --- a/Language/Language.csproj +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Debug - AnyCPU - {BE364E88-92DA-4A6C-97E7-DDD7D887B3D4} - Library - Properties - Language - Language - v4.7.2 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - {ff6c3e9c-0ab0-4c67-a150-318c22734fbd} - DE - - - {C949087E-20E1-4A17-B021-FAEAD363C1D8} - SanShared - - - - \ No newline at end of file diff --git a/Language/Properties/AssemblyInfo.cs b/Language/Properties/AssemblyInfo.cs deleted file mode 100644 index 7e575af..0000000 --- a/Language/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("Language")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Language")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("be364e88-92da-4a6c-97e7-ddd7d887b3d4")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, -// indem Sie "*" wie unten gezeigt eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SanShared/IImportedObjekte.cs b/SanShared/IImportedObjekte.cs new file mode 100644 index 0000000..540ff8a --- /dev/null +++ b/SanShared/IImportedObjekte.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// Interface zur Import von Daten + /// + public interface IImportedObjekte + { + /// + /// Angaben zur XMLDatei die importiert werden soll + /// + string XMLFile { get; set; } + /// + /// Angaben zur Projektnummern die eingetragen werden soll in die Objekte + /// + string Projektnummer { get; set; } + /// + /// Funktion der die Inspektionsobjekte übergibt + /// + /// + List GetInspektionsobjekte(); + } +} diff --git a/SanShared/IInspektionsobjekt.cs b/SanShared/IInspektionsobjekt.cs new file mode 100644 index 0000000..6520c4b --- /dev/null +++ b/SanShared/IInspektionsobjekt.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + public interface IInspektionsobjekt + { + } +} diff --git a/SanShared/SanShared.csproj b/SanShared/SanShared.csproj index 617c8f1..9d2023d 100644 --- a/SanShared/SanShared.csproj +++ b/SanShared/SanShared.csproj @@ -61,6 +61,8 @@ + + diff --git a/SanSystem/BerichtGen/Bericht.cs b/SanSystem/BerichtGen/Bericht.cs new file mode 100644 index 0000000..1964dda --- /dev/null +++ b/SanSystem/BerichtGen/Bericht.cs @@ -0,0 +1,236 @@ +using SanShared; +using Syncfusion.DocIO.DLS; +using Syncfusion.DocToPDFConverter; +using Syncfusion.Pdf; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BerichtGen +{ + class Bericht + { + private List _listImages; + /// + /// Erstellt + /// + /// Die zuverwendete Vorlagenname + /// Pfad zum Speichern + /// + /// + /// Zur zeit ohne Implementierung + /// Für Tabellen anzeige + /// Ein doc datei soll erzeugt werden + /// Ein Pdf datei soll erzeugt werden + public void Erzeuge(string source, string savepath,string filename, Hashtable daten,List bilderObjects,DataTable tableContents, bool erzeugeDOC = false , bool erzeugePDF = true) + { + + if (bilderObjects != null) + { + _listImages = new List(); + foreach (BilderObject current in bilderObjects) + { + Image image = Image.FromFile(current.Path); + _listImages.Add(ResizeImage(image, CalculateImageSizeForDocument(image.Height, image.Width))); + image.Dispose(); + } + } + + WordDocument wordDocument = new WordDocument(source); + + string[] fieldnames = null; + string[] fieldvalues = null; + + if(fieldnames == null || fieldvalues == null) + { + fieldnames = new string[daten.Count]; + fieldvalues = new string[daten.Count]; + } + + uint counter = 0; + foreach(DictionaryEntry hashtable in daten) + { + fieldnames[counter] = hashtable.Key.ToString(); + if (hashtable.Value == null) + { + fieldvalues[counter] = ""; + } + else + { + fieldvalues[counter] = hashtable.Value.ToString(); + } + counter++; + + } + + + + wordDocument.MailMerge.MergeImageField += new MergeImageFieldEventHandler(MailMerge_MergeImageField); + + + + if (tableContents != null) + wordDocument.MailMerge.ExecuteGroup(tableContents); + + wordDocument.MailMerge.Execute(fieldnames, fieldvalues); + + IWParagraph iWParagraph = null; + var x = wordDocument.Sections; + + foreach(IWSection section in wordDocument.Sections) + { + IWParagraphCollection paragraphs = section.Paragraphs; + + foreach(IWParagraph item2 in paragraphs) + { + + if (item2.Text.StartsWith("@WeitereBilder")) { + iWParagraph = item2; + if(bilderObjects.Count > 0) + { + //section.ChildEntities.Clear(); + iWParagraph.Text = "Bilddokumentation der Sanierung"; + iWParagraph.AppendBreak(BreakType.LineBreak); + IWTable wTable = section.Body.AddTable(); + wTable.ResetCells(1, 2); + wTable.TableFormat.IsAutoResized = true; + wTable.TableFormat.IsBreakAcrossPages = false; + wTable.TableFormat.Borders.BorderType = BorderStyle.Dot; + WTableRow wTableRow = wTable.Rows[0]; + bool flag = false; + int num = -1; + foreach (BilderObject foto in bilderObjects) + { + if (num == -1) + num++; + + if (flag) + { + wTableRow = wTable.AddRow(); + flag = false; + } + int index = 1; + if (num % 2 == 0) + { + index = 0; + flag = false; + } + else + { + flag = true; + } + iWParagraph = wTableRow.Cells[index].AddParagraph(); + Image image2 = _listImages[num]; + if (image2 != null) + { + iWParagraph.AppendPicture(image2); + if (foto != null) + { + iWParagraph.AppendBreak(BreakType.LineBreak); + IWTextRange wTextRange = iWParagraph.AppendText(foto.Kommentar); + wTextRange.CharacterFormat.FontName = "Arial"; + wTextRange.CharacterFormat.FontSize = 10f; + } + } + num++; + } + } + else + { + iWParagraph.Text = ""; + } + break; + + } + } + } + + if(erzeugeDOC) + wordDocument.Save(Path.Combine(savepath,string.Format("{0}.doc",filename)), Syncfusion.DocIO.FormatType.Doc); + + if (erzeugePDF) + { + string speichername = Path.Combine(savepath, string.Format("{0}.pdf", filename)); + DocToPDFConverter docToPDFConverter = new DocToPDFConverter(); + PdfDocument pdf = docToPDFConverter.ConvertToPDF(wordDocument); + try + { + pdf.Save(speichername); + + } + catch + { + + } + finally + { + //pdf.Dispose(); + } + } + + } + private readonly double _cmPixel = 0.393700787; + private readonly int _dpi = 120; + private readonly double _imgWidthCmMax = 8.0; + + private Size CalculateImageSizeForDocument(int height, int width) + { + double num = (double)height / (double)width; + double num2 = this._imgWidthCmMax * num; + int h = (int)(num2 * _cmPixel * (double)_dpi); + int w = (int)(_imgWidthCmMax * _cmPixel * (double)_dpi); + return new Size(w, h); + } + + private Image ResizeImage(Image image, Size size) + { + int width = image.Width; + int height = image.Height; + float num = (float)size.Width / (float)width; + float num2 = (float)size.Height / (float)height; + float num3 = (num2 < num) ? num2 : num; + int width2 = (int)((float)width * num3); + int height2 = (int)((float)height * num3); + Bitmap bitmap = new Bitmap(width2, height2); + try + { + bitmap.SetResolution(120f, 120f); + Graphics graphics = Graphics.FromImage(bitmap); + graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High; + graphics.DrawImage(image, 0, 0, width2, height2); + graphics.Dispose(); + + } + catch(Exception) + { + + } + finally + { + System.GC.Collect(); + } + return bitmap; + } + + private void MailMerge_MergeImageField(object sender, MergeImageFieldEventArgs args) + { + + if(args.FieldName == "UVImageTemp" || args.FieldName == "UVImageDruck" || args.FieldName == "UVImageSpeed") + { + string source = args.FieldValue.ToString(); + if (!File.Exists(source)) return; + args.Image = Image.FromFile(source); + } + } + + + + } +} diff --git a/SanSystem/BerichtGen/BerichtWorker.cs b/SanSystem/BerichtGen/BerichtWorker.cs new file mode 100644 index 0000000..19d684e --- /dev/null +++ b/SanSystem/BerichtGen/BerichtWorker.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BerichtGen +{ + public class BerichtWorker + { + public static Image resizeImage(Image imgToResize, Size size) + { + int width = imgToResize.Width; + int height = imgToResize.Height; + float scale = 0f; + float newWidth = 0f; + float newHeight = 0f; + + newWidth = (float)size.Width / (float)width; + newHeight = (float)size.Height / (float)height; + + scale = ((!(newHeight < newWidth)) ? newWidth : newHeight); + int width2 = (int)((float)width * scale); + int height2 = (int)((float)height * scale); + + Bitmap bitmap = new Bitmap(width2, height2); + Graphics graphics = Graphics.FromImage(bitmap); + graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; + graphics.DrawImage(imgToResize, 0, 0, width2, height2); + graphics.Dispose(); + return bitmap; + } + } +} diff --git a/SanSystem/BerichtGen/FrmOptions.Designer.cs b/SanSystem/BerichtGen/FrmOptions.Designer.cs new file mode 100644 index 0000000..ee24d87 --- /dev/null +++ b/SanSystem/BerichtGen/FrmOptions.Designer.cs @@ -0,0 +1,136 @@ +namespace BerichtGen +{ + partial class FrmOptions + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btn_start = new System.Windows.Forms.Button(); + this.cb_doc = new System.Windows.Forms.CheckBox(); + this.cb_pdf = new System.Windows.Forms.CheckBox(); + this.rb_yes = new System.Windows.Forms.RadioButton(); + this.rb_no = new System.Windows.Forms.RadioButton(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // btn_start + // + this.btn_start.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btn_start.Location = new System.Drawing.Point(374, 12); + this.btn_start.Name = "btn_start"; + this.btn_start.Size = new System.Drawing.Size(91, 74); + this.btn_start.TabIndex = 0; + this.btn_start.Text = "Bericht erzeugen"; + this.btn_start.UseVisualStyleBackColor = true; + this.btn_start.Click += new System.EventHandler(this.btn_start_Click); + // + // cb_doc + // + this.cb_doc.AutoSize = true; + this.cb_doc.Enabled = false; + this.cb_doc.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_doc.Location = new System.Drawing.Point(6, 12); + this.cb_doc.Name = "cb_doc"; + this.cb_doc.Size = new System.Drawing.Size(173, 24); + this.cb_doc.TabIndex = 1; + this.cb_doc.Text = "DOC datei erzeugen"; + this.cb_doc.UseVisualStyleBackColor = true; + // + // cb_pdf + // + this.cb_pdf.AutoSize = true; + this.cb_pdf.Checked = true; + this.cb_pdf.CheckState = System.Windows.Forms.CheckState.Checked; + this.cb_pdf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cb_pdf.Location = new System.Drawing.Point(6, 35); + this.cb_pdf.Name = "cb_pdf"; + this.cb_pdf.Size = new System.Drawing.Size(131, 24); + this.cb_pdf.TabIndex = 2; + this.cb_pdf.Text = "PDF erzeugen"; + this.cb_pdf.UseVisualStyleBackColor = true; + // + // rb_yes + // + this.rb_yes.AutoSize = true; + this.rb_yes.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rb_yes.Location = new System.Drawing.Point(221, 62); + this.rb_yes.Name = "rb_yes"; + this.rb_yes.Size = new System.Drawing.Size(39, 24); + this.rb_yes.TabIndex = 3; + this.rb_yes.TabStop = true; + this.rb_yes.Text = "ja"; + this.rb_yes.UseVisualStyleBackColor = true; + // + // rb_no + // + this.rb_no.AutoSize = true; + this.rb_no.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rb_no.Location = new System.Drawing.Point(266, 62); + this.rb_no.Name = "rb_no"; + this.rb_no.Size = new System.Drawing.Size(57, 24); + this.rb_no.TabIndex = 4; + this.rb_no.TabStop = true; + this.rb_no.Text = "nein"; + this.rb_no.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(2, 62); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(202, 20); + this.label1.TabIndex = 5; + this.label1.Text = "Nach dem erzeugen öffnen"; + // + // FrmOptions + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(477, 97); + this.Controls.Add(this.label1); + this.Controls.Add(this.rb_no); + this.Controls.Add(this.rb_yes); + this.Controls.Add(this.cb_pdf); + this.Controls.Add(this.cb_doc); + this.Controls.Add(this.btn_start); + this.Name = "FrmOptions"; + this.Text = "Options"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button btn_start; + private System.Windows.Forms.CheckBox cb_doc; + private System.Windows.Forms.CheckBox cb_pdf; + private System.Windows.Forms.RadioButton rb_yes; + private System.Windows.Forms.RadioButton rb_no; + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/SanSystem/BerichtGen/FrmOptions.cs b/SanSystem/BerichtGen/FrmOptions.cs new file mode 100644 index 0000000..2e8388c --- /dev/null +++ b/SanSystem/BerichtGen/FrmOptions.cs @@ -0,0 +1,107 @@ +using SanShared; +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BerichtGen +{ + /// + /// + /// + public partial class FrmOptions : Form + { + Thread generateProtokollThread; + Hashtable grundDaten; + string firma; + string vorlage; + string speicherpfad; + string source; + string filename; + bool hidden = false; + List bilderObjects; + + DataTable tableContent = null; + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + public FrmOptions(string firma, string vorlage, string speicherpfad, string filename, Hashtable grunddaten, List bilderObjects, DataTable tableContent = null, bool hidden = false) + { + + InitializeComponent(); + Dongle dongle = new Dongle(60); + Trace.WriteLine("FrmOptions: " + dongle.SyncfusionKey); + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(dongle.SyncfusionKey); + dongle.CleanDongle(); + + + this.firma = firma; + this.vorlage = vorlage; + this.speicherpfad = speicherpfad; + this.grundDaten = grunddaten; + this.bilderObjects = bilderObjects; + this.tableContent = tableContent; + this.source = Path.Combine("documents", firma, vorlage); + this.filename = filename; + this.hidden = hidden; + if(hidden) + { + GenerateBericht(); + } + + } + + void Gen() + { + + Bericht bericht = new Bericht(); + bericht.Erzeuge(source, speicherpfad,filename, grundDaten, bilderObjects, tableContent,cb_doc.Checked,cb_pdf.Checked); + } + + private void GenerateBericht() + { + generateProtokollThread = new Thread(Gen); + generateProtokollThread.IsBackground = true; + generateProtokollThread.Start(); + + while (generateProtokollThread.IsAlive) + { + + } + + if (rb_yes.Checked && cb_pdf.Checked && !hidden) + { + string pfad = Path.Combine(speicherpfad, string.Format("{0}.pdf", filename)); + Process process = new Process(); + process.StartInfo.FileName = "explorer"; + process.StartInfo.Arguments = pfad; + //** Verbuggt + FrmPDFViewer frmPDFViewer = new FrmPDFViewer(pfad); + frmPDFViewer.ShowDialog(); + } + } + + private void btn_start_Click(object sender, EventArgs e) + { + GenerateBericht(); + + this.Close(); + } + } +} diff --git a/SanSystem/BerichtGen/FrmOptions.resx b/SanSystem/BerichtGen/FrmOptions.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SanSystem/BerichtGen/FrmOptions.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs b/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs new file mode 100644 index 0000000..9165153 --- /dev/null +++ b/SanSystem/BerichtGen/FrmPDFViewer.Designer.cs @@ -0,0 +1,97 @@ +namespace BerichtGen +{ + partial class FrmPDFViewer + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings(); + Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPDFViewer)); + Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings(); + this.pdfViewerControl = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl(); + this.SuspendLayout(); + // + // pdfViewerControl + // + this.pdfViewerControl.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool; + this.pdfViewerControl.Dock = System.Windows.Forms.DockStyle.Fill; + this.pdfViewerControl.EnableContextMenu = true; + this.pdfViewerControl.EnableNotificationBar = true; + this.pdfViewerControl.HorizontalScrollOffset = 0; + this.pdfViewerControl.IsBookmarkEnabled = false; + this.pdfViewerControl.IsTextSearchEnabled = false; + this.pdfViewerControl.IsTextSelectionEnabled = false; + this.pdfViewerControl.Location = new System.Drawing.Point(0, 0); + this.pdfViewerControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + messageBoxSettings1.EnableNotification = true; + this.pdfViewerControl.MessageBoxSettings = messageBoxSettings1; + this.pdfViewerControl.MinimumZoomPercentage = 50; + this.pdfViewerControl.Name = "pdfViewerControl"; + this.pdfViewerControl.PageBorderThickness = 1; + pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto; + pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize; + pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation"))); + pdfViewerPrinterSettings1.ShowPrintStatusDialog = true; + this.pdfViewerControl.PrinterSettings = pdfViewerPrinterSettings1; + this.pdfViewerControl.ReferencePath = null; + this.pdfViewerControl.ScrollDisplacementValue = 0; + this.pdfViewerControl.ShowHorizontalScrollBar = true; + this.pdfViewerControl.ShowToolBar = true; + this.pdfViewerControl.ShowVerticalScrollBar = true; + this.pdfViewerControl.Size = new System.Drawing.Size(851, 922); + this.pdfViewerControl.SpaceBetweenPages = 8; + this.pdfViewerControl.TabIndex = 0; + this.pdfViewerControl.Text = "pdfViewerControl1"; + textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64))))); + textSearchSettings1.HighlightAllInstance = true; + textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0))))); + this.pdfViewerControl.TextSearchSettings = textSearchSettings1; + this.pdfViewerControl.VerticalScrollOffset = 0; + this.pdfViewerControl.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default; + this.pdfViewerControl.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.FitPage; + // + // FrmPDFViewer + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.ClientSize = new System.Drawing.Size(851, 922); + this.Controls.Add(this.pdfViewerControl); + this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.Name = "FrmPDFViewer"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "FrmPDFViewer"; + this.Load += new System.EventHandler(this.FrmPDFViewer_Load); + this.ResumeLayout(false); + + } + + #endregion + + private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl; + } +} \ No newline at end of file diff --git a/SanSystem/BerichtGen/FrmPDFViewer.cs b/SanSystem/BerichtGen/FrmPDFViewer.cs new file mode 100644 index 0000000..005a4cb --- /dev/null +++ b/SanSystem/BerichtGen/FrmPDFViewer.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BerichtGen +{ + /// + /// + /// + public partial class FrmPDFViewer : Form + { + string pfad; + /// + /// + /// + /// + public FrmPDFViewer(string pfad) + { + InitializeComponent(); + this.pfad = pfad; + } + + private void FrmPDFViewer_Load(object sender, EventArgs e) + { + pdfViewerControl.Load(pfad); + } + } +} diff --git a/SanSystem/BerichtGen/FrmPDFViewer.resx b/SanSystem/BerichtGen/FrmPDFViewer.resx new file mode 100644 index 0000000..d9e357e --- /dev/null +++ b/SanSystem/BerichtGen/FrmPDFViewer.resx @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0 + dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh + d2luZy5Qb2ludEYCAAAAAXgBeQAACwsCAAAAAAAAAAAAAAAL + + + \ No newline at end of file diff --git a/SanSystem/BerichtGen/makeGraphic.cs b/SanSystem/BerichtGen/makeGraphic.cs new file mode 100644 index 0000000..dcdff26 --- /dev/null +++ b/SanSystem/BerichtGen/makeGraphic.cs @@ -0,0 +1,121 @@ +using SanShared; +using Syncfusion.Windows.Forms.Chart; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BerichtGen +{ + /// + /// + /// + public static class makeGraphic + { + private static ChartControl getGraph(List input, string type) + { + Size size = new Size(400, 300); + + ChartControl chartControl = new ChartControl(); + chartControl.Size = size; + + + ChartAxis axis = chartControl.PrimaryYAxis; + + + ChartAxisLayout layout1 = new ChartAxisLayout(); + + + layout1.Spacing = 12; + + layout1.Axes.Add(axis); + + + chartControl.ChartArea.YLayouts.Add(layout1); + + ChartSeries mychart = new ChartSeries(type, ChartSeriesType.Line); + + + int counter = 0; + + + foreach (UVcsvStrukture pars in input) + { + if (type.Equals("Temperatur")) + mychart.Points.Add(counter, pars.Temperatur); + else if (type.Equals("Druck")) + mychart.Points.Add(counter, pars.Druck); + else if (type.Equals("Geschwindigkeit")) + mychart.Points.Add(counter, pars.Geschwindigkeit); + else + throw new Exception("Kein gültiger Aufruf"); + counter++; + } + + mychart.YAxis = axis; + + switch (type) + { + case "Temperatur": + axis.Title = "°C"; + break; + + case "Druck": + axis.Title = "[mbar]"; + break; + + case "Geschwindigkeit": + axis.Title = "[cm]"; + break; + } + + axis.TitleFont = new Font("Segeo UI", 14F); + + + chartControl.LegendsPlacement = ChartPlacement.Outside; + chartControl.LegendPosition = ChartDock.Bottom; + chartControl.LegendAlignment = ChartAlignment.Center; + chartControl.Title.Visible = false; + + chartControl.Series.Add(mychart); + chartControl.Skins = Skins.Metro; + + axis.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift; + + + return chartControl; + } + /// + /// Erstellt die Drucksverlauf kurve + /// + /// + /// + /// + public static bool GetGraphics(List struktures,string destinationPath) + { + Dongle dongle = new Dongle(60); + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(dongle.SyncfusionKey); + dongle.CleanDongle(); + + ChartControl tempChart = getGraph(struktures, "Temperatur"); + if (tempChart == null) return false; + else + tempChart.SaveImage(Path.Combine(destinationPath, "linerGraph_temp.jpg")); + + ChartControl druckChart = getGraph(struktures, "Druck"); + if (druckChart == null) return false; + else + druckChart.SaveImage(Path.Combine(destinationPath, "linerGraph_druck.jpg")); + + ChartControl speedChart = getGraph(struktures, "Geschwindigkeit"); + if (speedChart == null) return false; + else + speedChart.SaveImage(Path.Combine(destinationPath, "linerGraph_speed.jpg")); + return true; + } + } +} diff --git a/SanSystem/CSVParser/AcceptedCSVFormats.cs b/SanSystem/CSVParser/AcceptedCSVFormats.cs new file mode 100644 index 0000000..2a6bc39 --- /dev/null +++ b/SanSystem/CSVParser/AcceptedCSVFormats.cs @@ -0,0 +1,9 @@ +namespace CSVParser +{ + public enum AcceptedCSVFormats + { + UVRELINING, + BLUELIGHT + + } +} \ No newline at end of file diff --git a/SanSystem/CSVParser/BlueLight.cs b/SanSystem/CSVParser/BlueLight.cs new file mode 100644 index 0000000..fcc6e36 --- /dev/null +++ b/SanSystem/CSVParser/BlueLight.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SanShared; +using SanShared.Exceptions; + +namespace CSVParser +{ + public class BlueLight : CSVParser + { + public BlueLight(string csvFile) : base(csvFile) + { + } + + public override List ReadCSVStrukture() + { + List result = new List(); + DateTime zeit; + double temperatur; + double druck; + double geschwindigkeit; + + + bool gestarted = false; + foreach (string partial in Input) + { + UVcsvStrukture strukture = new UVcsvStrukture(); + string[] parts = partial.Split(','); + + string datum = parts[1].Replace("\"", ""); + string uhrzeit = parts[2].Replace("\"", ""); + + if (datum.Equals("Date")) continue; + + + if (!DateTime.TryParse(datum + " " + uhrzeit, out zeit)) + throw new CSVImportException("Konnte die datum uhrzeit nicht konventieren"); + + double.TryParse(parts[3].Replace("\"","").Replace('.', ','), out temperatur); + double.TryParse(parts[4].Replace("\"",""), out geschwindigkeit); + double.TryParse(parts[5].Replace("\"","").Replace('.', ','), out druck); + + + string x = (druck*1000).ToString(); + + if (geschwindigkeit > 100) geschwindigkeit = 0; + if (geschwindigkeit > 50) geschwindigkeit = 1; + /* + * + * Geschwindigkeit wird in Meter angegeben pro stunde + * : 60 :60 * 100 = 36; + */ + geschwindigkeit = geschwindigkeit / 36.00; + + strukture.Zeitstempel = zeit; + strukture.Druck = int.Parse(x); + strukture.Geschwindigkeit = geschwindigkeit; + strukture.Temperatur = temperatur; + + if (!geschwindigkeit.Equals(0) && gestarted.Equals(false)) + gestarted = true; + + if(gestarted == true) + result.Add(strukture); + } + return result; + + } + } +} diff --git a/SanSystem/CSVParser/CSVParser.cs b/SanSystem/CSVParser/CSVParser.cs new file mode 100644 index 0000000..1ff6b78 --- /dev/null +++ b/SanSystem/CSVParser/CSVParser.cs @@ -0,0 +1,28 @@ +using SanShared; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CSVParser +{ + public abstract class CSVParser : IReadCSVData + { + private string csvFile; + public CSVParser(string csvFile) + { + this.csvFile = csvFile; + } + public virtual string[] Input + { + get + { + if (!File.Exists(csvFile)) throw new FileNotFoundException(csvFile); + return File.ReadAllLines(csvFile); + } + } + public abstract List ReadCSVStrukture(); + } +} diff --git a/SanSystem/CSVParser/CsvParserFactory.cs b/SanSystem/CSVParser/CsvParserFactory.cs new file mode 100644 index 0000000..dee5ce2 --- /dev/null +++ b/SanSystem/CSVParser/CsvParserFactory.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SanShared; + +namespace CSVParser +{ + public static class CsvParserFactory + { + public static IReadCSVData ReadCSVFile(AcceptedCSVFormats csvFormat, string csvFile) + { + switch (csvFormat) + { + case AcceptedCSVFormats.UVRELINING: + return new UVRelining(csvFile); + case AcceptedCSVFormats.BLUELIGHT: + return new BlueLight(csvFile); + default: + throw new ArgumentOutOfRangeException(nameof(csvFormat)); + } + } + } +} diff --git a/SanSystem/CSVParser/UVRelining.cs b/SanSystem/CSVParser/UVRelining.cs new file mode 100644 index 0000000..c6d0523 --- /dev/null +++ b/SanSystem/CSVParser/UVRelining.cs @@ -0,0 +1,56 @@ +using SanShared; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CSVParser +{ + public class UVRelining : CSVParser + { + public UVRelining(string csvFile) : base(csvFile) + { + } + /// + /// + /// + /// + /// + public override List ReadCSVStrukture() + { + /* + * Die Geschwindigkeit wird in cm / sekunde angegeben + */ + List result = new List(); + + DateTime zeit; + double temperatur; + double druck; + int geschwindigkeit; + foreach (string pars in Input) + { + UVcsvStrukture uVcsvStrukture = new UVcsvStrukture(); + string[] parts = pars.Split(','); + if ( + parts[0].Equals("Group1") || + parts[1].Equals("(END)") || + parts[1].Equals("(START)") + ) continue; + DateTime.TryParse(parts[0], out zeit); + double.TryParse(parts[1].Replace('.', ','), out temperatur); + double.TryParse(parts[2].Replace('.', ','), out druck); + int.TryParse(parts[3], out geschwindigkeit); + + + uVcsvStrukture.Zeitstempel = zeit; + uVcsvStrukture.Druck = 1;//druck; + uVcsvStrukture.Temperatur = temperatur; + uVcsvStrukture.Geschwindigkeit = geschwindigkeit; + result.Add(uVcsvStrukture); + } + return result; + } + } +} diff --git a/Database/Datenbank.cs b/SanSystem/Database/Datenbank.cs similarity index 97% rename from Database/Datenbank.cs rename to SanSystem/Database/Datenbank.cs index 6a5bdc1..dfea20e 100644 --- a/Database/Datenbank.cs +++ b/SanSystem/Database/Datenbank.cs @@ -7,8 +7,6 @@ using System.Threading.Tasks; using System.Xaml; using System.IO.Compression; using System.Diagnostics; -using ICSharpCode.SharpZipLib.Zip; -using ICSharpCode.SharpZipLib.Core; using KlassenBIB; using SanShared.Exceptions; diff --git a/Database/UpdateDatabase.cs b/SanSystem/Database/UpdateDatabase.cs similarity index 100% rename from Database/UpdateDatabase.cs rename to SanSystem/Database/UpdateDatabase.cs diff --git a/KlassenBIB/Auftraggeber.cs b/SanSystem/KlassenBIB/Auftraggeber.cs similarity index 100% rename from KlassenBIB/Auftraggeber.cs rename to SanSystem/KlassenBIB/Auftraggeber.cs diff --git a/KlassenBIB/AusgefuehrteTaetigkeiten.cs b/SanSystem/KlassenBIB/AusgefuehrteTaetigkeiten.cs similarity index 100% rename from KlassenBIB/AusgefuehrteTaetigkeiten.cs rename to SanSystem/KlassenBIB/AusgefuehrteTaetigkeiten.cs diff --git a/KlassenBIB/Collections/AbwasserTechnischeAnlage.cs b/SanSystem/KlassenBIB/Collections/AbwasserTechnischeAnlage.cs similarity index 100% rename from KlassenBIB/Collections/AbwasserTechnischeAnlage.cs rename to SanSystem/KlassenBIB/Collections/AbwasserTechnischeAnlage.cs diff --git a/KlassenBIB/Collections/AuftraggeberList.cs b/SanSystem/KlassenBIB/Collections/AuftraggeberList.cs similarity index 100% rename from KlassenBIB/Collections/AuftraggeberList.cs rename to SanSystem/KlassenBIB/Collections/AuftraggeberList.cs diff --git a/KlassenBIB/Collections/AusgefuehrteTaetigkeiten.cs b/SanSystem/KlassenBIB/Collections/AusgefuehrteTaetigkeiten.cs similarity index 100% rename from KlassenBIB/Collections/AusgefuehrteTaetigkeiten.cs rename to SanSystem/KlassenBIB/Collections/AusgefuehrteTaetigkeiten.cs diff --git a/KlassenBIB/Collections/Bilder.cs b/SanSystem/KlassenBIB/Collections/Bilder.cs similarity index 100% rename from KlassenBIB/Collections/Bilder.cs rename to SanSystem/KlassenBIB/Collections/Bilder.cs diff --git a/KlassenBIB/Collections/ChargeNummer.cs b/SanSystem/KlassenBIB/Collections/ChargeNummer.cs similarity index 100% rename from KlassenBIB/Collections/ChargeNummer.cs rename to SanSystem/KlassenBIB/Collections/ChargeNummer.cs diff --git a/KlassenBIB/Collections/ImprägnierBericht.cs b/SanSystem/KlassenBIB/Collections/ImprägnierBericht.cs similarity index 100% rename from KlassenBIB/Collections/ImprägnierBericht.cs rename to SanSystem/KlassenBIB/Collections/ImprägnierBericht.cs diff --git a/KlassenBIB/Collections/Inspektionskuerzeln.cs b/SanSystem/KlassenBIB/Collections/Inspektionskuerzeln.cs similarity index 100% rename from KlassenBIB/Collections/Inspektionskuerzeln.cs rename to SanSystem/KlassenBIB/Collections/Inspektionskuerzeln.cs diff --git a/KlassenBIB/Collections/Leistungsverzeichnis.cs b/SanSystem/KlassenBIB/Collections/Leistungsverzeichnis.cs similarity index 100% rename from KlassenBIB/Collections/Leistungsverzeichnis.cs rename to SanSystem/KlassenBIB/Collections/Leistungsverzeichnis.cs diff --git a/KlassenBIB/Collections/Projekte.cs b/SanSystem/KlassenBIB/Collections/Projekte.cs similarity index 100% rename from KlassenBIB/Collections/Projekte.cs rename to SanSystem/KlassenBIB/Collections/Projekte.cs diff --git a/KlassenBIB/Collections/Sanierung.cs b/SanSystem/KlassenBIB/Collections/Sanierung.cs similarity index 100% rename from KlassenBIB/Collections/Sanierung.cs rename to SanSystem/KlassenBIB/Collections/Sanierung.cs diff --git a/KlassenBIB/Collections/Sanierungskonzept.cs b/SanSystem/KlassenBIB/Collections/Sanierungskonzept.cs similarity index 100% rename from KlassenBIB/Collections/Sanierungskonzept.cs rename to SanSystem/KlassenBIB/Collections/Sanierungskonzept.cs diff --git a/KlassenBIB/DB.cs b/SanSystem/KlassenBIB/DB.cs similarity index 100% rename from KlassenBIB/DB.cs rename to SanSystem/KlassenBIB/DB.cs diff --git a/KlassenBIB/IImportedObjekte.cs b/SanSystem/KlassenBIB/IImportedObjekte.cs similarity index 100% rename from KlassenBIB/IImportedObjekte.cs rename to SanSystem/KlassenBIB/IImportedObjekte.cs diff --git a/KlassenBIB/Inspektionskuerzeln.cs b/SanSystem/KlassenBIB/Inspektionskuerzeln.cs similarity index 100% rename from KlassenBIB/Inspektionskuerzeln.cs rename to SanSystem/KlassenBIB/Inspektionskuerzeln.cs diff --git a/KlassenBIB/Inspektionsobjekt.cs b/SanSystem/KlassenBIB/Inspektionsobjekt.cs similarity index 97% rename from KlassenBIB/Inspektionsobjekt.cs rename to SanSystem/KlassenBIB/Inspektionsobjekt.cs index fe04287..8f7820e 100644 --- a/KlassenBIB/Inspektionsobjekt.cs +++ b/SanSystem/KlassenBIB/Inspektionsobjekt.cs @@ -12,7 +12,7 @@ namespace KlassenBIB /// /// [ContentProperty("Sanierung")] - public class Inspektionsobjekt + public class Inspektionsobjekt : IInspektionsobjekt { private string strasseName = "none"; diff --git a/KlassenBIB/LeistungsVerzeichnis.cs b/SanSystem/KlassenBIB/LeistungsVerzeichnis.cs similarity index 100% rename from KlassenBIB/LeistungsVerzeichnis.cs rename to SanSystem/KlassenBIB/LeistungsVerzeichnis.cs diff --git a/KlassenBIB/Lieferschein.cs b/SanSystem/KlassenBIB/Lieferschein.cs similarity index 100% rename from KlassenBIB/Lieferschein.cs rename to SanSystem/KlassenBIB/Lieferschein.cs diff --git a/KlassenBIB/LinerChargen.cs b/SanSystem/KlassenBIB/LinerChargen.cs similarity index 100% rename from KlassenBIB/LinerChargen.cs rename to SanSystem/KlassenBIB/LinerChargen.cs diff --git a/KlassenBIB/Projekt.cs b/SanSystem/KlassenBIB/Projekt.cs similarity index 100% rename from KlassenBIB/Projekt.cs rename to SanSystem/KlassenBIB/Projekt.cs diff --git a/KlassenBIB/Sanierung/AbstractSanieren.cs b/SanSystem/KlassenBIB/Sanierung/AbstractSanieren.cs similarity index 100% rename from KlassenBIB/Sanierung/AbstractSanieren.cs rename to SanSystem/KlassenBIB/Sanierung/AbstractSanieren.cs diff --git a/KlassenBIB/Sanierung/Renovation/AbstractImprägnier.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/AbstractImprägnier.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/AbstractImprägnier.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/AbstractImprägnier.cs diff --git a/KlassenBIB/Sanierung/Renovation/ImprägnierungStrukture.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/ImprägnierungStrukture.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/ImprägnierungStrukture.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/ImprägnierungStrukture.cs diff --git a/KlassenBIB/Sanierung/Renovation/InlinerSanierung.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/InlinerSanierung.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/InlinerSanierung.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/InlinerSanierung.cs diff --git a/KlassenBIB/Sanierung/Renovation/UVAnlagenTyp.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/UVAnlagenTyp.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/UVAnlagenTyp.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/UVAnlagenTyp.cs diff --git a/KlassenBIB/Sanierung/Renovation/VorOrtImprägnier.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/VorOrtImprägnier.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/VorOrtImprägnier.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/VorOrtImprägnier.cs diff --git a/KlassenBIB/Sanierung/Renovation/WerkseitigImprägniert.cs b/SanSystem/KlassenBIB/Sanierung/Renovation/WerkseitigImprägniert.cs similarity index 100% rename from KlassenBIB/Sanierung/Renovation/WerkseitigImprägniert.cs rename to SanSystem/KlassenBIB/Sanierung/Renovation/WerkseitigImprägniert.cs diff --git a/KlassenBIB/Sanierung/Reparatur.cs b/SanSystem/KlassenBIB/Sanierung/Reparatur.cs similarity index 100% rename from KlassenBIB/Sanierung/Reparatur.cs rename to SanSystem/KlassenBIB/Sanierung/Reparatur.cs diff --git a/KlassenBIB/Sanierung/Reparatur/Hutprofil.cs b/SanSystem/KlassenBIB/Sanierung/Reparatur/Hutprofil.cs similarity index 100% rename from KlassenBIB/Sanierung/Reparatur/Hutprofil.cs rename to SanSystem/KlassenBIB/Sanierung/Reparatur/Hutprofil.cs diff --git a/KlassenBIB/Sanierung/Reparatur/Kurzliner.cs b/SanSystem/KlassenBIB/Sanierung/Reparatur/Kurzliner.cs similarity index 100% rename from KlassenBIB/Sanierung/Reparatur/Kurzliner.cs rename to SanSystem/KlassenBIB/Sanierung/Reparatur/Kurzliner.cs diff --git a/KlassenBIB/Sanierung/Reparatur/Quicklock.cs b/SanSystem/KlassenBIB/Sanierung/Reparatur/Quicklock.cs similarity index 100% rename from KlassenBIB/Sanierung/Reparatur/Quicklock.cs rename to SanSystem/KlassenBIB/Sanierung/Reparatur/Quicklock.cs diff --git a/KlassenBIB/Sanierung/Reparatur/SanMitHarz.cs b/SanSystem/KlassenBIB/Sanierung/Reparatur/SanMitHarz.cs similarity index 100% rename from KlassenBIB/Sanierung/Reparatur/SanMitHarz.cs rename to SanSystem/KlassenBIB/Sanierung/Reparatur/SanMitHarz.cs diff --git a/KlassenBIB/Sanierung/Sanierung.cs b/SanSystem/KlassenBIB/Sanierung/Sanierung.cs similarity index 100% rename from KlassenBIB/Sanierung/Sanierung.cs rename to SanSystem/KlassenBIB/Sanierung/Sanierung.cs diff --git a/KlassenBIB/Sanierung/StructChargeNummern.cs b/SanSystem/KlassenBIB/Sanierung/StructChargeNummern.cs similarity index 100% rename from KlassenBIB/Sanierung/StructChargeNummern.cs rename to SanSystem/KlassenBIB/Sanierung/StructChargeNummern.cs diff --git a/KlassenBIB/Sanierungskonzept.cs b/SanSystem/KlassenBIB/Sanierungskonzept.cs similarity index 100% rename from KlassenBIB/Sanierungskonzept.cs rename to SanSystem/KlassenBIB/Sanierungskonzept.cs diff --git a/KlassenBIB/SavedBilder.cs b/SanSystem/KlassenBIB/SavedBilder.cs similarity index 100% rename from KlassenBIB/SavedBilder.cs rename to SanSystem/KlassenBIB/SavedBilder.cs diff --git a/KlassenBIB/SchachtAnbindung.cs b/SanSystem/KlassenBIB/SchachtAnbindung.cs similarity index 100% rename from KlassenBIB/SchachtAnbindung.cs rename to SanSystem/KlassenBIB/SchachtAnbindung.cs diff --git a/SanSystem/SanShared/BerichtWorker.cs b/SanSystem/SanShared/BerichtWorker.cs new file mode 100644 index 0000000..beaa392 --- /dev/null +++ b/SanSystem/SanShared/BerichtWorker.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + public class BerichtWorker + { + + } +} diff --git a/SanSystem/SanShared/BilderObject.cs b/SanSystem/SanShared/BilderObject.cs new file mode 100644 index 0000000..f6ed6ff --- /dev/null +++ b/SanSystem/SanShared/BilderObject.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// + /// + public class BilderObject + { + /// + /// + /// + public string Kommentar { get; set; } + /// + /// + /// + public string Path { get; set; } + /// + /// + /// + public int ImgID { get; set; } + } +} diff --git a/SanSystem/SanShared/Dongle.cs b/SanSystem/SanShared/Dongle.cs new file mode 100644 index 0000000..e9f3bb4 --- /dev/null +++ b/SanSystem/SanShared/Dongle.cs @@ -0,0 +1,170 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CodeMeter; + +namespace SanShared +{ + //4e 6a 41 77 4e 6a 51 7a 51 44 4d 78 4d 7a 6b 79 5a 54 4d 30 4d 6d 55 7a 4d 47 35 4c 61 32 55 7a 51 31 46 30 52 33 64 46 5a 45 68 35 56 57 74 47 61 7a 5a 30 61 48 70 55 57 69 39 58 64 6b 78 4a 54 32 78 43 62 6b 74 58 52 58 46 57 63 30 5a 73 64 7a 41 39 + public class Dongle : IDisposable + { + uint FirmCode; + uint ProductCode; + public string SyncfusionKey = ""; + + Api cmApi; + CmCredential cmCred; + CmAccess2 cmAcc; + HCMSysEntry hcmse; + CmBoxInfo cmBoxInfo; + CmBoxEntry2 BoxContent; + + public Dongle(uint ProductCode) + { +#if !DEBUG + this.FirmCode = 103086; + this.ProductCode = ProductCode; +#else + return; + this.FirmCode = 10; + this.ProductCode = 1; +#endif + + + cmApi = new Api(); + cmCred = new CmCredential(); + cmAcc = new CmAccess2(); + + cmAcc.Credential = cmCred; + + cmAcc.Ctrl |= CmAccess.Option.UserLimit; + cmAcc.FirmCode = this.FirmCode; + cmAcc.ProductCode = this.ProductCode; + + + hcmse = cmApi.CmAccess2(CmAccessOption.Local, cmAcc); + if (hcmse == null) + { + ErrorCodes2 code = cmApi.CmGetLastErrorCode2(); + string output = string.Format("{0}", code); + + } + + if (!CheckDongleVorhanden()) + throw new Exception("Dongle not connected"); + + cmBoxInfo = new CmBoxInfo(); + + CmGetBoxContentsOption boxOptions = new CmGetBoxContentsOption(); + boxOptions = CmGetBoxContentsOption.AllEntries; + + CmBoxEntry2[] tmpBoxContent; + + tmpBoxContent = cmApi.CmGetBoxContents2(hcmse, boxOptions, this.FirmCode, cmBoxInfo); + + CmEntryData[] pCmBoxEntry = (CmEntryData[])cmApi.CmGetInfo(hcmse, CmGetInfoOption.EntryData); + + for (int i = 0; i < pCmBoxEntry.Length; i++) + { + switch (pCmBoxEntry[i].Ctrl & 0x0ffff) + { + case (uint)CodeMeter.GlobalEntryOption.ProtectedData: + // Transfer to transformed byte + uint length = pCmBoxEntry[i].DataLen; + byte[] datas = new byte[length]; + for(uint f = 0; f < length; f++) + { + datas[f] = pCmBoxEntry[i].Data[f]; + } + + + SyncfusionKey = Encoding.ASCII.GetString(datas); + break; + } + } + + foreach (CmBoxEntry2 boxes in tmpBoxContent) + { + if (boxes.ProductCode == this.ProductCode) + { + this.BoxContent = boxes; + } + + } + } + ~Dongle() + { + CleanDongle(); + } + + public void CleanDongle() + { +#if DEBUG + return; +#endif + cmApi.CmRelease(hcmse); + } + + public bool CheckDongleVorhanden() + { +#if LAPTOP + return true; +#else + if (hcmse == null) + return false; + else + return true; +#endif + } + + public string GetDongleSerial() + { + + CmBoxInfo res = (CmBoxInfo)cmApi.CmGetInfo(hcmse, CmGetInfoOption.BoxInfo); + if (null != res) + { + return res.SerialNumber.ToString(); + } + else + { + throw new Exception("Fehler beim aufrufen der Seriennummer"); + } + } + + public uint GetFeatureMap() + { + return BoxContent.FeatureMap; + } + + public string GetName() + { + return ""; + } + + public bool IsLicensed(byte neededMask) + { +#if DEBUG + return true; +#else + uint DongleFeature = GetFeatureMap(); + + //Trace.WriteLine("DongleFeature: " + DongleFeature); + + byte DongleFeatureB = (byte)DongleFeature; + + if ((DongleFeatureB & neededMask) == neededMask) + return true; + return false; +#endif + } + + public void Dispose() + { + CleanDongle(); + } + } +} + diff --git a/SanSystem/SanShared/Exceptions/CSVImportException.cs b/SanSystem/SanShared/Exceptions/CSVImportException.cs new file mode 100644 index 0000000..ffa3ad6 --- /dev/null +++ b/SanSystem/SanShared/Exceptions/CSVImportException.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared.Exceptions +{ + public class CSVImportException : Exception + { + public CSVImportException() + { + } + + public CSVImportException(string message) : base(message) + { + } + + public CSVImportException(string message, Exception innerException) : base(message, innerException) + { + } + + protected CSVImportException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/SanSystem/SanShared/Exceptions/DataBaseVersionMismatchException.cs b/SanSystem/SanShared/Exceptions/DataBaseVersionMismatchException.cs new file mode 100644 index 0000000..4656fae --- /dev/null +++ b/SanSystem/SanShared/Exceptions/DataBaseVersionMismatchException.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared.Exceptions +{ + /// + /// + /// + public class DataBaseVersionMismatchException : Exception + { + /// + /// + /// + public DataBaseVersionMismatchException() + { + } + /// + /// + /// + /// + public DataBaseVersionMismatchException(string message) : base(message) + { + } + /// + /// + /// + /// + /// + public DataBaseVersionMismatchException(string message, Exception innerException) : base(message, innerException) + { + } + /// + /// + /// + /// + /// + protected DataBaseVersionMismatchException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/SanSystem/SanShared/Exceptions/LangNotFoundException.cs b/SanSystem/SanShared/Exceptions/LangNotFoundException.cs new file mode 100644 index 0000000..7911670 --- /dev/null +++ b/SanSystem/SanShared/Exceptions/LangNotFoundException.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared.Exceptions +{ + /// + /// + /// + public class LangNotFoundException : Exception + { + /// + /// + /// + public LangNotFoundException() + { + } + /// + /// + /// + /// + public LangNotFoundException(string message) : base(message) + { + } + /// + /// + /// + /// + /// + public LangNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } + /// + /// + /// + /// + /// + protected LangNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/SanSystem/SanShared/IAuftraggeber.cs b/SanSystem/SanShared/IAuftraggeber.cs new file mode 100644 index 0000000..2c91104 --- /dev/null +++ b/SanSystem/SanShared/IAuftraggeber.cs @@ -0,0 +1,25 @@ +namespace SanShared +{ + /// + /// + /// + public interface IAuftraggeber + { + /// + /// + /// + string Name { get; set; } + /// + /// + /// + string Strasse { get; set; } + /// + /// + /// + string Ort { get; set; } + /// + /// + /// + string Ansprechpartner { get; set; } + } +} \ No newline at end of file diff --git a/SanSystem/SanShared/IImportedObjekte.cs b/SanSystem/SanShared/IImportedObjekte.cs new file mode 100644 index 0000000..540ff8a --- /dev/null +++ b/SanSystem/SanShared/IImportedObjekte.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// Interface zur Import von Daten + /// + public interface IImportedObjekte + { + /// + /// Angaben zur XMLDatei die importiert werden soll + /// + string XMLFile { get; set; } + /// + /// Angaben zur Projektnummern die eingetragen werden soll in die Objekte + /// + string Projektnummer { get; set; } + /// + /// Funktion der die Inspektionsobjekte übergibt + /// + /// + List GetInspektionsobjekte(); + } +} diff --git a/SanSystem/SanShared/IInspektionsobjekt.cs b/SanSystem/SanShared/IInspektionsobjekt.cs new file mode 100644 index 0000000..6520c4b --- /dev/null +++ b/SanSystem/SanShared/IInspektionsobjekt.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + public interface IInspektionsobjekt + { + } +} diff --git a/SanSystem/SanShared/IMakeProtokol.cs b/SanSystem/SanShared/IMakeProtokol.cs new file mode 100644 index 0000000..8c8718f --- /dev/null +++ b/SanSystem/SanShared/IMakeProtokol.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// + /// + public interface IMakeProtokol + { + /// + /// + /// + /// + /// Projekt + /// + Hashtable MakeProtokoll(string destinationPath, IProjekt projekt, DateTime offset); + } +} diff --git a/SanSystem/SanShared/IProjekt.cs b/SanSystem/SanShared/IProjekt.cs new file mode 100644 index 0000000..753a1d9 --- /dev/null +++ b/SanSystem/SanShared/IProjekt.cs @@ -0,0 +1,9 @@ +namespace SanShared +{ + public interface IProjekt + { + IAuftraggeber Auftraggeber { get; set; } + string SanierungsIDPrefix { get; set; } + string SanierungsIDSuffix { get; set; } + } +} \ No newline at end of file diff --git a/SanSystem/SanShared/IReadCSVData.cs b/SanSystem/SanShared/IReadCSVData.cs new file mode 100644 index 0000000..9ab14e4 --- /dev/null +++ b/SanSystem/SanShared/IReadCSVData.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// + /// + public interface IReadCSVData + { + /// + /// + /// + /// + List ReadCSVStrukture(); + /// + /// + /// + string[] Input { get; } + } +} diff --git a/SanSystem/SanShared/ITemperature.cs b/SanSystem/SanShared/ITemperature.cs new file mode 100644 index 0000000..b2e0959 --- /dev/null +++ b/SanSystem/SanShared/ITemperature.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// + /// + public interface ITemperature + { + /// + /// + /// + /// + /// + double GetTemperatur(out string message); + } +} diff --git a/SanSystem/SanShared/UVcsvStrukture.cs b/SanSystem/SanShared/UVcsvStrukture.cs new file mode 100644 index 0000000..e84a3a6 --- /dev/null +++ b/SanSystem/SanShared/UVcsvStrukture.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SanShared +{ + /// + /// CSV Dateistruktur + /// + public class UVcsvStrukture + { + DateTime zeitstempel; + double temperatur; + int druck; + double geschwindigkeit; + /// + /// Zeitstempel vom Eintrag + /// + public DateTime Zeitstempel { get => zeitstempel; set => zeitstempel = value; } + /// + /// Temperatur anzeige vom Eintrag + /// + public double Temperatur { get => temperatur; set => temperatur = value; } + /// + /// Druckanzeige vom Eintrag + /// + public int Druck { get => druck; set => druck = value; } + /// + /// Geschwindigkeit vom Eintrag + /// + public double Geschwindigkeit { get => geschwindigkeit; set => geschwindigkeit = value; } + } +} diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj index 8020867..9d3da39 100644 --- a/SanSystem/SanSystem.csproj +++ b/SanSystem/SanSystem.csproj @@ -52,9 +52,18 @@ ..\packages\Syncfusion.Chart.Windows.19.4.0.56\lib\net46\Syncfusion.Chart.Windows.dll + + ..\packages\Syncfusion.Compression.Base.19.4.0.56\lib\net46\Syncfusion.Compression.Base.dll + ..\packages\Syncfusion.Core.WinForms.19.4.0.56\lib\net46\Syncfusion.Core.WinForms.dll + + ..\packages\Syncfusion.DocIO.WinForms.19.4.0.56\lib\net46\Syncfusion.DocIO.Base.dll + + + ..\packages\Syncfusion.DocToPDFConverter.WinForms.19.4.0.56\lib\net46\Syncfusion.DocToPdfConverter.Base.dll + ..\packages\Syncfusion.Grid.Base.19.4.0.56\lib\net46\Syncfusion.Grid.Base.dll @@ -67,6 +76,15 @@ ..\packages\Syncfusion.Licensing.19.4.0.56\lib\net46\Syncfusion.Licensing.dll + + ..\packages\Syncfusion.OfficeChart.Base.19.4.0.56\lib\net46\Syncfusion.OfficeChart.Base.dll + + + ..\packages\Syncfusion.Pdf.WinForms.19.4.0.56\lib\net46\Syncfusion.Pdf.Base.dll + + + ..\packages\Syncfusion.PdfViewer.Windows.19.4.0.56\lib\net46\Syncfusion.PdfViewer.Windows.dll + ..\packages\Syncfusion.SfInput.WinForms.19.4.0.56\lib\net46\Syncfusion.SfInput.WinForms.dll @@ -95,6 +113,7 @@ + @@ -104,9 +123,43 @@ + + ..\dlls\Tinkerforge.dll + + + ..\3rdPackage\WibuCmNET.dll + + + ..\3rdPackage\wupi.net.dll + + + ..\3rdPackage\WupiEngineNet.dll + + + + + Form + + + FrmOptions.cs + + + Form + + + FrmPDFViewer.cs + + + + + + + + + @@ -244,10 +297,75 @@ frmInfo.cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + UserControl @@ -272,6 +390,12 @@ UCWerkseitigImprägniert.cs + + FrmOptions.cs + + + FrmPDFViewer.cs + FrmAktuelleBesatzung.cs @@ -380,43 +504,34 @@ Settings.settings True + + Designer + + + Designer + + + Designer + + + Designer + PreserveNewest + + + Designer + + + Designer + - - {3022da07-fd06-4aea-9fc8-00d318e95a82} - BerichtGen - - - {3f79bd28-9bf6-4902-8977-41e9e71f8488} - CSVParser - - - {b0227727-6cf9-4e2e-9afe-5dd76deaa9db} - Database - {324277c6-2eb3-47b7-9dd5-7fa520e7d349} Dichtheitsprüfung - - {c82bd650-466b-403f-bed9-2b1660771f54} - KlassenBIB - - - {c949087e-20e1-4a17-b021-faead363c1d8} - SanShared - - - {E1564A4D-39FD-489B-8029-AEEF33033EF2} - SchnittstelleImporter - - - {e4979419-5eae-4b6d-a6a0-9632c1de87a0} - TempCAN - {cf95db30-247b-4382-948e-3bd5eb73c938} UpdateLib diff --git a/SanSystem/SchnittstelleImporter/I2006XML.cs b/SanSystem/SchnittstelleImporter/I2006XML.cs new file mode 100644 index 0000000..a8b17ee --- /dev/null +++ b/SanSystem/SchnittstelleImporter/I2006XML.cs @@ -0,0 +1,199 @@ +using SanShared; +using SchnittstelleImporter.XML2006; +using System; +using System.Collections.Generic; +using System.Data; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml; +using System.Xml.Schema; + +namespace SchnittstelleImporter +{ + /// + /// + /// + public class I2006XML : IImportedObjekte + { + string xmlFile; + string projektnummer; + Dictionary materialReferenz = new Dictionary(); + /// + /// Angabe zur XML datei + /// + public string XMLFile + { + get + { + return xmlFile; + } + set + { + xmlFile = value; + } + } + /// + /// Angabe zur Projektnummer + /// + public string Projektnummer + { + get + { + return projektnummer; + } + set + { + projektnummer = value; + } + + } + /// + /// + /// + public I2006XML() + { + LoadMaterialien(); + } + private void LoadMaterialien() + { + materialReferenz.Add("AZ", "AsbestZement"); + materialReferenz.Add("B", "Beton"); + materialReferenz.Add("BS", "BetonSegmente"); + + /*materialReferenz.Add("CNS + materialReferenz.Add("EIS + materialReferenz.Add("FZ + */ + materialReferenz.Add("GFK", "GFK"); + materialReferenz.Add("GG", "Grauguss"); + /* + materialReferenz.Add("GGG + materialReferenz.Add("KST + materialReferenz.Add("MA + materialReferenz.Add("OB + materialReferenz.Add("P + materialReferenz.Add("PC + materialReferenz.Add("PCC + */ + materialReferenz.Add("PE", "PE"); + materialReferenz.Add("PEHD", "PEHD"); + /* + materialReferenz.Add("PH + materialReferenz.Add("PHB + */ + materialReferenz.Add("PP", "Polypropolen"); + materialReferenz.Add("PVC", "Polyvinylchlorid"); + materialReferenz.Add("PVCU", "Polyvinylchlorid hart"); + /*materialReferenz.Add("SFB + materialReferenz.Add("SPB + */ + materialReferenz.Add("SB", "Stahlbeton"); + //materialReferenz.Add("ST + materialReferenz.Add("STZ", "Steinzeug"); + /*materialReferenz.Add("SZB + materialReferenz.Add("W + materialReferenz.Add("ZG + materialReferenz.Add("MIX + materialReferenz.Add("BOD + materialReferenz.Add("RAS + materialReferenz.Add("PFL + */ + } + + private string getRohrmaterial(string kennung) + { + string result; + if (!materialReferenz.TryGetValue(kennung, out result)) + result = kennung; + + return result; + } + + private static void LoadRefListe() + { + //XmlSchema s = XmlSchema.Read(XmlReader.Create(@"XML2006\SchemaDateien\0610-referenzlisten.xsd"), null); + XmlDocument xmlDocument = new XmlDocument(); + xmlDocument.Load(@"XML2006\SchemaDateien\0610-referenzlisten.xsd"); + + XmlNodeReader nodeReader = new XmlNodeReader(xmlDocument); + while(nodeReader.Read()) + { + Trace.WriteLine(nodeReader.Name); + Trace.WriteLine(nodeReader.GetAttribute("name")); + } + /* + int x = xmlDocument.ChildNodes.Count; + var y = xmlDocument.ChildNodes[7]; + + for(int i = 0; i < y.ChildNodes.Count; i++) + { + var d = y.ChildNodes[i]; + var e = d["MaterialType"]; + Trace.WriteLine(e); + }*/ + + } + + private static void ValidationCallback(object sender, ValidationEventArgs e) + { + throw new NotImplementedException(); + } + + /// + /// + /// + /// + public List GetInspektionsobjekte() + { + /* + List result = new List(); + List anlagen = XMLParser.GetList(XMLFile); + foreach(InspizierteAbwassertechnischeAnlage src in anlagen) + { + IInspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); + KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln(); + + inspektionsobjekt.Projektnummer = projektnummer; + inspektionsobjekt.Objektbezeichnung = src.Objektbezeichnung; + inspektionsobjekt.OrtName = src.Lage.Ortname!= null? src.Lage.Ortname : ""; + inspektionsobjekt.StrasseName = src.Lage.Strassename != null ? src.Lage.Strassename : "noname"; + inspektionsobjekt.RohrMaterial = src.OptischeInspektion.Rohrleitung.Grunddaten.Material != null ? getRohrmaterial(src.OptischeInspektion.Rohrleitung.Grunddaten.Material) : "Unbekannt"; + inspektionsobjekt.Kanalrohrweite = src.OptischeInspektion.Rohrleitung.Grunddaten.Profilhoehe != 0 ? (uint)src.OptischeInspektion.Rohrleitung.Grunddaten.Profilhoehe : (uint)src.OptischeInspektion.Rohrleitung.Grunddaten.Profilbreite; + inspektionsobjekt.Haltungslaenge = Convert.ToDouble(src.OptischeInspektion.Rohrleitung.Inspektionslaenge); + inspektionsobjekt.VonPunkt = src.OptischeInspektion.Rohrleitung.Grunddaten.KnotenZulauf; + inspektionsobjekt.BisPunkt = src.OptischeInspektion.Rohrleitung.Grunddaten.KnotenAblauf; + inspektionsobjekt.Inspektionsrichtung = src.OptischeInspektion.Rohrleitung.Inspektionsrichtung; + + + foreach(RZustand zustand in src.OptischeInspektion.Rohrleitung.Zustaende) + { + Inspektionskuerzeln inspektionskuerzeln = new Inspektionskuerzeln(); + inspektionskuerzeln.Station = zustand.Station; + inspektionskuerzeln.Hauptkode = zustand.Inspektionskode; + inspektionskuerzeln.Charakterisierung1 = zustand.Charakterisierung1; + inspektionskuerzeln.Charakterisierung2 = zustand.Charakterisierung2; + inspektionskuerzeln.ImVerbindung = zustand.Verbindung; + inspektionskuerzeln.LageAmUmfangStart = Convert.ToUInt32(zustand.PositionVon); + inspektionskuerzeln.LageAmUmfangEnde = Convert.ToUInt32(zustand.PositionBis); + + Quantifizierung quant1 = zustand.Quantifizierung1; + Quantifizierung quant2 = zustand.Quantifizierung2; + + inspektionskuerzeln.Quantifizierung1 = Convert.ToUInt32(quant1.Numerisch); + inspektionskuerzeln.Quantifizierung2 = Convert.ToUInt32(quant2.Numerisch); + + inspektionskuerzelns.Add(inspektionskuerzeln); + } + + inspektionsobjekt.Schadenskuerzeln = inspektionskuerzelns; + result.Add(inspektionsobjekt); + } + + return result; + */ + return new List(); + } + } +} diff --git a/SanSystem/SchnittstelleImporter/ImportBuilder.cs b/SanSystem/SchnittstelleImporter/ImportBuilder.cs new file mode 100644 index 0000000..4ffc25b --- /dev/null +++ b/SanSystem/SchnittstelleImporter/ImportBuilder.cs @@ -0,0 +1,39 @@ +using SanShared; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter +{ + /// + /// Definiert die Importierbare Schnittstellen + /// + public enum ImportSchnittstellen + { + /// + /// Euronorm XML 2006 + /// + XML2006 + } + /// + /// + /// + public static class ImportBuilder + { + /// + /// + /// + public static IImportedObjekte Import(ImportSchnittstellen importSchnittstellen) + { + switch (importSchnittstellen) + { + case ImportSchnittstellen.XML2006: return new I2006XML(); + default: throw new Exception("Gewünschte Schnittstelle nicht implementiert"); + } + + } + } + +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs b/SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs new file mode 100644 index 0000000..b2b14c5 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public class Anschlussdaten + { + string objektbezeichnung; + EKantenTyp kantentyp; + decimal entfernung; + string anschlussArt; + string fixierung; + string kommentar; + /// + /// + /// + public string Objektbezeichnung { get => objektbezeichnung; set => objektbezeichnung = value; } + /// + /// + /// + public EKantenTyp Kantentyp { get => kantentyp; set => kantentyp = value; } + /// + /// + /// + public decimal Entfernung { get => entfernung; set => entfernung = value; } + /// + /// + /// + public string AnschlussArt { get => anschlussArt; set => anschlussArt = value; } + /// + /// + /// + public string Fixierung { get => fixierung; set => fixierung = value; } + /// + /// + /// + public string Kommentar { get => kommentar; set => kommentar = value; } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/Enums.cs b/SanSystem/SchnittstelleImporter/XML2006/Enums.cs new file mode 100644 index 0000000..dbd11d3 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/Enums.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public enum EAnlagetyp + { + /// + /// + /// + Haltung = 1, + /// + /// + /// + Anschlussleitung = 2, + /// + /// + /// + Schacht = 3, + /// + /// + /// + Bauwerk = 4 + } + /// + /// + /// + enum EInspektionverfahren + { + TVUntersuchung, + Begehung, + VomSchacht, + Other + } + /// + /// + /// + enum EWetter + { + KEINNIEDERSCHLAG = 1, + REGEN = 2, + SCHNEE = 3 + } + /// + /// + /// + public enum ERohrleitungstyp + { + /// + /// + /// + HALTUNG, + /// + /// + /// + LEITUNG + } + /// + /// + /// + enum EObjektArt + { + KANTE = 1, + KNOTEN = 2 + } + /// + /// + /// + public enum EKnotenTyp + { + /// + /// + /// + SCHACHT = 0, + /// + /// + /// + ANSCHLUSSPUNKT = 1, + /// + /// + /// + BAUWERK = 2 + } + /// + /// + /// + public enum EKantenTyp + { + /// + /// + /// + HALTUNG, + /// + /// + /// + LEITUNG, + /// + /// + /// + RINNE, + /// + /// + /// + GERINNE + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs b/SanSystem/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs new file mode 100644 index 0000000..7859582 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public sealed class InspizierteAbwassertechnischeAnlage + { + string objektbezeichnung; + Lage lage; + EAnlagetyp anlagentyp; + OptischeInspektion optischeInspektion; + /// + /// + /// + public string Objektbezeichnung + { + get + { + return objektbezeichnung; + } + set + { + objektbezeichnung = value; + } + } + /// + /// + /// + public EAnlagetyp Anlagentyp + { + get + { + return anlagentyp; + } + set + { + anlagentyp = value; + } + } + /// + /// + /// + public OptischeInspektion OptischeInspektion + { + get + { + return optischeInspektion; + } + set + { + optischeInspektion = value; + } + } + /// + /// + /// + public Lage Lage + { + get + { + return lage; + } + set + { + lage = value; + } + } + /// + /// + /// + + public override string ToString() + { + return objektbezeichnung; + } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/Lage.cs b/SanSystem/SchnittstelleImporter/XML2006/Lage.cs new file mode 100644 index 0000000..528481b --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/Lage.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public class Lage + { + string strassename; + string ortname; + /// + /// + /// + public string Strassename + { + get + { + return strassename; + } + set + { + strassename = value; + } + } + /// + /// + /// + public string Ortname + { + get + { + return ortname; + } + set + { + ortname = value; + } + } + /// + /// + /// + /// + /// + public Lage(string strassename, string ortname) + { + this.strassename = strassename; + this.ortname = ortname; + } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/OptischeInspektion.cs b/SanSystem/SchnittstelleImporter/XML2006/OptischeInspektion.cs new file mode 100644 index 0000000..122cc7f --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/OptischeInspektion.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public class OptischeInspektion + { + DateTime inspektionstime; + Rohrleitung rohrleitung; + /// + /// + /// + public DateTime Inspektionstime + { + set + { + inspektionstime = value; + } + get + { + return inspektionstime; + } + } + /// + /// + /// + public string Inspektionsdatum + { + get + { + return inspektionstime.ToShortDateString(); + } + /*set + { + throw new NotImplementedException(); + //inspektionsdatum = value; + }*/ + } + /// + /// + /// + public string Inspektionszeit + { + get + { + return inspektionstime.ToShortTimeString(); + } + } + /// + /// + /// + public Rohrleitung Rohrleitung + { + get + { + return rohrleitung; + } + set + { + rohrleitung = value; + } + } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs b/SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs new file mode 100644 index 0000000..5d9f224 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public class RGrunddaten + { + string knotenZulauf; + EKnotenTyp knotenZulaufTyp; + string knotenAblauf; + EKnotenTyp knotenAblaufTyp; + int profilhoehe; + int profilbreite; + int profilart; + string material; + string kanalart; + Anschlussdaten anschlussddaten = null; + int herkunftProfilmasse; + int herkunftMaterial; + decimal regeleinzelrohrlaenge; + int artAuskleidung; + string innenschutz; + /// + /// + /// + public string KnotenZulauf { get => knotenZulauf; set => knotenZulauf = value; } + /// + /// + /// + public EKnotenTyp KnotenZulaufTyp { get => knotenZulaufTyp; set => knotenZulaufTyp = value; } + /// + /// + /// + public string KnotenAblauf { get => knotenAblauf; set => knotenAblauf = value; } + /// + /// + /// + public EKnotenTyp KnotenAblaufTyp { get => knotenAblaufTyp; set => knotenAblaufTyp = value; } + /// + /// + /// + public int Profilhoehe { get => profilhoehe; set => profilhoehe = value; } + /// + /// + /// + public int Profilbreite { get => profilbreite; set => profilbreite = value; } + /// + /// + /// + public int Profilart { get => profilart; set => profilart = value; } + /// + /// + /// + public string Material { get => material; set => material = value; } + /// + /// + /// + public string Kanalart { get => kanalart; set => kanalart = value; } + /// + /// + /// + public Anschlussdaten Anschlussddaten { get => anschlussddaten; set => anschlussddaten = value; } + /// + /// + /// + public int HerkunftProfilmasse { get => herkunftProfilmasse; set => herkunftProfilmasse = value; } + /// + /// + /// + public int HerkunftMaterial { get => herkunftMaterial; set => herkunftMaterial = value; } + /// + /// + /// + public decimal Regeleinzelrohrlaenge { get => regeleinzelrohrlaenge; set => regeleinzelrohrlaenge = value; } + /// + /// + /// + public int ArtAuskleidung { get => artAuskleidung; set => artAuskleidung = value; } + /// + /// + /// + public bool HasGrundleitung + { + get + { + return anschlussddaten != null; + } + } + /// + /// + /// + public string Innenschutz { get => innenschutz; set => innenschutz = value; } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/RZustand.cs b/SanSystem/SchnittstelleImporter/XML2006/RZustand.cs new file mode 100644 index 0000000..0c66967 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/RZustand.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public struct Quantifizierung + { + /// + /// + /// + public decimal Numerisch; + /// + /// + /// + public string Text; + + /// + /// + /// + public override string ToString() + { + if (Text != null) + return Text; + if (Numerisch == 0) + return ""; + return Numerisch.ToString(); + } + } + /// + /// + /// + public class RZustand + { + decimal station; + string inspektionskode; + string charakterisierung1; + string charakterisierung2; + bool verbindung; + Quantifizierung quantifizierung1; + Quantifizierung quantifizierung2; + string streckenschaden; + int streckenschadennr; + int positionVon; + int positionBis; + string kommentar; + + /// + /// + /// + public decimal Station { get => station; set => station = value; } + /// + /// + /// + public string Inspektionskode { get => inspektionskode; set => inspektionskode = value; } + /// + /// + /// + public string Charakterisierung1 { get => charakterisierung1; set => charakterisierung1 = value; } + /// + /// + /// + public string Charakterisierung2 { get => charakterisierung2; set => charakterisierung2 = value; } + /// + /// + /// + public bool Verbindung { get => verbindung; set => verbindung = value; } + /// + /// + /// + public Quantifizierung Quantifizierung1 { get => quantifizierung1; set => quantifizierung1 = value; } + /// + /// + /// + public Quantifizierung Quantifizierung2 { get => quantifizierung2; set => quantifizierung2 = value; } + /// + /// + /// + public string Streckenschaden { get => streckenschaden; set => streckenschaden = value; } + /// + /// + /// + public int Streckenschadennr { get => streckenschadennr; set => streckenschadennr = value; } + /// + /// + /// + public int PositionVon { get => positionVon; set => positionVon = value; } + /// + /// + /// + public int PositionBis { get => positionBis; set => positionBis = value; } + /// + /// + /// + public string Kommentar { get => kommentar; set => kommentar = value; } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs b/SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs new file mode 100644 index 0000000..4ce2f2d --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public class Rohrleitung + { + ERohrleitungstyp rohrleitungstyp; + decimal inspektionslaenge; + string inspektionsrichtung; + RGrunddaten grunddaten = null; + List zustaende = null; + /// + /// + /// + public ERohrleitungstyp Rohrleitungstyp + { + get + { + return rohrleitungstyp; + } + set + { + rohrleitungstyp = value; + } + } + /// + /// + /// + public decimal Inspektionslaenge + { + get + { + return inspektionslaenge; + } + set + { + inspektionslaenge = value; + } + } + /// + /// + /// + public string Inspektionsrichtung + { + get + { + switch (inspektionsrichtung) + { + case "U": return "Gegen Fliessrichtung"; + case "O": return "In Fliessrichtung"; + default: return "Fliessrichtungangabe nicht bekannt(" + inspektionsrichtung + ")"; + } + + } + set + { + inspektionsrichtung = value; + } + } + /// + /// + /// + public List Zustaende + { + get + { + return zustaende; + } + set + { + zustaende = value; + } + } + /// + /// + /// + public RGrunddaten Grunddaten + { + get + { + return grunddaten; + } + set + { + grunddaten = value; + } + } + } +} diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-betriebsdaten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-betriebsdaten.xsd new file mode 100644 index 0000000..ba97717 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-betriebsdaten.xsd @@ -0,0 +1,289 @@ + + + + + + + + ISYBAU-Austauschformat Datenbereich Betriebsdaten + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-hydraulikdaten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-hydraulikdaten.xsd new file mode 100644 index 0000000..a883098 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-hydraulikdaten.xsd @@ -0,0 +1,2192 @@ + + + + + + + + ISYBAU-Austauschformat Datenbereich Hydraulikdaten + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-metadaten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-metadaten.xsd new file mode 100644 index 0000000..a0205c0 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-metadaten.xsd @@ -0,0 +1,478 @@ + + + + + + + + + + + + ISYBAU-Austauschformat Datenbereich Metadaten + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-referenzlisten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-referenzlisten.xsd new file mode 100644 index 0000000..b03291f --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-referenzlisten.xsd @@ -0,0 +1,6912 @@ + + + + + + + + + + XML-Schema für Referenzlisten der ISYBAU-Austauschformate + + + Referenzlisten für den Bereich Metadaten + + + + M100 Datenstatus + + + + + + + + Bestandsdaten + + + + + Erfassungsdaten + + + + + Planungsdaten - Generelle Planung + + + + + Planungsdaten - Entwurfsplanung + + + + + Planungsdaten - Genehmigungsplanung + + + + + Planungsdaten - Ausführungsplanung + + + + + Planungsdaten - Objektplanung + + + + + sonstiger Datenbestand + + + + + + + M101 Kollektivart + + + + + + + + Stammdaten + + + + + Zustandsdaten + + + + + Hydraulikdaten + + + + + Betriebsdaten + + + + + Kostendaten + + + + + + + M102 Stammdatentyp + + + + + + + + Bautechnischer Bestand + + + + + Hydraulisches oder hydrologisches Ersatzsystem + + + + + + + M103 Zuständigkeit + + + + + + + + Bund, militärisch (BMVg) + + + + + Bund, zivil (BMVBW) + + + + + Bund, sonstige + + + + + Land + + + + + Fremdstreitkräfte + + + + + + + M104 Regelwerk/Datenumfang + + + + + + + + Arbeitshilfen Abwasser (ISYBAU 1996/2001) + + + + + Arbeitshilfen Abwasser (ISYBAU 2006) + + + + + sonstige Festlegungen + + + + + keine Angaben + + + + + + + M105 Abwasserbeseitigungspflicht + + + + + + + + Betreiber + + + + + Kommune + + + + + + Referenzlisten für den Bereich Stammdaten + + + + G100 Objektdifferenzierung + + + + + + + + Kante + + + + + Knoten + + + + + + + G101 Entwässerungssystem / Kanalart + + + + + + Freispiegelabfluss im geschlossenen Profil, Regenwassersystem + + + + + Freispiegelabfluss im geschlossenen Profil, Schmutzwassersystem + + + + + Freispiegelabfluss im geschlossenen Profil, Mischwassersystem + + + + + Freispiegelabfluss im geschlossenen Profil, Fließgewässer + + + + + Druckabfluss, Regenwassersystem + + + + + Druckabfluss, Schmutzwassersystem + + + + + Druckabfluss, Mischwassersystem + + + + + Abfluss im offenen Profil, Regenwassersystem + + + + + Abfluss im offenen Profil, Schmutzwassersystem + + + + + Abfluss im offenen Profil, Mischwassersystem + + + + + Abfluss im offenen Profil, Fließgewässer + + + + + + + G102 Material + + + + + + Asbestzememt + + + + + Beton + + + + + Betonsegmente + + + + + Edelstahl + + + + + Nichtidentifizietes Eisen und Stahl + + + + + Faserzement + + + + + Glasfaserverstärkter Kunststoff + + + + + Grauguss + + + + + Duktiles Gusseisen + + + + + Nichtidenfizierter Kunststoff + + + + + Mauerwerk + + + + + Ortbeton + + + + + Porosit + + + + + Polymerbeton + + + + + Polymermodifizierter Zementbeton + + + + + Polyethylen + + + + + Polyethylen hoher Dichte + + + + + Polyesterharz + + + + + Polyesterharzbeton + + + + + Polypropylen + + + + + Polyvinylchlorid + + + + + Polyvinylchlorid hart + + + + + Stahlfaserbeton + + + + + Spannbeton + + + + + Stahlbeton + + + + + Stahl + + + + + Steinzeug + + + + + Spritzbeton + + + + + Nichtidentifizierter Werkstoff + + + + + Ziegelwerk + + + + + unterschiedliche Werkstoffe + + + + + unbefestigt, anstehender Boden + + + + + Rasen + + + + + Pflaster + + + + + + + G103 Innenschutz + + + + + + Anstrich oder Beschichtung im gesamten Innenraum + + + + + Anstrich oder Beschichtung im Bereich der Sohle + + + + + Anstrich oder Beschichtung im Bereich der Wandung + + + + + Bitumenanstrich im gesamten Innenraum + + + + + Bitumenanstrich im Bereich der Sohle + + + + + Bitumenanstrich im Bereich der Wandung + + + + + Kunstharzbeschichtung im gesamten Innenraum + + + + + Kunstharzbeschichtung im Bereich der Sohle + + + + + Kunstharzbeschichtung im Bereich der Wandung + + + + + Auskleidung mit Kanalklinkern im gesamten Innenraum + + + + + Auskleidung mit Kanalklinkern im Bereich der Sohle + + + + + Auskleidung mit Kanalklinkern im Bereich der Wandung + + + + + Zementmörtelauskleidung im gesamten Innenraum + + + + + Zementmörtelauskleidung im Bereich der Sohle + + + + + Zementmörtelauskleidung im Bereich der Wandung + + + + + + + G104 Auskleidung + + + + + + + + Auskleidung werkseitig eingebracht + + + + + Spritzwasserauskleidung + + + + + Vor-Ort-Auskleidung + + + + + Abschnittsweise Auskleidung + + + + + Auskleidung mittels einzelner Rohre + + + + + Schlauchrelining + + + + + Auskleidung mittels Endlosrohren + + + + + Close-Fit Auskleidung + + + + + Wickelrohrrelining + + + + + + + G105 Status + + + + + + + + vorhanden (in Betrieb) + + + + + geplant + + + + + fiktiv (modelltechnische Gründe) + + + + + außer Betrieb + + + + + verdämmt / verfüllt, Stilllegung + + + + + Sonstige + + + + + + + G106 Lage + + + + + + + + unbekannt + + + + + schwere Zugänglichkeit (Autobahn, Gleisanlage, etc.) + + + + + Fahrbahn/Hoffläche fließender Verkehr + + + + + Parkstreifen/Hoffläche ruhender Verkehr/Abstellbereich + + + + + Geh-/Rad-/Wirtschaftsweg befestigt + + + + + Geh-/Rad-/Wirtschaftsweg unbefestigt + + + + + Straßenseitenraum, unbefestigt + + + + + unter einem Gebäude + + + + + Wald/Forstbereich + + + + + Garten-/Grünfläche + + + + + Brachfläche/Wiese + + + + + unter Gewässer/Wasserstraße + + + + + + + G107 Abwasserart/Transportiertes Medium + + + + + + + + häuslich + + + + + gewerblich + + + + + industriell (hier Sonderabwässer) + + + + + Abwasser mit wassergefährdenden Stoffen + + + + + Dränagewasser + + + + + Regenwasser + + + + + thermisch belastet + + + + + Sonstige + + + + + keine Angaben + + + + + + + G108 Abwasserart/Wassergefährdende Stoffe + + + + + + + + POL (Öl, Benzin,...) + + + + + Biologisch (Fette, Stärke, biologische Abfälle...) + + + + + Chemisch (außer POL, z.B. Quecksilber) + + + + + Strahlen belastet + + + + + + + G109 Grundwasserabstand + + + + + + + + Gerinne oberhalb des Grundwasserleiters + + + + + Gerinne in der Wechselzone + + + + + Gerinne im Grundwasserleiter + + + + + Sonstige + + + + + + + G110 Wasserschutzzone + + + + + + + + außerhalb einer Wasserschutzzone + + + + + Schutzzone IIIb + + + + + Schutzzone IIIa + + + + + Schutzzone II + + + + + Trinkwasserschutzgebiet + + + + + Thermal-/Heilquellenschutzgebiet + + + + + Schutzzone I + + + + + sonstige + + + + + + + G111 anstehende Bodenart + + + + + + + + Sand, Kies + + + + + Feinsand, lehmiger Sand + + + + + sandiger Lehm, Löss + + + + + Lehm, Ton + + + + + Sonstige + + + + + + + G112 Untersuchung Boden + + + + + + Geologische Karte + + + + + Bodenkarte + + + + + Baugrundkarte + + + + + Baugrunduntersuchung + + + + + Baumaßnahme (Baugrube, Schachtung) + + + + + Bohrung + + + + + Sondierung + + + + + Altlastenerkundung + + + + + Wenn keine der genannten Möglichkeiten zutrifft + + + + + + + G113 Bestimmungkf + + + + + + Bodenansprache + + + + + Korngrößenanalyse (Sieblinie) + + + + + Permeameteruntersuchung im Labor + + + + + Feldmethode (Open-End-Test oder dgl.) + + + + + sonstige (ggf. spezifizieren in nachfolgendem Bemerkungsfeld) + + + + + + + G114 BeobachtungszyklusGW + + + + + + kein regelmäßiger Zyklus + + + + + wöchentlich + + + + + monatlich + + + + + vierteljährlich + + + + + jährlich + + + + + kontinuierliche Registrierung (Schreibpegel, Datenlogger) + + + + + + + G115 Gebietsnutzung + + + + + + + + Unterkünfte + + + + + Verkehrsflächen (Straßen, Wege, Plätze) + + + + + Betriebs- und Werkstätten + + + + + Sport- und Grünflächen + + + + + sonstige + + + + + + + G200 Haltung, Leitung, Rinne, Wasserlauf + + + + + + + + Haltung + + + + + Leitung + + + + + Rinne + + + + + Gerinne + + + + + + + G201 Haltungsfunktion + + + + + + + + Haltung, Transportkanal + + + + + Stauraumkanal mit oben liegender Entlastung SKO + + + + + Stauraumkanal mit mittig liegender Entlastung SKM + + + + + Stauraumkanal mit unten liegender Entlastung SKU + + + + + Stauraumkanal als Kaskade SKK + + + + + Entlastungskanal EK + + + + + Düker + + + + + + + G202 Leitungsfunktion + + + + + + + + Anschlussleitung + + + + + Dränageleitung + + + + + + + G203 Rinnenfunktion + + + + + + + + offen + + + + + abgedeckt + + + + + + + G204 Gerinnefunktion + + + + + + + + Gewässergerinne + + + + + Messgerinne + + + + + Entwässerungsgraben, offen + + + + + Entwässerungsgraben, verrohrt + + + + + + + G205 Profilart + + + + + + + + Kreisprofil + + + + + Eiprofil (H/B=3/2) + + + + + Maulprofil (H/B = 1,66/2) + + + + + Rechteckprofil (geschlossen) + + + + + Kreisprofil (doppelwandig) + + + + + Rechteckprofil (offen) + + + + + Eiprofil (H/B ungleich 3/2) + + + + + Maulprofil (H/B ungleich 1,66/2) + + + + + Trapezprofil + + + + + Doppeltrapezprofil + + + + + U-förmig (kreisförmige Sohle und flache Decke mit parallelen Wänden) + + + + + Bogenförmig (kreisförmiger Scheitel und flache Sohle mit parallelen Wänden) + + + + + oval (Sohle und Scheitel kreisförmg mit gleichem Durchmesser und parallele Wände) + + + + + andere Profilart + + + + + + + G206 Anschlussart + + + + + + Abzweig + + + + + Stutzen + + + + + + + G207 Druckverfahren + + + + + + + + Überdruckentwässerung + + + + + Vakuumentwässerung + + + + + + + G300 Knotentyp + + + + + + + + Schacht + + + + + Anschlusspunkt + + + + + Bauwerk + + + + + + + G301 Schachtfunktion + + + + + + + + Schacht + + + + + Sonderschacht + + + + + Kontrollschacht + + + + + Drosselschacht + + + + + Lampenschacht + + + + + Probenahmeschacht + + + + + Hausrevisionsschacht + + + + + Verbindungsschacht + + + + + Schacht mit Notüberlauf + + + + + Inspektionsöffnung + + + + + Reinigungsöffnung + + + + + Probenahmeöffnung + + + + + + + G302 Deckelform + + + + + + rund + + + + + rund, verschraubt + + + + + rechteckig + + + + + rechteckig, verschraubt + + + + + andere Form + + + + + + + G303 Deckeltyp + + + + + + + + mit Belüftungsöffnung + + + + + ohne Belüftungsöffnung (geschlossen) + + + + + + + G304 Abdeckungsklasse + + + + + + klasse A + + + + + Klasse B + + + + + Klasse C + + + + + Klasse D + + + + + Klasse E + + + + + Klasse F + + + + + sonstige/unbekannt + + + + + + + G305 Aufbauform + + + + + + rund + + + + + eckig + + + + + andere Form + + + + + + + G306 ArtSteighilfen + + + + + + + + einläufiger Steigeisengang + + + + + zweiläufiger Steigeisengang + + + + + Leiter + + + + + Steigkästen + + + + + nicht vorhanden + + + + + + + G307 MaterialSteighilfen + + + + + + + + Eisen + + + + + Galvanisiertes Eisen + + + + + Nichtrostender Stahl + + + + + Aluminium + + + + + Kunststoffummanteltes Metall + + + + + Kunststoff + + + + + + + G308 Unterteilform + + + + + + rund + + + + + eckig + + + + + ohne Schachtunterteil + + + + + andere Form + + + + + + + G309 Gerinneform + + + + + + + + Kreis bis Kämpfer + + + + + Kreis bis Scheitel + + + + + Rechteck bis Kämpfer + + + + + Rechteck bis Scheitel + + + + + geschlossenes Gerinne + + + + + schussrinne + + + + + Kaskade + + + + + wenn keine der aufgeführten Quellen zutrifft + + + + + + + G310 Punktkennung + + + + + + Anschlusspunkt allgemein + + + + + Entwässerungsrinne, Zu-/Ablauf + + + + + Gebäudeanschluss + + + + + Regenfallrohr + + + + + Straßenablauf + + + + + nicht bekannt, weiterer Verlauf unbekannt + + + + + Zu-/Ablauf Versickerungs-/Regenwassernutzungsanlage + + + + + Rohrende verschlossen + + + + + Entwässerungspunkt im Gebäude + + + + + Bodenablauf + + + + + Zulauf Gerinne + + + + + Dränage, Anfang + + + + + Gerinnepunkt, allgemein + + + + + + + G400 Bauwerkstyp + + + + + + + + Pumpwerk + + + + + Becken + + + + + Behandlungsanlage + + + + + Kläranlage + + + + + Auslaufbauwerk + + + + + Pumpe + + + + + Wehr_Überlauf + + + + + Drossel + + + + + Schieber + + + + + Rechen + + + + + Sieb + + + + + Versickerungsanlage + + + + + Zisterne + + + + + + + G401 Beckenfunktion + + + + + + Regenüberlaufbecken + + + + + Regenklärbecken ohne Dauerstau + + + + + Regenklärbecken mit Dauerstau + + + + + Regenrückhaltebecken + + + + + Regenrückstaubecken + + + + + Regenrückhaltegraben + + + + + Mechanischer Retentionsfilter mit vorgeschalteter Retention + + + + + Mechanischer Retentionsfilter + + + + + Bodenfilter mit vorgeschalteter Retention + + + + + Retentionsbodenfilter + + + + + + + G402 Beckenart + + + + + + + + Fangbecken + + + + + Durchlaufbecken + + + + + Verbundbecken + + + + + + + G403 Anordnung + + + + + + + + Hauptschluss + + + + + Nebenschluss + + + + + + + G404a Beckenbauart + + + + + + + + offen + + + + + geschlossen + + + + + + + G404b Beckenform + + + + + + + + rund + + + + + rechteckig + + + + + unregelmäßig + + + + + + + G404c Beckenausführung + + + + + + + + Betonbecken + + + + + Erdbecken + + + + + + + G405 Ablaufart + + + + + + + + freier Ablauf + + + + + Rohrdrossel + + + + + Druckleitung + + + + + Hydroslide + + + + + Wirbeldrossel + + + + + automatische Klappe + + + + + Drosselwaage + + + + + gesteuerter Schieber + + + + + Ablauf über Pumpen + + + + + Lochblende + + + + + Heber + + + + + sonstige + + + + + + + G406 Behandlungsart + + + + + + + + Benzinabscheider/Ölabscheider + + + + + Koaleszenzabscheider + + + + + Fettabscheider + + + + + Stärkeabscheider + + + + + Emulsionsspaltanlage + + + + + Schlammfang + + + + + Stapelbecken + + + + + sonstige Bauwerksteile + + + + + Neutralisationsanlage + + + + + + + G407 Kombinationsart + + + + + + Schlammfang mit Benzin-/Ölabscheider (Klasse II) + + + + + Schlammfang mit Adsorptions-Koaleszenzabscheider (Klasse I) + + + + + Schlammfang mit Koaleszenzabscheider (Klasse I) + + + + + Vorabscheider mit Schlammfang + + + + + Vorabscheider mit Adsorbtions-Koaleszenzabscheider + + + + + Vorabscheider mit Koaleszenzabscheider + + + + + Schlammfang mit Fettabscheider + + + + + Schlammfang mit Stapelbecken + + + + + Schlammfang mit Emulsionsspaltanlage + + + + + sonstige hier nicht aufgeführte Kombination + + + + + + + G408 Aufstellungsart + + + + + + + + Innenaufstellung + + + + + Außenaufstellung, Erdeinbau + + + + + Nachnutzung eines vorhandenen Speicherraumes + + + + + + + G409 Abscheiderklasse + + + + + + + + Klasse I, höchstzulässiger Gehalt an Restöl 5,0 mg/l + + + + + Klasse II, höchstzulässiger Gehalt an Restöl 100 mg/l + + + + + + + G410 Warnanlage + + + + + + + + Füllstandsanzeige + + + + + optische Warnanlage + + + + + optisch-akustische Warnanlage + + + + + + + G411 Frischwasserversorgung + + + + + + + + Frischwasseranschluss + + + + + Spülpumpe + + + + + + + G412 Neutralisationsart + + + + + + + + diskontinuierlich/Chargenbehandlung + + + + + kontinuierlich/Durchlaufbehandlung + + + + + + + G413 Neutralisationsmittel + + + + + + + + Kalkstein + + + + + Kalksteinaufschlämmung + + + + + Kalkmilch + + + + + Natronlauge + + + + + Soda + + + + + Ionenaustauscher (kationisch) + + + + + Rauchgas + + + + + Gas aus Fermentation + + + + + Schwefelsäure + + + + + Salzsäure + + + + + Ionenaustauscher (anionisch) + + + + + sonstige + + + + + + + G414 Kläranlagefunktion + + + + + + + + Kläranlage mit mech. Stufe + + + + + Kläranlage mit bio. Stufe + + + + + Kläranlage mit chem. Stufe + + + + + Teichklärung + + + + + Kleinkläranlagen + + + + + abflusslose Sammelgrube + + + + + Zulauf Kläranlage + + + + + + + G415 ArtAuslaufbauwerk + + + + + + + + Auslass Rohrleitung mit Böschungssicherung + + + + + Auslass Rohrleitung mit Böschungssicherung und Rückstauklappe + + + + + Böschungsstück (Fertigteil) + + + + + Auslass ohne Böschungssicherung + + + + + + + G416 Einleitungsart + + + + + + + + öffentl. Kanalisation + + + + + Oberflächengewässer + + + + + Boden (Versickerung) + + + + + + + G417 Schutzgitter + + + + + + + + kein Schutzgitter + + + + + Schutzgitter nicht klappbar + + + + + Schutzgitter klappbar + + + + + + + G418 Sicherung + + + + + + + + keine + + + + + Steinschüttung + + + + + Steinsatz + + + + + Pflaster + + + + + Beton + + + + + Holzpfähle + + + + + sonstige + + + + + + + G419 Pumpenart + + + + + + + + Kreiselpumpe + + + + + Schneckenpumpe + + + + + sonstige + + + + + + + G420 Wehrfunktion + + + + + + + + Regenüberlauf + + + + + Beckenüberlauf + + + + + Klärüberlauf + + + + + Notüberlauf + + + + + Muldenüberlauf + + + + + Rigolenüberlauf + + + + + Dreiecksmesswehr + + + + + Rechtecksmesswehr + + + + + + + G421 Wehrtyp + + + + + + + + Querwehr + + + + + Seitenwehr + + + + + Querwehr mit Rückstauklappe + + + + + Seitenwehr mit Rückstauklappe + + + + + Querwehr mit beweglicher Schwelle + + + + + Seitenwehr mit beweglicher Schwelle + + + + + Wehr in Fließrichtung + + + + + Wehr in Fließrichtung mit beweglicher Schwelle + + + + + + + G422 Wehrkrone + + + + + + + + abgerundet + + + + + scharfkantig + + + + + sonstige + + + + + + + G423 Schieberfunktion + + + + + + + + Absperrung + + + + + Durchflussregulierung + + + + + Abschlagsregulierung + + + + + + + G424 Schieberart + + + + + + + + hydraulisch getrieben + + + + + elektrisch getrieben + + + + + handbetrieben + + + + + abflussreguliert + + + + + wasserstandsreguliert + + + + + + + G425 Rechentyp + + + + + + + + Schutzrechen, Spaltweite = 200-60mm + + + + + Grobrechen, Spaltweite = 100-20mm + + + + + Feinrechen, Spaltweite kleiner 20-8mm + + + + + Feinstrechen, Spaltweite kleiner 8mm + + + + + + + G426 Rechenrost + + + + + + + + Stabrechen + + + + + Bogenrechen + + + + + Radialrechen + + + + + Trommelrechen + + + + + Rechen mit beweglichen Rechenrostteilen + + + + + + + G427 Reinigereingriff + + + + + + + + Mitstromrechen/vorwärtsgeräumter Rechen + + + + + Gegenstromrechen/rückwärtsgeräumter Rechen, mechanischer Antrieb + + + + + Gegenstromrechen/rückwärtsgeräumter Rechen, hydraulischer Antrieb + + + + + ohne separate Räumvorrichtung + + + + + + + G428 Siebtyp + + + + + + + + Grobsieb (Sieböffnung kleiner gleich 1mm) + + + + + Feinsieb (Sieböffnung kleiner 1mm) + + + + + Mikrosieb (Sieböfnung kleiner gleich 0,05mm) + + + + + + + G429 Siebkörper + + + + + + + + Bogensieb + + + + + Siebtrommel + + + + + Siebbänder + + + + + Siebscheiben + + + + + + + G430 Einbauart + + + + + + + + im Gerinne + + + + + unabhängig von einem Gerinne + + + + + + + G431 Siebfläche + + + + + + + + Spaltsieb + + + + + Lochsieb + + + + + Siebgewebe + + + + + + + G432 Versickerungsanlagetyp + + + + + + + + Flächenversickerung + + + + + Muldenversickerung + + + + + Rohrversickerung + + + + + Rigolenversickerung + + + + + Rohr-Rigolen-Versickerung + + + + + Schachtversickerung + + + + + Beckenversickerung + + + + + Teich + + + + + + + G433 ArtFlächenanschluss + + + + + + + + oberirdisch (z.B. Rinne) + + + + + unterirdisch (z.B. Rohrleitung) + + + + + + + G434 Füllmaterial + + + + + + + + gewaschener Sand (z.B. 0,2 - 2 mm) + + + + + Feinkies (z.B. 2 - 8 mm) + + + + + Mittelkies (z.B. 8 - 16 mm) + + + + + Grobkies (z.B. 16 - 32 mm) + + + + + Kunststoff-Wabenblöcke + + + + + sonstiges + + + + + + + G435 ExistenzDrosselschacht + + + + + + + + nicht vorhanden + + + + + vorhanden (ohne nähere Spezifikation) + + + + + als Kunststoffschacht + + + + + als Betonschacht + + + + + + + G436 VSchachtTyp + + + + + + Versickerungsschacht Typ A, Versickerung über die Seitenfläche + + + + + Versickerungsschacht Typ B, Versickerung über die Sohlfläche + + + + + + + G437 Regenwassernutzungsfunktion + + + + + + + + Fahrzeugwäsche + + + + + Bewässerung (z.B. Grün- und Sportflächen) + + + + + Toilettenspülung + + + + + + + G438 MaterialRn + + + + + + + + Beton + + + + + gemauert + + + + + Kunststoff (z.B. Polyethylen) + + + + + + + G439 Filterart + + + + + + + + Kiesfilter oder Filtertopf + + + + + Filtersammler + + + + + Rohrfilter + + + + + Wirbelfeinfilter + + + + + Vorfilter mit Siebkorb + + + + + Feinfilter mit Kartusche + + + + + Filterplatte + + + + + Tassenfilter oder Rückspülfilter + + + + + + + G440 Filtermaterial + + + + + + + + Kies + + + + + Kiessand + + + + + Sand + + + + + Lehmboden + + + + + kein Filtermaterial + + + + + + + G441 Bepflanzung + + + + + + + + Rollrasen + + + + + Gras + + + + + Schwertlilien + + + + + Rohrkolben + + + + + Wasserschwaden + + + + + Binsen + + + + + Schilf + + + + + keine + + + + + + + V101 Objektart gem. BFR Vermessung + + + + + + + + Schacht rund + + + + + Schacht eckig + + + + + Sonderschacht + + + + + Haltung + + + + + Leitung + + + + + Dränageleitung + + + + + Druckleitung + + + + + Anschlusspunkt (Abzweig/Stutzen) + + + + + Anschlusspunkt allgemein (NN) + + + + + Gebäudeanschluss (GA) + + + + + Regenfallrohr (RR) + + + + + Anschlusspunkt Straßenablauf (SE) + + + + + Zu-/Ablauf Entwässerungsrinne (ER) + + + + + Sonderbauwerk Speichereinrichtung + + + + + Sonderbauwerk Trenn- und Aufbereitungsanlage + + + + + Sonderbauwerk Kläranlage + + + + + Sonderbauwerk Auslaufbauwerk + + + + + Sonderbauwerk Pumpe + + + + + Sonderbauwerk Wehr und Überlauf + + + + + Sonderbauwerk Drossel + + + + + Sonderbauwerk Schieber + + + + + Absperschieber Druckleitung + + + + + Versickerungsfläche + + + + + Versickerungsanlage mit oberirdischer Speicherung + + + + + Versickerungsteich + + + + + Versickerungsanlage mit unterirdischer Speicherung + + + + + Versickerungsrohr + + + + + Versickerungsschacht + + + + + Zisterne + + + + + Entwässerungsrinne + + + + + Breitflächiger Zu- oder Überlauf Regenwasser + + + + + Gerinne + + + + + Zu-/Ablauf Versickerungsanlage + + + + + Rohrende verschlossen (RV) + + + + + Entwässerungspunkt im Gebäude (EG) + + + + + Bodenablauf (BA) + + + + + Zulauf Gerinne (ZG) + + + + + Drainage, Anfang (DR) + + + + + Gerinnepunkt (GP) + + + + + Sonderbauwerk Pumpwerk + + + + + Sonderbauwerk Rechen + + + + + Sonderbauwerk Sieb + + + + + + + V102 Punkt-, Linien-, Flächenobjekt + + + + + + Punktobjekt + + + + + Linienobjekt + + + + + Flächenobjekt + + + + + + + V103 Lagegenauigkeitsklasse von Punktkoordinaten + + + + + + Standardabweichung der Lage 0.050m kleiner sL kleiner gleich 0.150m + + + + + Standardabweichung der Lage 0.015m kleiner sL kleiner gleich 0.050m + + + + + Standardabweichung der Lage sL kleiner gleich 0.015m + + + + + + + V104 Hoehengenauigkeitsklasse der Höhenangabe + + + + + + Standardabweichung der Höhe 0.020m kleiner sH kleiner gleich 0.050m + + + + + Standardabweichung der Höhe 0.005m kleiner sH kleiner gleich 0.020m + + + + + Standardabweichung der Höhe H kleiner gleich 0.005m + + + + + + + V105 Polygonart + + + + + + + + innerer Polygonring eines Objektes (geschlossen) + + + + + äusserer Polygonring eines Objektes (geschlossen) + + + + + Polylinie eines Objektes (offen) + + + + + + + V106 PunktattributAbwasser + + + + + + Schachtdeckelmittelpunkt + + + + + Schachtmittelpunkt + + + + + Rohranschlusspunkt + + + + + Leitungs-/Haltungspunkt + + + + + Anschlusspunkt + + + + + Anschlusspunkt allgemein + + + + + Zu-/Ablauf Entwässerungsrinne + + + + + Gebäudeanschluss + + + + + Regenfallrohr + + + + + Straßenablauf + + + + + Deckel/Einstieg Sonderbauwerk + + + + + Bauwerksrandpunkt + + + + + Koordinatenbezugspunkt/Referenzpunkt + + + + + Flächenschwerpunkt + + + + + Zulauf Kläranlage + + + + + Knotenpunkt allgemein + + + + + Höhenpunkt allgemein + + + + + Höhenpunkt Geländeoberkante + + + + + Kreismitelpunkt + + + + + Punktattribut unbekannt + + + + + Zu-/Ablauf Versickerungsanlage + + + + + Rohrende verschlossen + + + + + Entwässerungspunkt im Gebäude + + + + + Bodenablauf + + + + + Zulauf Gerinne + + + + + Dränage, Anfang + + + + + Gerinnepunkt + + + + + + + V107 Lagegenauigkeitsstufe von Punktkoordinaten + + + + + + + + terrestrische Vermessung nach "Baufachliche Richtlinien Vermessung" + + + + + Lage grafisch durch Digitalisierung aus Pänenn im Maßstab größer 1:2000 bestimmt + + + + + Lage grafisch durch Digitalisierung aus Plänen im Maßstab kleiner 1:2000 bis 1:5000 bestimmt + + + + + topografischer Bildflug + + + + + Kataster-Bildflug + + + + + terrestrische Vermessung ohne "Baufachliche Richtlinien Vermessung" + + + + + Digitalisierung nach "Baufachliche Richtlinien Vermessung" + + + + + Lage mit Ortungstechnik bestimmt (z.B. georefezenzierte 3D-Ortung) + + + + + Lage rechnerisch bestimmt + + + + + Wenn keine der aufgeführten Quellen zutrifft + + + + + + + V108 Höhengenauigkeitsstufe der Höhenangabe + + + + + + + + Höhe durch Nivellement bestimmt nach "Baufachliche Richtlinien Vermessung" + + + + + Höhe trigonometrisch bestimmt + + + + + Höhe aus Bestandsunterlagen entnommen + + + + + Höhe mit Messlatte von nivellitisch bestimmter Deckelhöhe abgeleitet (nur bei Sohlhöhe) + + + + + Höhe mit Messlatte von trigonometrisch bestimmter Deckelhöhe abgeleitet (nur bei Sohlhöhe) + + + + + Höhe grafisch aus Höhenplan bestimmt (nur bei Deckelhöhe) + + + + + Höhe durch Nivellement bestimmt ohne "Baufachliche Richtlinien Vermessung" + + + + + Höhe mit Ortungstechnik bestimmt (z.B. georefezenzierte 3D-Ortung) + + + + + Wenn keine der aufgeführten Quellen zutrifft + + + + + + + S200 ArtMassnahme + + + + + + + + Neubau + + + + + Erneuerung + + + + + Renovierung + + + + + Reparatur + + + + + Rückbau + + + + + Stilllegung + + + + + keine Maßnahme + + + + + Zustand unbekannt + + + + + + + S100 Auftragsart + + + + + + + + Planungsauftrag Sanierung + + + + + Bauauftrag + + + + + Instandsetzungsauftrag + + + + + + + S101 Verfahrensbezeichnung + + + + + + Anschleuderverfahren + + + + + Aufspritzverfahren + + + + + Auskleidung mit vorgefertigten Rohren/Bauteilen + + + + + Auspressverfahren + + + + + Austausch von Bauteilen + + + + + Außenmanschetten + + + + + Berstverfahren/Berstlining + + + + + Einbau von Abdichtungsstoffen + + + + + Flutungsverfahren + + + + + Injektion von Undichtigkeiten + + + + + Injektionen der Leitungszone (Hohlraum, Bodenstruktur) + + + + + Innenmanschetten + + + + + Kurzrohrverfahren + + + + + Lageregulierung Schachtabdeckung + + + + + Langrohrverfahren + + + + + Montageverfahren + + + + + Noppenbahnverfahren + + + + + Oberflächenbehandlung + + + + + Ortlaminate (Kurzschläuche, Hutprofile) + + + + + Reduktionsverfahren + + + + + Roboterverfahren + + + + + Rohraustausch + + + + + Rohrstrangverfahren + + + + + Rohrziehverfahren + + + + + Rückverformung + + + + + Schlauchverfahren + + + + + Schrumpfschläuche + + + + + Teilerneuerung + + + + + Verdrängungsverfahren + + + + + Verfugung + + + + + Vermörtelung + + + + + Vollständige Erneuerung + + + + + Wickelrohrverfahren + + + + + Überfahren (unbemannter Vortrieb) + + + + + neue, z.Zt. nicht bekannte Verfahren + + + + + + + S102 Sanierungsumfang + + + + + + + + gesamte(r) Haltung/Leitung/Schacht + + + + + partiell + + + + + punktuell + + + + + punktuell, Muffe + + + + + punktuell, Abzweig/Stutzen + + + + + + + S103 Bauwerksteil + + + + + + Ablaufseite (Rohranschluss Haltungen) + + + + + Bankett (Auftritt) + + + + + Auflagerring + + + + + Schachtdeckel, Schachtabdeckung + + + + + Zulaufseite (Rohranschluss Haltungen) + + + + + Schmutzfänger + + + + + Gerinne, Sohle + + + + + Schachthals, Konus + + + + + Schachtring + + + + + Decke (Abdeckplatte) + + + + + Leiter + + + + + Hochbauteil + + + + + Geländer + + + + + Sohlplatte + + + + + Formstück (Armaturen, Schieber, etc.) + + + + + Steigeisen + + + + + Treppe + + + + + Einstiegshilfe (Haltegriff) + + + + + Wand + + + + + Zulauf (Rohranschluss Leitungen) + + + + + wenn keines der aufgeführten Kürzel zutrifft + + + + + + + S104 Profiltyp + + + + + + Kreisprofil + + + + + Eiprofil (H/B=3/2) + + + + + Maulprofil (H/B = 1,66/2) + + + + + Rechteckprofil (geschlossen) + + + + + Kreisprofil (doppelwandig) + + + + + Rechteckprofil (offen) + + + + + Eiprofil (H/B ungleich 3/2) + + + + + Maulprofil (H/B ungleich 1,66/2) + + + + + Trapezprofil + + + + + Doppeltrapezprofil + + + + + U-förmig (kreisförmige Sohle und Decke mit parallelen Wänden) + + + + + Bogenförmig (kreisförmiger Scheitel und flache Sohle mit parallelen Wänden) + + + + + oval (Sohle und Scheitel kreisförmg mit gleichem Durchmesser und parallele Wände) + + + + + andere Profilart + + + + + rund + + + + + eckig + + + + + andere Form + + + + + + + S105 Dokumentationsrichtung + + + + + + von oben, in Fließrichtung + + + + + von unten, gegen Fließrichtung + + + + + + + S106 Materialverbund (1 und 2) + + + + + + Aluminiumhydroxid + + + + + Aluminiumsilikat + + + + + Bitumen + + + + + Epoxidharz + + + + + Glasfaser + + + + + Glasfaser, E-Glas + + + + + Glasfaser, CR-Glas + + + + + Kunstharz + + + + + Kanalklinker + + + + + Methylacrylat + + + + + Mineralischer Dämmer + + + + + Polyamid + + + + + Polybuten + + + + + Bisphenolharz + + + + + Polyurethan-Reaktionsharz + + + + + Quarzsand + + + + + Synthesefaser + + + + + Silikatgel + + + + + Tonsuspension + + + + + Tonzement/Silikatgel Susp. + + + + + Ton-, Zementsuspension + + + + + Ungesättigtes Polyesterharz + + + + + Vinylester + + + + + Zementmörtel + + + + + Zementsuspension + + + + + Ultrafeinzement + + + + + + + S107 Belastung + + + + + + Regelfahrzeuge 60 + + + + + Regelfahrzeuge 30 + + + + + Regelfahrzeuge 12 + + + + + Eisenbahnverkehrslasten mehrgleisig + + + + + Eisenbahnverkehrslasten eingleisig + + + + + Bemessungsflugzeug 90 + + + + + Bemessungsflugzeug 180 + + + + + Bemessungsflugzeug 350 + + + + + Bemessungsflugzeug 550 + + + + + Bemessungsflugzeug 750 + + + + + keine Verkehrslast + + + + + sonstige Verkehrslasten + + + + + Prüfkraft 15 kN + + + + + Prüfkraft 125 kN + + + + + Prüfkraft 250 kN + + + + + Prüfkraft 400 kN + + + + + Prüfkraft 600 kN + + + + + Prüfkraft 900 kN + + + + + + + S108 Wasserdurchlässigkeit + + + + + + + + nicht durchgeführt + + + + + durchgeführt und bestanden + + + + + durchgeführt und nicht bestanden + + + + + + Referenzlisten für den Bereich Zustandsdaten + + + + U100 Rohrleitungstyp + + + + + + + + Haltung + + + + + Leitung + + + + + + + U101 Inspektionszweck + + + + + + + + Ersterfassung + + + + + Turnusmäßige Inspektion + + + + + Abnahme + + + + + Ende der Gewährleistung + + + + + Nachuntersuchung + + + + + Vor Sanierung + + + + + Nach Sanierung + + + + + TV-Ûberwachung bei Dichtheitspüfung + + + + + + + U102 Kodiersystem + + + + + + + + DIN EN 13508-2:2003: ohne nationale Festlegungen + + + + + DIN EN 13508-2:2003: Nationale Festlegung DWA M 149-2 + + + + + DIN EN 13508-2:2003: andere nationale Festlegungen (Bemerkung erforderlich) + + + + + ISYBAU 2001 + + + + + ISYBAU 1996 + + + + + anderes Kodiersystem (Bemerkung erforderlich) + + + + + + + U103 Anlagentyp + + + + + + + + Haltung + + + + + Anschlussleitung + + + + + Schacht + + + + + Bauwerk + + + + + + + U104 Inspektionsrichtung + + + + + + von oben, in Fliessrichtung + + + + + von unten, gegen Fliessrichtung + + + + + + + U105 BezugspunktLage + + + + + + + + Mittelpunkt des Startschachtes oder der Inspektionsöffnung + + + + + Innenseite der Wand am Anfangsknoten (Schacht, Bauwerk, Inspektions-öffnung, Auslass, etc.) + + + + + Scheitel des Haltungsendes innerhalb des Anfangsknotens + + + + + Mittelpunkt zwischen der ankommenden und abgehenden Leitung, gemessen entlang des Gerinnes + + + + + + + U106 Wetter + + + + + + + + kein Niederschlag + + + + + Regen + + + + + Schnee- oder Eisschmelzwasser + + + + + + + U107 Wasserhaltung + + + + + + + + keine Maßnahme getroffen + + + + + Zufluss von oberhalb abgesperrt + + + + + Zufluss von oberhalb teilweise abgesperrt + + + + + Seitenzuläufe abgesperrt + + + + + Zufluss von unterhalb (Rückstau) abgesperrt + + + + + andere Maßnahme getroffen + + + + + + + U108 Inspektionsverfahren + + + + + + + + TV-Untersuchung + + + + + Begehung + + + + + Auschließlich vom Schacht / von der Inspektionsöffnung aus + + + + + anderes Verfahren + + + + + + + U109 Inspektionsart + + + + + + + + Satellitenkamera + + + + + Schiebekamera + + + + + selbstfahrende Kamera + + + + + andere Kameratechnik + + + + + + + U110 VideoSpeichermedium + + + + + + + + VHS-Videoband + + + + + SVHS-Videoband + + + + + CD-ROM + + + + + Digital Versatile Disk + + + + + Magneto Optical Disk + + + + + sonst. Wechseldatenträger + + + + + + + U111 FotoSpeichermedium + + + + + + Diskette + + + + + Digital Audio Tape + + + + + Magneto Optical Disk + + + + + CD-ROM + + + + + Digital Versatile Disk + + + + + sonst. Wechseldatenträger + + + + + + + U112 Bewertungsverfahren + + + + + + + + ISYBAU 2006 + + + + + ISYBAU 2001 + + + + + ISYBAU 1996 + + + + + anderes Verfahren + + + + + + + U114 ArtAuskleidung + + + + + + + + Auskleidung werksmäßig eingebracht + + + + + Spritzauskleidung + + + + + Vor-Ort-Auskleidung + + + + + abschnittsweise Auskleidung + + + + + Auskleidung mittels einzelner Rohre + + + + + Schlauchrelining + + + + + Auskleidung mittels Endlosrohren + + + + + Close-Fit Auskleidung + + + + + Wickelrohrrelining + + + + + + + U115 Vertikaler Bezugspunkt + + + + + + + + Sohllage der tiefsten angeschlossenen Rohrleitung + + + + + Oberkante der Abdeckung + + + + + Nationaler Bezugspunkt + + + + + Lokaler Bezugspunkt + + + + + + + U116 HorizontalerBezugspunkt + + + + + + + + niedrigstes abgehendes Rohr bei 12 Uhr + + + + + niedrigstes abgehendes Rohr bei 6 Uhr + + + + + + + U117 Schachtbereich + + + + + + Abdeckung und Rahmen + + + + + Auflageringe + + + + + Schachtaufbau + + + + + Konus + + + + + Übergangsplatte + + + + + untere Schachtzone + + + + + Podest + + + + + Auftritt + + + + + Gerinne + + + + + Sohle + + + + + + + U119 Auftragsart + + + + + + + + Inspektionsauftrag + + + + + Dichtheitsprüfung + + + + + Dichtheitsprüfung mit TV-Überwachung + + + + + + + U120 Prüfgrund + + + + + + + + Prüfung bestehender Anlagen + + + + + Abnahme nach Neubau oder Sanierung + + + + + + + U121 Prüfvorschrift + + + + + + + + ATV-DVWK-M 143 Teil 6 + + + + + DIN EN 1610 + + + + + DIN EN 1610, ATV-DVWK-A 139 + + + + + Merkblatt 4.3/6 Teil 2 (LfW Bayern) + + + + + DIN EN 12889 + + + + + ATV-DVWK-A 142 + + + + + + + U122 Prüfverfahren + + + + + + + + Prüfung mit Luft / Überdruck + + + + + Prüfung mit Luft / Unterdruck + + + + + Prüfung mit Wasser + + + + + + + U123 Prüfumfang + + + + + + + + Objekt (Rohrleitung oder Schacht) + + + + + abschnittsweise (z.B. zwischen zwei Anschlüssen) + + + + + punktuell (z.B. an einer Rohrver- oder Rohreinbindung) + + + + + + + U124 HerkunftProfil + + + + + + + + aus Plänen + + + + + aus Stammdaten + + + + + Gemessen am Knoten (z.B. mit Bandmaß) + + + + + Querschnittsvermessung + + + + + + + U125 Herkunft + + + + + + + + aus Plänen + + + + + aus Stammdaten + + + + + Feststellung vor Ort + + + + + + + U126 Streckenschaden + + + + + + Anfang Streckenschaden (für alle Kodiersysteme) + + + + + Ende Streckenschaden (nur DIN EN 13508-2) + + + + + Ende Streckenschaden (nicht für DIN EN 13508-2) + + + + + Schaden über die gesamte Länge eines Objektes (nicht für DIN EN 13508-2) + + + + + Schaden über die Baulänge eines Rohres (nicht für DIN EN 13508-2) + + + + + + + U127 Art Videoreferenz + + + + + + + + Timecode + + + + + Framenummern + + + + + Videozählerstand + + + + + Keine Videorerenz vorhanden + + + + + + + U128 Zustand in sanierten Bereichen von Rohrleitungen für Kode BAKZ gem. DWA-M 149-2 + + + + + + Ablösung der Auskleidung + + + + + Randablösung der Auskleidung + + + + + Ablösung der Innenfolie + + + + + Ablösung der Nahtabdeckung + + + + + Auskleidung verfärbt (kein Schmutz) + + + + + Mechanisch herbeigeführtE Kerbe/Abplatzung in der Auskleidung/Beschichtung + + + + + Beule nach außen + + + + + Beule nach innen + + + + + Falte in Auskleidung, längs + + + + + Falte in Auskleidung, radial + + + + + Falte in Auskleidung, komplex + + + + + Schadhafte Schweißnaht + + + + + Verbindung defekt (Auskleidung) + + + + + Überbogen Auskleidung + + + + + Auskleidung endet im Kanal/Leitung (vor Schacht) + + + + + Auflösung Auskleidungswerkstoff + + + + + Loch in Auskleidung + + + + + Riss in der Auskleidung + + + + + Renovierung nicht fachgerecht + + + + + + + U129 Zustand in sanierten Bereichen von Rohrleitungen für Kode BALZ gem. DWA-M 149-2 + + + + + + Ablösung Sanierungswerkstoff vom Altrohr + + + + + Fehlender Sanierungswerkstoff an der Kontaktfläche + + + + + Folien-/Beschichtungsablösung + + + + + Auskleidung verfärbt (kein Schmutz) + + + + + Beule in Auskleidung nach außen + + + + + Beule in Auskleidung nach innen + + + + + Falte in Auskleidung, längs + + + + + Falte in Auskleidung, radial + + + + + Falte in Auskleidung, komplex + + + + + Hindernis Werkstoffüberschuss/-übergang + + + + + Fehlendes Harz im Laminat + + + + + Anbindung Auskleidung an Schacht/Inspektionsöffnung fehlt oder nicht fachgerecht + + + + + Aulösung Sanierungswerkstofft + + + + + Loch im Sanierungswerkstoff + + + + + Riss im Sanierungswerkstoff + + + + + Zulauföffnung (Auskleidung) fehlt + + + + + Zulauföffnung Auskleidung (ohne Anschlusseinbindung) nicht fachgerecht + + + + + Reparatur nicht fachgerecht + + + + + + + U130 Sanierungsverfahren bei punkteller Reparatur einer Rohrleitung gem. DWA-M 149-2 + + + + + + Reparatur mit Injektionstechnik + + + + + Reparatur mit Robotere + + + + + Reparatur mit partiellerAuskleidungs-/Manschettentechnik + + + + + Zulaufeinbindung + + + + + Reparatur Rohrwand manuell + + + + + Reparatur Rohrverbindung manuell + + + + + Ringspalt-/-raumabdichtung (der Auskleidung) zum Anschluss an Schacht/Inspektionsöffnung + + + + + Zulauföffnung ohne Einbindung + + + + + Rohr ausgetauscht + + + + + Reparatur, sonstige Technik + + + + + + + U131 Zustand in sanierten Bereichen von Schächten für Kode DAKZ gem. DWA-M 149-2 + + + + + + Ablösung der Auskleidung + + + + + Randablösung der Auskleidung + + + + + Auskleidung verfärbt (kein Schmutz) + + + + + Mechanisch herbeigeführte Kerbe/Abplatzung/beschädigung der Auskleidung + + + + + Beule nach außen + + + + + Beule nach innen + + + + + Falte in Auskleidung, längs + + + + + Falte in Auskleidung, radial + + + + + Falte in Auskleidung, komplex + + + + + Schadhafter Befestigungspunkt + + + + + Schadhafte Schweißnaht + + + + + Verbindung defekt (Auskleidung) + + + + + Auskleidung endet im Schacht (z.B. unterhalb Konus) + + + + + Auflösung Auskleidungswerkstoff + + + + + Loch in Auskleidung + + + + + Riss in der Auskleidung + + + + + Renovierung nicht fachgerecht + + + + + + + U132 Zustand in sanierten Bereichen von Schächten für Kode DALZ gem. gem. DWA-M 149-2 + + + + + + Ablösung Sanierungswerkstoff vom Schacht/Inspektionsöffnung + + + + + Anbindung Auskleidung an Schacht/Inspektionsöffnung fehlt oder nicht fachgerecht + + + + + Hindernis Sanierungswerkstofflüberschuss/-übergang + + + + + Auflösung Sanierungswerkstoff + + + + + Loch im Sanierungswerkstoffl + + + + + Riss im Sanierungswerkstoff + + + + + Anschlussöffnung/-einbindung (Auskleidung) fehlt + + + + + Anschlussöffnung Auskleidung (ohne Anschlusseinbindung) nicht fachgerecht + + + + + Reparatur nicht fachgerecht + + + + + + + U133 Sanierungsverfahren bei punktueller Reparatur eines Schachtes gem. DWA-M 149-2 + + + + + + Reparatur mit Injektionstechnik + + + + + Reparatur an Bauteilwandung + + + + + Reparatur Bauteilverbindung + + + + + Ringspalt-/-raumabdichtung (Auskleidung in Kanälen/Leitungen) zum Anschluss an Schacht/Inspektionsöffnung + + + + + Anschlusseinbindung manuell + + + + + Anschlussöffnug ohne Einbindung + + + + + Schachtbauteil ausgetauscht + + + + + Reparatur, sonstige Technik + + + + + + + U134 Grund für einen Inspektionsabbruch bei Kanälen und Leitungen + + + + + + Gegenseite erreicht + + + + + Gegenseite nicht erreicht + + + + + Inspektion von der Gegenseite nicht möglich + + + + + Auftraggeber verzichtet auf weitere Untersuchung + + + + + Inspektionsziel erreicht + + + + + + Referenzlisten für den Bereich Hydraulikdaten + + + + H100 Flächenart + + + + + + + + Einzel-/ Elementarfläche + + + + + Sammelfläche + + + + + + + H101 Flächeneigenschaft + + + + + + + + befestigt + + + + + teilbefestigt + + + + + unbefestigt + + + + + natürlich + + + + + keine information + + + + + + + H102 Flächenfunktion + + + + + + + + Dachfläche + + + + + Grünfläche + + + + + Verkehrsfläche + + + + + sonstige Funktion + + + + + Funktion nicht bekannt + + + + + + + H103 Flächennutzung + + + + + + + + intensive landwirtschaftliche Nutzung + + + + + extensive landwirtschaftliche Nutzung + + + + + fließender motorisierter Verkehr + + + + + fließender nicht motorisierter Verkehr + + + + + ruhender Verkehr, PKW + + + + + ruhender Verkehr, LKW + + + + + technischer Bereich, PKW + + + + + technischer Bereich, LKW + + + + + keine Nutzung + + + + + sonstige Nutzung + + + + + + + H104 Materialzusatz + + + + + + + + metallisch + + + + + nichtmetallisch + + + + + + + H105 Verschmutzungsklasse + + + + + + + + F1, geringe Verschmutzung + + + + + F2, geringe Verschmutzung + + + + + F3, geringe Verschmutzung + + + + + F4, mittlere Verschmutzung + + + + + F5, mittlere Verschmutzung + + + + + F6, starke Verschmutzung + + + + + F7, starke Verschmutzung + + + + + + + H106 Neigungsklasse + + + + + + + + kleiner gleich 1% + + + + + größer 1% bis 4% + + + + + größer 4% bis 10% + + + + + größer 10% bis 14% + + + + + größer 14% + + + + + + + H200 HydraulikObjektTyp + + + + + + + + Haltung + + + + + Leitung + + + + + Gerinne + + + + + Pumpe + + + + + Wehr + + + + + Schieber + + + + + Schacht + + + + + Speicherbauwerk + + + + + Grund-/Seitenauslass + + + + + Freier Auslass + + + + + + + H201 Rauigkeitsansatz + + + + + + + + Prandtl-Colebrook + + + + + Manning-Strickler + + + + + + + H202 Verlustmethode + + + + + + + + Pauschalkonzept + + + + + Individualkonzept + + + + + + + H203 Pumpentyp + + + + + + + + OFF-LINE mit Pumpensumpf und Schaltstufen + + + + + ON-LINE mit Schaltstufen + + + + + ON-LINE mit Kennlinie + + + + + + + H204 HydWehrtyp + + + + + + + + Querwehr + + + + + Querwehr mit Rückstauklappe + + + + + Seitenwehr + + + + + Seitenwehr mit Rückstauklappe + + + + + Verfahrbares Querwehr + + + + + Verfahrbares Seitenwehr + + + + + + + H205 Randbedingung + + + + + + + + kein Wasserstand + + + + + konstanter Wasserstand + + + + + Tidennummer + + + + + + + H206 Schiebertyp + + + + + + + + Schieber am Ende + + + + + Schieber am Anfang + + + + + Schieber in der Mitte der Haltung + + + + + Schieber ohne druckdichten Deckel + + + + + Schieber (von unten) am Ende + + + + + Schieber (von unten) am Anfang + + + + + + + H207 GSAuslasstyp + + + + + + + + Seitenauslass + + + + + Grundauslass + + + + + + + H208 FreiAuslasstyp + + + + + + + + freier Auslass + + + + + Auslass mit Rückstauklappe + + + + + + + H209 Speicherbauwerktyp + + + + + + + + Regenrückhaltebecken (RRB) + + + + + Regenüberlaufbauwerk (RÜB) + + + + + Regenklärbecken (RKB) + + + + + Versickerungsanlage + + + + + Bodenfilter + + + + + + + H210 Art der Modellierung + + + + + + + + Modellierung als Knoten + + + + + Modellierung als Kante + + + + + + + H400 ArtBelastung + + + + + + + + Modellregen + + + + + Blockregen + + + + + Naturregen + + + + + Niederschlagskontinuum + + + + + Naturregen ohne Niederschlagsserie + + + + + + + H401 Modellregentyp + + + + + + + + EULER Typ 1 + + + + + EULER Typ 2 + + + + + EULER Typ 3 + + + + + DVWK + + + + + sonstige + + + + + + + H402 ArtKontinuum + + + + + + + + gemessenes Niederschlagskontinuum + + + + + synthetisches Niederschlagskontinuum + + + + + örtliche Niederschlagsstatistik + + + + + KOSTRA-Atlas DWD + + + + + + + H500 Berechnungsverfahren allgemein + + + + + + + + vereinfachte Kanalnetzberechnung + + + + + hydrodynamische Kanalnetzberechnung + + + + + + + H501 Berechnungsverfahren + + + + + + + + vereinfachte Kanalnetzberechnung (Einzelstrang) + + + + + vereinfachte Kanalnetzberechnung mit Zeitbeiwertverfahren + + + + + hydrodynamische Kanalnetzberechnung mit Einzelregen + + + + + hydrodynamische Kanalnetzberechnung mit Regenserie + + + + + hydrologische Speicherberechnung mit Kontinuumssimulation + + + + + hydrologische Speicherberechnung mit vereinfachtem Verfahren + + + + + sonstige Verfahren + + + + + + + H502 Regen-/Überstauhäufigkeit + + + + + + + + Mindestregen-/Überstauhäufigkeit + + + + + maßgebende Regen-/Überstauhäufigkeit + + + + + + + H503 Auslastungskennziffer + + + + + + + + Freispiegel + + + + + Einstau + + + + + Überstau + + + + + Überflutung + + + + + + + H504 Art der Berechnungsergebnisse + + + + + + + + Kenngrößen einer hydraul. Berechnung + + + + + Hydraul. Kenngrößen des Systems + + + + + + + H600 Verfahrensart + + + + + + + + Dimensionierung von Regenrückhalteräumen - Nachweisverfahren + + + + + Dimensionierung von Regenrückhalteräumen - Bemessungsverfahren + + + + + Bemessung von Kanalnetzen - Zeitbeiwertverfahren + + + + + Dimensionierung von Kanalnetzen - Überstaunachweis mit Einzelregen + + + + + Dimensionierung von Kanalnetzen - Überflutungsnachweis mit Einzelregen + + + + + Dimensionierung von Kanalnetzen - Überstaunachweis mit Seriensimulation + + + + + Dimensionierung von Kanalnetzen - Überflutungsnachweis mit Seriensimulation + + + + + + + H601 ArtZielgröße + + + + + + + + Mindestdurchmesser + + + + + Auslastungsgrad + + + + + Regenhäufigkeit + + + + + zulässige Überstauhäufigkeit + + + + + zulässige Überflutungshäufigkeit + + + + + zulässige Überstaumenge + + + + + + + H602 EinheitZielgröße + + + + + + + + mm + + + + + l/s + + + + + m3 + + + + + 1/a + + + + + % + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-stammdaten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-stammdaten.xsd new file mode 100644 index 0000000..a84dd11 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-stammdaten.xsd @@ -0,0 +1,2065 @@ + + + + + + + + + ISYBAU-Austauschformat Datenbereich Stammdaten + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-zustandsdaten.xsd b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-zustandsdaten.xsd new file mode 100644 index 0000000..a0d0768 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/SchemaDateien/0610-zustandsdaten.xsd @@ -0,0 +1,1051 @@ + + + + + + + + ISYBAU-Austauschformat Datenbereich Zustandsdaten + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SanSystem/SchnittstelleImporter/XML2006/XMLParser.cs b/SanSystem/SchnittstelleImporter/XML2006/XMLParser.cs new file mode 100644 index 0000000..9722cc2 --- /dev/null +++ b/SanSystem/SchnittstelleImporter/XML2006/XMLParser.cs @@ -0,0 +1,286 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Xml; + +namespace SchnittstelleImporter.XML2006 +{ + /// + /// + /// + public static class XMLParser + { + /// + /// + /// + public static Dictionary anlageInFile = new Dictionary(); + /// + /// Gibt eine Liste an anlagen zurück von einer XML Datei. + /// + /// + /// + public static List GetList(string xmldatei) + { + List result = new List(); + XmlDocument doc = new XmlDocument(); + doc.Load(xmldatei); + XmlNode rootChild = doc.LastChild; + + XmlNamespaceManager manager = new XmlNamespaceManager(doc.NameTable); + manager.AddNamespace("e", "http://www.ofd-hannover.la/Identifikation"); + XmlNode root = rootChild.SelectSingleNode("//e:Datenkollektive", manager); + + XmlNode zstdk = root.SelectSingleNode("//e:Zustandsdatenkollektiv", manager); + XmlNodeList inspizierteDaten = zstdk.SelectNodes("//e:InspizierteAbwassertechnischeAnlage", manager); + + foreach (XmlNode node in inspizierteDaten) + { + InspizierteAbwassertechnischeAnlage anlage = GetAnlage(node); + if (anlage == null) continue; + result.Add(anlage); + anlageInFile.Add(anlage, xmldatei); + } + return result; + } + private static InspizierteAbwassertechnischeAnlage GetAnlage(XmlNode xml) + { + XmlNode intOptischeInspektion = null; + XmlNode intRohrleitung = null; + XmlNode intRGrunddaten = null; + XmlNode intInspektionsdaten = null; + + InspizierteAbwassertechnischeAnlage result = new InspizierteAbwassertechnischeAnlage(); + + foreach (XmlNode d in xml.ChildNodes) + { + switch (d.Name) + { + case "Objektbezeichnung": + result.Objektbezeichnung = d.InnerText; + break; + case "Anlagentyp": + result.Anlagentyp = (EAnlagetyp)Convert.ToInt32(d.InnerText); //anlagentyp = Convert.ToInt32(d.InnerText); + break; + case "Lage": + //throw new NotImplementedException(); + if (!d.HasChildNodes) break; + string strassename = ""; + string ortname = ""; + foreach (XmlNode _temp in d.ChildNodes) + { + switch (_temp.Name) + { + case "Strassenname": strassename = _temp.InnerText; break; + case "Ortsteilname": ortname = _temp.InnerText; break; + case "Strassenschluessel": break; + default: throw new NotImplementedException(_temp.Name); + } + } + result.Lage = new Lage(strassename, ortname); + break; + case "OptischeInspektion": + intOptischeInspektion = d; + break; + + } + } + + if (intOptischeInspektion == null) + throw new Exception("Es scheint was schief gelaufen zu sein, OptischeInspektion is null"); + + string datum = ""; + string time = ""; + + OptischeInspektion optischeInspektion = new OptischeInspektion(); + + foreach (XmlNode d in intOptischeInspektion) + { + switch (d.Name) + { + case "Inspektionsdatum": + datum = d.InnerText; + break; + case "Uhrzeit": + time = d.InnerText; + break; + case "Rohrleitung": + intRohrleitung = d; + break; + } + } + string[] parseddatum = datum.Split('-'); + int year = Convert.ToInt32(parseddatum[0]); + int month = Convert.ToInt32(parseddatum[1]); + int day = Convert.ToInt32(parseddatum[2]); + + string[] parsedtime = time.Split(':'); + int hour = Convert.ToInt32(parsedtime[0]); + int minute = Convert.ToInt32(parsedtime[1]); + int second = Convert.ToInt32(parsedtime[2]); + DateTime dt = new DateTime(year, month, day, hour, minute, second); + + optischeInspektion.Inspektionstime = dt; + + if (intRohrleitung == null) + return null; + //throw new NotImplementedException("Schaechte sind noch nicht implementiert"); + + Rohrleitung rohr = new Rohrleitung(); + foreach (XmlNode d in intRohrleitung) + { + switch (d.Name) + { + case "Rohrleitungstyp": + rohr.Rohrleitungstyp = (ERohrleitungstyp)Convert.ToInt32(d.InnerText); + break; + case "Inspektionslaenge": + rohr.Inspektionslaenge = Convert.ToDecimal(d.InnerText.Replace('.', ',')); + break; + case "Inspektionsrichtung": + rohr.Inspektionsrichtung = d.InnerText; + break; + case "RGrunddaten": + intRGrunddaten = d; + break; + case "Inspektionsdaten": + intInspektionsdaten = d; + break; + } + } + + //List rzustand = ParseRZustand(intInspektionsdaten); + + rohr.Grunddaten = ParseGrundDaten(intRGrunddaten); + rohr.Zustaende = ParseRZustand(intInspektionsdaten); + optischeInspektion.Rohrleitung = rohr; + result.OptischeInspektion = optischeInspektion; + + return result; + } + + private static RGrunddaten ParseGrundDaten(XmlNode intRGrunddaten) + { + RGrunddaten grunddaten = new RGrunddaten(); + foreach (XmlNode d in intRGrunddaten.ChildNodes) + { + switch (d.Name) + { + case "KnotenZulauf": grunddaten.KnotenZulauf = d.InnerText; break; + case "KnotenZulaufTyp": grunddaten.KnotenZulaufTyp = (EKnotenTyp)Convert.ToInt32(d.InnerText); break; + case "KnotenAblauf": grunddaten.KnotenAblauf = d.InnerText; break; + case "KnotenAblaufTyp": grunddaten.KnotenAblaufTyp = (EKnotenTyp)Convert.ToInt32(d.InnerText); break; + case "HerkunftProfilmasse": grunddaten.HerkunftProfilmasse = Convert.ToInt32(d.InnerText); break; + case "Profilhoehe": grunddaten.Profilhoehe = Convert.ToInt32(d.InnerText); break; + case "Profilbreite": grunddaten.Profilbreite = Convert.ToInt32(d.InnerText); break; + case "Profilart": grunddaten.Profilart = Convert.ToInt32(d.InnerText); break; + case "HerkunftMaterial": grunddaten.HerkunftMaterial = Convert.ToInt32(d.InnerText); break; + case "Material": grunddaten.Material = d.InnerText; break; + case "Regeleinzelrohrlaenge": grunddaten.Regeleinzelrohrlaenge = Convert.ToDecimal(d.InnerText.Replace('.', ',')); break; + case "ArtAuskleidung": grunddaten.ArtAuskleidung = Convert.ToInt32(d.InnerText); break; + case "Kanalart": grunddaten.Kanalart = d.InnerText; break; + case "Anschlussdaten": grunddaten.Anschlussddaten = ParseAnschlussdaten(d); break; + case "Innenschutz": grunddaten.Innenschutz = d.InnerText; break; + default: throw new NotImplementedException(d.Name); + } + } + + return grunddaten; + } + + private static Anschlussdaten ParseAnschlussdaten(XmlNode anschlussdaten) + { + Anschlussdaten result = new Anschlussdaten(); + foreach (XmlNode d in anschlussdaten.ChildNodes) + { + switch (d.Name) + { + case "Objektbezeichnung": result.Objektbezeichnung = d.InnerText; break; + case "Kantentyp": result.Kantentyp = (EKantenTyp)Convert.ToInt32(d.InnerText); break; + case "Entfernung": result.Entfernung = Convert.ToDecimal(d.InnerText.Replace('.', ',')); break; + case "Fixierung": result.Fixierung = d.InnerText; break; + default: Trace.WriteLine(d.Name); break; + } + } + return result; + } + + private static List ParseRZustand(XmlNode node) + { + List result = new List(); + + foreach (XmlNode child in node.ChildNodes) + { + RZustand rZustand = new RZustand(); + foreach (XmlNode d in child.ChildNodes) + { + + switch (d.Name) + { + case "Station": + rZustand.Station = Convert.ToDecimal(d.InnerText.Replace('.', ',')); + break; + case "InspektionsKode": + rZustand.Inspektionskode = d.InnerText; + break; + case "Charakterisierung1": + rZustand.Charakterisierung1 = d.InnerText; + break; + case "Charakterisierung2": + rZustand.Charakterisierung2 = d.InnerText; + break; + case "Verbindung": + rZustand.Verbindung = d.InnerText.Equals("0") ? false : true; + break; + case "PositionVon": + rZustand.PositionVon = Convert.ToInt32(d.InnerText); + break; + case "PositionBis": + rZustand.PositionBis = Convert.ToInt32(d.InnerText); + break; + case "Quantifizierung1Numerisch": + Quantifizierung quantifizierung1 = new Quantifizierung(); + quantifizierung1.Numerisch = Convert.ToDecimal(d.InnerText.Replace('.', ',')); + rZustand.Quantifizierung1 = quantifizierung1; + break; + case "Quantifizierung2Numerisch": + Quantifizierung quantifizierung2 = new Quantifizierung(); + quantifizierung2.Numerisch = Convert.ToDecimal(d.InnerText.Replace('.', ',')); + rZustand.Quantifizierung1 = quantifizierung2; + break; + case "Quantifizierung1Text": + Quantifizierung quantifizierung3 = new Quantifizierung(); + quantifizierung3.Text = d.InnerText; + rZustand.Quantifizierung1 = quantifizierung3; + break; + case "Quantifizierung2Text": + Quantifizierung quantifizierung4 = new Quantifizierung(); + quantifizierung4.Text = d.InnerText; + rZustand.Quantifizierung2 = quantifizierung4; + break; + case "Frame": break; + case "Klassifizierung": break; + case "Kommentar": rZustand.Kommentar = d.InnerText; break; + case "Streckenschaden": rZustand.Streckenschaden = d.InnerText; break; + case "StreckenschadenLfdNr": rZustand.Streckenschadennr = Convert.ToInt32(d.InnerText); break; + case "BezeichnungSanierung": break; + case "RVerfahrenSanierung": break; + case "Fotodatei": break; + case "FotoSpeichermedium": break; + case "Fotonummer": break; + case "Timecode": break; + case "GrundAbbruch": break; + default: throw new NotImplementedException(d.Name); + + } + } + result.Add(rZustand); + } + + + return result; + } + } +} diff --git a/SanSystem/TempCAN/TemperaturBuilder.cs b/SanSystem/TempCAN/TemperaturBuilder.cs new file mode 100644 index 0000000..d0fb342 --- /dev/null +++ b/SanSystem/TempCAN/TemperaturBuilder.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SanShared; + +namespace TempCAN +{ + /// + /// Auflistung der Schnittstellen + /// + public enum TemperaturSchnittstellen + { + /// + /// Tinkerforge schnittstelle + /// + TINKERFORGE + } + /// + /// + /// + public static class TemperaturBuilder + { + /// + /// + /// + public static ITemperature Temperatur(TemperaturSchnittstellen temperaturSchnittstellen) + { + switch(temperaturSchnittstellen) + { + case TemperaturSchnittstellen.TINKERFORGE: + return new TinkerForgeTemperatur(); + + + default: + throw new Exception(); + } + } + } +} diff --git a/SanSystem/TempCAN/TinkerForgeTemperatur.cs b/SanSystem/TempCAN/TinkerForgeTemperatur.cs new file mode 100644 index 0000000..2cff252 --- /dev/null +++ b/SanSystem/TempCAN/TinkerForgeTemperatur.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SanShared; +using Tinkerforge; + +namespace TempCAN +{ + /// + /// + /// + public class TinkerForgeTemperatur : ITemperature + { + private static string HOST = "localhost"; + private static int PORT = 4223; + private static string UID = "dW3"; + double temperatur; + bool erfolg = true; + + /// + /// + /// + public TinkerForgeTemperatur() + { + IPConnection ipcon = new IPConnection(); + BrickletTemperature t = new BrickletTemperature(UID, ipcon); + try + { + ipcon.Connect(HOST, PORT); + } + catch(Exception) + { + erfolg = false; + ipcon = null; + t = null; + return; + } + + short temp; + try + { + temp = t.GetTemperature(); + + } + catch(Tinkerforge.TimeoutException) + { + temp = 100; + erfolg = false; + } + temperatur = (temp / 100.0); + ipcon.Disconnect(); + t = null; + ipcon = null; + } + + /// + /// + /// + public double GetTemperatur(out string message) + { + message = ""; + if (!erfolg) message = "Es konnte keine Verbindung mit der TemperaturSystem aufgebaut werden"; + return temperatur; + } + } +} diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index acfbde6..d09c970 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -190,6 +190,7 @@ namespace SanSystem private void stammdatenImportierenToolStripMenuItem_Click(object sender, EventArgs e) { + /* OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "XML Daten | *.xml"; if(Datenbank.Instance.loadedProjekt == null) @@ -220,6 +221,7 @@ namespace SanSystem strassenList.StartPosition = FormStartPosition.Manual; strassenList.Show(); } + */ } private void auftraggeberToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/SanSystem/packages.config b/SanSystem/packages.config index 766754a..6f05d41 100644 --- a/SanSystem/packages.config +++ b/SanSystem/packages.config @@ -4,11 +4,17 @@ + + + + + + diff --git a/SanVerwaltung.sln b/SanVerwaltung.sln index e5c0ae1..5ee5b0c 100644 --- a/SanVerwaltung.sln +++ b/SanVerwaltung.sln @@ -5,26 +5,6 @@ VisualStudioVersion = 17.1.31911.260 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SanSystem", "SanSystem\SanSystem.csproj", "{C6546A88-8830-4EF2-B99C-B9183171F6EF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Database", "Database\Database.csproj", "{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KlassenBIB", "KlassenBIB\KlassenBIB.csproj", "{C82BD650-466B-403F-BED9-2B1660771F54}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KlassenBIBTests", "KlassenBIBTests\KlassenBIBTests.csproj", "{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchnittstelleImporter", "SchnittstelleImporter\SchnittstelleImporter.csproj", "{E1564A4D-39FD-489B-8029-AEEF33033EF2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TempCAN", "TempCAN\TempCAN.csproj", "{E4979419-5EAE-4B6D-A6A0-9632C1DE87A0}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SanShared", "SanShared\SanShared.csproj", "{C949087E-20E1-4A17-B021-FAEAD363C1D8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BerichtGen", "BerichtGen\BerichtGen.csproj", "{3022DA07-FD06-4AEA-9FC8-00D318E95A82}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchnittstelleImporterTests", "SchnittstelleImporterTests\SchnittstelleImporterTests.csproj", "{9264791A-9D57-4133-BE47-75721057DBBB}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSVParser", "CSVParser\CSVParser.csproj", "{3F79BD28-9BF6-4902-8977-41E9E71F8488}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{DDF8C748-82A0-4FFC-8EE1-9C81C26A75E3}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dichtheitsprüfung", "Dichtheitspruefung\Dichtheitsprüfung\Dichtheitsprüfung.csproj", "{324277C6-2EB3-47B7-9DD5-7FA520E7D349}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UpdateLib", "UpdateLib\UpdateLib.csproj", "{CF95DB30-247B-4382-948E-3BD5EB73C938}" @@ -39,42 +19,6 @@ Global {C6546A88-8830-4EF2-B99C-B9183171F6EF}.Debug|Any CPU.Build.0 = Debug|Any CPU {C6546A88-8830-4EF2-B99C-B9183171F6EF}.Release|Any CPU.ActiveCfg = Release|Any CPU {C6546A88-8830-4EF2-B99C-B9183171F6EF}.Release|Any CPU.Build.0 = Release|Any CPU - {B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}.Release|Any CPU.Build.0 = Release|Any CPU - {C82BD650-466B-403F-BED9-2B1660771F54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C82BD650-466B-403F-BED9-2B1660771F54}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C82BD650-466B-403F-BED9-2B1660771F54}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C82BD650-466B-403F-BED9-2B1660771F54}.Release|Any CPU.Build.0 = Release|Any CPU - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8}.Release|Any CPU.Build.0 = Release|Any CPU - {E1564A4D-39FD-489B-8029-AEEF33033EF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E1564A4D-39FD-489B-8029-AEEF33033EF2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E1564A4D-39FD-489B-8029-AEEF33033EF2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E1564A4D-39FD-489B-8029-AEEF33033EF2}.Release|Any CPU.Build.0 = Release|Any CPU - {E4979419-5EAE-4B6D-A6A0-9632C1DE87A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E4979419-5EAE-4B6D-A6A0-9632C1DE87A0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E4979419-5EAE-4B6D-A6A0-9632C1DE87A0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E4979419-5EAE-4B6D-A6A0-9632C1DE87A0}.Release|Any CPU.Build.0 = Release|Any CPU - {C949087E-20E1-4A17-B021-FAEAD363C1D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C949087E-20E1-4A17-B021-FAEAD363C1D8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C949087E-20E1-4A17-B021-FAEAD363C1D8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C949087E-20E1-4A17-B021-FAEAD363C1D8}.Release|Any CPU.Build.0 = Release|Any CPU - {3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Release|Any CPU.Build.0 = Release|Any CPU - {9264791A-9D57-4133-BE47-75721057DBBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9264791A-9D57-4133-BE47-75721057DBBB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9264791A-9D57-4133-BE47-75721057DBBB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9264791A-9D57-4133-BE47-75721057DBBB}.Release|Any CPU.Build.0 = Release|Any CPU - {3F79BD28-9BF6-4902-8977-41E9E71F8488}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3F79BD28-9BF6-4902-8977-41E9E71F8488}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3F79BD28-9BF6-4902-8977-41E9E71F8488}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3F79BD28-9BF6-4902-8977-41E9E71F8488}.Release|Any CPU.Build.0 = Release|Any CPU {324277C6-2EB3-47B7-9DD5-7FA520E7D349}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {324277C6-2EB3-47B7-9DD5-7FA520E7D349}.Debug|Any CPU.Build.0 = Debug|Any CPU {324277C6-2EB3-47B7-9DD5-7FA520E7D349}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -87,10 +31,6 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {0FEC903E-6C9F-48AC-A207-0BACA184AAA8} = {DDF8C748-82A0-4FFC-8EE1-9C81C26A75E3} - {9264791A-9D57-4133-BE47-75721057DBBB} = {DDF8C748-82A0-4FFC-8EE1-9C81C26A75E3} - EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {78FE215A-2904-4B88-8553-88BF8165DAC4} EndGlobalSection diff --git a/SchnittstelleImporter/I2006XML.cs b/SchnittstelleImporter/I2006XML.cs index 313f5fc..a8b17ee 100644 --- a/SchnittstelleImporter/I2006XML.cs +++ b/SchnittstelleImporter/I2006XML.cs @@ -1,4 +1,4 @@ -using KlassenBIB; +using SanShared; using SchnittstelleImporter.XML2006; using System; using System.Collections.Generic; @@ -145,13 +145,14 @@ namespace SchnittstelleImporter /// /// /// - public List GetInspektionsobjekte() + public List GetInspektionsobjekte() { - List result = new List(); + /* + List result = new List(); List anlagen = XMLParser.GetList(XMLFile); foreach(InspizierteAbwassertechnischeAnlage src in anlagen) { - Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); + IInspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln(); inspektionsobjekt.Projektnummer = projektnummer; @@ -189,7 +190,10 @@ namespace SchnittstelleImporter inspektionsobjekt.Schadenskuerzeln = inspektionskuerzelns; result.Add(inspektionsobjekt); } + return result; + */ + return new List(); } } } diff --git a/SchnittstelleImporter/ImportBuilder.cs b/SchnittstelleImporter/ImportBuilder.cs index f14f3ed..4ffc25b 100644 --- a/SchnittstelleImporter/ImportBuilder.cs +++ b/SchnittstelleImporter/ImportBuilder.cs @@ -1,4 +1,4 @@ -using KlassenBIB; +using SanShared; using System; using System.Collections.Generic; using System.Linq; diff --git a/SchnittstelleImporter/SchnittstelleImporter.csproj b/SchnittstelleImporter/SchnittstelleImporter.csproj index e8e9eee..56720b4 100644 --- a/SchnittstelleImporter/SchnittstelleImporter.csproj +++ b/SchnittstelleImporter/SchnittstelleImporter.csproj @@ -56,12 +56,11 @@ - - {c82bd650-466b-403f-bed9-2b1660771f54} - KlassenBIB + + {C949087E-20E1-4A17-B021-FAEAD363C1D8} + SanShared - diff --git a/SchnittstelleImporterTests/I2006XMLTests.cs b/SchnittstelleImporterTests/I2006XMLTests.cs deleted file mode 100644 index 13014c4..0000000 --- a/SchnittstelleImporterTests/I2006XMLTests.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using SchnittstelleImporter; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SchnittstelleImporter.Tests -{ - [TestClass()] - public class I2006XMLTests - { - [TestMethod()] - public void LoadRefListeTest() - { - //I2006XML.LoadRefListe(); - } - } -} \ No newline at end of file diff --git a/SchnittstelleImporterTests/ImportTests.cs b/SchnittstelleImporterTests/ImportTests.cs deleted file mode 100644 index d5fa2dc..0000000 --- a/SchnittstelleImporterTests/ImportTests.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using SchnittstelleImporter; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SchnittstelleImporter.Tests -{ - [TestClass()] - public class ImportTests - { - [TestMethod()] - public void GetInspektionsobjekteTest() - { - - - Assert.Fail(); - } - } -} \ No newline at end of file diff --git a/SchnittstelleImporterTests/Properties/AssemblyInfo.cs b/SchnittstelleImporterTests/Properties/AssemblyInfo.cs deleted file mode 100644 index a5a2c33..0000000 --- a/SchnittstelleImporterTests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über folgende -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("SchnittstelleImporterTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SchnittstelleImporterTests")] -[assembly: AssemblyCopyright("Copyright © 2018")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Wenn ComVisible auf "false" festgelegt wird, sind die Typen innerhalb dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("9264791a-9d57-4133-be47-75721057dbbb")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern -// übernehmen, indem Sie "*" eingeben: -// [Assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SchnittstelleImporterTests/SchnittstelleImporterTests.csproj b/SchnittstelleImporterTests/SchnittstelleImporterTests.csproj deleted file mode 100644 index 8fd4c03..0000000 --- a/SchnittstelleImporterTests/SchnittstelleImporterTests.csproj +++ /dev/null @@ -1,113 +0,0 @@ - - - - - Debug - AnyCPU - {9264791A-9D57-4133-BE47-75721057DBBB} - Library - Properties - SchnittstelleImporterTests - SchnittstelleImporterTests - v4.7.2 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MSTest.TestFramework.2.2.9-preview-20220210-07\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\packages\MSTest.TestFramework.2.2.9-preview-20220210-07\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - - - - - - - - - - - - - - - - - - - - - - - - {C82BD650-466B-403F-BED9-2B1660771F54} - KlassenBIB - - - {E1564A4D-39FD-489B-8029-AEEF33033EF2} - SchnittstelleImporter - - - - - - - False - - - False - - - False - - - False - - - - - - - - - Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". - - - - - - - \ No newline at end of file diff --git a/SchnittstelleImporterTests/XML2006/XMLParserTests.cs b/SchnittstelleImporterTests/XML2006/XMLParserTests.cs deleted file mode 100644 index aaf8e8b..0000000 --- a/SchnittstelleImporterTests/XML2006/XMLParserTests.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using SchnittstelleImporter.XML2006; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SchnittstelleImporter.XML2006.Tests -{ - [TestClass()] - public class XMLParserTests - { - [TestMethod()] - public void GetListTest() - { - string xmlfile = @"C:\Users\Damian\Desktop\XML\3_Zustandsdaten\ISYBAU_XML-2006-Zustandsdaten_DIN_EN_13508-2.xml"; - var x = XMLParser.GetList(xmlfile); - Assert.Fail(); - } - } -} \ No newline at end of file diff --git a/SchnittstelleImporterTests/app.config b/SchnittstelleImporterTests/app.config deleted file mode 100644 index c26df79..0000000 --- a/SchnittstelleImporterTests/app.config +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/SchnittstelleImporterTests/packages.config b/SchnittstelleImporterTests/packages.config deleted file mode 100644 index 479d101..0000000 --- a/SchnittstelleImporterTests/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/TempCAN/TempCAN.csproj b/TempCAN/TempCAN.csproj index c1adfac..3814eda 100644 --- a/TempCAN/TempCAN.csproj +++ b/TempCAN/TempCAN.csproj @@ -49,11 +49,5 @@ - - - {c949087e-20e1-4a17-b021-faead363c1d8} - SanShared - - \ No newline at end of file