Schnittstellenimporter wieder gängig gemacht
This commit is contained in:
@@ -12,7 +12,7 @@ namespace KlassenBIB
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ContentProperty("Sanierung")]
|
[ContentProperty("Sanierung")]
|
||||||
public class Inspektionsobjekt : IInspektionsobjekt
|
public class Inspektionsobjekt
|
||||||
{
|
{
|
||||||
private string strasseName = "none";
|
private string strasseName = "none";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using KlassenBIB;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
@@ -23,6 +24,6 @@ namespace SanShared
|
|||||||
/// Funktion der die Inspektionsobjekte übergibt
|
/// Funktion der die Inspektionsobjekte übergibt
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
List<IInspektionsobjekt> GetInspektionsobjekte();
|
List<Inspektionsobjekt> GetInspektionsobjekte();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace SanShared
|
|
||||||
{
|
|
||||||
public interface IInspektionsobjekt
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -347,7 +347,6 @@
|
|||||||
<Compile Include="SanShared\Exceptions\LangNotFoundException.cs" />
|
<Compile Include="SanShared\Exceptions\LangNotFoundException.cs" />
|
||||||
<Compile Include="SanShared\IAuftraggeber.cs" />
|
<Compile Include="SanShared\IAuftraggeber.cs" />
|
||||||
<Compile Include="SanShared\IImportedObjekte.cs" />
|
<Compile Include="SanShared\IImportedObjekte.cs" />
|
||||||
<Compile Include="SanShared\IInspektionsobjekt.cs" />
|
|
||||||
<Compile Include="SanShared\IMakeProtokol.cs" />
|
<Compile Include="SanShared\IMakeProtokol.cs" />
|
||||||
<Compile Include="SanShared\IProjekt.cs" />
|
<Compile Include="SanShared\IProjekt.cs" />
|
||||||
<Compile Include="SanShared\IReadCSVData.cs" />
|
<Compile Include="SanShared\IReadCSVData.cs" />
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using SanShared;
|
using KlassenBIB;
|
||||||
|
using SanShared;
|
||||||
using SchnittstelleImporter.XML2006;
|
using SchnittstelleImporter.XML2006;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -15,7 +16,7 @@ namespace SchnittstelleImporter
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class I2006XML : IImportedObjekte
|
public class I2006XML : SanShared.IImportedObjekte
|
||||||
{
|
{
|
||||||
string xmlFile;
|
string xmlFile;
|
||||||
string projektnummer;
|
string projektnummer;
|
||||||
@@ -145,14 +146,14 @@ namespace SchnittstelleImporter
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public List<IInspektionsobjekt> GetInspektionsobjekte()
|
public List<Inspektionsobjekt> GetInspektionsobjekte()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
List<IInspektionsobjekt> result = new List<IInspektionsobjekt>();
|
List<Inspektionsobjekt> result = new List<Inspektionsobjekt>();
|
||||||
List<InspizierteAbwassertechnischeAnlage> anlagen = XMLParser.GetList(XMLFile);
|
List<InspizierteAbwassertechnischeAnlage> anlagen = XMLParser.GetList(XMLFile);
|
||||||
foreach(InspizierteAbwassertechnischeAnlage src in anlagen)
|
foreach(InspizierteAbwassertechnischeAnlage src in anlagen)
|
||||||
{
|
{
|
||||||
IInspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||||
KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln();
|
KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln();
|
||||||
|
|
||||||
inspektionsobjekt.Projektnummer = projektnummer;
|
inspektionsobjekt.Projektnummer = projektnummer;
|
||||||
@@ -192,8 +193,6 @@ namespace SchnittstelleImporter
|
|||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
*/
|
|
||||||
return new List<IInspektionsobjekt>();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ namespace SanSystem
|
|||||||
|
|
||||||
private void stammdatenImportierenToolStripMenuItem_Click(object sender, EventArgs e)
|
private void stammdatenImportierenToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||||
openFileDialog.Filter = "XML Daten | *.xml";
|
openFileDialog.Filter = "XML Daten | *.xml";
|
||||||
if(Datenbank.Instance.loadedProjekt == null)
|
if(Datenbank.Instance.loadedProjekt == null)
|
||||||
@@ -202,7 +202,7 @@ namespace SanSystem
|
|||||||
{
|
{
|
||||||
string path = openFileDialog.FileName;
|
string path = openFileDialog.FileName;
|
||||||
|
|
||||||
IImportedObjekte importedObjekte = SchnittstelleImporter.ImportBuilder.Import(ImportSchnittstellen.XML2006);
|
SanShared.IImportedObjekte importedObjekte = SchnittstelleImporter.ImportBuilder.Import(ImportSchnittstellen.XML2006);
|
||||||
importedObjekte.XMLFile = path;//@"C:\Users\Damian\Desktop\XML\3_Zustandsdaten\ISYBAU_XML-2006-Zustandsdaten_DIN_EN_13508-2.xml";
|
importedObjekte.XMLFile = path;//@"C:\Users\Damian\Desktop\XML\3_Zustandsdaten\ISYBAU_XML-2006-Zustandsdaten_DIN_EN_13508-2.xml";
|
||||||
importedObjekte.Projektnummer = Global.Instance.ProjektNummer;
|
importedObjekte.Projektnummer = Global.Instance.ProjektNummer;
|
||||||
Datenbank.Instance.loadedProjekt.Objekte.AddRange(importedObjekte.GetInspektionsobjekte());
|
Datenbank.Instance.loadedProjekt.Objekte.AddRange(importedObjekte.GetInspektionsobjekte());
|
||||||
@@ -221,7 +221,7 @@ namespace SanSystem
|
|||||||
strassenList.StartPosition = FormStartPosition.Manual;
|
strassenList.StartPosition = FormStartPosition.Manual;
|
||||||
strassenList.Show();
|
strassenList.Show();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void auftraggeberToolStripMenuItem_Click(object sender, EventArgs e)
|
private void auftraggeberToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user