From 53fa3789f24c94b834832d5bed0a4539893400ee Mon Sep 17 00:00:00 2001 From: Husky Date: Sat, 21 Jul 2018 12:24:23 +0200 Subject: [PATCH] vergessene commit --- BerichtGen/Bericht.cs | 3 +- KlassenBIB/InlinerSanierung.cs | 58 ++++++++++++++++++- KlassenBIB/Sanieren.cs | 16 ++++- KlassenBIB/Sanierung.cs | 6 ++ KlassenBIB/SanierungCollection.cs | 3 + SanSystem/FrmKalibrierungFestlegung.cs | 6 ++ SanSystem/FrmNewProjekt.cs | 6 ++ SanSystem/FrmSelectMassenDate.cs | 3 + SanSystem/FrmSelectNewSan.cs | 18 ++++++ SanSystem/UCInliner.cs | 12 +++- SanSystem/UCLinerGrundlagen.cs | 14 ++++- SanSystem/UCSchachtanbindung.cs | 3 + SanSystem/frmMain.Designer.cs | 3 + SanSystem/frmMain.cs | 7 ++- SanSystem/frmObjektEdit.cs | 8 ++- SanSystem/frmObjekteList.cs | 13 ++++- SanSystem/frmProjektList.cs | 6 ++ SanSystem/frmStrassenList.cs | 7 ++- .../XML2006/Anschlussdaten.cs | 3 + SchnittstelleImporter/XML2006/Enums.cs | 39 +++++++++++++ .../InspizierteAbwassertechnischeAnlage.cs | 3 + SchnittstelleImporter/XML2006/Lage.cs | 3 + .../XML2006/OptischeInspektion.cs | 3 + SchnittstelleImporter/XML2006/RGrunddaten.cs | 3 + SchnittstelleImporter/XML2006/RZustand.cs | 51 ++++++++++++++++ SchnittstelleImporter/XML2006/XMLParser.cs | 3 + TempCAN/TemperaturBuilder.cs | 12 ++++ TempCAN/TinkerForgeTemperatur.cs | 9 +++ 28 files changed, 307 insertions(+), 14 deletions(-) diff --git a/BerichtGen/Bericht.cs b/BerichtGen/Bericht.cs index 027ebfd..62ece3f 100644 --- a/BerichtGen/Bericht.cs +++ b/BerichtGen/Bericht.cs @@ -24,6 +24,7 @@ namespace BerichtGen /// Die zuverwendete Vorlagenname /// Pfad zum Speichern /// + /// /// Zur zeit ohne Implementierung /// Für Tabellen anzeige /// Ein doc datei soll erzeugt werden @@ -135,7 +136,7 @@ namespace BerichtGen graphics.Dispose(); } - catch(Exception ex) + catch(Exception) { } diff --git a/KlassenBIB/InlinerSanierung.cs b/KlassenBIB/InlinerSanierung.cs index 83ff7b9..748b7b0 100644 --- a/KlassenBIB/InlinerSanierung.cs +++ b/KlassenBIB/InlinerSanierung.cs @@ -37,7 +37,11 @@ namespace KlassenBIB { return haltungslaenge * harzbedarf; } - + /// + /// + /// + /// + /// public override string CheckVerzeichnisse(string projektpfad) { string path = Path.Combine(projektpfad, PfadZurSan); @@ -48,6 +52,11 @@ namespace KlassenBIB return mypath; } + /// + /// + /// + /// + /// public Hashtable MakeProtokoll(string destinationPath) { @@ -139,17 +148,30 @@ namespace KlassenBIB return grunddaten; } - + /// + /// + /// public InlinerSanierung() { //datumKalibrierung = new DateTime(); Verzeichnispfad = "UVAnlage"; if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now; } - + /// + /// + /// public double KalibrierUnterdruck { get => kalibrierUnterdruck; set => kalibrierUnterdruck = value; } + /// + /// + /// public double KalibierWalzenAbstand { get => kalibierWalzenAbstand; set => kalibierWalzenAbstand = value; } + /// + /// + /// public double HarzKalibrierTemperatur { get => harzKalibrierTemperatur; set => harzKalibrierTemperatur = value; } + /// + /// + /// public DateTime DatumKalibrierung { get @@ -163,15 +185,45 @@ namespace KlassenBIB datumKalibrierung = value; } } + /// + /// + /// public string HarzChargenummer { get => harzChargenummer; set => harzChargenummer = value; } + /// + /// + /// public string LinerChargenummer { get => linerChargenummer; set => linerChargenummer = value; } + /// + /// + /// public double Harzbedarf { get => harzbedarf; set => harzbedarf = value; } + /// + /// + /// public uint Rueckholgeschwindigkeit { get => rueckholgeschwindigkeit; set => rueckholgeschwindigkeit = value; } + /// + /// + /// public bool GeschlosseneEnde { get => geschlosseneEnde; set => geschlosseneEnde = value; } + /// + /// + /// public double HarzBedarf { get => harzbedarf; set => harzbedarf = value; } + /// + /// + /// public string HarzTyp { get => harzTyp; set => harzTyp = value; } + /// + /// + /// public string LinerTyp { get => linerTyp; set => linerTyp = value; } + /// + /// + /// public DateTime AnfangAushaertung { get => anfangAushaertung; set => anfangAushaertung = value; } + /// + /// + /// public DateTime EndeAushaertung { get => endeAushaertung; set => endeAushaertung = value; } } } diff --git a/KlassenBIB/Sanieren.cs b/KlassenBIB/Sanieren.cs index c8dbca6..2ea664f 100644 --- a/KlassenBIB/Sanieren.cs +++ b/KlassenBIB/Sanieren.cs @@ -6,16 +6,30 @@ using System.Threading.Tasks; namespace KlassenBIB { + /// + /// + /// public abstract class Sanieren : Sanierung { Guid guid; DateTime datum = new DateTime(); bool fertig = false; string verzeichnispfad; - + /// + /// + /// public Guid Guid { get => guid; set => guid = value; } + /// + /// + /// public DateTime Datum { get => datum; set => datum = value; } + /// + /// + /// public bool Fertig { get => fertig; set => fertig = value; } + /// + /// + /// public string Verzeichnispfad { get => verzeichnispfad; protected set => verzeichnispfad = value; } } } diff --git a/KlassenBIB/Sanierung.cs b/KlassenBIB/Sanierung.cs index f537ee3..f11ade8 100644 --- a/KlassenBIB/Sanierung.cs +++ b/KlassenBIB/Sanierung.cs @@ -11,6 +11,9 @@ namespace KlassenBIB // // Zusammenfassung: // Bietet die grundlegene Struktur für eine Sanierung + /// + /// + /// [EditorBrowsable(EditorBrowsableState.Never)] [Browsable(false)] public abstract class Sanierung : INotifyPropertyChanged @@ -26,6 +29,9 @@ namespace KlassenBIB DateTime hDReinigungDatum; //DateTime sanierungsDatum; Inspektionsobjekt inspektionsobjekt; + /// + /// + /// protected string pfadZurSan; /// diff --git a/KlassenBIB/SanierungCollection.cs b/KlassenBIB/SanierungCollection.cs index 31e1547..3dcd279 100644 --- a/KlassenBIB/SanierungCollection.cs +++ b/KlassenBIB/SanierungCollection.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace KlassenBIB { + /// + /// + /// public class SanierungCollection : List { } diff --git a/SanSystem/FrmKalibrierungFestlegung.cs b/SanSystem/FrmKalibrierungFestlegung.cs index 14a68f3..91fbf58 100644 --- a/SanSystem/FrmKalibrierungFestlegung.cs +++ b/SanSystem/FrmKalibrierungFestlegung.cs @@ -11,8 +11,14 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class FrmKalibrierungFestlegung : Form { + /// + /// + /// public FrmKalibrierungFestlegung(List inspektionsobjekts) { InitializeComponent(); diff --git a/SanSystem/FrmNewProjekt.cs b/SanSystem/FrmNewProjekt.cs index 72630e9..da5f5c0 100644 --- a/SanSystem/FrmNewProjekt.cs +++ b/SanSystem/FrmNewProjekt.cs @@ -11,8 +11,14 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class FrmNewProjekt : Form { + /// + /// + /// public FrmNewProjekt() { InitializeComponent(); diff --git a/SanSystem/FrmSelectMassenDate.cs b/SanSystem/FrmSelectMassenDate.cs index 47068fd..a093894 100644 --- a/SanSystem/FrmSelectMassenDate.cs +++ b/SanSystem/FrmSelectMassenDate.cs @@ -12,6 +12,9 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class FrmSelectMassenDate : Form { diff --git a/SanSystem/FrmSelectNewSan.cs b/SanSystem/FrmSelectNewSan.cs index 9605979..88d76c7 100644 --- a/SanSystem/FrmSelectNewSan.cs +++ b/SanSystem/FrmSelectNewSan.cs @@ -10,21 +10,39 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class FrmSelectNewSan : Form { + /// + /// + /// public event EventHandler AddInlinerClicked; + /// + /// + /// public event EventHandler AddSchachtAnbindungClicked; + /// + /// + /// protected virtual void OnAddSchachtAnbindungClicked(EventArgs e) { EventHandler handler = AddSchachtAnbindungClicked; if (handler != null) handler(this, e); } + /// + /// + /// protected virtual void OnAddInlinerClicked(EventArgs e) { EventHandler handler = AddInlinerClicked; if (handler != null) handler(this, e); } + /// + /// + /// public FrmSelectNewSan() { InitializeComponent(); diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs index ea899b8..234aecd 100644 --- a/SanSystem/UCInliner.cs +++ b/SanSystem/UCInliner.cs @@ -17,7 +17,9 @@ using Syncfusion.Windows.Forms.Chart; namespace SanSystem { - + /// + /// + /// public partial class UCInliner : UserControl { enum TabPages @@ -29,6 +31,10 @@ namespace SanSystem string destinationPath = string.Empty; UCLinerGrundlagen UCLinerGrundlagen = null; List filenames = new List(); + /// + /// + /// + /// public UCInliner(InlinerSanierung san) { InitializeComponent(); @@ -143,7 +149,7 @@ namespace SanSystem FtpClient newClient = null; client.Dispose(); - FtpClient newclient = null; + //FtpClient newclient = null; foreach (string file in filenames) { newClient = new FtpClient("192.168.250.2"); @@ -166,7 +172,7 @@ namespace SanSystem } catch (TimeoutException ex) { - MessageBox.Show("Die anlage reagiert nicht!"); + MessageBox.Show("Die anlage reagiert nicht!\n"+ex.Message); } } diff --git a/SanSystem/UCLinerGrundlagen.cs b/SanSystem/UCLinerGrundlagen.cs index 47b706e..58cab0c 100644 --- a/SanSystem/UCLinerGrundlagen.cs +++ b/SanSystem/UCLinerGrundlagen.cs @@ -11,16 +11,28 @@ using KlassenBIB; namespace SanSystem { + /// + /// + /// public partial class UCLinerGrundlagen : UserControl { InlinerSanierung inliner = null; + /// + /// + /// public List inspektionsobjekts = null; + /// + /// + /// + /// public UCLinerGrundlagen(InlinerSanierung inliner) { InitializeComponent(); this.inliner = inliner; } - + /// + /// + /// public UCLinerGrundlagen() { InitializeComponent(); diff --git a/SanSystem/UCSchachtanbindung.cs b/SanSystem/UCSchachtanbindung.cs index a41c1ba..5dc2832 100644 --- a/SanSystem/UCSchachtanbindung.cs +++ b/SanSystem/UCSchachtanbindung.cs @@ -13,6 +13,9 @@ using System.IO; namespace SanSystem { + /// + /// + /// public partial class UCSchachtanbindung : UserControl { SchachtAnbindung schacht = null; diff --git a/SanSystem/frmMain.Designer.cs b/SanSystem/frmMain.Designer.cs index 48c9a65..25c5cf7 100644 --- a/SanSystem/frmMain.Designer.cs +++ b/SanSystem/frmMain.Designer.cs @@ -1,5 +1,8 @@ namespace SanSystem { + /// + /// + /// partial class frmMain { /// diff --git a/SanSystem/frmMain.cs b/SanSystem/frmMain.cs index f17b778..913f918 100644 --- a/SanSystem/frmMain.cs +++ b/SanSystem/frmMain.cs @@ -16,9 +16,14 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class frmMain : Form { - + /// + /// + /// public frmMain() { InitializeComponent(); diff --git a/SanSystem/frmObjektEdit.cs b/SanSystem/frmObjektEdit.cs index ed2c0b1..16bf409 100644 --- a/SanSystem/frmObjektEdit.cs +++ b/SanSystem/frmObjektEdit.cs @@ -14,11 +14,17 @@ using Database; namespace SanSystem { - + /// + /// + /// public partial class frmObjektEdit : Form { Inspektionsobjekt inspektionsobjekt = null; + /// + /// + /// + /// public frmObjektEdit(Inspektionsobjekt inspektion) { InitializeComponent(); diff --git a/SanSystem/frmObjekteList.cs b/SanSystem/frmObjekteList.cs index 6b62479..2261cd1 100644 --- a/SanSystem/frmObjekteList.cs +++ b/SanSystem/frmObjekteList.cs @@ -15,12 +15,18 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class frmObjekteList : Form { private List inspektionsobjekte; ObjecteListSetting objecteListSetting = new ObjecteListSetting(); - + /// + /// + /// + /// private void loadObjekte(string streetname) { @@ -63,7 +69,10 @@ namespace SanSystem } return true; } - + /// + /// + /// + /// public frmObjekteList(string streetname) { InitializeComponent(); diff --git a/SanSystem/frmProjektList.cs b/SanSystem/frmProjektList.cs index e56264e..da117a3 100644 --- a/SanSystem/frmProjektList.cs +++ b/SanSystem/frmProjektList.cs @@ -11,8 +11,14 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class frmProjektList : Form { + /// + /// + /// public frmProjektList() { InitializeComponent(); diff --git a/SanSystem/frmStrassenList.cs b/SanSystem/frmStrassenList.cs index 89df3de..e2fc863 100644 --- a/SanSystem/frmStrassenList.cs +++ b/SanSystem/frmStrassenList.cs @@ -12,10 +12,15 @@ using System.Windows.Forms; namespace SanSystem { + /// + /// + /// public partial class frmStrassenList : Form { BindingSource bs = new BindingSource(); - + /// + /// + /// public frmStrassenList() { InitializeComponent(); diff --git a/SchnittstelleImporter/XML2006/Anschlussdaten.cs b/SchnittstelleImporter/XML2006/Anschlussdaten.cs index 187e5cd..b2b14c5 100644 --- a/SchnittstelleImporter/XML2006/Anschlussdaten.cs +++ b/SchnittstelleImporter/XML2006/Anschlussdaten.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public class Anschlussdaten { string objektbezeichnung; diff --git a/SchnittstelleImporter/XML2006/Enums.cs b/SchnittstelleImporter/XML2006/Enums.cs index db80bce..dbd11d3 100644 --- a/SchnittstelleImporter/XML2006/Enums.cs +++ b/SchnittstelleImporter/XML2006/Enums.cs @@ -11,9 +11,21 @@ namespace SchnittstelleImporter.XML2006 /// public enum EAnlagetyp { + /// + /// + /// Haltung = 1, + /// + /// + /// Anschlussleitung = 2, + /// + /// + /// Schacht = 3, + /// + /// + /// Bauwerk = 4 } /// @@ -40,7 +52,13 @@ namespace SchnittstelleImporter.XML2006 /// public enum ERohrleitungstyp { + /// + /// + /// HALTUNG, + /// + /// + /// LEITUNG } /// @@ -56,8 +74,17 @@ namespace SchnittstelleImporter.XML2006 /// public enum EKnotenTyp { + /// + /// + /// SCHACHT = 0, + /// + /// + /// ANSCHLUSSPUNKT = 1, + /// + /// + /// BAUWERK = 2 } /// @@ -65,9 +92,21 @@ namespace SchnittstelleImporter.XML2006 /// public enum EKantenTyp { + /// + /// + /// HALTUNG, + /// + /// + /// LEITUNG, + /// + /// + /// RINNE, + /// + /// + /// GERINNE } } diff --git a/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs b/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs index 955c65d..7859582 100644 --- a/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs +++ b/SchnittstelleImporter/XML2006/InspizierteAbwassertechnischeAnlage.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public sealed class InspizierteAbwassertechnischeAnlage { string objektbezeichnung; diff --git a/SchnittstelleImporter/XML2006/Lage.cs b/SchnittstelleImporter/XML2006/Lage.cs index 2c45b1f..528481b 100644 --- a/SchnittstelleImporter/XML2006/Lage.cs +++ b/SchnittstelleImporter/XML2006/Lage.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public class Lage { string strassename; diff --git a/SchnittstelleImporter/XML2006/OptischeInspektion.cs b/SchnittstelleImporter/XML2006/OptischeInspektion.cs index 1d77bfa..122cc7f 100644 --- a/SchnittstelleImporter/XML2006/OptischeInspektion.cs +++ b/SchnittstelleImporter/XML2006/OptischeInspektion.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public class OptischeInspektion { DateTime inspektionstime; diff --git a/SchnittstelleImporter/XML2006/RGrunddaten.cs b/SchnittstelleImporter/XML2006/RGrunddaten.cs index 5b65480..5d9f224 100644 --- a/SchnittstelleImporter/XML2006/RGrunddaten.cs +++ b/SchnittstelleImporter/XML2006/RGrunddaten.cs @@ -6,6 +6,9 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public class RGrunddaten { string knotenZulauf; diff --git a/SchnittstelleImporter/XML2006/RZustand.cs b/SchnittstelleImporter/XML2006/RZustand.cs index a5c4be8..0c66967 100644 --- a/SchnittstelleImporter/XML2006/RZustand.cs +++ b/SchnittstelleImporter/XML2006/RZustand.cs @@ -6,11 +6,23 @@ using System.Threading.Tasks; namespace SchnittstelleImporter.XML2006 { + /// + /// + /// public struct Quantifizierung { + /// + /// + /// public decimal Numerisch; + /// + /// + /// public string Text; + /// + /// + /// public override string ToString() { if (Text != null) @@ -20,6 +32,9 @@ namespace SchnittstelleImporter.XML2006 return Numerisch.ToString(); } } + /// + /// + /// public class RZustand { decimal station; @@ -35,17 +50,53 @@ namespace SchnittstelleImporter.XML2006 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/SchnittstelleImporter/XML2006/XMLParser.cs b/SchnittstelleImporter/XML2006/XMLParser.cs index 1fcb92f..d361628 100644 --- a/SchnittstelleImporter/XML2006/XMLParser.cs +++ b/SchnittstelleImporter/XML2006/XMLParser.cs @@ -13,6 +13,9 @@ namespace SchnittstelleImporter.XML2006 /// public static class XMLParser { + /// + /// + /// public static Dictionary anlageInFile = new Dictionary(); /// /// Gibt eine Liste an anlagen zurück von einer XML Datei. diff --git a/TempCAN/TemperaturBuilder.cs b/TempCAN/TemperaturBuilder.cs index b3cfdc7..86573a0 100644 --- a/TempCAN/TemperaturBuilder.cs +++ b/TempCAN/TemperaturBuilder.cs @@ -7,12 +7,24 @@ using SanShared; namespace TempCAN { + /// + /// + /// public enum TemperaturSchnittstellen { + /// + /// + /// TINKERFORGE } + /// + /// + /// public static class TemperaturBuilder { + /// + /// + /// public static ITemperature Temperatur(TemperaturSchnittstellen temperaturSchnittstellen) { switch(temperaturSchnittstellen) diff --git a/TempCAN/TinkerForgeTemperatur.cs b/TempCAN/TinkerForgeTemperatur.cs index d640008..786a82c 100644 --- a/TempCAN/TinkerForgeTemperatur.cs +++ b/TempCAN/TinkerForgeTemperatur.cs @@ -8,6 +8,9 @@ using Tinkerforge; namespace TempCAN { + /// + /// + /// public class TinkerForgeTemperatur : ITemperature { private static string HOST = "localhost"; @@ -16,6 +19,9 @@ namespace TempCAN double temperatur; bool erfolg = true; + /// + /// + /// public TinkerForgeTemperatur() { IPConnection ipcon = new IPConnection(); @@ -39,6 +45,9 @@ namespace TempCAN ipcon = null; } + /// + /// + /// public double GetTemperatur(out string message) { message = "";