Merge branch 'schadenskürzeln' into 'master'

Schadenskürzeln

See merge request cosysda/SanVerwaltung!2
This commit is contained in:
husky
2018-07-21 21:25:35 +02:00
83 changed files with 15211 additions and 86 deletions

View File

@@ -21,11 +21,13 @@ namespace BerichtGen
/// <summary> /// <summary>
/// Erstellt /// Erstellt
/// </summary> /// </summary>
/// <param name="vorlage">Die zuverwendete Vorlagenname</param> /// <param name="source">Die zuverwendete Vorlagenname</param>
/// <param name="documentname">Die name zum Speichern der Datei</param>
/// <param name="savepath">Pfad zum Speichern</param> /// <param name="savepath">Pfad zum Speichern</param>
/// <param name="daten">Inhalt vom Dokument </param> /// <param name="filename"></param>
/// <param name="erzeugeDoc">Ein doc datei soll erzeugt werden</param> /// <param name="daten"></param>
/// <param name="bilderObjects">Zur zeit ohne Implementierung</param>
/// <param name="tableContents">Für Tabellen anzeige</param>
/// <param name="erzeugeDOC">Ein doc datei soll erzeugt werden</param>
/// <param name="erzeugePDF">Ein Pdf datei soll erzeugt werden</param> /// <param name="erzeugePDF">Ein Pdf datei soll erzeugt werden</param>
public void Erzeuge(string source, string savepath,string filename, Hashtable daten,List<BilderObject> bilderObjects,DataTable tableContents, bool erzeugeDOC = false , bool erzeugePDF = true) public void Erzeuge(string source, string savepath,string filename, Hashtable daten,List<BilderObject> bilderObjects,DataTable tableContents, bool erzeugeDOC = false , bool erzeugePDF = true)
{ {
@@ -134,7 +136,7 @@ namespace BerichtGen
graphics.Dispose(); graphics.Dispose();
} }
catch(Exception ex) catch(Exception)
{ {
} }

View File

@@ -14,6 +14,9 @@ using System.Windows.Forms;
namespace BerichtGen namespace BerichtGen
{ {
/// <summary>
///
/// </summary>
public partial class FrmOptions : Form public partial class FrmOptions : Form
{ {
Thread generateProtokollThread; Thread generateProtokollThread;
@@ -26,6 +29,16 @@ namespace BerichtGen
List<BilderObject> bilderObjects; List<BilderObject> bilderObjects;
DataTable tableContent = null; DataTable tableContent = null;
/// <summary>
///
/// </summary>
/// <param name="firma"></param>
/// <param name="vorlage"></param>
/// <param name="speicherpfad"></param>
/// <param name="filename"></param>
/// <param name="grunddaten"></param>
/// <param name="bilderObjects"></param>
/// <param name="tableContent"></param>
public FrmOptions(string firma, string vorlage, string speicherpfad,string filename, Hashtable grunddaten, List<BilderObject> bilderObjects, DataTable tableContent = null) public FrmOptions(string firma, string vorlage, string speicherpfad,string filename, Hashtable grunddaten, List<BilderObject> bilderObjects, DataTable tableContent = null)
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -10,9 +10,16 @@ using System.Windows.Forms;
namespace BerichtGen namespace BerichtGen
{ {
/// <summary>
///
/// </summary>
public partial class FrmPDFViewer : Form public partial class FrmPDFViewer : Form
{ {
string pfad; string pfad;
/// <summary>
///
/// </summary>
/// <param name="pfad"></param>
public FrmPDFViewer(string pfad) public FrmPDFViewer(string pfad)
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class AbwasserTechnischeAnlageCollection : List<Inspektionsobjekt> public class AbwasserTechnischeAnlageCollection : List<Inspektionsobjekt>
{ {
} }

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class BilderCollection : List<SavedBilder> public class BilderCollection : List<SavedBilder>
{ {
} }

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
///
/// </summary>
public class ChargeNummerCollection : List<StructChargeNummern>
{
}
}

15
KlassenBIB/Hutprofil.cs Normal file
View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
/// Zulaufeinbindung
/// </summary>
public class Hutprofil : SanMitHarz
{
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
/// Interface zur Import von Daten
/// </summary>
public interface IImportedObjekte
{
/// <summary>
/// Angaben zur XMLDatei die importiert werden soll
/// </summary>
string XMLFile { get; set; }
/// <summary>
/// Angaben zur Projektnummern die eingetragen werden soll in die Objekte
/// </summary>
string Projektnummer { get; set; }
/// <summary>
/// Funktion der die Inspektionsobjekte übergibt
/// </summary>
/// <returns></returns>
List<Inspektionsobjekt> GetInspektionsobjekte();
}
}

View File

@@ -10,6 +10,10 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
/// Inliner class
///
/// </summary>
public sealed class InlinerSanierung : Sanieren, IMakeProtokol public sealed class InlinerSanierung : Sanieren, IMakeProtokol
{ {
double kalibrierUnterdruck = -0.5; double kalibrierUnterdruck = -0.5;
@@ -33,7 +37,11 @@ namespace KlassenBIB
{ {
return haltungslaenge * harzbedarf; return haltungslaenge * harzbedarf;
} }
/// <summary>
///
/// </summary>
/// <param name="projektpfad"></param>
/// <returns></returns>
public override string CheckVerzeichnisse(string projektpfad) public override string CheckVerzeichnisse(string projektpfad)
{ {
string path = Path.Combine(projektpfad, PfadZurSan); string path = Path.Combine(projektpfad, PfadZurSan);
@@ -44,6 +52,11 @@ namespace KlassenBIB
return mypath; return mypath;
} }
/// <summary>
///
/// </summary>
/// <param name="destinationPath"></param>
/// <returns></returns>
public Hashtable MakeProtokoll(string destinationPath) public Hashtable MakeProtokoll(string destinationPath)
{ {
@@ -135,17 +148,30 @@ namespace KlassenBIB
return grunddaten; return grunddaten;
} }
/// <summary>
///
/// </summary>
public InlinerSanierung() public InlinerSanierung()
{ {
//datumKalibrierung = new DateTime(); //datumKalibrierung = new DateTime();
Verzeichnispfad = "UVAnlage"; Verzeichnispfad = "UVAnlage";
if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now; if (datumKalibrierung <= DateTime.MinValue || datumKalibrierung >= DateTime.MaxValue) datumKalibrierung = DateTime.Now;
} }
/// <summary>
///
/// </summary>
public double KalibrierUnterdruck { get => kalibrierUnterdruck; set => kalibrierUnterdruck = value; } public double KalibrierUnterdruck { get => kalibrierUnterdruck; set => kalibrierUnterdruck = value; }
/// <summary>
///
/// </summary>
public double KalibierWalzenAbstand { get => kalibierWalzenAbstand; set => kalibierWalzenAbstand = value; } public double KalibierWalzenAbstand { get => kalibierWalzenAbstand; set => kalibierWalzenAbstand = value; }
/// <summary>
///
/// </summary>
public double HarzKalibrierTemperatur { get => harzKalibrierTemperatur; set => harzKalibrierTemperatur = value; } public double HarzKalibrierTemperatur { get => harzKalibrierTemperatur; set => harzKalibrierTemperatur = value; }
/// <summary>
///
/// </summary>
public DateTime DatumKalibrierung public DateTime DatumKalibrierung
{ {
get get
@@ -159,15 +185,45 @@ namespace KlassenBIB
datumKalibrierung = value; datumKalibrierung = value;
} }
} }
/// <summary>
///
/// </summary>
public string HarzChargenummer { get => harzChargenummer; set => harzChargenummer = value; } public string HarzChargenummer { get => harzChargenummer; set => harzChargenummer = value; }
/// <summary>
///
/// </summary>
public string LinerChargenummer { get => linerChargenummer; set => linerChargenummer = value; } public string LinerChargenummer { get => linerChargenummer; set => linerChargenummer = value; }
/// <summary>
///
/// </summary>
public double Harzbedarf { get => harzbedarf; set => harzbedarf = value; } public double Harzbedarf { get => harzbedarf; set => harzbedarf = value; }
/// <summary>
///
/// </summary>
public uint Rueckholgeschwindigkeit { get => rueckholgeschwindigkeit; set => rueckholgeschwindigkeit = value; } public uint Rueckholgeschwindigkeit { get => rueckholgeschwindigkeit; set => rueckholgeschwindigkeit = value; }
/// <summary>
///
/// </summary>
public bool GeschlosseneEnde { get => geschlosseneEnde; set => geschlosseneEnde = value; } public bool GeschlosseneEnde { get => geschlosseneEnde; set => geschlosseneEnde = value; }
/// <summary>
///
/// </summary>
public double HarzBedarf { get => harzbedarf; set => harzbedarf = value; } public double HarzBedarf { get => harzbedarf; set => harzbedarf = value; }
/// <summary>
///
/// </summary>
public string HarzTyp { get => harzTyp; set => harzTyp = value; } public string HarzTyp { get => harzTyp; set => harzTyp = value; }
/// <summary>
///
/// </summary>
public string LinerTyp { get => linerTyp; set => linerTyp = value; } public string LinerTyp { get => linerTyp; set => linerTyp = value; }
/// <summary>
///
/// </summary>
public DateTime AnfangAushaertung { get => anfangAushaertung; set => anfangAushaertung = value; } public DateTime AnfangAushaertung { get => anfangAushaertung; set => anfangAushaertung = value; }
/// <summary>
///
/// </summary>
public DateTime EndeAushaertung { get => endeAushaertung; set => endeAushaertung = value; } public DateTime EndeAushaertung { get => endeAushaertung; set => endeAushaertung = value; }
} }
} }

View File

@@ -3,21 +3,66 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Markup;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class Inspektionskuerzeln public class Inspektionskuerzeln
{ {
/// <summary>
///
/// </summary>
public decimal Station { get; set; }
/// <summary>
///
/// </summary>
public string Hauptkode { get; set; } public string Hauptkode { get; set; }
/// <summary>
///
/// </summary>
public string Charakterisierung1 { get; set; } public string Charakterisierung1 { get; set; }
/// <summary>
///
/// </summary>
public string Charakterisierung2 { get; set; } public string Charakterisierung2 { get; set; }
/// <summary>
///
/// </summary>
public uint Quantifizierung1 { get; set; } public uint Quantifizierung1 { get; set; }
/// <summary>
///
/// </summary>
public uint Quantifizierung2 { get; set; } public uint Quantifizierung2 { get; set; }
/// <summary>
///
/// </summary>
public uint LageAmUmfangStart { get; set; } public uint LageAmUmfangStart { get; set; }
/// <summary>
///
/// </summary>
public uint LageAmUmfangEnde { get; set; } public uint LageAmUmfangEnde { get; set; }
/// <summary>
///
/// </summary>
public bool ImVerbindung { get; set; } public bool ImVerbindung { get; set; }
/// <summary>
///
/// </summary>
public string FotoReferenz { get; set; } public string FotoReferenz { get; set; }
/// <summary>
///
/// </summary>
public string VideoReferenz { get; set; } public string VideoReferenz { get; set; }
/// <summary>
///
/// </summary>
public string Anmerkung { get; set; } public string Anmerkung { get; set; }
/// <summary>
///
/// </summary>
public SanierungskonzeptCollection Sanierungskonzepts { get; set; }
} }
} }

View File

@@ -7,6 +7,9 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
[Browsable(false)] [Browsable(false)]
public class InspektionskuerzelnCollection : List<Inspektionskuerzeln> public class InspektionskuerzelnCollection : List<Inspektionskuerzeln>
{ {

View File

@@ -7,27 +7,76 @@ using System.Windows.Markup;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
[ContentProperty("Sanierung")] [ContentProperty("Sanierung")]
public class Inspektionsobjekt public class Inspektionsobjekt
{ {
private string strasseName = "none"; private string strasseName = "none";
/// <summary>
///
/// </summary>
public string StrasseName { get => strasseName; set => strasseName = value; } public string StrasseName { get => strasseName; set => strasseName = value; }
/// <summary>
///
/// </summary>
public string OrtName { get; set; } public string OrtName { get; set; }
/// <summary>
///
/// </summary>
public string Hausnummer { get; set; } public string Hausnummer { get; set; }
/// <summary>
///
/// </summary>
public string Projektnummer { get; set; } public string Projektnummer { get; set; }
/// <summary>
///
/// </summary>
public string Objektbezeichnung { get; set; } public string Objektbezeichnung { get; set; }
/// <summary>
///
/// </summary>
public string VonPunkt { get; set; } public string VonPunkt { get; set; }
/// <summary>
///
/// </summary>
public string BisPunkt { get; set; } public string BisPunkt { get; set; }
/// <summary>
///
/// </summary>
public string RohrMaterial { get; set; } public string RohrMaterial { get; set; }
/// <summary>
///
/// </summary>
public uint Kanalrohrweite { get; set; } public uint Kanalrohrweite { get; set; }
/// <summary>
///
/// </summary>
public double Haltungslaenge { get; set; } public double Haltungslaenge { get; set; }
/// <summary>
///
/// </summary>
public double Schachtlaenge { get; set; } public double Schachtlaenge { get; set; }
/// <summary>
///
/// </summary>
public DateTime HaltungGemessen { get; set; } public DateTime HaltungGemessen { get; set; }
public InspektionskuerzelnCollection Schadenskuerzeln { get; private set; } /// <summary>
///
/// </summary>
public InspektionskuerzelnCollection Schadenskuerzeln { get; set; }
/// <summary>
///
/// </summary>
public string Bemerkung { get; set; } public string Bemerkung { get; set; }
/// <summary>
///
/// </summary>
public SanierungCollection Sanierung { get;set; } public SanierungCollection Sanierung { get;set; }
/// <summary>
///
/// </summary>
public Inspektionsobjekt() public Inspektionsobjekt()
{ {
Schadenskuerzeln = new InspektionskuerzelnCollection(); Schadenskuerzeln = new InspektionskuerzelnCollection();

View File

@@ -44,17 +44,27 @@
<ItemGroup> <ItemGroup>
<Compile Include="AbwasserTechnischeAnlageCollection.cs" /> <Compile Include="AbwasserTechnischeAnlageCollection.cs" />
<Compile Include="BilderCollection.cs" /> <Compile Include="BilderCollection.cs" />
<Compile Include="ChargeNummerCollection.cs" />
<Compile Include="Hutprofil.cs" />
<Compile Include="IImportedObjekte.cs" />
<Compile Include="InlinerSanierung.cs" /> <Compile Include="InlinerSanierung.cs" />
<Compile Include="Kurzliner.cs" />
<Compile Include="Projekt.cs" /> <Compile Include="Projekt.cs" />
<Compile Include="Inspektionskuerzeln.cs" /> <Compile Include="Inspektionskuerzeln.cs" />
<Compile Include="InspektionskuerzelnCollection.cs" /> <Compile Include="InspektionskuerzelnCollection.cs" />
<Compile Include="Inspektionsobjekt.cs" /> <Compile Include="Inspektionsobjekt.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Quicklock.cs" />
<Compile Include="Reparatur.cs" />
<Compile Include="SanMitHarz.cs" />
<Compile Include="Sanieren.cs" /> <Compile Include="Sanieren.cs" />
<Compile Include="Sanierung.cs" /> <Compile Include="Sanierung.cs" />
<Compile Include="SanierungCollection.cs" /> <Compile Include="SanierungCollection.cs" />
<Compile Include="Sanierungskonzept.cs" />
<Compile Include="SanierungskonzeptCollection.cs" />
<Compile Include="SavedBilder.cs" /> <Compile Include="SavedBilder.cs" />
<Compile Include="SchachtAnbindung.cs" /> <Compile Include="SchachtAnbindung.cs" />
<Compile Include="StructChargeNummern.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\SanShared\SanShared.csproj"> <ProjectReference Include="..\SanShared\SanShared.csproj">

15
KlassenBIB/Kurzliner.cs Normal file
View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
/// Partielle Reparatur
/// </summary>
public class Kurzliner : SanMitHarz
{
}
}

View File

@@ -8,13 +8,27 @@ using System.Windows.Markup;
[assembly: XmlnsDefinition("http://schemas.cosysda.de/sanVerwaltung/xaml","KlassenBIB")] [assembly: XmlnsDefinition("http://schemas.cosysda.de/sanVerwaltung/xaml","KlassenBIB")]
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
[ContentProperty("Objekte")] [ContentProperty("Objekte")]
public class Projekt public class Projekt
{ {
/// <summary>
///
/// </summary>
public string Nummer { get; set; } public string Nummer { get; set; }
/// <summary>
///
/// </summary>
public string Ort { get; set; } public string Ort { get; set; }
/// <summary>
///
/// </summary>
public AbwasserTechnischeAnlageCollection Objekte { get; set; } public AbwasserTechnischeAnlageCollection Objekte { get; set; }
/// <summary>
///
/// </summary>
public Projekt() public Projekt()
{ {
Objekte = new AbwasserTechnischeAnlageCollection(); Objekte = new AbwasserTechnischeAnlageCollection();

15
KlassenBIB/Quicklock.cs Normal file
View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
/// Quicklock manschette
/// </summary>
public class Quicklock : Reparatur
{
}
}

40
KlassenBIB/Reparatur.cs Normal file
View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
/// Abstrakte Klasse zur Darstellung einer Partielle Reparatur
/// </summary>
public abstract class Reparatur : Sanieren
{
decimal positionImKanal;
/// <summary>
///
/// </summary>
public decimal PositionImKanal
{
get
{
return positionImKanal;
}
set
{
positionImKanal = value;
}
}
/// <summary>
///
/// </summary>
/// <param name="projektpfad"></param>
/// <returns></returns>
public override string CheckVerzeichnisse(string projektpfad)
{
throw new NotImplementedException();
}
}
}

31
KlassenBIB/SanMitHarz.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
///
/// </summary>
public class SanMitHarz : Reparatur
{
ChargeNummerCollection chargeNummerns;
/// <summary>
/// Liste mit die Chargenummern
/// </summary>
public ChargeNummerCollection ChargeNummern
{
get
{
return chargeNummerns;
}
set
{
chargeNummerns = value;
}
}
}
}

View File

@@ -6,16 +6,30 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public abstract class Sanieren : Sanierung public abstract class Sanieren : Sanierung
{ {
Guid guid; Guid guid;
DateTime datum = new DateTime(); DateTime datum = new DateTime();
bool fertig = false; bool fertig = false;
string verzeichnispfad; string verzeichnispfad;
/// <summary>
///
/// </summary>
public Guid Guid { get => guid; set => guid = value; } public Guid Guid { get => guid; set => guid = value; }
/// <summary>
///
/// </summary>
public DateTime Datum { get => datum; set => datum = value; } public DateTime Datum { get => datum; set => datum = value; }
/// <summary>
///
/// </summary>
public bool Fertig { get => fertig; set => fertig = value; } public bool Fertig { get => fertig; set => fertig = value; }
/// <summary>
///
/// </summary>
public string Verzeichnispfad { get => verzeichnispfad; protected set => verzeichnispfad = value; } public string Verzeichnispfad { get => verzeichnispfad; protected set => verzeichnispfad = value; }
} }
} }

View File

@@ -11,6 +11,9 @@ namespace KlassenBIB
// //
// Zusammenfassung: // Zusammenfassung:
// Bietet die grundlegene Struktur für eine Sanierung // Bietet die grundlegene Struktur für eine Sanierung
/// <summary>
///
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
[Browsable(false)] [Browsable(false)]
public abstract class Sanierung : INotifyPropertyChanged public abstract class Sanierung : INotifyPropertyChanged
@@ -26,8 +29,14 @@ namespace KlassenBIB
DateTime hDReinigungDatum; DateTime hDReinigungDatum;
//DateTime sanierungsDatum; //DateTime sanierungsDatum;
Inspektionsobjekt inspektionsobjekt; Inspektionsobjekt inspektionsobjekt;
/// <summary>
///
/// </summary>
protected string pfadZurSan; protected string pfadZurSan;
/// <summary>
///
/// </summary>
[Browsable(false)] [Browsable(false)]
public Sanierung() public Sanierung()
{ {
@@ -36,9 +45,16 @@ namespace KlassenBIB
} }
/// <summary>
///
/// </summary>
/// <param name="projektpfad"></param>
/// <returns></returns>
public abstract string CheckVerzeichnisse(string projektpfad); public abstract string CheckVerzeichnisse(string projektpfad);
//public Guid Guid { get => guid; set => guid = value; } //public Guid Guid { get => guid; set => guid = value; }
/// <summary>
///
/// </summary>
public double TempAusen public double TempAusen
{ {
get => tempAusen; get => tempAusen;
@@ -52,14 +68,41 @@ namespace KlassenBIB
} }
} }
/// <summary>
///
/// </summary>
public double TempKanal { get => tempKanal; set => tempKanal = value; } public double TempKanal { get => tempKanal; set => tempKanal = value; }
/// <summary>
///
/// </summary>
public string Wetter { get => wetter; set => wetter = value; } public string Wetter { get => wetter; set => wetter = value; }
/// <summary>
///
/// </summary>
public bool GenehmigungVorhanden { get => genehmigungVorhanden; set => genehmigungVorhanden = value; } public bool GenehmigungVorhanden { get => genehmigungVorhanden; set => genehmigungVorhanden = value; }
/// <summary>
///
/// </summary>
public bool WasserhaltungEingerichtet { get => wasserhaltungEingerichtet; set => wasserhaltungEingerichtet = value; } public bool WasserhaltungEingerichtet { get => wasserhaltungEingerichtet; set => wasserhaltungEingerichtet = value; }
/// <summary>
///
/// </summary>
public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; } public bool STVOAbsicherung { get => sTVOAbsicherung; set => sTVOAbsicherung = value; }
/// <summary>
///
/// </summary>
public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; } public bool HDReinigung { get => hDReinigung; set => hDReinigung = value; }
/// <summary>
///
/// </summary>
public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; } public DateTime HDReinigungDatum { get => hDReinigungDatum; set => hDReinigungDatum = value; }
/// <summary>
///
/// </summary>
public Inspektionsobjekt Inspektionsobjekt { get => inspektionsobjekt; set => inspektionsobjekt = value; } public Inspektionsobjekt Inspektionsobjekt { get => inspektionsobjekt; set => inspektionsobjekt = value; }
/// <summary>
///
/// </summary>
protected string PfadZurSan { protected string PfadZurSan {
get get
{ {
@@ -67,7 +110,9 @@ namespace KlassenBIB
} }
} }
//public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; } //public DateTime SanierungsDatum { get => sanierungsDatum; set => sanierungsDatum = value; }
/// <summary>
///
/// </summary>
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged([CallerMemberName] string propertyName = null) private void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
{ {

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class SanierungCollection : List<Sanierung> public class SanierungCollection : List<Sanierung>
{ {
} }

View File

@@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Markup;
namespace KlassenBIB
{
/// <summary>
///
/// </summary>
public class Sanierungskonzept
{
string anweisung;
/// <summary>
/// Anweisung zur Darstellung vom Art des Reparatur
/// </summary>
public string Anweisung
{
get
{
return anweisung;
}
set
{
anweisung = value;
}
}
/// <summary>
/// Die Reparatur
/// </summary>
public Reparatur Reparatur { get; set; }
public override string ToString()
{
string result = "";
bool sanVorhanden = Reparatur != null;
bool sanAbgeschlossen = (sanVorhanden && Reparatur.Fertig);
result = string.Format("{0} abgeschlossen : {1}", Anweisung, sanAbgeschlossen);
return result;
}
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
///
/// </summary>
public class SanierungskonzeptCollection : List<Sanierungskonzept>
{
}
}

View File

@@ -6,12 +6,26 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class SavedBilder public class SavedBilder
{ {
/// <summary>
///
/// </summary>
public string Bildname { get; set; } public string Bildname { get; set; }
/// <summary>
///
/// </summary>
public string Speicherpfad { get; set; } public string Speicherpfad { get; set; }
/// <summary>
///
/// </summary>
public string Bemerkung { get; set; } public string Bemerkung { get; set; }
/// <summary>
///
/// </summary>
public override string ToString() public override string ToString()
{ {
return Bildname; return Bildname;

View File

@@ -7,23 +7,36 @@ using System.Threading.Tasks;
namespace KlassenBIB namespace KlassenBIB
{ {
/// <summary>
///
/// </summary>
public class SchachtAnbindung : Sanieren public class SchachtAnbindung : Sanieren
{ {
string schachtNummer; string schachtNummer;
BilderCollection savedBilders; BilderCollection savedBilders;
#region GettersSetters #region GettersSetters
/// <summary>
///
/// </summary>
public string SchachtNummer { get => schachtNummer; set => schachtNummer = value; } public string SchachtNummer { get => schachtNummer; set => schachtNummer = value; }
/// <summary>
///
/// </summary>
public BilderCollection SavedBilders { get => savedBilders; set => savedBilders = value; } public BilderCollection SavedBilders { get => savedBilders; set => savedBilders = value; }
#endregion #endregion
/// <summary>
///
/// </summary>
public SchachtAnbindung() public SchachtAnbindung()
{ {
Verzeichnispfad = "Schachtanbindung"; Verzeichnispfad = "Schachtanbindung";
SavedBilders = new BilderCollection(); SavedBilders = new BilderCollection();
} }
/// <summary>
///
/// </summary>
public override string CheckVerzeichnisse(string projektpfad) public override string CheckVerzeichnisse(string projektpfad)
{ {
string path = Path.Combine(projektpfad, PfadZurSan); string path = Path.Combine(projektpfad, PfadZurSan);

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KlassenBIB
{
/// <summary>
///
/// </summary>
public struct StructChargeNummern
{
/// <summary>
/// Bezeichnung des Harzes oder Material
/// </summary>
public string Bezeichnung;
/// <summary>
/// ChargeNummer vom Material
/// </summary>
public string ChargeNummer;
}
}

View File

@@ -22,6 +22,7 @@ namespace KlassenBIB.Tests
[TestMethod()] [TestMethod()]
public void XAMLSerializeTest() public void XAMLSerializeTest()
{ {
/*
Projekt projekt = new Projekt(); Projekt projekt = new Projekt();
projekt.Nummer = "16/219"; projekt.Nummer = "16/219";
projekt.Ort = "Oldenburg"; projekt.Ort = "Oldenburg";
@@ -68,6 +69,7 @@ namespace KlassenBIB.Tests
XamlServices.Save("projekt1.xaml", projekt); XamlServices.Save("projekt1.xaml", projekt);
*/
} }
[TestMethod()] [TestMethod()]
public void InspektionsobjektTest() public void InspektionsobjektTest()

View File

@@ -6,10 +6,22 @@ using System.Threading.Tasks;
namespace SanShared namespace SanShared
{ {
/// <summary>
///
/// </summary>
public class BilderObject public class BilderObject
{ {
/// <summary>
///
/// </summary>
public string Kommentar { get; set; } public string Kommentar { get; set; }
/// <summary>
///
/// </summary>
public string Path { get; set; } public string Path { get; set; }
/// <summary>
///
/// </summary>
public int ImgID { get; set; } public int ImgID { get; set; }
} }
} }

View File

@@ -7,20 +7,37 @@ using System.Threading.Tasks;
namespace SanShared.Exceptions namespace SanShared.Exceptions
{ {
/// <summary>
///
/// </summary>
public class LangNotFoundException : Exception public class LangNotFoundException : Exception
{ {
/// <summary>
///
/// </summary>
public LangNotFoundException() public LangNotFoundException()
{ {
} }
/// <summary>
///
/// </summary>
/// <param name="message"></param>
public LangNotFoundException(string message) : base(message) public LangNotFoundException(string message) : base(message)
{ {
} }
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public LangNotFoundException(string message, Exception innerException) : base(message, innerException) public LangNotFoundException(string message, Exception innerException) : base(message, innerException)
{ {
} }
/// <summary>
///
/// </summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected LangNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) protected LangNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{ {
} }

View File

@@ -6,9 +6,18 @@ using System.Threading.Tasks;
namespace SanShared namespace SanShared
{ {
/// <summary>
///
/// </summary>
public interface ILanguage public interface ILanguage
{ {
/// <summary>
///
/// </summary>
Dictionary<string, string> Fehlermeldungen { get; } Dictionary<string, string> Fehlermeldungen { get; }
/// <summary>
///
/// </summary>
Dictionary<string, string> Labels { get; } Dictionary<string, string> Labels { get; }
} }
} }

View File

@@ -7,8 +7,16 @@ using System.Threading.Tasks;
namespace SanShared namespace SanShared
{ {
/// <summary>
///
/// </summary>
public interface IMakeProtokol public interface IMakeProtokol
{ {
/// <summary>
///
/// </summary>
/// <param name="destinationPath"></param>
/// <returns></returns>
Hashtable MakeProtokoll(string destinationPath); Hashtable MakeProtokoll(string destinationPath);
} }
} }

View File

@@ -6,8 +6,16 @@ using System.Threading.Tasks;
namespace SanShared namespace SanShared
{ {
/// <summary>
///
/// </summary>
public interface ITemperature public interface ITemperature
{ {
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
double GetTemperatur(out string message); double GetTemperatur(out string message);
} }
} }

View File

@@ -6,14 +6,25 @@ using System.Threading.Tasks;
namespace SanShared namespace SanShared
{ {
/// <summary>
/// CSV Dateistruktur
/// </summary>
public class UVcsvStrukture public class UVcsvStrukture
{ {
DateTime zeitstempel; DateTime zeitstempel;
double temperatur; double temperatur;
double druck; double druck;
/// <summary>
/// Zeitstempel vom Eintrag
/// </summary>
public DateTime Zeitstempel { get => zeitstempel; set => zeitstempel = value; } public DateTime Zeitstempel { get => zeitstempel; set => zeitstempel = value; }
/// <summary>
/// Temperatur anzeige vom Eintrag
/// </summary>
public double Temperatur { get => temperatur; set => temperatur = value; } public double Temperatur { get => temperatur; set => temperatur = value; }
/// <summary>
/// Druckanzeige vom Eintrag
/// </summary>
public double Druck { get => druck; set => druck = value; } public double Druck { get => druck; set => druck = value; }
} }
} }

View File

@@ -11,8 +11,14 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class FrmKalibrierungFestlegung : Form public partial class FrmKalibrierungFestlegung : Form
{ {
/// <summary>
///
/// </summary>
public FrmKalibrierungFestlegung(List<Inspektionsobjekt> inspektionsobjekts) public FrmKalibrierungFestlegung(List<Inspektionsobjekt> inspektionsobjekts)
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -11,8 +11,14 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class FrmNewProjekt : Form public partial class FrmNewProjekt : Form
{ {
/// <summary>
///
/// </summary>
public FrmNewProjekt() public FrmNewProjekt()
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -0,0 +1,88 @@
namespace SanSystem
{
partial class FrmReparaturKonzept
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.txt_anweisung = new System.Windows.Forms.TextBox();
this.btn_add_san = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// 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(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(51, 20);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
//
// txt_anweisung
//
this.txt_anweisung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txt_anweisung.Location = new System.Drawing.Point(121, 9);
this.txt_anweisung.Multiline = true;
this.txt_anweisung.Name = "txt_anweisung";
this.txt_anweisung.Size = new System.Drawing.Size(221, 260);
this.txt_anweisung.TabIndex = 1;
//
// btn_add_san
//
this.btn_add_san.Location = new System.Drawing.Point(12, 275);
this.btn_add_san.Name = "btn_add_san";
this.btn_add_san.Size = new System.Drawing.Size(330, 84);
this.btn_add_san.TabIndex = 2;
this.btn_add_san.Text = "Sanierung hinzufügen";
this.btn_add_san.UseVisualStyleBackColor = true;
this.btn_add_san.Click += new System.EventHandler(this.btn_add_san_Click);
//
// FrmReparaturKonzept
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(354, 371);
this.Controls.Add(this.btn_add_san);
this.Controls.Add(this.txt_anweisung);
this.Controls.Add(this.label1);
this.Name = "FrmReparaturKonzept";
this.Text = "FrmRepaturKonzept";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmRepaturKonzept_FormClosing);
this.Load += new System.EventHandler(this.FrmRepaturKonzept_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txt_anweisung;
private System.Windows.Forms.Button btn_add_san;
}
}

View File

@@ -0,0 +1,73 @@
using KlassenBIB;
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 SanSystem
{
/// <summary>
///
/// </summary>
public partial class FrmReparaturKonzept : Form
{
Sanierungskonzept konzept = null;
/// <summary>
///
/// </summary>
/// <param name="konzept"></param>
public FrmReparaturKonzept(Sanierungskonzept konzept)
{
InitializeComponent();
this.konzept = konzept != null ? konzept : new Sanierungskonzept();
}
private void FrmRepaturKonzept_Load(object sender, EventArgs e)
{
txt_anweisung.DataBindings.Add(new Binding("text", konzept, "Anweisung"));
}
private void FrmRepaturKonzept_FormClosing(object sender, FormClosingEventArgs e)
{
txt_anweisung.DataBindings.Clear();
}
private void btn_add_san_Click(object sender, EventArgs e)
{
int mod = (int)Sanierungsarten.KURZLINER ^ (int)Sanierungsarten.QUICKLOCK ^ (int)Sanierungsarten.HUTPROFIL;
FrmSelectNewSan frmSelectNewSan = new FrmSelectNewSan(mod);
frmSelectNewSan.AddKurzlinerClicked += FrmSelectNewSan_AddKurzlinerClicked;
frmSelectNewSan.AddHutprofilClicked += FrmSelectNewSan_AddHutprofilClicked;
frmSelectNewSan.AddQuicklockClicked += FrmSelectNewSan_AddQuicklockClicked;
try
{
frmSelectNewSan.ShowDialog();
}
catch(NotImplementedException ex)
{
MessageBox.Show(string.Format("{0} Sanierung wurde noch nicht implementiert",ex.Message));
}
}
private void FrmSelectNewSan_AddQuicklockClicked(object sender, EventArgs e)
{
throw new NotImplementedException("Quicklock");
}
private void FrmSelectNewSan_AddHutprofilClicked(object sender, EventArgs e)
{
throw new NotImplementedException("Hutprofil");
}
private void FrmSelectNewSan_AddKurzlinerClicked(object sender, EventArgs e)
{
throw new NotImplementedException("Kurzliner");
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

90
SanSystem/FrmSanKonzeptList.Designer.cs generated Normal file
View File

@@ -0,0 +1,90 @@
namespace SanSystem
{
partial class FrmSanKonzeptList
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.btn_san_add = new System.Windows.Forms.Button();
this.lb_sans = new System.Windows.Forms.ListBox();
this.SuspendLayout();
//
// 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(12, 14);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(82, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Sanierung";
//
// btn_san_add
//
this.btn_san_add.Location = new System.Drawing.Point(12, 174);
this.btn_san_add.Name = "btn_san_add";
this.btn_san_add.Size = new System.Drawing.Size(813, 91);
this.btn_san_add.TabIndex = 2;
this.btn_san_add.Text = "Neue Sanierung";
this.btn_san_add.UseVisualStyleBackColor = true;
this.btn_san_add.Click += new System.EventHandler(this.btn_san_add_Click);
//
// lb_sans
//
this.lb_sans.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lb_sans.FormattingEnabled = true;
this.lb_sans.ItemHeight = 20;
this.lb_sans.Location = new System.Drawing.Point(172, 12);
this.lb_sans.Name = "lb_sans";
this.lb_sans.Size = new System.Drawing.Size(653, 144);
this.lb_sans.TabIndex = 3;
this.lb_sans.DoubleClick += new System.EventHandler(this.lb_sans_DoubleClick);
//
// FrmSanKonzeptList
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(837, 280);
this.Controls.Add(this.lb_sans);
this.Controls.Add(this.btn_san_add);
this.Controls.Add(this.label1);
this.Name = "FrmSanKonzeptList";
this.Text = "FrmSanKonzept";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmSanKonzept_FormClosing);
this.Load += new System.EventHandler(this.FrmSanKonzept_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btn_san_add;
private System.Windows.Forms.ListBox lb_sans;
}
}

View File

@@ -0,0 +1,65 @@
using KlassenBIB;
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 SanSystem
{
/// <summary>
///
/// </summary>
public partial class FrmSanKonzeptList : Form
{
List<Sanierungskonzept> sanierungskonzept;
/// <summary>
/// <paramref name="sanierungskonzept"/>
/// </summary>
public FrmSanKonzeptList(List<Sanierungskonzept> sanierungskonzept)
{
InitializeComponent();
this.sanierungskonzept = sanierungskonzept != null ? sanierungskonzept : new List<Sanierungskonzept>();
}
private void FrmSanKonzept_Load(object sender, EventArgs e)
{
lb_sans.DataSource = sanierungskonzept;
}
private void FrmSanKonzept_FormClosing(object sender, FormClosingEventArgs e)
{
}
private void btn_san_add_Click(object sender, EventArgs e)
{
Sanierungskonzept sankonzept = new Sanierungskonzept();
sanierungskonzept.Add(sankonzept);
FrmReparaturKonzept frmReparaturKonzept = new FrmReparaturKonzept(sankonzept);
frmReparaturKonzept.ShowDialog();
}
private void lb_sans_DoubleClick(object sender, EventArgs e)
{
//if ((sender as ListBox).SelectedItem == null) return;
Sanierungskonzept konzept = (Sanierungskonzept)(sender as ListBox).SelectedItem;
if (konzept == null) return;
FrmReparaturKonzept frmReparaturKonzept = new FrmReparaturKonzept(konzept);
frmReparaturKonzept.ShowDialog();
//throw new Exception((sender as ListBox).SelectedItem.GetType().ToString());
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -12,6 +12,9 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class FrmSelectMassenDate : Form public partial class FrmSelectMassenDate : Form
{ {

View File

@@ -36,6 +36,7 @@
// //
// btn_inliner // btn_inliner
// //
this.btn_inliner.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_inliner.Location = new System.Drawing.Point(12, 12); this.btn_inliner.Location = new System.Drawing.Point(12, 12);
this.btn_inliner.Name = "btn_inliner"; this.btn_inliner.Name = "btn_inliner";
this.btn_inliner.Size = new System.Drawing.Size(187, 58); this.btn_inliner.Size = new System.Drawing.Size(187, 58);
@@ -46,6 +47,7 @@
// //
// btn_schacht_anb // btn_schacht_anb
// //
this.btn_schacht_anb.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_schacht_anb.Location = new System.Drawing.Point(212, 12); this.btn_schacht_anb.Location = new System.Drawing.Point(212, 12);
this.btn_schacht_anb.Name = "btn_schacht_anb"; this.btn_schacht_anb.Name = "btn_schacht_anb";
this.btn_schacht_anb.Size = new System.Drawing.Size(187, 58); this.btn_schacht_anb.Size = new System.Drawing.Size(187, 58);
@@ -56,6 +58,7 @@
// //
// btn_kurzliner // btn_kurzliner
// //
this.btn_kurzliner.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_kurzliner.Location = new System.Drawing.Point(412, 12); this.btn_kurzliner.Location = new System.Drawing.Point(412, 12);
this.btn_kurzliner.Name = "btn_kurzliner"; this.btn_kurzliner.Name = "btn_kurzliner";
this.btn_kurzliner.Size = new System.Drawing.Size(187, 58); this.btn_kurzliner.Size = new System.Drawing.Size(187, 58);
@@ -66,6 +69,7 @@
// //
// btn_hut // btn_hut
// //
this.btn_hut.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_hut.Location = new System.Drawing.Point(612, 12); this.btn_hut.Location = new System.Drawing.Point(612, 12);
this.btn_hut.Name = "btn_hut"; this.btn_hut.Name = "btn_hut";
this.btn_hut.Size = new System.Drawing.Size(187, 58); this.btn_hut.Size = new System.Drawing.Size(187, 58);
@@ -79,7 +83,6 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(814, 87); this.ClientSize = new System.Drawing.Size(814, 87);
this.ControlBox = false;
this.Controls.Add(this.btn_hut); this.Controls.Add(this.btn_hut);
this.Controls.Add(this.btn_kurzliner); this.Controls.Add(this.btn_kurzliner);
this.Controls.Add(this.btn_schacht_anb); this.Controls.Add(this.btn_schacht_anb);

View File

@@ -10,33 +10,78 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class FrmSelectNewSan : Form public partial class FrmSelectNewSan : Form
{ {
/// <summary>
/// Neue Inliner wurde angeklickt
/// </summary>
public event EventHandler AddInlinerClicked; public event EventHandler AddInlinerClicked;
/// <summary>
/// Neue Schachtanbindung wurde angeklickt
/// </summary>
public event EventHandler AddSchachtAnbindungClicked; public event EventHandler AddSchachtAnbindungClicked;
/// <summary>
/// Neue Kurzliner wurde angeklickt
/// </summary>
public event EventHandler AddKurzlinerClicked; public event EventHandler AddKurzlinerClicked;
/// <summary>
/// Neue Hutprofil wurde angeklickt
/// </summary>
public event EventHandler AddHutprofilClicked; public event EventHandler AddHutprofilClicked;
/// <summary>
/// Neue Quicklock wurde angeklickt
/// </summary>
public event EventHandler AddQuicklockClicked;
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected virtual void OnAddSchachtAnbindungClicked(EventArgs e) protected virtual void OnAddSchachtAnbindungClicked(EventArgs e)
{ {
EventHandler handler = AddSchachtAnbindungClicked; EventHandler handler = AddSchachtAnbindungClicked;
if (handler != null) handler(this, e); if (handler != null) handler(this, e);
} }
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected virtual void OnAddInlinerClicked(EventArgs e) protected virtual void OnAddInlinerClicked(EventArgs e)
{ {
EventHandler handler = AddInlinerClicked; EventHandler handler = AddInlinerClicked;
if (handler != null) handler(this, e); if (handler != null) handler(this, e);
} }
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected virtual void OnAddKurzlinerClicked(EventArgs e) protected virtual void OnAddKurzlinerClicked(EventArgs e)
{ {
EventHandler handler = AddKurzlinerClicked; EventHandler handler = AddKurzlinerClicked;
if (handler != null) handler(this, e); if (handler != null) handler(this, e);
} }
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected virtual void OnAddHutClicked(EventArgs e) protected virtual void OnAddHutClicked(EventArgs e)
{ {
EventHandler handler = AddHutprofilClicked; EventHandler handler = AddHutprofilClicked;
if (handler != null) handler(this, e); if (handler != null) handler(this, e);
} }
/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected virtual void OnAddQuickLockClicked(EventArgs e)
{
EventHandler handler = AddQuicklockClicked;
if (handler != null) handler(this, e);
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>

View File

@@ -112,6 +112,18 @@
<Compile Include="frmProjektList.Designer.cs"> <Compile Include="frmProjektList.Designer.cs">
<DependentUpon>frmProjektList.cs</DependentUpon> <DependentUpon>frmProjektList.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="FrmReparaturKonzept.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmReparaturKonzept.Designer.cs">
<DependentUpon>FrmReparaturKonzept.cs</DependentUpon>
</Compile>
<Compile Include="FrmSanKonzeptList.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmSanKonzeptList.Designer.cs">
<DependentUpon>FrmSanKonzeptList.cs</DependentUpon>
</Compile>
<Compile Include="FrmSelectMassenDate.cs"> <Compile Include="FrmSelectMassenDate.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@@ -175,6 +187,12 @@
<EmbeddedResource Include="frmProjektList.resx"> <EmbeddedResource Include="frmProjektList.resx">
<DependentUpon>frmProjektList.cs</DependentUpon> <DependentUpon>frmProjektList.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="FrmReparaturKonzept.resx">
<DependentUpon>FrmReparaturKonzept.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmSanKonzeptList.resx">
<DependentUpon>FrmSanKonzeptList.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmSelectMassenDate.resx"> <EmbeddedResource Include="FrmSelectMassenDate.resx">
<DependentUpon>FrmSelectMassenDate.cs</DependentUpon> <DependentUpon>FrmSelectMassenDate.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
@@ -250,6 +268,10 @@
<Project>{c949087e-20e1-4a17-b021-faead363c1d8}</Project> <Project>{c949087e-20e1-4a17-b021-faead363c1d8}</Project>
<Name>SanShared</Name> <Name>SanShared</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\SchnittstelleImporter\SchnittstelleImporter.csproj">
<Project>{E1564A4D-39FD-489B-8029-AEEF33033EF2}</Project>
<Name>SchnittstelleImporter</Name>
</ProjectReference>
<ProjectReference Include="..\TempCAN\TempCAN.csproj"> <ProjectReference Include="..\TempCAN\TempCAN.csproj">
<Project>{e4979419-5eae-4b6d-a6a0-9632c1de87a0}</Project> <Project>{e4979419-5eae-4b6d-a6a0-9632c1de87a0}</Project>
<Name>TempCAN</Name> <Name>TempCAN</Name>

View File

@@ -17,7 +17,9 @@ using Syncfusion.Windows.Forms.Chart;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class UCInliner : UserControl public partial class UCInliner : UserControl
{ {
enum TabPages enum TabPages
@@ -29,6 +31,10 @@ namespace SanSystem
string destinationPath = string.Empty; string destinationPath = string.Empty;
UCLinerGrundlagen UCLinerGrundlagen = null; UCLinerGrundlagen UCLinerGrundlagen = null;
List<string> filenames = new List<string>(); List<string> filenames = new List<string>();
/// <summary>
///
/// </summary>
/// <param name="san"></param>
public UCInliner(InlinerSanierung san) public UCInliner(InlinerSanierung san)
{ {
InitializeComponent(); InitializeComponent();
@@ -143,7 +149,7 @@ namespace SanSystem
FtpClient newClient = null; FtpClient newClient = null;
client.Dispose(); client.Dispose();
FtpClient newclient = null; //FtpClient newclient = null;
foreach (string file in filenames) foreach (string file in filenames)
{ {
newClient = new FtpClient("192.168.250.2"); newClient = new FtpClient("192.168.250.2");
@@ -166,7 +172,7 @@ namespace SanSystem
} }
catch (TimeoutException ex) catch (TimeoutException ex)
{ {
MessageBox.Show("Die anlage reagiert nicht!"); MessageBox.Show("Die anlage reagiert nicht!\n"+ex.Message);
} }
} }

View File

@@ -11,16 +11,28 @@ using KlassenBIB;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class UCLinerGrundlagen : UserControl public partial class UCLinerGrundlagen : UserControl
{ {
InlinerSanierung inliner = null; InlinerSanierung inliner = null;
/// <summary>
///
/// </summary>
public List<Inspektionsobjekt> inspektionsobjekts = null; public List<Inspektionsobjekt> inspektionsobjekts = null;
/// <summary>
///
/// </summary>
/// <param name="inliner"></param>
public UCLinerGrundlagen(InlinerSanierung inliner) public UCLinerGrundlagen(InlinerSanierung inliner)
{ {
InitializeComponent(); InitializeComponent();
this.inliner = inliner; this.inliner = inliner;
} }
/// <summary>
///
/// </summary>
public UCLinerGrundlagen() public UCLinerGrundlagen()
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -13,6 +13,9 @@ using System.IO;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class UCSchachtanbindung : UserControl public partial class UCSchachtanbindung : UserControl
{ {
SchachtAnbindung schacht = null; SchachtAnbindung schacht = null;

View File

@@ -1,5 +1,8 @@
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
partial class frmMain partial class frmMain
{ {
/// <summary> /// <summary>
@@ -33,9 +36,10 @@
this.neuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.neuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.öffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.öffnenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.speichernToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.speichernToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.massenstatistikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel(); this.toolStripStatus_projekt_Label = new System.Windows.Forms.ToolStripStatusLabel();
this.massenstatistikToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.stammdatenImportierenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainmenu.SuspendLayout(); this.mainmenu.SuspendLayout();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -57,7 +61,8 @@
// //
this.projektToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.projektToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.neuToolStripMenuItem, this.neuToolStripMenuItem,
this.öffnenToolStripMenuItem}); this.öffnenToolStripMenuItem,
this.stammdatenImportierenToolStripMenuItem});
this.projektToolStripMenuItem.Name = "projektToolStripMenuItem"; this.projektToolStripMenuItem.Name = "projektToolStripMenuItem";
this.projektToolStripMenuItem.Size = new System.Drawing.Size(56, 20); this.projektToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
this.projektToolStripMenuItem.Text = "Projekt"; this.projektToolStripMenuItem.Text = "Projekt";
@@ -65,14 +70,14 @@
// neuToolStripMenuItem // neuToolStripMenuItem
// //
this.neuToolStripMenuItem.Name = "neuToolStripMenuItem"; this.neuToolStripMenuItem.Name = "neuToolStripMenuItem";
this.neuToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.neuToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
this.neuToolStripMenuItem.Text = "Neu"; this.neuToolStripMenuItem.Text = "Neu";
this.neuToolStripMenuItem.Click += new System.EventHandler(this.neuToolStripMenuItem_Click); this.neuToolStripMenuItem.Click += new System.EventHandler(this.neuToolStripMenuItem_Click);
// //
// öffnenToolStripMenuItem // öffnenToolStripMenuItem
// //
this.öffnenToolStripMenuItem.Name = "öffnenToolStripMenuItem"; this.öffnenToolStripMenuItem.Name = "öffnenToolStripMenuItem";
this.öffnenToolStripMenuItem.Size = new System.Drawing.Size(111, 22); this.öffnenToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
this.öffnenToolStripMenuItem.Text = "Öffnen"; this.öffnenToolStripMenuItem.Text = "Öffnen";
this.öffnenToolStripMenuItem.Click += new System.EventHandler(this.öffnenToolStripMenuItem_Click); this.öffnenToolStripMenuItem.Click += new System.EventHandler(this.öffnenToolStripMenuItem_Click);
// //
@@ -83,6 +88,13 @@
this.speichernToolStripMenuItem.Text = "Speichern"; this.speichernToolStripMenuItem.Text = "Speichern";
this.speichernToolStripMenuItem.Click += new System.EventHandler(this.speichernToolStripMenuItem_Click); this.speichernToolStripMenuItem.Click += new System.EventHandler(this.speichernToolStripMenuItem_Click);
// //
// massenstatistikToolStripMenuItem
//
this.massenstatistikToolStripMenuItem.Name = "massenstatistikToolStripMenuItem";
this.massenstatistikToolStripMenuItem.Size = new System.Drawing.Size(99, 20);
this.massenstatistikToolStripMenuItem.Text = "Massenstatistik";
this.massenstatistikToolStripMenuItem.Click += new System.EventHandler(this.massenstatistikToolStripMenuItem_Click);
//
// statusStrip1 // statusStrip1
// //
this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
@@ -100,12 +112,12 @@
this.toolStripStatus_projekt_Label.Size = new System.Drawing.Size(44, 17); this.toolStripStatus_projekt_Label.Size = new System.Drawing.Size(44, 17);
this.toolStripStatus_projekt_Label.Text = "Projekt"; this.toolStripStatus_projekt_Label.Text = "Projekt";
// //
// massenstatistikToolStripMenuItem // stammdatenImportierenToolStripMenuItem
// //
this.massenstatistikToolStripMenuItem.Name = "massenstatistikToolStripMenuItem"; this.stammdatenImportierenToolStripMenuItem.Name = "stammdatenImportierenToolStripMenuItem";
this.massenstatistikToolStripMenuItem.Size = new System.Drawing.Size(99, 20); this.stammdatenImportierenToolStripMenuItem.Size = new System.Drawing.Size(207, 22);
this.massenstatistikToolStripMenuItem.Text = "Massenstatistik"; this.stammdatenImportierenToolStripMenuItem.Text = "Stammdaten importieren";
this.massenstatistikToolStripMenuItem.Click += new System.EventHandler(this.massenstatistikToolStripMenuItem_Click); this.stammdatenImportierenToolStripMenuItem.Click += new System.EventHandler(this.stammdatenImportierenToolStripMenuItem_Click);
// //
// frmMain // frmMain
// //
@@ -116,7 +128,7 @@
this.Controls.Add(this.mainmenu); this.Controls.Add(this.mainmenu);
this.IsMdiContainer = true; this.IsMdiContainer = true;
this.MainMenuStrip = this.mainmenu; this.MainMenuStrip = this.mainmenu;
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "frmMain"; this.Name = "frmMain";
this.Text = "Kanalsanierungsverwaltung"; this.Text = "Kanalsanierungsverwaltung";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_main_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frm_main_FormClosing);
@@ -140,6 +152,7 @@
private System.Windows.Forms.ToolStripStatusLabel toolStripStatus_projekt_Label; private System.Windows.Forms.ToolStripStatusLabel toolStripStatus_projekt_Label;
private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem speichernToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem massenstatistikToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem massenstatistikToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem stammdatenImportierenToolStripMenuItem;
} }
} }

View File

@@ -1,6 +1,7 @@
using Database; using Database;
using FluentFTP; using FluentFTP;
using KlassenBIB; using KlassenBIB;
using SchnittstelleImporter;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@@ -15,9 +16,14 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class frmMain : Form public partial class frmMain : Form
{ {
/// <summary>
///
/// </summary>
public frmMain() public frmMain()
{ {
InitializeComponent(); InitializeComponent();
@@ -108,5 +114,13 @@ namespace SanSystem
FrmSelectMassenDate frmSelectMassenDate = new FrmSelectMassenDate(); FrmSelectMassenDate frmSelectMassenDate = new FrmSelectMassenDate();
frmSelectMassenDate.ShowDialog(); frmSelectMassenDate.ShowDialog();
} }
private void stammdatenImportierenToolStripMenuItem_Click(object sender, EventArgs e)
{
IImportedObjekte importedObjekte = SchnittstelleImporter.ImportBuilder.Import(ImportSchnittstellen.XML2006);
importedObjekte.XMLFile = @"C:\Users\Damian\Desktop\XML\3_Zustandsdaten\ISYBAU_XML-2006-Zustandsdaten_DIN_EN_13508-2.xml";
importedObjekte.Projektnummer = Global.Instance.ProjektNummer;
Datenbank.Instance.loadedProjekt.Objekte.AddRange(importedObjekte.GetInspektionsobjekte());
}
} }
} }

View File

@@ -30,6 +30,8 @@
{ {
this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage();
this.cb_objekname_man = new System.Windows.Forms.CheckBox();
this.label8 = new System.Windows.Forms.Label();
this.txt_ort = new System.Windows.Forms.TextBox(); this.txt_ort = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.txt_bemerkung = new System.Windows.Forms.TextBox(); this.txt_bemerkung = new System.Windows.Forms.TextBox();
@@ -57,27 +59,28 @@
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.dgv_schadenkuerzel = new System.Windows.Forms.DataGridView();
this.btn_close = new System.Windows.Forms.Button(); this.btn_close = new System.Windows.Forms.Button();
this.btn_add_san = new System.Windows.Forms.Button(); this.btn_add_san = new System.Windows.Forms.Button();
this.btn_delete = new System.Windows.Forms.Button(); this.btn_delete = new System.Windows.Forms.Button();
this.label8 = new System.Windows.Forms.Label();
this.cb_objekname_man = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout(); this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout(); this.tabPage1.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.tabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// tabControl1 // tabControl1
// //
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Location = new System.Drawing.Point(13, 14); this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tabControl1.Name = "tabControl1"; this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0; this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1264, 612); this.tabControl1.Size = new System.Drawing.Size(1290, 702);
this.tabControl1.TabIndex = 0; this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
// //
@@ -112,11 +115,32 @@
this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tabPage1.Name = "tabPage1"; this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tabPage1.Size = new System.Drawing.Size(1256, 579); this.tabPage1.Size = new System.Drawing.Size(1282, 669);
this.tabPage1.TabIndex = 0; this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Grunddaten"; this.tabPage1.Text = "Grunddaten";
this.tabPage1.UseVisualStyleBackColor = true; this.tabPage1.UseVisualStyleBackColor = true;
// //
// cb_objekname_man
//
this.cb_objekname_man.AutoSize = true;
this.cb_objekname_man.Location = new System.Drawing.Point(108, 70);
this.cb_objekname_man.Name = "cb_objekname_man";
this.cb_objekname_man.Size = new System.Drawing.Size(60, 20);
this.cb_objekname_man.TabIndex = 29;
this.cb_objekname_man.Text = "man?";
this.cb_objekname_man.UseVisualStyleBackColor = true;
this.cb_objekname_man.CheckedChanged += new System.EventHandler(this.cb_objekname_man_CheckedChanged);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(725, 276);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(91, 20);
this.label8.TabIndex = 28;
this.label8.Text = "Bemerkung";
//
// txt_ort // txt_ort
// //
this.txt_ort.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_ort.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@@ -424,6 +448,28 @@
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "Projektnummer"; this.label1.Text = "Projektnummer";
// //
// tabPage2
//
this.tabPage2.Controls.Add(this.dgv_schadenkuerzel);
this.tabPage2.Location = new System.Drawing.Point(4, 29);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(1282, 669);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Kanalinformationen";
this.tabPage2.UseVisualStyleBackColor = true;
//
// dgv_schadenkuerzel
//
this.dgv_schadenkuerzel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dgv_schadenkuerzel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgv_schadenkuerzel.Location = new System.Drawing.Point(6, 6);
this.dgv_schadenkuerzel.Name = "dgv_schadenkuerzel";
this.dgv_schadenkuerzel.Size = new System.Drawing.Size(1268, 269);
this.dgv_schadenkuerzel.TabIndex = 0;
this.dgv_schadenkuerzel.RowHeaderMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgv_schadenkuerzel_RowHeaderMouseDoubleClick);
//
// btn_close // btn_close
// //
this.btn_close.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btn_close.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@@ -456,27 +502,6 @@
this.btn_delete.UseVisualStyleBackColor = true; this.btn_delete.UseVisualStyleBackColor = true;
this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click); this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
// //
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(725, 276);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(91, 20);
this.label8.TabIndex = 28;
this.label8.Text = "Bemerkung";
//
// cb_objekname_man
//
this.cb_objekname_man.AutoSize = true;
this.cb_objekname_man.Location = new System.Drawing.Point(108, 70);
this.cb_objekname_man.Name = "cb_objekname_man";
this.cb_objekname_man.Size = new System.Drawing.Size(60, 20);
this.cb_objekname_man.TabIndex = 29;
this.cb_objekname_man.Text = "man?";
this.cb_objekname_man.UseVisualStyleBackColor = true;
this.cb_objekname_man.CheckedChanged += new System.EventHandler(this.cb_objekname_man_CheckedChanged);
//
// frmObjektEdit // frmObjektEdit
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
@@ -499,6 +524,8 @@
this.tabPage1.PerformLayout(); this.tabPage1.PerformLayout();
this.groupBox2.ResumeLayout(false); this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout(); this.groupBox2.PerformLayout();
this.tabPage2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgv_schadenkuerzel)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -539,5 +566,7 @@
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8; private System.Windows.Forms.Label label8;
private System.Windows.Forms.CheckBox cb_objekname_man; private System.Windows.Forms.CheckBox cb_objekname_man;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.DataGridView dgv_schadenkuerzel;
} }
} }

View File

@@ -14,11 +14,17 @@ using Database;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class frmObjektEdit : Form public partial class frmObjektEdit : Form
{ {
Inspektionsobjekt inspektionsobjekt = null; Inspektionsobjekt inspektionsobjekt = null;
/// <summary>
///
/// </summary>
/// <param name="inspektion"></param>
public frmObjektEdit(Inspektionsobjekt inspektion) public frmObjektEdit(Inspektionsobjekt inspektion)
{ {
InitializeComponent(); InitializeComponent();
@@ -28,6 +34,8 @@ namespace SanSystem
btn_close.Text = Global.Instance.language.Labels["btn_close"]; btn_close.Text = Global.Instance.language.Labels["btn_close"];
this.inspektionsobjekt = inspektion; this.inspektionsobjekt = inspektion;
dgv_schadenkuerzel.DataSource = inspektion.Schadenskuerzeln;
foreach(Sanierung san in inspektion.Sanierung) foreach(Sanierung san in inspektion.Sanierung)
{ {
TabPage tab = new TabPage(); TabPage tab = new TabPage();
@@ -176,5 +184,26 @@ namespace SanSystem
txt_objekt_name.DataBindings.Add(new Binding("Text", inspektionsobjekt, "Objektbezeichnung")); txt_objekt_name.DataBindings.Add(new Binding("Text", inspektionsobjekt, "Objektbezeichnung"));
} }
} }
private void dgv_schadenkuerzel_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
DataGridView dataGridView = (DataGridView)sender;
if (dataGridView == null) return;
DataGridViewSelectedRowCollection dataGridViewRowsSelect = dataGridView.SelectedRows;
if (dataGridViewRowsSelect.Count > 1) return;
DataGridViewRow dgvr = dataGridViewRowsSelect[0];
Inspektionskuerzeln kuerzel = (dgvr.DataBoundItem as Inspektionskuerzeln);
if (kuerzel == null) return;
if (kuerzel.Sanierungskonzepts == null)
kuerzel.Sanierungskonzepts = new SanierungskonzeptCollection();
FrmSanKonzeptList frmSanKonzept = new FrmSanKonzeptList(kuerzel.Sanierungskonzepts);
//frmSanKonzept.MdiParent = this.MdiParent;
frmSanKonzept.ShowDialog();
}
} }
} }

View File

@@ -15,12 +15,18 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class frmObjekteList : Form public partial class frmObjekteList : Form
{ {
private List<Inspektionsobjekt> inspektionsobjekte; private List<Inspektionsobjekt> inspektionsobjekte;
ObjecteListSetting objecteListSetting = new ObjecteListSetting(); ObjecteListSetting objecteListSetting = new ObjecteListSetting();
/// <summary>
///
/// </summary>
/// <param name="streetname"></param>
private void loadObjekte(string streetname) private void loadObjekte(string streetname)
{ {
@@ -63,7 +69,10 @@ namespace SanSystem
} }
return true; return true;
} }
/// <summary>
///
/// </summary>
/// <param name="streetname"></param>
public frmObjekteList(string streetname) public frmObjekteList(string streetname)
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -11,8 +11,14 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class frmProjektList : Form public partial class frmProjektList : Form
{ {
/// <summary>
///
/// </summary>
public frmProjektList() public frmProjektList()
{ {
InitializeComponent(); InitializeComponent();

View File

@@ -12,10 +12,15 @@ using System.Windows.Forms;
namespace SanSystem namespace SanSystem
{ {
/// <summary>
///
/// </summary>
public partial class frmStrassenList : Form public partial class frmStrassenList : Form
{ {
BindingSource bs = new BindingSource(); BindingSource bs = new BindingSource();
/// <summary>
///
/// </summary>
public frmStrassenList() public frmStrassenList()
{ {
InitializeComponent(); InitializeComponent();

Binary file not shown.

View File

@@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Language", "Language\Langua
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BerichtGen", "BerichtGen\BerichtGen.csproj", "{3022DA07-FD06-4AEA-9FC8-00D318E95A82}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BerichtGen", "BerichtGen\BerichtGen.csproj", "{3022DA07-FD06-4AEA-9FC8-00D318E95A82}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchnittstelleImporterTests", "SchnittstelleImporterTests\SchnittstelleImporterTests.csproj", "{9264791A-9D57-4133-BE47-75721057DBBB}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
@@ -71,6 +73,10 @@ Global
{3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Debug|Any CPU.Build.0 = 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.ActiveCfg = Release|Any CPU
{3022DA07-FD06-4AEA-9FC8-00D318E95A82}.Release|Any CPU.Build.0 = 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
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@@ -0,0 +1,195 @@
using KlassenBIB;
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
{
/// <summary>
///
/// </summary>
public class I2006XML : IImportedObjekte
{
string xmlFile;
string projektnummer;
Dictionary<string, string> materialReferenz = new Dictionary<string, string>();
/// <summary>
/// Angabe zur XML datei
/// </summary>
public string XMLFile
{
get
{
return xmlFile;
}
set
{
xmlFile = value;
}
}
/// <summary>
/// Angabe zur Projektnummer
/// </summary>
public string Projektnummer
{
get
{
return projektnummer;
}
set
{
projektnummer = value;
}
}
/// <summary>
///
/// </summary>
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;
}
public 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();
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public List<Inspektionsobjekt> GetInspektionsobjekte()
{
List<Inspektionsobjekt> result = new List<Inspektionsobjekt>();
List<InspizierteAbwassertechnischeAnlage> anlagen = XMLParser.GetList(XMLFile);
foreach(InspizierteAbwassertechnischeAnlage src in anlagen)
{
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
InspektionskuerzelnCollection inspektionskuerzelns = new InspektionskuerzelnCollection();
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.Bemerkung = 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;
}
}
}

View File

@@ -0,0 +1,39 @@
using KlassenBIB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchnittstelleImporter
{
/// <summary>
/// Definiert die Importierbare Schnittstellen
/// </summary>
public enum ImportSchnittstellen
{
/// <summary>
/// Euronorm XML 2006
/// </summary>
XML2006
}
/// <summary>
///
/// </summary>
public static class ImportBuilder
{
/// <summary>
///
/// </summary>
public static IImportedObjekte Import(ImportSchnittstellen importSchnittstellen)
{
switch (importSchnittstellen)
{
case ImportSchnittstellen.XML2006: return new I2006XML();
default: throw new Exception("Gewünschte Schnittstelle nicht implementiert");
}
}
}
}

View File

@@ -41,17 +41,46 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="I2006XML.cs" />
<Compile Include="ImportBuilder.cs" />
<Compile Include="XML2006\Enums.cs" /> <Compile Include="XML2006\Enums.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="XML2006\Anschlussdaten.cs" /> <Compile Include="XML2006\Anschlussdaten.cs" />
<Compile Include="XML2006\Functions.cs" />
<Compile Include="XML2006\InspizierteAbwassertechnischeAnlage.cs" /> <Compile Include="XML2006\InspizierteAbwassertechnischeAnlage.cs" />
<Compile Include="XML2006\Lage.cs" /> <Compile Include="XML2006\Lage.cs" />
<Compile Include="XML2006\OptischeInspektion.cs" /> <Compile Include="XML2006\OptischeInspektion.cs" />
<Compile Include="XML2006\RGrunddaten.cs" /> <Compile Include="XML2006\RGrunddaten.cs" />
<Compile Include="XML2006\Rohrleitung.cs" /> <Compile Include="XML2006\Rohrleitung.cs" />
<Compile Include="XML2006\RZustand.cs" /> <Compile Include="XML2006\RZustand.cs" />
<Compile Include="XML2006\XMLParser.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
<Project>{c82bd650-466b-403f-bed9-2b1660771f54}</Project>
<Name>KlassenBIB</Name>
</ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />
<ItemGroup>
<None Include="XML2006\SchemaDateien\0610-betriebsdaten.xsd">
<SubType>Designer</SubType>
</None>
<None Include="XML2006\SchemaDateien\0610-hydraulikdaten.xsd">
<SubType>Designer</SubType>
</None>
<None Include="XML2006\SchemaDateien\0610-metadaten.xsd">
<SubType>Designer</SubType>
</None>
<None Include="XML2006\SchemaDateien\0610-referenzlisten.xsd">
<SubType>Designer</SubType>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="XML2006\SchemaDateien\0610-stammdaten.xsd">
<SubType>Designer</SubType>
</None>
<None Include="XML2006\SchemaDateien\0610-zustandsdaten.xsd">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public class Anschlussdaten public class Anschlussdaten
{ {
string objektbezeichnung; string objektbezeichnung;
@@ -14,12 +17,29 @@ namespace SchnittstelleImporter.XML2006
string anschlussArt; string anschlussArt;
string fixierung; string fixierung;
string kommentar; string kommentar;
/// <summary>
///
/// </summary>
public string Objektbezeichnung { get => objektbezeichnung; set => objektbezeichnung = value; } public string Objektbezeichnung { get => objektbezeichnung; set => objektbezeichnung = value; }
/// <summary>
///
/// </summary>
public EKantenTyp Kantentyp { get => kantentyp; set => kantentyp = value; } public EKantenTyp Kantentyp { get => kantentyp; set => kantentyp = value; }
/// <summary>
///
/// </summary>
public decimal Entfernung { get => entfernung; set => entfernung = value; } public decimal Entfernung { get => entfernung; set => entfernung = value; }
/// <summary>
///
/// </summary>
public string AnschlussArt { get => anschlussArt; set => anschlussArt = value; } public string AnschlussArt { get => anschlussArt; set => anschlussArt = value; }
/// <summary>
///
/// </summary>
public string Fixierung { get => fixierung; set => fixierung = value; } public string Fixierung { get => fixierung; set => fixierung = value; }
/// <summary>
///
/// </summary>
public string Kommentar { get => kommentar; set => kommentar = value; } public string Kommentar { get => kommentar; set => kommentar = value; }
} }
} }

View File

@@ -6,47 +6,107 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public enum EAnlagetyp public enum EAnlagetyp
{ {
/// <summary>
///
/// </summary>
Haltung = 1, Haltung = 1,
/// <summary>
///
/// </summary>
Anschlussleitung = 2, Anschlussleitung = 2,
/// <summary>
///
/// </summary>
Schacht = 3, Schacht = 3,
/// <summary>
///
/// </summary>
Bauwerk = 4 Bauwerk = 4
} }
public enum EInspektionverfahren /// <summary>
///
/// </summary>
enum EInspektionverfahren
{ {
TVUntersuchung, TVUntersuchung,
Begehung, Begehung,
VomSchacht, VomSchacht,
Other Other
} }
public enum EWetter /// <summary>
///
/// </summary>
enum EWetter
{ {
KEINNIEDERSCHLAG = 1, KEINNIEDERSCHLAG = 1,
REGEN = 2, REGEN = 2,
SCHNEE = 3 SCHNEE = 3
} }
/// <summary>
///
/// </summary>
public enum ERohrleitungstyp public enum ERohrleitungstyp
{ {
/// <summary>
///
/// </summary>
HALTUNG, HALTUNG,
/// <summary>
///
/// </summary>
LEITUNG LEITUNG
} }
public enum EObjektArt /// <summary>
///
/// </summary>
enum EObjektArt
{ {
KANTE = 1, KANTE = 1,
KNOTEN = 2 KNOTEN = 2
} }
/// <summary>
///
/// </summary>
public enum EKnotenTyp public enum EKnotenTyp
{ {
/// <summary>
///
/// </summary>
SCHACHT = 0, SCHACHT = 0,
/// <summary>
///
/// </summary>
ANSCHLUSSPUNKT = 1, ANSCHLUSSPUNKT = 1,
/// <summary>
///
/// </summary>
BAUWERK = 2 BAUWERK = 2
} }
/// <summary>
///
/// </summary>
public enum EKantenTyp public enum EKantenTyp
{ {
/// <summary>
///
/// </summary>
HALTUNG, HALTUNG,
/// <summary>
///
/// </summary>
LEITUNG, LEITUNG,
/// <summary>
///
/// </summary>
RINNE, RINNE,
/// <summary>
///
/// </summary>
GERINNE GERINNE
} }
} }

View File

@@ -6,13 +6,18 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public sealed class InspizierteAbwassertechnischeAnlage public sealed class InspizierteAbwassertechnischeAnlage
{ {
string objektbezeichnung; string objektbezeichnung;
Lage lage; Lage lage;
EAnlagetyp anlagentyp; EAnlagetyp anlagentyp;
OptischeInspektion optischeInspektion; OptischeInspektion optischeInspektion;
/// <summary>
///
/// </summary>
public string Objektbezeichnung public string Objektbezeichnung
{ {
get get
@@ -24,6 +29,9 @@ namespace SchnittstelleImporter.XML2006
objektbezeichnung = value; objektbezeichnung = value;
} }
} }
/// <summary>
///
/// </summary>
public EAnlagetyp Anlagentyp public EAnlagetyp Anlagentyp
{ {
get get
@@ -35,6 +43,9 @@ namespace SchnittstelleImporter.XML2006
anlagentyp = value; anlagentyp = value;
} }
} }
/// <summary>
///
/// </summary>
public OptischeInspektion OptischeInspektion public OptischeInspektion OptischeInspektion
{ {
get get
@@ -46,6 +57,9 @@ namespace SchnittstelleImporter.XML2006
optischeInspektion = value; optischeInspektion = value;
} }
} }
/// <summary>
///
/// </summary>
public Lage Lage public Lage Lage
{ {
get get
@@ -57,6 +71,10 @@ namespace SchnittstelleImporter.XML2006
lage = value; lage = value;
} }
} }
/// <summary>
///
/// </summary>
public override string ToString() public override string ToString()
{ {
return objektbezeichnung; return objektbezeichnung;

View File

@@ -6,11 +6,16 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public class Lage public class Lage
{ {
string strassename; string strassename;
string ortname; string ortname;
/// <summary>
///
/// </summary>
public string Strassename public string Strassename
{ {
get get
@@ -22,6 +27,9 @@ namespace SchnittstelleImporter.XML2006
strassename = value; strassename = value;
} }
} }
/// <summary>
///
/// </summary>
public string Ortname public string Ortname
{ {
get get
@@ -33,6 +41,11 @@ namespace SchnittstelleImporter.XML2006
ortname = value; ortname = value;
} }
} }
/// <summary>
///
/// </summary>
/// <param name="strassename"></param>
/// <param name="ortname"></param>
public Lage(string strassename, string ortname) public Lage(string strassename, string ortname)
{ {
this.strassename = strassename; this.strassename = strassename;

View File

@@ -6,11 +6,16 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public class OptischeInspektion public class OptischeInspektion
{ {
DateTime inspektionstime; DateTime inspektionstime;
Rohrleitung rohrleitung; Rohrleitung rohrleitung;
/// <summary>
///
/// </summary>
public DateTime Inspektionstime public DateTime Inspektionstime
{ {
set set
@@ -22,6 +27,9 @@ namespace SchnittstelleImporter.XML2006
return inspektionstime; return inspektionstime;
} }
} }
/// <summary>
///
/// </summary>
public string Inspektionsdatum public string Inspektionsdatum
{ {
get get
@@ -34,6 +42,9 @@ namespace SchnittstelleImporter.XML2006
//inspektionsdatum = value; //inspektionsdatum = value;
}*/ }*/
} }
/// <summary>
///
/// </summary>
public string Inspektionszeit public string Inspektionszeit
{ {
get get
@@ -41,6 +52,9 @@ namespace SchnittstelleImporter.XML2006
return inspektionstime.ToShortTimeString(); return inspektionstime.ToShortTimeString();
} }
} }
/// <summary>
///
/// </summary>
public Rohrleitung Rohrleitung public Rohrleitung Rohrleitung
{ {
get get

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public class RGrunddaten public class RGrunddaten
{ {
string knotenZulauf; string knotenZulauf;
@@ -23,22 +26,65 @@ namespace SchnittstelleImporter.XML2006
decimal regeleinzelrohrlaenge; decimal regeleinzelrohrlaenge;
int artAuskleidung; int artAuskleidung;
string innenschutz; string innenschutz;
/// <summary>
///
/// </summary>
public string KnotenZulauf { get => knotenZulauf; set => knotenZulauf = value; } public string KnotenZulauf { get => knotenZulauf; set => knotenZulauf = value; }
/// <summary>
///
/// </summary>
public EKnotenTyp KnotenZulaufTyp { get => knotenZulaufTyp; set => knotenZulaufTyp = value; } public EKnotenTyp KnotenZulaufTyp { get => knotenZulaufTyp; set => knotenZulaufTyp = value; }
/// <summary>
///
/// </summary>
public string KnotenAblauf { get => knotenAblauf; set => knotenAblauf = value; } public string KnotenAblauf { get => knotenAblauf; set => knotenAblauf = value; }
/// <summary>
///
/// </summary>
public EKnotenTyp KnotenAblaufTyp { get => knotenAblaufTyp; set => knotenAblaufTyp = value; } public EKnotenTyp KnotenAblaufTyp { get => knotenAblaufTyp; set => knotenAblaufTyp = value; }
/// <summary>
///
/// </summary>
public int Profilhoehe { get => profilhoehe; set => profilhoehe = value; } public int Profilhoehe { get => profilhoehe; set => profilhoehe = value; }
/// <summary>
///
/// </summary>
public int Profilbreite { get => profilbreite; set => profilbreite = value; } public int Profilbreite { get => profilbreite; set => profilbreite = value; }
/// <summary>
///
/// </summary>
public int Profilart { get => profilart; set => profilart = value; } public int Profilart { get => profilart; set => profilart = value; }
/// <summary>
///
/// </summary>
public string Material { get => material; set => material = value; } public string Material { get => material; set => material = value; }
/// <summary>
///
/// </summary>
public string Kanalart { get => kanalart; set => kanalart = value; } public string Kanalart { get => kanalart; set => kanalart = value; }
/// <summary>
///
/// </summary>
public Anschlussdaten Anschlussddaten { get => anschlussddaten; set => anschlussddaten = value; } public Anschlussdaten Anschlussddaten { get => anschlussddaten; set => anschlussddaten = value; }
/// <summary>
///
/// </summary>
public int HerkunftProfilmasse { get => herkunftProfilmasse; set => herkunftProfilmasse = value; } public int HerkunftProfilmasse { get => herkunftProfilmasse; set => herkunftProfilmasse = value; }
/// <summary>
///
/// </summary>
public int HerkunftMaterial { get => herkunftMaterial; set => herkunftMaterial = value; } public int HerkunftMaterial { get => herkunftMaterial; set => herkunftMaterial = value; }
/// <summary>
///
/// </summary>
public decimal Regeleinzelrohrlaenge { get => regeleinzelrohrlaenge; set => regeleinzelrohrlaenge = value; } public decimal Regeleinzelrohrlaenge { get => regeleinzelrohrlaenge; set => regeleinzelrohrlaenge = value; }
/// <summary>
///
/// </summary>
public int ArtAuskleidung { get => artAuskleidung; set => artAuskleidung = value; } public int ArtAuskleidung { get => artAuskleidung; set => artAuskleidung = value; }
/// <summary>
///
/// </summary>
public bool HasGrundleitung public bool HasGrundleitung
{ {
get get
@@ -46,7 +92,9 @@ namespace SchnittstelleImporter.XML2006
return anschlussddaten != null; return anschlussddaten != null;
} }
} }
/// <summary>
///
/// </summary>
public string Innenschutz { get => innenschutz; set => innenschutz = value; } public string Innenschutz { get => innenschutz; set => innenschutz = value; }
} }
} }

View File

@@ -6,11 +6,23 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public struct Quantifizierung public struct Quantifizierung
{ {
/// <summary>
///
/// </summary>
public decimal Numerisch; public decimal Numerisch;
/// <summary>
///
/// </summary>
public string Text; public string Text;
/// <summary>
///
/// </summary>
public override string ToString() public override string ToString()
{ {
if (Text != null) if (Text != null)
@@ -20,6 +32,9 @@ namespace SchnittstelleImporter.XML2006
return Numerisch.ToString(); return Numerisch.ToString();
} }
} }
/// <summary>
///
/// </summary>
public class RZustand public class RZustand
{ {
decimal station; decimal station;
@@ -35,17 +50,53 @@ namespace SchnittstelleImporter.XML2006
int positionBis; int positionBis;
string kommentar; string kommentar;
/// <summary>
///
/// </summary>
public decimal Station { get => station; set => station = value; } public decimal Station { get => station; set => station = value; }
/// <summary>
///
/// </summary>
public string Inspektionskode { get => inspektionskode; set => inspektionskode = value; } public string Inspektionskode { get => inspektionskode; set => inspektionskode = value; }
/// <summary>
///
/// </summary>
public string Charakterisierung1 { get => charakterisierung1; set => charakterisierung1 = value; } public string Charakterisierung1 { get => charakterisierung1; set => charakterisierung1 = value; }
/// <summary>
///
/// </summary>
public string Charakterisierung2 { get => charakterisierung2; set => charakterisierung2 = value; } public string Charakterisierung2 { get => charakterisierung2; set => charakterisierung2 = value; }
/// <summary>
///
/// </summary>
public bool Verbindung { get => verbindung; set => verbindung = value; } public bool Verbindung { get => verbindung; set => verbindung = value; }
/// <summary>
///
/// </summary>
public Quantifizierung Quantifizierung1 { get => quantifizierung1; set => quantifizierung1 = value; } public Quantifizierung Quantifizierung1 { get => quantifizierung1; set => quantifizierung1 = value; }
/// <summary>
///
/// </summary>
public Quantifizierung Quantifizierung2 { get => quantifizierung2; set => quantifizierung2 = value; } public Quantifizierung Quantifizierung2 { get => quantifizierung2; set => quantifizierung2 = value; }
/// <summary>
///
/// </summary>
public string Streckenschaden { get => streckenschaden; set => streckenschaden = value; } public string Streckenschaden { get => streckenschaden; set => streckenschaden = value; }
/// <summary>
///
/// </summary>
public int Streckenschadennr { get => streckenschadennr; set => streckenschadennr = value; } public int Streckenschadennr { get => streckenschadennr; set => streckenschadennr = value; }
/// <summary>
///
/// </summary>
public int PositionVon { get => positionVon; set => positionVon = value; } public int PositionVon { get => positionVon; set => positionVon = value; }
/// <summary>
///
/// </summary>
public int PositionBis { get => positionBis; set => positionBis = value; } public int PositionBis { get => positionBis; set => positionBis = value; }
/// <summary>
///
/// </summary>
public string Kommentar { get => kommentar; set => kommentar = value; } public string Kommentar { get => kommentar; set => kommentar = value; }
} }
} }

View File

@@ -6,6 +6,9 @@ using System.Threading.Tasks;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public class Rohrleitung public class Rohrleitung
{ {
ERohrleitungstyp rohrleitungstyp; ERohrleitungstyp rohrleitungstyp;
@@ -13,7 +16,9 @@ namespace SchnittstelleImporter.XML2006
string inspektionsrichtung; string inspektionsrichtung;
RGrunddaten grunddaten = null; RGrunddaten grunddaten = null;
List<RZustand> zustaende = null; List<RZustand> zustaende = null;
/// <summary>
///
/// </summary>
public ERohrleitungstyp Rohrleitungstyp public ERohrleitungstyp Rohrleitungstyp
{ {
get get
@@ -25,7 +30,9 @@ namespace SchnittstelleImporter.XML2006
rohrleitungstyp = value; rohrleitungstyp = value;
} }
} }
/// <summary>
///
/// </summary>
public decimal Inspektionslaenge public decimal Inspektionslaenge
{ {
get get
@@ -37,6 +44,9 @@ namespace SchnittstelleImporter.XML2006
inspektionslaenge = value; inspektionslaenge = value;
} }
} }
/// <summary>
///
/// </summary>
public string Inspektionsrichtung public string Inspektionsrichtung
{ {
get get
@@ -54,6 +64,9 @@ namespace SchnittstelleImporter.XML2006
inspektionsrichtung = value; inspektionsrichtung = value;
} }
} }
/// <summary>
///
/// </summary>
public List<RZustand> Zustaende public List<RZustand> Zustaende
{ {
get get
@@ -65,6 +78,9 @@ namespace SchnittstelleImporter.XML2006
zustaende = value; zustaende = value;
} }
} }
/// <summary>
///
/// </summary>
public RGrunddaten Grunddaten public RGrunddaten Grunddaten
{ {
get get

View File

@@ -0,0 +1,289 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- XML-Schema f<>r ISYBAU-Austauschformat Datenbereich Betriebsdaten -->
<!-- Letzte Bearbeitung: 31.08.2007 -->
<!-- Formatversion 0610 -->
<xsd:schema xmlns="http://www.ofd-hannover.la/Identifikation" xmlns:isy="http://www.ofd-hannover.la/Identifikation" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ofd-hannover.la/Identifikation" elementFormDefault="qualified">
<xsd:include schemaLocation=".\0610-referenzlisten.xsd"/>
<xsd:annotation>
<xsd:documentation xml:lang="de">ISYBAU-Austauschformat Datenbereich Betriebsdaten</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="BetriebsdatenType">
<xsd:sequence>
<xsd:element name="Kennung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Beschreibung" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Beobachtungen" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Grundwasser" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="GWMessstelle" type="GWMessstelleType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Boden" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Bodenkennwerte" type="BodenkennwerteType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DokumenteType">
<xsd:sequence>
<xsd:element name="Dokumentname">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Dateiname">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Dokumentquelle">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GWMessstelleType">
<xsd:sequence>
<xsd:element name="Bezeichnung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Erlaeuterung" type="xsd:token" minOccurs="0"/>
<xsd:element name="Erstellungsdatum" type="xsd:date" minOccurs="0"/>
<xsd:element name="Umfeld">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Bodenkennwerte" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Standort" type="StandortType" minOccurs="0"/>
<xsd:element name="NwPeilrohr" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:integer">
<xsd:totalDigits value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="HoeheROK" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="6"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Filterbeginn" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Filterende" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Endteufe" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Zyklus" type="BeobachtungszyklusGWType" minOccurs="0"/>
<xsd:element name="Messungen" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Messung" type="MessungType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Dokumente" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Dokument" type="DokumenteType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MessungType">
<xsd:sequence>
<xsd:element name="Ablesedatum" type="xsd:date" minOccurs="0"/>
<xsd:element name="Messwert">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BodenkennwerteType">
<xsd:sequence>
<xsd:element name="Bezeichnung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Erlaeuterung" type="xsd:token" minOccurs="0"/>
<xsd:element name="Umfeld">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Standort" type="StandortType" minOccurs="0"/>
<xsd:element name="ArtUntersuchung" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="UntersuchungBodenType"/>
</xsd:simpleType>
</xsd:element>
<xsd:element name="GWFlurabstand" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="5"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="massgBodenart" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="massgKfWert" type="xsd:double" minOccurs="0"/>
<xsd:element name="Bodenschichten" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Bodenschicht" type="BodenschichtType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Dokumente" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Dokument" type="DokumenteType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BodenschichtType">
<xsd:sequence>
<xsd:element name="obereSchichtgrenze" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="untereSchichtgrenze" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="4"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Bodenart" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="KfWert" type="xsd:double" minOccurs="0"/>
<xsd:element name="Bestimmungsmethode" type="BestimmungkfType" minOccurs="0"/>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StandortType">
<xsd:sequence>
<xsd:element name="Rechtswert">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="11"/>
<xsd:fractionDigits value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Hochwert">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="10"/>
<xsd:fractionDigits value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="HoeheGOK">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="7"/>
<xsd:fractionDigits value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Lagegenauigkeitsstufe">
<xsd:simpleType>
<xsd:restriction base="LagestufeType"/>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,478 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- XML-Schema f<>r ISYBAU-Austauschformat Datenbereich Metadaten -->
<!-- Letzte Bearbeitung: 31.08.2007 -->
<!-- Formatversion 0610 -->
<xsd:schema xmlns="http://www.ofd-hannover.la/Identifikation" xmlns:isy="http://www.ofd-hannover.la/Identifikation" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ofd-hannover.la/Identifikation" elementFormDefault="qualified">
<xsd:include schemaLocation=".\0610-stammdaten.xsd"/>
<xsd:include schemaLocation=".\0610-zustandsdaten.xsd"/>
<xsd:include schemaLocation=".\0610-referenzlisten.xsd"/>
<xsd:include schemaLocation=".\0610-hydraulikdaten.xsd"/>
<xsd:include schemaLocation=".\0610-betriebsdaten.xsd"/>
<xsd:annotation>
<xsd:documentation xml:lang="de">ISYBAU-Austauschformat Datenbereich Metadaten</xsd:documentation>
</xsd:annotation>
<xsd:element name="Identifikation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Version" type="xsd:gYearMonth"/>
<xsd:element name="Admindaten" type="AdmindatenType"/>
<xsd:element name="Datenkollektive" type="DatenkollektiveType">
<xsd:key name="MKollektivKey">
<xsd:selector xpath="isy:Kennungen/isy:Kollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:key>
<xsd:unique name="SKollektivKey">
<xsd:selector xpath="isy:Stammdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:unique>
<xsd:keyref name="SKollektivRef" refer="MKollektivKey">
<xsd:selector xpath="isy:Stammdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:keyref>
<xsd:unique name="ZKollektivKey">
<xsd:selector xpath="isy:Zustandsdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:unique>
<xsd:keyref name="ZKollektivRef" refer="MKollektivKey">
<xsd:selector xpath="isy:Zustandsdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:keyref>
<xsd:unique name="HKollektivKey">
<xsd:selector xpath="isy:Hydraulikdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:unique>
<xsd:keyref name="HKollektivRef" refer="MKollektivKey">
<xsd:selector xpath="isy:Hydraulikdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:keyref>
<xsd:unique name="BKollektivKey">
<xsd:selector xpath="isy:Betriebsdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:unique>
<xsd:keyref name="BKollektivRef" refer="MKollektivKey">
<xsd:selector xpath="isy:Betriebsdatenkollektiv"/>
<xsd:field xpath="isy:Kennung"/>
</xsd:keyref>
<xsd:unique name="UmfeldKey">
<xsd:selector xpath="isy:Stammdatenkollektiv/isy:Umfelder/isy:Umfeld"/>
<xsd:field xpath="isy:Bezeichnung"/>
</xsd:unique>
<xsd:keyref name="SUmfeldRef" refer="UmfeldKey">
<xsd:selector xpath="isy:Stammdatenkollektiv/isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Versickerungsanlage"/>
<xsd:field xpath="isy:Umfeld"/>
</xsd:keyref>
<xsd:keyref name="BoUmfeldRef" refer="UmfeldKey">
<xsd:selector xpath="isy:Betriebsdatenkollektiv/isy:Beobachtungen/isy:Boden/isy:Bodenkennwerte"/>
<xsd:field xpath="isy:Umfeld"/>
</xsd:keyref>
<xsd:keyref name="GwUmfeldRef" refer="UmfeldKey">
<xsd:selector xpath="isy:Betriebsdatenkollektiv/isy:Beobachtungen/isy:Grundwasser/isy:GWMessstelle"/>
<xsd:field xpath="isy:Umfeld"/>
</xsd:keyref>
<xsd:keyref name="HStammKollektivRef" refer="MKollektivKey">
<xsd:selector xpath="isy:Hydraulikdatenkollektiv/isy:Rechennetz"/>
<xsd:field xpath="isy:Stammdatenkennung"/>
</xsd:keyref>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="AdmindatenType">
<xsd:sequence>
<xsd:element name="Liegenschaft" type="LiegenschaftType"/>
<xsd:element name="Verwaltung" type="VerwaltungType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="LiegenschaftType">
<xsd:sequence>
<xsd:element name="Liegenschaftsnummer">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Objektnummer" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Liegenschaftsbezeichnung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Liegenschaftsstrasse" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="LiegenschaftsPLZ" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="5"/>
<xsd:maxLength value="5"/>
<xsd:pattern value="\p{N}{5}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Liegenschaftsort" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Liegenschaftsnutzung" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VerwaltungType">
<xsd:sequence>
<xsd:element name="Zustaendigkeit" type="ZustaendigkeitType" minOccurs="0"/>
<xsd:element name="DienststelleVerwaltend" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="DienststelleHausverwaltend" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="DienststelleBauaufsicht" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="DienststelleBaudurchfuehrung" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="NummerDienststelleBaudurchfuehrung" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Zustaendigkeitsbereich" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Aktenzeichen" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Abwasserbeseitigungspflicht" type="AbwasserbeseitigungspflichtType" minOccurs="0"/>
<xsd:element name="Wasserbehoerde" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="AblaufEinleitungsgenehmigung" type="xsd:date" minOccurs="0"/>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DatenkollektiveType">
<xsd:sequence>
<xsd:element name="Datenstatus" type="DatenstatusType"/>
<xsd:element name="Erstellungsdatum" type="xsd:date"/>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
<xsd:element name="Kennungen">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Kollektiv" type="KollektivType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Stammdatenkollektiv" type="StammdatenType" minOccurs="0" maxOccurs="unbounded">
<xsd:key name="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Objektart"/>
</xsd:key>
<xsd:keyref name="UeberPumpeKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Pumpe/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:keyref name="UeberWehrKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Wehr_Ueberlauf/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:keyref name="UeberDrosselKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Drossel/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:keyref name="UeberSchieberKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Schieber/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:keyref name="UeberSiebKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Sieb/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:keyref name="UeberRechenKey" refer="SObjektKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Knoten/isy:Bauwerk/isy:Rechen/isy:UebergeordnetesBauwerk"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
</xsd:keyref>
<xsd:key name="SAuftragKey">
<xsd:selector xpath="isy:Auftraege/isy:Auftrag"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:key>
<xsd:unique name="SAuftragBezKey">
<xsd:selector xpath="isy:Auftraege/isy:Auftrag"/>
<xsd:field xpath="isy:Auftragsbezeichnung"/>
</xsd:unique>
<xsd:keyref name="SAuftragRef" refer="SAuftragKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Sanierung/isy:Massnahme"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:keyref>
<xsd:unique name="SKanteKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Kante/isy:KantenTyp"/>
</xsd:unique>
<xsd:unique name="SKnotenKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Knoten/isy:KnotenTyp"/>
</xsd:unique>
<xsd:keyref name="AnschlussHaltungKey" refer="SKanteKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Kante/isy:Haltung/isy:Anschlussdaten"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Kantentyp"/>
</xsd:keyref>
<xsd:keyref name="AnschlussLeitungKey" refer="SKanteKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage/isy:Kante/isy:Leitung/isy:Anschlussdaten"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Kantentyp"/>
</xsd:keyref>
<xsd:keyref name="ZulaufKnotenKey" refer="SKnotenKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Kante/isy:KnotenZulauf"/>
<xsd:field xpath="isy:Kante/isy:KnotenZulaufTyp"/>
</xsd:keyref>
<xsd:keyref name="AblaufKnotenKey" refer="SKnotenKey">
<xsd:selector xpath="isy:AbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Kante/isy:KnotenAblauf"/>
<xsd:field xpath="isy:Kante/isy:KnotenAblaufTyp"/>
</xsd:keyref>
</xsd:element>
<xsd:element name="Zustandsdatenkollektiv" type="ZustandsdatenType" minOccurs="0" maxOccurs="unbounded">
<xsd:unique name="ZObjektKey">
<xsd:selector xpath="isy:InspizierteAbwassertechnischeAnlage"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Anlagentyp"/>
<xsd:field xpath="isy:OptischeInspektion/isy:Rohrleitung/isy:Inspektionsrichtung"/>
</xsd:unique>
<xsd:keyref name="ZObjektRef" refer="ZObjektKey">
<xsd:selector xpath="isy:Filme/isy:Film/isy:FilmObjekte/isy:FilmObjekt"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Typ"/>
<xsd:field xpath="isy:Inspektionsrichtung"/>
</xsd:keyref>
<xsd:unique name="FObjektKey">
<xsd:selector xpath="isy:Filme/isy:Film/isy:FilmObjekte/isy:FilmObjekt"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:Typ"/>
<xsd:field xpath="isy:Inspektionsrichtung"/>
</xsd:unique>
<xsd:key name="UAuftragKey">
<xsd:selector xpath="isy:Auftraege/isy:Auftrag"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:key>
<xsd:unique name="UAuftragBezKey">
<xsd:selector xpath="isy:Auftraege/isy:Auftrag"/>
<xsd:field xpath="isy:Auftragsbezeichnung"/>
</xsd:unique>
<xsd:keyref name="IAuftragRef" refer="UAuftragKey">
<xsd:selector xpath="isy:InspizierteAbwassertechnischeAnlage/isy:OptischeInspektion"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:keyref>
<xsd:keyref name="DAuftragRef" refer="UAuftragKey">
<xsd:selector xpath="isy:InspizierteAbwassertechnischeAnlage/isy:Dichtheitspruefungen/isy:Pruefung"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:keyref>
<xsd:keyref name="FAuftragRef" refer="UAuftragKey">
<xsd:selector xpath="isy:Filme/isy:Film"/>
<xsd:field xpath="isy:Auftragskennung"/>
</xsd:keyref>
</xsd:element>
<xsd:element name="Hydraulikdatenkollektiv" type="HydraulikdatenType" minOccurs="0" maxOccurs="unbounded">
<xsd:unique name="HVerfahrenKey">
<xsd:selector xpath="isy:Verfahrensvorgaben/isy:Verfahren"/>
<xsd:field xpath="isy:Verfahrenskennung"/>
</xsd:unique>
<xsd:unique name="HRechennetzObjektKey">
<xsd:selector xpath="isy:Rechennetz/isy:HydraulikObjekte/isy:HydraulikObjekt"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:HydObjektTyp"/>
</xsd:unique>
<xsd:unique name="HGebietKey">
<xsd:selector xpath="isy:Gebiete/isy:Gebiet"/>
<xsd:field xpath="isy:Gebietskennung"/>
</xsd:unique>
<xsd:unique name="HFlaechenIDKey">
<xsd:selector xpath="isy:Flaechen/isy:Flaeche"/>
<xsd:field xpath="isy:Flaechennummer"/>
</xsd:unique>
<xsd:unique name="HFlaecheKey">
<xsd:selector xpath="isy:Flaechen/isy:Flaeche"/>
<xsd:field xpath="isy:Flaechenbezeichnung"/>
</xsd:unique>
<xsd:unique name="HNiederschlagKey">
<xsd:selector xpath="isy:Systembelastungen/isy:Niederschlaege/isy:Niederschlag"/>
<xsd:field xpath="isy:Niederschlagkennung"/>
</xsd:unique>
<xsd:unique name="HTrwKey">
<xsd:selector xpath="isy:Systembelastungen/isy:Trockenwetterabflussspenden/isy:Trockenwetterabflussspende"/>
<xsd:field xpath="isy:Trockenwetterkennung"/>
</xsd:unique>
<xsd:unique name="HEinleiterKey">
<xsd:selector xpath="isy:Systembelastungen/isy:Einleiterkollektive/isy:Einleiterkollektiv"/>
<xsd:field xpath="isy:Einleiterkollektivkennung"/>
</xsd:unique>
<xsd:unique name="HBerechnungKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo"/>
<xsd:field xpath="isy:Rechenlaufkennung"/>
</xsd:unique>
<xsd:keyref name="HFlaecheGebietRef" refer="HGebietKey">
<xsd:selector xpath="isy:Flaechen/isy:Flaeche"/>
<xsd:field xpath="isy:Gebietskennung"/>
</xsd:keyref>
<xsd:keyref name="HFlaecheRef" refer="HFlaechenIDKey">
<xsd:selector xpath="isy:Flaechen/isy:Flaeche/isy:Flaechenobjekt"/>
<xsd:field xpath="isy:Flaechennummer"/>
</xsd:keyref>
<xsd:keyref name="HFlaecheObjektRef" refer="HRechennetzObjektKey">
<xsd:selector xpath="isy:Flaechen/isy:Flaeche/isy:HydraulikObjekt"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:HydObjektTyp"/>
</xsd:keyref>
<xsd:keyref name="HEinzeleinleiterObjektRef" refer="HRechennetzObjektKey">
<xsd:selector xpath="isy:Systembelastungen/isy:Einleiterkollektive/isy:Einleiterkollektiv/isy:ListeEinzeleinleiter/isy:Einzeleinleiter/isy:HydraulikObjekt"/>
<xsd:field xpath="isy:Objektbezeichnung"/>
<xsd:field xpath="isy:HydObjektTyp"/>
</xsd:keyref>
<xsd:keyref name="HVerfahrenRef" refer="HVerfahrenKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo"/>
<xsd:field xpath="isy:Verfahrenskennung"/>
</xsd:keyref>
<xsd:keyref name="HEinleiterRef" refer="HEinleiterKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo"/>
<xsd:field xpath="isy:Einleiterkollektivkennung"/>
</xsd:keyref>
<xsd:keyref name="HTrwRef" refer="HTrwKey">
<xsd:selector xpath="isy:Gebiete/isy:Gebiet"/>
<xsd:field xpath="isy:Trockenwetterkennung"/>
</xsd:keyref>
<xsd:keyref name="HNiederschlag1Ref" refer="HNiederschlagKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo/isy:Niederschlagsbelastung/isy:GleichmaessigeUeberregnung"/>
<xsd:field xpath="isy:Niederschlagkennung"/>
</xsd:keyref>
<xsd:keyref name="HNiederschlag2Ref" refer="HNiederschlagKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo/isy:Niederschlagsbelastung/isy:UngleichmaessigeUeberregnung/isy:FlaechenNiederschlag"/>
<xsd:field xpath="isy:Niederschlagkennung"/>
</xsd:keyref>
<xsd:keyref name="HFlaeche2Ref" refer="HFlaechenIDKey">
<xsd:selector xpath="isy:Berechnungen/isy:Berechnung/isy:BerechnungInfo/isy:Niederschlagsbelastung/isy:UngleichmaessigeUeberregnung/isy:FlaechenNiederschlag"/>
<xsd:field xpath="isy:Flaechennummer"/>
</xsd:keyref>
</xsd:element>
<xsd:element name="Betriebsdatenkollektiv" type="BetriebsdatenType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Kostendatenkollektiv" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="KollektivType">
<xsd:sequence>
<xsd:element name="Kennung">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="5"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Kollektivart" type="KollektivartType"/>
<xsd:element name="Kollektiveigenschaft">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Stammdaten" type="StammType"/>
<xsd:element name="Zustandsdaten" type="ZustandType"/>
<xsd:element name="Hydraulikdaten" type="HydraulikType"/>
<xsd:element name="Betriebsdaten" type="BetriebType"/>
<xsd:element name="Kostendaten">
<xsd:complexType/>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="Regelwerk" type="RegelwerkType"/>
<xsd:element name="Bearbeitungsstand" type="xsd:date"/>
<xsd:element name="Kommentar" type="xsd:token" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StammType">
<xsd:sequence>
<xsd:element name="Stammdatentyp">
<xsd:simpleType>
<xsd:restriction base="StammdatentypType"/>
</xsd:simpleType>
</xsd:element>
<xsd:element name="Bautechnik" type="xsd:boolean"/>
<xsd:element name="Geometrie" type="xsd:boolean"/>
<xsd:element name="Sanierung" type="xsd:boolean"/>
<xsd:element name="Umfeld" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ZustandType">
<xsd:sequence>
<xsd:element name="Inspektion" type="xsd:boolean"/>
<xsd:element name="Dichtheit" type="xsd:boolean"/>
<xsd:element name="Film" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="HydraulikType">
<xsd:sequence>
<xsd:element name="Verfahren" type="xsd:boolean"/>
<xsd:element name="Rechennetz" type="xsd:boolean"/>
<xsd:element name="Gebiet" type="xsd:boolean"/>
<xsd:element name="Flaechen" type="xsd:boolean"/>
<xsd:element name="Belastung" type="xsd:boolean"/>
<xsd:element name="Berechnung" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BetriebType">
<xsd:sequence>
<xsd:element name="Beobachtung" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -8,9 +8,20 @@ using System.Xml;
namespace SchnittstelleImporter.XML2006 namespace SchnittstelleImporter.XML2006
{ {
/// <summary>
///
/// </summary>
public static class XMLParser public static class XMLParser
{ {
/// <summary>
///
/// </summary>
public static Dictionary<InspizierteAbwassertechnischeAnlage, string> anlageInFile = new Dictionary<InspizierteAbwassertechnischeAnlage, string>(); public static Dictionary<InspizierteAbwassertechnischeAnlage, string> anlageInFile = new Dictionary<InspizierteAbwassertechnischeAnlage, string>();
/// <summary>
/// Gibt eine Liste an anlagen zurück von einer XML Datei.
/// </summary>
/// <param name="xmldatei"></param>
/// <returns></returns>
public static List<InspizierteAbwassertechnischeAnlage> GetList(string xmldatei) public static List<InspizierteAbwassertechnischeAnlage> GetList(string xmldatei)
{ {
List<InspizierteAbwassertechnischeAnlage> result = new List<InspizierteAbwassertechnischeAnlage>(); List<InspizierteAbwassertechnischeAnlage> result = new List<InspizierteAbwassertechnischeAnlage>();
@@ -28,6 +39,7 @@ namespace SchnittstelleImporter.XML2006
foreach (XmlNode node in inspizierteDaten) foreach (XmlNode node in inspizierteDaten)
{ {
InspizierteAbwassertechnischeAnlage anlage = GetAnlage(node); InspizierteAbwassertechnischeAnlage anlage = GetAnlage(node);
if (anlage == null) continue;
result.Add(anlage); result.Add(anlage);
anlageInFile.Add(anlage, xmldatei); anlageInFile.Add(anlage, xmldatei);
} }
@@ -112,7 +124,8 @@ namespace SchnittstelleImporter.XML2006
optischeInspektion.Inspektionstime = dt; optischeInspektion.Inspektionstime = dt;
if (intRohrleitung == null) if (intRohrleitung == null)
throw new NotImplementedException("Schaechte sind noch nicht implementiert"); return null;
//throw new NotImplementedException("Schaechte sind noch nicht implementiert");
Rohrleitung rohr = new Rohrleitung(); Rohrleitung rohr = new Rohrleitung();
foreach (XmlNode d in intRohrleitung) foreach (XmlNode d in intRohrleitung)
@@ -256,6 +269,8 @@ namespace SchnittstelleImporter.XML2006
case "Fotodatei": break; case "Fotodatei": break;
case "FotoSpeichermedium": break; case "FotoSpeichermedium": break;
case "Fotonummer": break; case "Fotonummer": break;
case "Timecode": break;
case "GrundAbbruch": break;
default: throw new NotImplementedException(d.Name); default: throw new NotImplementedException(d.Name);
} }

View File

@@ -0,0 +1,20 @@
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();
}
}
}

View File

@@ -0,0 +1,22 @@
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();
}
}
}

View File

@@ -0,0 +1,36 @@
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")]

View File

@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9264791A-9D57-4133-BE47-75721057DBBB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SchnittstelleImporterTests</RootNamespace>
<AssemblyName>SchnittstelleImporterTests</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\MSTest.TestFramework.1.2.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\MSTest.TestFramework.1.2.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
</Reference>
<Reference Include="System" />
</ItemGroup>
<Choose>
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</ItemGroup>
</When>
<Otherwise />
</Choose>
<ItemGroup>
<Compile Include="I2006XMLTests.cs" />
<Compile Include="ImportTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="XML2006\XMLParserTests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
<Project>{C82BD650-466B-403F-BED9-2B1660771F54}</Project>
<Name>KlassenBIB</Name>
</ProjectReference>
<ProjectReference Include="..\SchnittstelleImporter\SchnittstelleImporter.csproj">
<Project>{E1564A4D-39FD-489B-8029-AEEF33033EF2}</Project>
<Name>SchnittstelleImporter</Name>
</ProjectReference>
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<Private>False</Private>
</Reference>
</ItemGroup>
</When>
</Choose>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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}".</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.props'))" />
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.targets'))" />
</Target>
<Import Project="..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.2.1\build\net45\MSTest.TestAdapter.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,22 @@
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();
}
}
}

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MSTest.TestAdapter" version="1.2.1" targetFramework="net461" />
<package id="MSTest.TestFramework" version="1.2.1" targetFramework="net461" />
</packages>

View File

@@ -7,12 +7,24 @@ using SanShared;
namespace TempCAN namespace TempCAN
{ {
/// <summary>
/// Auflistung der Schnittstellen
/// </summary>
public enum TemperaturSchnittstellen public enum TemperaturSchnittstellen
{ {
/// <summary>
/// Tinkerforge schnittstelle
/// </summary>
TINKERFORGE TINKERFORGE
} }
/// <summary>
///
/// </summary>
public static class TemperaturBuilder public static class TemperaturBuilder
{ {
/// <summary>
///
/// </summary>
public static ITemperature Temperatur(TemperaturSchnittstellen temperaturSchnittstellen) public static ITemperature Temperatur(TemperaturSchnittstellen temperaturSchnittstellen)
{ {
switch(temperaturSchnittstellen) switch(temperaturSchnittstellen)

View File

@@ -8,6 +8,9 @@ using Tinkerforge;
namespace TempCAN namespace TempCAN
{ {
/// <summary>
///
/// </summary>
public class TinkerForgeTemperatur : ITemperature public class TinkerForgeTemperatur : ITemperature
{ {
private static string HOST = "localhost"; private static string HOST = "localhost";
@@ -16,6 +19,9 @@ namespace TempCAN
double temperatur; double temperatur;
bool erfolg = true; bool erfolg = true;
/// <summary>
///
/// </summary>
public TinkerForgeTemperatur() public TinkerForgeTemperatur()
{ {
IPConnection ipcon = new IPConnection(); IPConnection ipcon = new IPConnection();
@@ -39,6 +45,9 @@ namespace TempCAN
ipcon = null; ipcon = null;
} }
/// <summary>
///
/// </summary>
public double GetTemperatur(out string message) public double GetTemperatur(out string message)
{ {
message = ""; message = "";