KlassenDLL im Main integriert
This commit is contained in:
@@ -1,68 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{B0227727-6CF9-4E2E-9AFE-5DD76DEAA9DB}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Database</RootNamespace>
|
|
||||||
<AssemblyName>Database</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</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="ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
|
||||||
<HintPath>..\packages\SharpZipLib.1.3.3\lib\net45\ICSharpCode.SharpZipLib.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.IO.Compression" />
|
|
||||||
<Reference Include="System.Xaml" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Datenbank.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="UpdateDatabase.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
|
|
||||||
<Project>{c82bd650-466b-403f-bed9-2b1660771f54}</Project>
|
|
||||||
<Name>KlassenBIB</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SanShared\SanShared.csproj">
|
|
||||||
<Project>{c949087e-20e1-4a17-b021-faead363c1d8}</Project>
|
|
||||||
<Name>SanShared</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die einer Assembly zugeordnet sind.
|
|
||||||
[assembly: AssemblyTitle("Database")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Database")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
|
||||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("b0227727-6cf9-4e2e-9afe-5dd76deaa9db")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
|
||||||
// indem Sie "*" wie unten gezeigt eingeben:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Shared.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Compression.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.OfficeChart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Pdf.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="SharpZipLib" version="1.3.3" targetFramework="net472" />
|
|
||||||
</packages>
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{3362303F-994B-412B-B50D-7C701D5751D6}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Dongle</RootNamespace>
|
|
||||||
<AssemblyName>Dongle</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
</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="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
<Reference Include="WibuCmNET, Version=7.40.4997.501, Culture=neutral, PublicKeyToken=01d86e1eb0c69c23, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\3rdPackage\WibuCmNET.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="wupi.net, Version=9.20.8.500, Culture=neutral, PublicKeyToken=5f399135ee0c35d4, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\3rdPackage\wupi.net.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="WupiEngineNet, Version=11.0.4997.501, Culture=neutral, PublicKeyToken=8d0bd6872db0b9bb, processorArchitecture=MSIL">
|
|
||||||
<SpecificVersion>False</SpecificVersion>
|
|
||||||
<HintPath>..\3rdPackage\WupiEngineNet.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Dongle.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die einer Assembly zugeordnet sind.
|
|
||||||
[assembly: AssemblyTitle("Dongle")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Dongle")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
|
||||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("3362303f-994b-412b-b50d-7c701d5751d6")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
|
||||||
// indem Sie "*" wie unten gezeigt eingeben:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{C82BD650-466B-403F-BED9-2B1660771F54}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>KlassenBIB</RootNamespace>
|
|
||||||
<AssemblyName>KlassenBIB</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</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>
|
|
||||||
<DocumentationFile>
|
|
||||||
</DocumentationFile>
|
|
||||||
</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="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xaml" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Collections\ImprägnierBericht.cs" />
|
|
||||||
<Compile Include="Collections\Projekte.cs" />
|
|
||||||
<Compile Include="DB.cs" />
|
|
||||||
<Compile Include="LinerChargen.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\AbstractImprägnier.cs" />
|
|
||||||
<Compile Include="Collections\AbwasserTechnischeAnlage.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\UVAnlagenTyp.cs" />
|
|
||||||
<Compile Include="Auftraggeber.cs" />
|
|
||||||
<Compile Include="Collections\AuftraggeberList.cs" />
|
|
||||||
<Compile Include="AusgefuehrteTaetigkeiten.cs" />
|
|
||||||
<Compile Include="Collections\AusgefuehrteTaetigkeiten.cs" />
|
|
||||||
<Compile Include="Collections\Bilder.cs" />
|
|
||||||
<Compile Include="Collections\ChargeNummer.cs" />
|
|
||||||
<Compile Include="Sanierung\Reparatur\Hutprofil.cs" />
|
|
||||||
<Compile Include="IImportedObjekte.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\ImprägnierungStrukture.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\InlinerSanierung.cs" />
|
|
||||||
<Compile Include="Sanierung\Reparatur\Kurzliner.cs" />
|
|
||||||
<Compile Include="LeistungsVerzeichnis.cs" />
|
|
||||||
<Compile Include="Collections\Leistungsverzeichnis.cs" />
|
|
||||||
<Compile Include="Lieferschein.cs" />
|
|
||||||
<Compile Include="Projekt.cs" />
|
|
||||||
<Compile Include="Inspektionskuerzeln.cs" />
|
|
||||||
<Compile Include="Collections\Inspektionskuerzeln.cs" />
|
|
||||||
<Compile Include="Inspektionsobjekt.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<Compile Include="Sanierung\Reparatur\Quicklock.cs" />
|
|
||||||
<Compile Include="Sanierung\Reparatur.cs" />
|
|
||||||
<Compile Include="Sanierung\Reparatur\SanMitHarz.cs" />
|
|
||||||
<Compile Include="Sanierung\AbstractSanieren.cs" />
|
|
||||||
<Compile Include="Sanierung\Sanierung.cs" />
|
|
||||||
<Compile Include="Collections\Sanierung.cs" />
|
|
||||||
<Compile Include="Sanierungskonzept.cs" />
|
|
||||||
<Compile Include="Collections\Sanierungskonzept.cs" />
|
|
||||||
<Compile Include="SavedBilder.cs" />
|
|
||||||
<Compile Include="SchachtAnbindung.cs" />
|
|
||||||
<Compile Include="Sanierung\StructChargeNummern.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\VorOrtImprägnier.cs" />
|
|
||||||
<Compile Include="Sanierung\Renovation\WerkseitigImprägniert.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\BerichtGen\BerichtGen.csproj">
|
|
||||||
<Project>{3022DA07-FD06-4AEA-9FC8-00D318E95A82}</Project>
|
|
||||||
<Name>BerichtGen</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\CSVParser\CSVParser.csproj">
|
|
||||||
<Project>{3F79BD28-9BF6-4902-8977-41E9E71F8488}</Project>
|
|
||||||
<Name>CSVParser</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SanShared\SanShared.csproj">
|
|
||||||
<Project>{C949087E-20E1-4A17-B021-FAEAD363C1D8}</Project>
|
|
||||||
<Name>SanShared</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die einer Assembly zugeordnet sind.
|
|
||||||
[assembly: AssemblyTitle("KlassenBIB")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("KlassenBIB")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
|
||||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("c82bd650-466b-403f-bed9-2b1660771f54")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
|
||||||
// indem Sie "*" wie unten gezeigt eingeben:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Shared.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Compression.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.OfficeChart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Pdf.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
||||||
@@ -1,103 +0,0 @@
|
|||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
||||||
using KlassenBIB;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Xaml;
|
|
||||||
|
|
||||||
namespace KlassenBIB.Tests
|
|
||||||
{
|
|
||||||
[TestClass()]
|
|
||||||
public class InspektionsobjektTests
|
|
||||||
{
|
|
||||||
[TestMethod()]
|
|
||||||
public void XAMLDeserializeTest()
|
|
||||||
{
|
|
||||||
string filepath = @"C:\Users\OBremer\Desktop\SanVerwaltung\KlassenBIB\database.xaml";
|
|
||||||
var x = XamlServices.Load(filepath) as KlassenBIB.Projekt;
|
|
||||||
}
|
|
||||||
|
|
||||||
[TestMethod()]
|
|
||||||
public void XAMLSerializeTest()
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
Projekt projekt = new Projekt();
|
|
||||||
projekt.Nummer = "16/219";
|
|
||||||
projekt.Ort = "Oldenburg";
|
|
||||||
|
|
||||||
AbwasserTechnischeAnlageCollection abwasserTechnischeAnlageCollection = new AbwasserTechnischeAnlageCollection();
|
|
||||||
|
|
||||||
|
|
||||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
|
||||||
inspektionsobjekt.Objektbezeichnung = "122345";
|
|
||||||
inspektionsobjekt.StrasseName = "Dieselstraße";
|
|
||||||
inspektionsobjekt.OrtName = "Meppen";
|
|
||||||
inspektionsobjekt.Projektnummer = "18-850-034";
|
|
||||||
inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln()
|
|
||||||
{
|
|
||||||
Hauptkode = "BCD",
|
|
||||||
Charakterisierung1 = "XP"
|
|
||||||
});
|
|
||||||
inspektionsobjekt.Schadenskuerzeln.Add(new Inspektionskuerzeln()
|
|
||||||
{
|
|
||||||
Hauptkode = "BCA",
|
|
||||||
Charakterisierung1 = "A",
|
|
||||||
Charakterisierung2 = "A",
|
|
||||||
Quantifizierung1 = 150,
|
|
||||||
Quantifizierung2 = 150,
|
|
||||||
});
|
|
||||||
|
|
||||||
InlinerSanierung inliner = new InlinerSanierung();
|
|
||||||
inliner.Guid = Guid.NewGuid();
|
|
||||||
inliner.TempAusen = 1;
|
|
||||||
inliner.STVOAbsicherung = true;
|
|
||||||
inliner.DatumKalibrierung = DateTime.Now;
|
|
||||||
inliner.HDReinigungDatum = DateTime.Now;
|
|
||||||
inliner.Datum = DateTime.Now;
|
|
||||||
//inliner = inliner;
|
|
||||||
inliner.Inspektionsobjekt = inspektionsobjekt;
|
|
||||||
|
|
||||||
abwasserTechnischeAnlageCollection.Add(inspektionsobjekt);
|
|
||||||
|
|
||||||
projekt.Objekte.Add(inspektionsobjekt);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
XamlServices.Save("projekt1.xaml", projekt);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
[TestMethod()]
|
|
||||||
public void InspektionsobjektTest()
|
|
||||||
{
|
|
||||||
Projekt projekt = new Projekt();
|
|
||||||
projekt.Ort = "Oldenburg";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
|
||||||
inspektionsobjekt.Objektbezeichnung = "SW01";
|
|
||||||
inspektionsobjekt.VonPunkt = "SW01";
|
|
||||||
inspektionsobjekt.BisPunkt = "SW02";
|
|
||||||
inspektionsobjekt.Haltungslaenge = 10;
|
|
||||||
inspektionsobjekt.RohrMaterial = "Steinzeug";
|
|
||||||
inspektionsobjekt.Kanalrohrweite = 150;
|
|
||||||
|
|
||||||
InlinerSanierung sanierung = new InlinerSanierung();
|
|
||||||
//sanierung.InspektionsObjekt = inspektionsobjekt;
|
|
||||||
sanierung.Guid = Guid.NewGuid();
|
|
||||||
sanierung.WasserhaltungEingerichtet = true;
|
|
||||||
sanierung.DatumKalibrierung = DateTime.Now;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Assert.AreEqual(sanierung.GesamtHarzBedarf, 18m);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
<?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.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{0FEC903E-6C9F-48AC-A207-0BACA184AAA8}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>KlassenBIBTests</RootNamespace>
|
|
||||||
<AssemblyName>KlassenBIBTests</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</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.2.2.9-preview-20220210-07\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.2.2.9-preview-20220210-07\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Xaml" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</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="InspektionsobjektTests.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
|
|
||||||
<Project>{C82BD650-466B-403F-BED9-2B1660771F54}</Project>
|
|
||||||
<Name>KlassenBIB</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.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.props'))" />
|
|
||||||
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.targets'))" />
|
|
||||||
</Target>
|
|
||||||
<Import Project="..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.2.9-preview-20220210-07\build\net46\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>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über folgende
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die einer Assembly zugeordnet sind.
|
|
||||||
[assembly: AssemblyTitle("KlassenBIBTests")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("KlassenBIBTests")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Wenn ComVisible auf "false" festgelegt wird, sind die Typen innerhalb dieser Assembly
|
|
||||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("0fec903e-6c9f-48ac-a207-0baca184aaa8")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
|
||||||
// übernehmen, indem Sie "*" eingeben:
|
|
||||||
// [Assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<runtime>
|
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Shared.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Licensing" publicKeyToken="632609b4d040f6b4" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.DocIO.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Compression.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.OfficeChart.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
<dependentAssembly>
|
|
||||||
<assemblyIdentity name="Syncfusion.Pdf.Base" publicKeyToken="3d67ed1f87d44c89" culture="neutral" />
|
|
||||||
<bindingRedirect oldVersion="0.0.0.0-19.4460.0.56" newVersion="19.4460.0.56" />
|
|
||||||
</dependentAssembly>
|
|
||||||
</assemblyBinding>
|
|
||||||
</runtime>
|
|
||||||
</configuration>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="MSTest.TestAdapter" version="2.2.9-preview-20220210-07" targetFramework="net472" />
|
|
||||||
<package id="MSTest.TestFramework" version="2.2.9-preview-20220210-07" targetFramework="net472" />
|
|
||||||
</packages>
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using SanShared;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Language
|
|
||||||
{
|
|
||||||
public enum BUILTINLANGUAGES
|
|
||||||
{
|
|
||||||
GERMAN = 0
|
|
||||||
}
|
|
||||||
public static class Language
|
|
||||||
{
|
|
||||||
public static ILanguage GetLanguage(BUILTINLANGUAGES lang)
|
|
||||||
{
|
|
||||||
switch(lang)
|
|
||||||
{
|
|
||||||
case BUILTINLANGUAGES.GERMAN: return new DE();
|
|
||||||
default: throw new SanShared.Exceptions.LangNotFoundException(string.Format("Language {0} not found",lang));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{BE364E88-92DA-4A6C-97E7-DDD7D887B3D4}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Language</RootNamespace>
|
|
||||||
<AssemblyName>Language</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</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="System" />
|
|
||||||
<Reference Include="System.Core" />
|
|
||||||
<Reference Include="System.Xml.Linq" />
|
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
|
||||||
<Reference Include="Microsoft.CSharp" />
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Net.Http" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="Language.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\DE\DE.csproj">
|
|
||||||
<Project>{ff6c3e9c-0ab0-4c67-a150-318c22734fbd}</Project>
|
|
||||||
<Name>DE</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SanShared\SanShared.csproj">
|
|
||||||
<Project>{C949087E-20E1-4A17-B021-FAEAD363C1D8}</Project>
|
|
||||||
<Name>SanShared</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die einer Assembly zugeordnet sind.
|
|
||||||
[assembly: AssemblyTitle("Language")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("")]
|
|
||||||
[assembly: AssemblyProduct("Language")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
|
||||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("be364e88-92da-4a6c-97e7-ddd7d887b3d4")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
|
||||||
// indem Sie "*" wie unten gezeigt eingeben:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
||||||
28
SanShared/IImportedObjekte.cs
Normal file
28
SanShared/IImportedObjekte.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <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<IInspektionsobjekt> GetInspektionsobjekte();
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SanShared/IInspektionsobjekt.cs
Normal file
12
SanShared/IInspektionsobjekt.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
public interface IInspektionsobjekt
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -61,6 +61,8 @@
|
|||||||
<Compile Include="Exceptions\DataBaseVersionMismatchException.cs" />
|
<Compile Include="Exceptions\DataBaseVersionMismatchException.cs" />
|
||||||
<Compile Include="Exceptions\LangNotFoundException.cs" />
|
<Compile Include="Exceptions\LangNotFoundException.cs" />
|
||||||
<Compile Include="IAuftraggeber.cs" />
|
<Compile Include="IAuftraggeber.cs" />
|
||||||
|
<Compile Include="IImportedObjekte.cs" />
|
||||||
|
<Compile Include="IInspektionsobjekt.cs" />
|
||||||
<Compile Include="IMakeProtokol.cs" />
|
<Compile Include="IMakeProtokol.cs" />
|
||||||
<Compile Include="IProjekt.cs" />
|
<Compile Include="IProjekt.cs" />
|
||||||
<Compile Include="IReadCSVData.cs" />
|
<Compile Include="IReadCSVData.cs" />
|
||||||
|
|||||||
236
SanSystem/BerichtGen/Bericht.cs
Normal file
236
SanSystem/BerichtGen/Bericht.cs
Normal file
@@ -0,0 +1,236 @@
|
|||||||
|
using SanShared;
|
||||||
|
using Syncfusion.DocIO.DLS;
|
||||||
|
using Syncfusion.DocToPDFConverter;
|
||||||
|
using Syncfusion.Pdf;
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
class Bericht
|
||||||
|
{
|
||||||
|
private List<Image> _listImages;
|
||||||
|
/// <summary>
|
||||||
|
/// Erstellt
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="source">Die zuverwendete Vorlagenname</param>
|
||||||
|
/// <param name="savepath">Pfad zum Speichern</param>
|
||||||
|
/// <param name="filename"></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>
|
||||||
|
public void Erzeuge(string source, string savepath,string filename, Hashtable daten,List<BilderObject> bilderObjects,DataTable tableContents, bool erzeugeDOC = false , bool erzeugePDF = true)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (bilderObjects != null)
|
||||||
|
{
|
||||||
|
_listImages = new List<Image>();
|
||||||
|
foreach (BilderObject current in bilderObjects)
|
||||||
|
{
|
||||||
|
Image image = Image.FromFile(current.Path);
|
||||||
|
_listImages.Add(ResizeImage(image, CalculateImageSizeForDocument(image.Height, image.Width)));
|
||||||
|
image.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
WordDocument wordDocument = new WordDocument(source);
|
||||||
|
|
||||||
|
string[] fieldnames = null;
|
||||||
|
string[] fieldvalues = null;
|
||||||
|
|
||||||
|
if(fieldnames == null || fieldvalues == null)
|
||||||
|
{
|
||||||
|
fieldnames = new string[daten.Count];
|
||||||
|
fieldvalues = new string[daten.Count];
|
||||||
|
}
|
||||||
|
|
||||||
|
uint counter = 0;
|
||||||
|
foreach(DictionaryEntry hashtable in daten)
|
||||||
|
{
|
||||||
|
fieldnames[counter] = hashtable.Key.ToString();
|
||||||
|
if (hashtable.Value == null)
|
||||||
|
{
|
||||||
|
fieldvalues[counter] = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fieldvalues[counter] = hashtable.Value.ToString();
|
||||||
|
}
|
||||||
|
counter++;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
wordDocument.MailMerge.MergeImageField += new MergeImageFieldEventHandler(MailMerge_MergeImageField);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (tableContents != null)
|
||||||
|
wordDocument.MailMerge.ExecuteGroup(tableContents);
|
||||||
|
|
||||||
|
wordDocument.MailMerge.Execute(fieldnames, fieldvalues);
|
||||||
|
|
||||||
|
IWParagraph iWParagraph = null;
|
||||||
|
var x = wordDocument.Sections;
|
||||||
|
|
||||||
|
foreach(IWSection section in wordDocument.Sections)
|
||||||
|
{
|
||||||
|
IWParagraphCollection paragraphs = section.Paragraphs;
|
||||||
|
|
||||||
|
foreach(IWParagraph item2 in paragraphs)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (item2.Text.StartsWith("@WeitereBilder")) {
|
||||||
|
iWParagraph = item2;
|
||||||
|
if(bilderObjects.Count > 0)
|
||||||
|
{
|
||||||
|
//section.ChildEntities.Clear();
|
||||||
|
iWParagraph.Text = "Bilddokumentation der Sanierung";
|
||||||
|
iWParagraph.AppendBreak(BreakType.LineBreak);
|
||||||
|
IWTable wTable = section.Body.AddTable();
|
||||||
|
wTable.ResetCells(1, 2);
|
||||||
|
wTable.TableFormat.IsAutoResized = true;
|
||||||
|
wTable.TableFormat.IsBreakAcrossPages = false;
|
||||||
|
wTable.TableFormat.Borders.BorderType = BorderStyle.Dot;
|
||||||
|
WTableRow wTableRow = wTable.Rows[0];
|
||||||
|
bool flag = false;
|
||||||
|
int num = -1;
|
||||||
|
foreach (BilderObject foto in bilderObjects)
|
||||||
|
{
|
||||||
|
if (num == -1)
|
||||||
|
num++;
|
||||||
|
|
||||||
|
if (flag)
|
||||||
|
{
|
||||||
|
wTableRow = wTable.AddRow();
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
int index = 1;
|
||||||
|
if (num % 2 == 0)
|
||||||
|
{
|
||||||
|
index = 0;
|
||||||
|
flag = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
flag = true;
|
||||||
|
}
|
||||||
|
iWParagraph = wTableRow.Cells[index].AddParagraph();
|
||||||
|
Image image2 = _listImages[num];
|
||||||
|
if (image2 != null)
|
||||||
|
{
|
||||||
|
iWParagraph.AppendPicture(image2);
|
||||||
|
if (foto != null)
|
||||||
|
{
|
||||||
|
iWParagraph.AppendBreak(BreakType.LineBreak);
|
||||||
|
IWTextRange wTextRange = iWParagraph.AppendText(foto.Kommentar);
|
||||||
|
wTextRange.CharacterFormat.FontName = "Arial";
|
||||||
|
wTextRange.CharacterFormat.FontSize = 10f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
num++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
iWParagraph.Text = "";
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(erzeugeDOC)
|
||||||
|
wordDocument.Save(Path.Combine(savepath,string.Format("{0}.doc",filename)), Syncfusion.DocIO.FormatType.Doc);
|
||||||
|
|
||||||
|
if (erzeugePDF)
|
||||||
|
{
|
||||||
|
string speichername = Path.Combine(savepath, string.Format("{0}.pdf", filename));
|
||||||
|
DocToPDFConverter docToPDFConverter = new DocToPDFConverter();
|
||||||
|
PdfDocument pdf = docToPDFConverter.ConvertToPDF(wordDocument);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pdf.Save(speichername);
|
||||||
|
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
//pdf.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private readonly double _cmPixel = 0.393700787;
|
||||||
|
private readonly int _dpi = 120;
|
||||||
|
private readonly double _imgWidthCmMax = 8.0;
|
||||||
|
|
||||||
|
private Size CalculateImageSizeForDocument(int height, int width)
|
||||||
|
{
|
||||||
|
double num = (double)height / (double)width;
|
||||||
|
double num2 = this._imgWidthCmMax * num;
|
||||||
|
int h = (int)(num2 * _cmPixel * (double)_dpi);
|
||||||
|
int w = (int)(_imgWidthCmMax * _cmPixel * (double)_dpi);
|
||||||
|
return new Size(w, h);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Image ResizeImage(Image image, Size size)
|
||||||
|
{
|
||||||
|
int width = image.Width;
|
||||||
|
int height = image.Height;
|
||||||
|
float num = (float)size.Width / (float)width;
|
||||||
|
float num2 = (float)size.Height / (float)height;
|
||||||
|
float num3 = (num2 < num) ? num2 : num;
|
||||||
|
int width2 = (int)((float)width * num3);
|
||||||
|
int height2 = (int)((float)height * num3);
|
||||||
|
Bitmap bitmap = new Bitmap(width2, height2);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
bitmap.SetResolution(120f, 120f);
|
||||||
|
Graphics graphics = Graphics.FromImage(bitmap);
|
||||||
|
graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;
|
||||||
|
graphics.DrawImage(image, 0, 0, width2, height2);
|
||||||
|
graphics.Dispose();
|
||||||
|
|
||||||
|
}
|
||||||
|
catch(Exception)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
System.GC.Collect();
|
||||||
|
}
|
||||||
|
return bitmap;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MailMerge_MergeImageField(object sender, MergeImageFieldEventArgs args)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(args.FieldName == "UVImageTemp" || args.FieldName == "UVImageDruck" || args.FieldName == "UVImageSpeed")
|
||||||
|
{
|
||||||
|
string source = args.FieldValue.ToString();
|
||||||
|
if (!File.Exists(source)) return;
|
||||||
|
args.Image = Image.FromFile(source);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
36
SanSystem/BerichtGen/BerichtWorker.cs
Normal file
36
SanSystem/BerichtGen/BerichtWorker.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Drawing.Drawing2D;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
public class BerichtWorker
|
||||||
|
{
|
||||||
|
public static Image resizeImage(Image imgToResize, Size size)
|
||||||
|
{
|
||||||
|
int width = imgToResize.Width;
|
||||||
|
int height = imgToResize.Height;
|
||||||
|
float scale = 0f;
|
||||||
|
float newWidth = 0f;
|
||||||
|
float newHeight = 0f;
|
||||||
|
|
||||||
|
newWidth = (float)size.Width / (float)width;
|
||||||
|
newHeight = (float)size.Height / (float)height;
|
||||||
|
|
||||||
|
scale = ((!(newHeight < newWidth)) ? newWidth : newHeight);
|
||||||
|
int width2 = (int)((float)width * scale);
|
||||||
|
int height2 = (int)((float)height * scale);
|
||||||
|
|
||||||
|
Bitmap bitmap = new Bitmap(width2, height2);
|
||||||
|
Graphics graphics = Graphics.FromImage(bitmap);
|
||||||
|
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||||
|
graphics.DrawImage(imgToResize, 0, 0, width2, height2);
|
||||||
|
graphics.Dispose();
|
||||||
|
return bitmap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
136
SanSystem/BerichtGen/FrmOptions.Designer.cs
generated
Normal file
136
SanSystem/BerichtGen/FrmOptions.Designer.cs
generated
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
partial class FrmOptions
|
||||||
|
{
|
||||||
|
/// <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.btn_start = new System.Windows.Forms.Button();
|
||||||
|
this.cb_doc = new System.Windows.Forms.CheckBox();
|
||||||
|
this.cb_pdf = new System.Windows.Forms.CheckBox();
|
||||||
|
this.rb_yes = new System.Windows.Forms.RadioButton();
|
||||||
|
this.rb_no = new System.Windows.Forms.RadioButton();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// btn_start
|
||||||
|
//
|
||||||
|
this.btn_start.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.btn_start.Location = new System.Drawing.Point(374, 12);
|
||||||
|
this.btn_start.Name = "btn_start";
|
||||||
|
this.btn_start.Size = new System.Drawing.Size(91, 74);
|
||||||
|
this.btn_start.TabIndex = 0;
|
||||||
|
this.btn_start.Text = "Bericht erzeugen";
|
||||||
|
this.btn_start.UseVisualStyleBackColor = true;
|
||||||
|
this.btn_start.Click += new System.EventHandler(this.btn_start_Click);
|
||||||
|
//
|
||||||
|
// cb_doc
|
||||||
|
//
|
||||||
|
this.cb_doc.AutoSize = true;
|
||||||
|
this.cb_doc.Enabled = false;
|
||||||
|
this.cb_doc.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.cb_doc.Location = new System.Drawing.Point(6, 12);
|
||||||
|
this.cb_doc.Name = "cb_doc";
|
||||||
|
this.cb_doc.Size = new System.Drawing.Size(173, 24);
|
||||||
|
this.cb_doc.TabIndex = 1;
|
||||||
|
this.cb_doc.Text = "DOC datei erzeugen";
|
||||||
|
this.cb_doc.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// cb_pdf
|
||||||
|
//
|
||||||
|
this.cb_pdf.AutoSize = true;
|
||||||
|
this.cb_pdf.Checked = true;
|
||||||
|
this.cb_pdf.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.cb_pdf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.cb_pdf.Location = new System.Drawing.Point(6, 35);
|
||||||
|
this.cb_pdf.Name = "cb_pdf";
|
||||||
|
this.cb_pdf.Size = new System.Drawing.Size(131, 24);
|
||||||
|
this.cb_pdf.TabIndex = 2;
|
||||||
|
this.cb_pdf.Text = "PDF erzeugen";
|
||||||
|
this.cb_pdf.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// rb_yes
|
||||||
|
//
|
||||||
|
this.rb_yes.AutoSize = true;
|
||||||
|
this.rb_yes.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.rb_yes.Location = new System.Drawing.Point(221, 62);
|
||||||
|
this.rb_yes.Name = "rb_yes";
|
||||||
|
this.rb_yes.Size = new System.Drawing.Size(39, 24);
|
||||||
|
this.rb_yes.TabIndex = 3;
|
||||||
|
this.rb_yes.TabStop = true;
|
||||||
|
this.rb_yes.Text = "ja";
|
||||||
|
this.rb_yes.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// rb_no
|
||||||
|
//
|
||||||
|
this.rb_no.AutoSize = true;
|
||||||
|
this.rb_no.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.rb_no.Location = new System.Drawing.Point(266, 62);
|
||||||
|
this.rb_no.Name = "rb_no";
|
||||||
|
this.rb_no.Size = new System.Drawing.Size(57, 24);
|
||||||
|
this.rb_no.TabIndex = 4;
|
||||||
|
this.rb_no.TabStop = true;
|
||||||
|
this.rb_no.Text = "nein";
|
||||||
|
this.rb_no.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(2, 62);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(202, 20);
|
||||||
|
this.label1.TabIndex = 5;
|
||||||
|
this.label1.Text = "Nach dem erzeugen öffnen";
|
||||||
|
//
|
||||||
|
// FrmOptions
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(477, 97);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.rb_no);
|
||||||
|
this.Controls.Add(this.rb_yes);
|
||||||
|
this.Controls.Add(this.cb_pdf);
|
||||||
|
this.Controls.Add(this.cb_doc);
|
||||||
|
this.Controls.Add(this.btn_start);
|
||||||
|
this.Name = "FrmOptions";
|
||||||
|
this.Text = "Options";
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Button btn_start;
|
||||||
|
private System.Windows.Forms.CheckBox cb_doc;
|
||||||
|
private System.Windows.Forms.CheckBox cb_pdf;
|
||||||
|
private System.Windows.Forms.RadioButton rb_yes;
|
||||||
|
private System.Windows.Forms.RadioButton rb_no;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
}
|
||||||
|
}
|
||||||
107
SanSystem/BerichtGen/FrmOptions.cs
Normal file
107
SanSystem/BerichtGen/FrmOptions.cs
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
using SanShared;
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public partial class FrmOptions : Form
|
||||||
|
{
|
||||||
|
Thread generateProtokollThread;
|
||||||
|
Hashtable grundDaten;
|
||||||
|
string firma;
|
||||||
|
string vorlage;
|
||||||
|
string speicherpfad;
|
||||||
|
string source;
|
||||||
|
string filename;
|
||||||
|
bool hidden = false;
|
||||||
|
List<BilderObject> bilderObjects;
|
||||||
|
|
||||||
|
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, bool hidden = false)
|
||||||
|
{
|
||||||
|
|
||||||
|
InitializeComponent();
|
||||||
|
Dongle dongle = new Dongle(60);
|
||||||
|
Trace.WriteLine("FrmOptions: " + dongle.SyncfusionKey);
|
||||||
|
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(dongle.SyncfusionKey);
|
||||||
|
dongle.CleanDongle();
|
||||||
|
|
||||||
|
|
||||||
|
this.firma = firma;
|
||||||
|
this.vorlage = vorlage;
|
||||||
|
this.speicherpfad = speicherpfad;
|
||||||
|
this.grundDaten = grunddaten;
|
||||||
|
this.bilderObjects = bilderObjects;
|
||||||
|
this.tableContent = tableContent;
|
||||||
|
this.source = Path.Combine("documents", firma, vorlage);
|
||||||
|
this.filename = filename;
|
||||||
|
this.hidden = hidden;
|
||||||
|
if(hidden)
|
||||||
|
{
|
||||||
|
GenerateBericht();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Gen()
|
||||||
|
{
|
||||||
|
|
||||||
|
Bericht bericht = new Bericht();
|
||||||
|
bericht.Erzeuge(source, speicherpfad,filename, grundDaten, bilderObjects, tableContent,cb_doc.Checked,cb_pdf.Checked);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GenerateBericht()
|
||||||
|
{
|
||||||
|
generateProtokollThread = new Thread(Gen);
|
||||||
|
generateProtokollThread.IsBackground = true;
|
||||||
|
generateProtokollThread.Start();
|
||||||
|
|
||||||
|
while (generateProtokollThread.IsAlive)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rb_yes.Checked && cb_pdf.Checked && !hidden)
|
||||||
|
{
|
||||||
|
string pfad = Path.Combine(speicherpfad, string.Format("{0}.pdf", filename));
|
||||||
|
Process process = new Process();
|
||||||
|
process.StartInfo.FileName = "explorer";
|
||||||
|
process.StartInfo.Arguments = pfad;
|
||||||
|
//** Verbuggt
|
||||||
|
FrmPDFViewer frmPDFViewer = new FrmPDFViewer(pfad);
|
||||||
|
frmPDFViewer.ShowDialog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btn_start_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GenerateBericht();
|
||||||
|
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
SanSystem/BerichtGen/FrmOptions.resx
Normal file
120
SanSystem/BerichtGen/FrmOptions.resx
Normal 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>
|
||||||
97
SanSystem/BerichtGen/FrmPDFViewer.Designer.cs
generated
Normal file
97
SanSystem/BerichtGen/FrmPDFViewer.Designer.cs
generated
Normal file
@@ -0,0 +1,97 @@
|
|||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
partial class FrmPDFViewer
|
||||||
|
{
|
||||||
|
/// <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()
|
||||||
|
{
|
||||||
|
Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings messageBoxSettings1 = new Syncfusion.Windows.Forms.PdfViewer.MessageBoxSettings();
|
||||||
|
Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings pdfViewerPrinterSettings1 = new Syncfusion.Windows.PdfViewer.PdfViewerPrinterSettings();
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmPDFViewer));
|
||||||
|
Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings textSearchSettings1 = new Syncfusion.Windows.Forms.PdfViewer.TextSearchSettings();
|
||||||
|
this.pdfViewerControl = new Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// pdfViewerControl
|
||||||
|
//
|
||||||
|
this.pdfViewerControl.CursorMode = Syncfusion.Windows.Forms.PdfViewer.PdfViewerCursorMode.SelectTool;
|
||||||
|
this.pdfViewerControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.pdfViewerControl.EnableContextMenu = true;
|
||||||
|
this.pdfViewerControl.EnableNotificationBar = true;
|
||||||
|
this.pdfViewerControl.HorizontalScrollOffset = 0;
|
||||||
|
this.pdfViewerControl.IsBookmarkEnabled = false;
|
||||||
|
this.pdfViewerControl.IsTextSearchEnabled = false;
|
||||||
|
this.pdfViewerControl.IsTextSelectionEnabled = false;
|
||||||
|
this.pdfViewerControl.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.pdfViewerControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||||
|
messageBoxSettings1.EnableNotification = true;
|
||||||
|
this.pdfViewerControl.MessageBoxSettings = messageBoxSettings1;
|
||||||
|
this.pdfViewerControl.MinimumZoomPercentage = 50;
|
||||||
|
this.pdfViewerControl.Name = "pdfViewerControl";
|
||||||
|
this.pdfViewerControl.PageBorderThickness = 1;
|
||||||
|
pdfViewerPrinterSettings1.PageOrientation = Syncfusion.Windows.PdfViewer.PdfViewerPrintOrientation.Auto;
|
||||||
|
pdfViewerPrinterSettings1.PageSize = Syncfusion.Windows.PdfViewer.PdfViewerPrintSize.ActualSize;
|
||||||
|
pdfViewerPrinterSettings1.PrintLocation = ((System.Drawing.PointF)(resources.GetObject("pdfViewerPrinterSettings1.PrintLocation")));
|
||||||
|
pdfViewerPrinterSettings1.ShowPrintStatusDialog = true;
|
||||||
|
this.pdfViewerControl.PrinterSettings = pdfViewerPrinterSettings1;
|
||||||
|
this.pdfViewerControl.ReferencePath = null;
|
||||||
|
this.pdfViewerControl.ScrollDisplacementValue = 0;
|
||||||
|
this.pdfViewerControl.ShowHorizontalScrollBar = true;
|
||||||
|
this.pdfViewerControl.ShowToolBar = true;
|
||||||
|
this.pdfViewerControl.ShowVerticalScrollBar = true;
|
||||||
|
this.pdfViewerControl.Size = new System.Drawing.Size(851, 922);
|
||||||
|
this.pdfViewerControl.SpaceBetweenPages = 8;
|
||||||
|
this.pdfViewerControl.TabIndex = 0;
|
||||||
|
this.pdfViewerControl.Text = "pdfViewerControl1";
|
||||||
|
textSearchSettings1.CurrentInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(255)))), ((int)(((byte)(171)))), ((int)(((byte)(64)))));
|
||||||
|
textSearchSettings1.HighlightAllInstance = true;
|
||||||
|
textSearchSettings1.OtherInstanceColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(254)))), ((int)(((byte)(255)))), ((int)(((byte)(0)))));
|
||||||
|
this.pdfViewerControl.TextSearchSettings = textSearchSettings1;
|
||||||
|
this.pdfViewerControl.VerticalScrollOffset = 0;
|
||||||
|
this.pdfViewerControl.VisualStyle = Syncfusion.Windows.Forms.PdfViewer.VisualStyle.Default;
|
||||||
|
this.pdfViewerControl.ZoomMode = Syncfusion.Windows.Forms.PdfViewer.ZoomMode.FitPage;
|
||||||
|
//
|
||||||
|
// FrmPDFViewer
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.AutoSize = true;
|
||||||
|
this.ClientSize = new System.Drawing.Size(851, 922);
|
||||||
|
this.Controls.Add(this.pdfViewerControl);
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
||||||
|
this.Name = "FrmPDFViewer";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "FrmPDFViewer";
|
||||||
|
this.Load += new System.EventHandler(this.FrmPDFViewer_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private Syncfusion.Windows.Forms.PdfViewer.PdfViewerControl pdfViewerControl;
|
||||||
|
}
|
||||||
|
}
|
||||||
34
SanSystem/BerichtGen/FrmPDFViewer.cs
Normal file
34
SanSystem/BerichtGen/FrmPDFViewer.cs
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public partial class FrmPDFViewer : Form
|
||||||
|
{
|
||||||
|
string pfad;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="pfad"></param>
|
||||||
|
public FrmPDFViewer(string pfad)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
this.pfad = pfad;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FrmPDFViewer_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
pdfViewerControl.Load(pfad);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
127
SanSystem/BerichtGen/FrmPDFViewer.resx
Normal file
127
SanSystem/BerichtGen/FrmPDFViewer.resx
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?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>
|
||||||
|
<data name="pdfViewerPrinterSettings1.PrintLocation" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>
|
||||||
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBDdWx0
|
||||||
|
dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABVTeXN0ZW0uRHJh
|
||||||
|
d2luZy5Qb2ludEYCAAAAAXgBeQAACwsCAAAAAAAAAAAAAAAL
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
121
SanSystem/BerichtGen/makeGraphic.cs
Normal file
121
SanSystem/BerichtGen/makeGraphic.cs
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
using SanShared;
|
||||||
|
using Syncfusion.Windows.Forms.Chart;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BerichtGen
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public static class makeGraphic
|
||||||
|
{
|
||||||
|
private static ChartControl getGraph(List<UVcsvStrukture> input, string type)
|
||||||
|
{
|
||||||
|
Size size = new Size(400, 300);
|
||||||
|
|
||||||
|
ChartControl chartControl = new ChartControl();
|
||||||
|
chartControl.Size = size;
|
||||||
|
|
||||||
|
|
||||||
|
ChartAxis axis = chartControl.PrimaryYAxis;
|
||||||
|
|
||||||
|
|
||||||
|
ChartAxisLayout layout1 = new ChartAxisLayout();
|
||||||
|
|
||||||
|
|
||||||
|
layout1.Spacing = 12;
|
||||||
|
|
||||||
|
layout1.Axes.Add(axis);
|
||||||
|
|
||||||
|
|
||||||
|
chartControl.ChartArea.YLayouts.Add(layout1);
|
||||||
|
|
||||||
|
ChartSeries mychart = new ChartSeries(type, ChartSeriesType.Line);
|
||||||
|
|
||||||
|
|
||||||
|
int counter = 0;
|
||||||
|
|
||||||
|
|
||||||
|
foreach (UVcsvStrukture pars in input)
|
||||||
|
{
|
||||||
|
if (type.Equals("Temperatur"))
|
||||||
|
mychart.Points.Add(counter, pars.Temperatur);
|
||||||
|
else if (type.Equals("Druck"))
|
||||||
|
mychart.Points.Add(counter, pars.Druck);
|
||||||
|
else if (type.Equals("Geschwindigkeit"))
|
||||||
|
mychart.Points.Add(counter, pars.Geschwindigkeit);
|
||||||
|
else
|
||||||
|
throw new Exception("Kein gültiger Aufruf");
|
||||||
|
counter++;
|
||||||
|
}
|
||||||
|
|
||||||
|
mychart.YAxis = axis;
|
||||||
|
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case "Temperatur":
|
||||||
|
axis.Title = "°C";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Druck":
|
||||||
|
axis.Title = "[mbar]";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "Geschwindigkeit":
|
||||||
|
axis.Title = "[cm]";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
axis.TitleFont = new Font("Segeo UI", 14F);
|
||||||
|
|
||||||
|
|
||||||
|
chartControl.LegendsPlacement = ChartPlacement.Outside;
|
||||||
|
chartControl.LegendPosition = ChartDock.Bottom;
|
||||||
|
chartControl.LegendAlignment = ChartAlignment.Center;
|
||||||
|
chartControl.Title.Visible = false;
|
||||||
|
|
||||||
|
chartControl.Series.Add(mychart);
|
||||||
|
chartControl.Skins = Skins.Metro;
|
||||||
|
|
||||||
|
axis.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift;
|
||||||
|
|
||||||
|
|
||||||
|
return chartControl;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Erstellt die Drucksverlauf kurve
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="struktures"></param>
|
||||||
|
/// <param name="destinationPath"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static bool GetGraphics(List<UVcsvStrukture> struktures,string destinationPath)
|
||||||
|
{
|
||||||
|
Dongle dongle = new Dongle(60);
|
||||||
|
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(dongle.SyncfusionKey);
|
||||||
|
dongle.CleanDongle();
|
||||||
|
|
||||||
|
ChartControl tempChart = getGraph(struktures, "Temperatur");
|
||||||
|
if (tempChart == null) return false;
|
||||||
|
else
|
||||||
|
tempChart.SaveImage(Path.Combine(destinationPath, "linerGraph_temp.jpg"));
|
||||||
|
|
||||||
|
ChartControl druckChart = getGraph(struktures, "Druck");
|
||||||
|
if (druckChart == null) return false;
|
||||||
|
else
|
||||||
|
druckChart.SaveImage(Path.Combine(destinationPath, "linerGraph_druck.jpg"));
|
||||||
|
|
||||||
|
ChartControl speedChart = getGraph(struktures, "Geschwindigkeit");
|
||||||
|
if (speedChart == null) return false;
|
||||||
|
else
|
||||||
|
speedChart.SaveImage(Path.Combine(destinationPath, "linerGraph_speed.jpg"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
SanSystem/CSVParser/AcceptedCSVFormats.cs
Normal file
9
SanSystem/CSVParser/AcceptedCSVFormats.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace CSVParser
|
||||||
|
{
|
||||||
|
public enum AcceptedCSVFormats
|
||||||
|
{
|
||||||
|
UVRELINING,
|
||||||
|
BLUELIGHT
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
73
SanSystem/CSVParser/BlueLight.cs
Normal file
73
SanSystem/CSVParser/BlueLight.cs
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using SanShared;
|
||||||
|
using SanShared.Exceptions;
|
||||||
|
|
||||||
|
namespace CSVParser
|
||||||
|
{
|
||||||
|
public class BlueLight : CSVParser
|
||||||
|
{
|
||||||
|
public BlueLight(string csvFile) : base(csvFile)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override List<UVcsvStrukture> ReadCSVStrukture()
|
||||||
|
{
|
||||||
|
List<UVcsvStrukture> result = new List<UVcsvStrukture>();
|
||||||
|
DateTime zeit;
|
||||||
|
double temperatur;
|
||||||
|
double druck;
|
||||||
|
double geschwindigkeit;
|
||||||
|
|
||||||
|
|
||||||
|
bool gestarted = false;
|
||||||
|
foreach (string partial in Input)
|
||||||
|
{
|
||||||
|
UVcsvStrukture strukture = new UVcsvStrukture();
|
||||||
|
string[] parts = partial.Split(',');
|
||||||
|
|
||||||
|
string datum = parts[1].Replace("\"", "");
|
||||||
|
string uhrzeit = parts[2].Replace("\"", "");
|
||||||
|
|
||||||
|
if (datum.Equals("Date")) continue;
|
||||||
|
|
||||||
|
|
||||||
|
if (!DateTime.TryParse(datum + " " + uhrzeit, out zeit))
|
||||||
|
throw new CSVImportException("Konnte die datum uhrzeit nicht konventieren");
|
||||||
|
|
||||||
|
double.TryParse(parts[3].Replace("\"","").Replace('.', ','), out temperatur);
|
||||||
|
double.TryParse(parts[4].Replace("\"",""), out geschwindigkeit);
|
||||||
|
double.TryParse(parts[5].Replace("\"","").Replace('.', ','), out druck);
|
||||||
|
|
||||||
|
|
||||||
|
string x = (druck*1000).ToString();
|
||||||
|
|
||||||
|
if (geschwindigkeit > 100) geschwindigkeit = 0;
|
||||||
|
if (geschwindigkeit > 50) geschwindigkeit = 1;
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* Geschwindigkeit wird in Meter angegeben pro stunde
|
||||||
|
* : 60 :60 * 100 = 36;
|
||||||
|
*/
|
||||||
|
geschwindigkeit = geschwindigkeit / 36.00;
|
||||||
|
|
||||||
|
strukture.Zeitstempel = zeit;
|
||||||
|
strukture.Druck = int.Parse(x);
|
||||||
|
strukture.Geschwindigkeit = geschwindigkeit;
|
||||||
|
strukture.Temperatur = temperatur;
|
||||||
|
|
||||||
|
if (!geschwindigkeit.Equals(0) && gestarted.Equals(false))
|
||||||
|
gestarted = true;
|
||||||
|
|
||||||
|
if(gestarted == true)
|
||||||
|
result.Add(strukture);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
28
SanSystem/CSVParser/CSVParser.cs
Normal file
28
SanSystem/CSVParser/CSVParser.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using SanShared;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CSVParser
|
||||||
|
{
|
||||||
|
public abstract class CSVParser : IReadCSVData
|
||||||
|
{
|
||||||
|
private string csvFile;
|
||||||
|
public CSVParser(string csvFile)
|
||||||
|
{
|
||||||
|
this.csvFile = csvFile;
|
||||||
|
}
|
||||||
|
public virtual string[] Input
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!File.Exists(csvFile)) throw new FileNotFoundException(csvFile);
|
||||||
|
return File.ReadAllLines(csvFile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public abstract List<UVcsvStrukture> ReadCSVStrukture();
|
||||||
|
}
|
||||||
|
}
|
||||||
25
SanSystem/CSVParser/CsvParserFactory.cs
Normal file
25
SanSystem/CSVParser/CsvParserFactory.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using SanShared;
|
||||||
|
|
||||||
|
namespace CSVParser
|
||||||
|
{
|
||||||
|
public static class CsvParserFactory
|
||||||
|
{
|
||||||
|
public static IReadCSVData ReadCSVFile(AcceptedCSVFormats csvFormat, string csvFile)
|
||||||
|
{
|
||||||
|
switch (csvFormat)
|
||||||
|
{
|
||||||
|
case AcceptedCSVFormats.UVRELINING:
|
||||||
|
return new UVRelining(csvFile);
|
||||||
|
case AcceptedCSVFormats.BLUELIGHT:
|
||||||
|
return new BlueLight(csvFile);
|
||||||
|
default:
|
||||||
|
throw new ArgumentOutOfRangeException(nameof(csvFormat));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
56
SanSystem/CSVParser/UVRelining.cs
Normal file
56
SanSystem/CSVParser/UVRelining.cs
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
using SanShared;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace CSVParser
|
||||||
|
{
|
||||||
|
public class UVRelining : CSVParser
|
||||||
|
{
|
||||||
|
public UVRelining(string csvFile) : base(csvFile)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="csvFile"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public override List<UVcsvStrukture> ReadCSVStrukture()
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Die Geschwindigkeit wird in cm / sekunde angegeben
|
||||||
|
*/
|
||||||
|
List<UVcsvStrukture> result = new List<UVcsvStrukture>();
|
||||||
|
|
||||||
|
DateTime zeit;
|
||||||
|
double temperatur;
|
||||||
|
double druck;
|
||||||
|
int geschwindigkeit;
|
||||||
|
foreach (string pars in Input)
|
||||||
|
{
|
||||||
|
UVcsvStrukture uVcsvStrukture = new UVcsvStrukture();
|
||||||
|
string[] parts = pars.Split(',');
|
||||||
|
if (
|
||||||
|
parts[0].Equals("Group1") ||
|
||||||
|
parts[1].Equals("(END)") ||
|
||||||
|
parts[1].Equals("(START)")
|
||||||
|
) continue;
|
||||||
|
DateTime.TryParse(parts[0], out zeit);
|
||||||
|
double.TryParse(parts[1].Replace('.', ','), out temperatur);
|
||||||
|
double.TryParse(parts[2].Replace('.', ','), out druck);
|
||||||
|
int.TryParse(parts[3], out geschwindigkeit);
|
||||||
|
|
||||||
|
|
||||||
|
uVcsvStrukture.Zeitstempel = zeit;
|
||||||
|
uVcsvStrukture.Druck = 1;//druck;
|
||||||
|
uVcsvStrukture.Temperatur = temperatur;
|
||||||
|
uVcsvStrukture.Geschwindigkeit = geschwindigkeit;
|
||||||
|
result.Add(uVcsvStrukture);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,8 +7,6 @@ using System.Threading.Tasks;
|
|||||||
using System.Xaml;
|
using System.Xaml;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using ICSharpCode.SharpZipLib.Zip;
|
|
||||||
using ICSharpCode.SharpZipLib.Core;
|
|
||||||
using KlassenBIB;
|
using KlassenBIB;
|
||||||
using SanShared.Exceptions;
|
using SanShared.Exceptions;
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ namespace KlassenBIB
|
|||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ContentProperty("Sanierung")]
|
[ContentProperty("Sanierung")]
|
||||||
public class Inspektionsobjekt
|
public class Inspektionsobjekt : IInspektionsobjekt
|
||||||
{
|
{
|
||||||
private string strasseName = "none";
|
private string strasseName = "none";
|
||||||
|
|
||||||
13
SanSystem/SanShared/BerichtWorker.cs
Normal file
13
SanSystem/SanShared/BerichtWorker.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
public class BerichtWorker
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
27
SanSystem/SanShared/BilderObject.cs
Normal file
27
SanSystem/SanShared/BilderObject.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class BilderObject
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Kommentar { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Path { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int ImgID { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
170
SanSystem/SanShared/Dongle.cs
Normal file
170
SanSystem/SanShared/Dongle.cs
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using CodeMeter;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
//4e 6a 41 77 4e 6a 51 7a 51 44 4d 78 4d 7a 6b 79 5a 54 4d 30 4d 6d 55 7a 4d 47 35 4c 61 32 55 7a 51 31 46 30 52 33 64 46 5a 45 68 35 56 57 74 47 61 7a 5a 30 61 48 70 55 57 69 39 58 64 6b 78 4a 54 32 78 43 62 6b 74 58 52 58 46 57 63 30 5a 73 64 7a 41 39
|
||||||
|
public class Dongle : IDisposable
|
||||||
|
{
|
||||||
|
uint FirmCode;
|
||||||
|
uint ProductCode;
|
||||||
|
public string SyncfusionKey = "";
|
||||||
|
|
||||||
|
Api cmApi;
|
||||||
|
CmCredential cmCred;
|
||||||
|
CmAccess2 cmAcc;
|
||||||
|
HCMSysEntry hcmse;
|
||||||
|
CmBoxInfo cmBoxInfo;
|
||||||
|
CmBoxEntry2 BoxContent;
|
||||||
|
|
||||||
|
public Dongle(uint ProductCode)
|
||||||
|
{
|
||||||
|
#if !DEBUG
|
||||||
|
this.FirmCode = 103086;
|
||||||
|
this.ProductCode = ProductCode;
|
||||||
|
#else
|
||||||
|
return;
|
||||||
|
this.FirmCode = 10;
|
||||||
|
this.ProductCode = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
cmApi = new Api();
|
||||||
|
cmCred = new CmCredential();
|
||||||
|
cmAcc = new CmAccess2();
|
||||||
|
|
||||||
|
cmAcc.Credential = cmCred;
|
||||||
|
|
||||||
|
cmAcc.Ctrl |= CmAccess.Option.UserLimit;
|
||||||
|
cmAcc.FirmCode = this.FirmCode;
|
||||||
|
cmAcc.ProductCode = this.ProductCode;
|
||||||
|
|
||||||
|
|
||||||
|
hcmse = cmApi.CmAccess2(CmAccessOption.Local, cmAcc);
|
||||||
|
if (hcmse == null)
|
||||||
|
{
|
||||||
|
ErrorCodes2 code = cmApi.CmGetLastErrorCode2();
|
||||||
|
string output = string.Format("{0}", code);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!CheckDongleVorhanden())
|
||||||
|
throw new Exception("Dongle not connected");
|
||||||
|
|
||||||
|
cmBoxInfo = new CmBoxInfo();
|
||||||
|
|
||||||
|
CmGetBoxContentsOption boxOptions = new CmGetBoxContentsOption();
|
||||||
|
boxOptions = CmGetBoxContentsOption.AllEntries;
|
||||||
|
|
||||||
|
CmBoxEntry2[] tmpBoxContent;
|
||||||
|
|
||||||
|
tmpBoxContent = cmApi.CmGetBoxContents2(hcmse, boxOptions, this.FirmCode, cmBoxInfo);
|
||||||
|
|
||||||
|
CmEntryData[] pCmBoxEntry = (CmEntryData[])cmApi.CmGetInfo(hcmse, CmGetInfoOption.EntryData);
|
||||||
|
|
||||||
|
for (int i = 0; i < pCmBoxEntry.Length; i++)
|
||||||
|
{
|
||||||
|
switch (pCmBoxEntry[i].Ctrl & 0x0ffff)
|
||||||
|
{
|
||||||
|
case (uint)CodeMeter.GlobalEntryOption.ProtectedData:
|
||||||
|
// Transfer to transformed byte
|
||||||
|
uint length = pCmBoxEntry[i].DataLen;
|
||||||
|
byte[] datas = new byte[length];
|
||||||
|
for(uint f = 0; f < length; f++)
|
||||||
|
{
|
||||||
|
datas[f] = pCmBoxEntry[i].Data[f];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SyncfusionKey = Encoding.ASCII.GetString(datas);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (CmBoxEntry2 boxes in tmpBoxContent)
|
||||||
|
{
|
||||||
|
if (boxes.ProductCode == this.ProductCode)
|
||||||
|
{
|
||||||
|
this.BoxContent = boxes;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
~Dongle()
|
||||||
|
{
|
||||||
|
CleanDongle();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CleanDongle()
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
cmApi.CmRelease(hcmse);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool CheckDongleVorhanden()
|
||||||
|
{
|
||||||
|
#if LAPTOP
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
if (hcmse == null)
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetDongleSerial()
|
||||||
|
{
|
||||||
|
|
||||||
|
CmBoxInfo res = (CmBoxInfo)cmApi.CmGetInfo(hcmse, CmGetInfoOption.BoxInfo);
|
||||||
|
if (null != res)
|
||||||
|
{
|
||||||
|
return res.SerialNumber.ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new Exception("Fehler beim aufrufen der Seriennummer");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public uint GetFeatureMap()
|
||||||
|
{
|
||||||
|
return BoxContent.FeatureMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetName()
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsLicensed(byte neededMask)
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
uint DongleFeature = GetFeatureMap();
|
||||||
|
|
||||||
|
//Trace.WriteLine("DongleFeature: " + DongleFeature);
|
||||||
|
|
||||||
|
byte DongleFeatureB = (byte)DongleFeature;
|
||||||
|
|
||||||
|
if ((DongleFeatureB & neededMask) == neededMask)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
CleanDongle();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
28
SanSystem/SanShared/Exceptions/CSVImportException.cs
Normal file
28
SanSystem/SanShared/Exceptions/CSVImportException.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared.Exceptions
|
||||||
|
{
|
||||||
|
public class CSVImportException : Exception
|
||||||
|
{
|
||||||
|
public CSVImportException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public CSVImportException(string message) : base(message)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public CSVImportException(string message, Exception innerException) : base(message, innerException)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
protected CSVImportException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared.Exceptions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class DataBaseVersionMismatchException : Exception
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public DataBaseVersionMismatchException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="message"></param>
|
||||||
|
public DataBaseVersionMismatchException(string message) : base(message)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="message"></param>
|
||||||
|
/// <param name="innerException"></param>
|
||||||
|
public DataBaseVersionMismatchException(string message, Exception innerException) : base(message, innerException)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="info"></param>
|
||||||
|
/// <param name="context"></param>
|
||||||
|
protected DataBaseVersionMismatchException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
SanSystem/SanShared/Exceptions/LangNotFoundException.cs
Normal file
45
SanSystem/SanShared/Exceptions/LangNotFoundException.cs
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared.Exceptions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class LangNotFoundException : Exception
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public LangNotFoundException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="message"></param>
|
||||||
|
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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="info"></param>
|
||||||
|
/// <param name="context"></param>
|
||||||
|
protected LangNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
25
SanSystem/SanShared/IAuftraggeber.cs
Normal file
25
SanSystem/SanShared/IAuftraggeber.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public interface IAuftraggeber
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
string Name { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
string Strasse { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
string Ort { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
string Ansprechpartner { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
28
SanSystem/SanShared/IImportedObjekte.cs
Normal file
28
SanSystem/SanShared/IImportedObjekte.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <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<IInspektionsobjekt> GetInspektionsobjekte();
|
||||||
|
}
|
||||||
|
}
|
||||||
12
SanSystem/SanShared/IInspektionsobjekt.cs
Normal file
12
SanSystem/SanShared/IInspektionsobjekt.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
public interface IInspektionsobjekt
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
23
SanSystem/SanShared/IMakeProtokol.cs
Normal file
23
SanSystem/SanShared/IMakeProtokol.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public interface IMakeProtokol
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="destinationPath"></param>
|
||||||
|
/// <param name="projekt">Projekt</param>
|
||||||
|
/// <returns></returns>
|
||||||
|
Hashtable MakeProtokoll(string destinationPath, IProjekt projekt, DateTime offset);
|
||||||
|
}
|
||||||
|
}
|
||||||
9
SanSystem/SanShared/IProjekt.cs
Normal file
9
SanSystem/SanShared/IProjekt.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
public interface IProjekt
|
||||||
|
{
|
||||||
|
IAuftraggeber Auftraggeber { get; set; }
|
||||||
|
string SanierungsIDPrefix { get; set; }
|
||||||
|
string SanierungsIDSuffix { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
24
SanSystem/SanShared/IReadCSVData.cs
Normal file
24
SanSystem/SanShared/IReadCSVData.cs
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public interface IReadCSVData
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
List<UVcsvStrukture> ReadCSVStrukture();
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
string[] Input { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
21
SanSystem/SanShared/ITemperature.cs
Normal file
21
SanSystem/SanShared/ITemperature.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public interface ITemperature
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="message"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
double GetTemperatur(out string message);
|
||||||
|
}
|
||||||
|
}
|
||||||
35
SanSystem/SanShared/UVcsvStrukture.cs
Normal file
35
SanSystem/SanShared/UVcsvStrukture.cs
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SanShared
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// CSV Dateistruktur
|
||||||
|
/// </summary>
|
||||||
|
public class UVcsvStrukture
|
||||||
|
{
|
||||||
|
DateTime zeitstempel;
|
||||||
|
double temperatur;
|
||||||
|
int druck;
|
||||||
|
double geschwindigkeit;
|
||||||
|
/// <summary>
|
||||||
|
/// Zeitstempel vom Eintrag
|
||||||
|
/// </summary>
|
||||||
|
public DateTime Zeitstempel { get => zeitstempel; set => zeitstempel = value; }
|
||||||
|
/// <summary>
|
||||||
|
/// Temperatur anzeige vom Eintrag
|
||||||
|
/// </summary>
|
||||||
|
public double Temperatur { get => temperatur; set => temperatur = value; }
|
||||||
|
/// <summary>
|
||||||
|
/// Druckanzeige vom Eintrag
|
||||||
|
/// </summary>
|
||||||
|
public int Druck { get => druck; set => druck = value; }
|
||||||
|
/// <summary>
|
||||||
|
/// Geschwindigkeit vom Eintrag
|
||||||
|
/// </summary>
|
||||||
|
public double Geschwindigkeit { get => geschwindigkeit; set => geschwindigkeit = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -52,9 +52,18 @@
|
|||||||
<Reference Include="Syncfusion.Chart.Windows, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
<Reference Include="Syncfusion.Chart.Windows, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Syncfusion.Chart.Windows.19.4.0.56\lib\net46\Syncfusion.Chart.Windows.dll</HintPath>
|
<HintPath>..\packages\Syncfusion.Chart.Windows.19.4.0.56\lib\net46\Syncfusion.Chart.Windows.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.Compression.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.Compression.Base.19.4.0.56\lib\net46\Syncfusion.Compression.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Syncfusion.Core.WinForms, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
<Reference Include="Syncfusion.Core.WinForms, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Syncfusion.Core.WinForms.19.4.0.56\lib\net46\Syncfusion.Core.WinForms.dll</HintPath>
|
<HintPath>..\packages\Syncfusion.Core.WinForms.19.4.0.56\lib\net46\Syncfusion.Core.WinForms.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.DocIO.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.DocIO.WinForms.19.4.0.56\lib\net46\Syncfusion.DocIO.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.DocToPdfConverter.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.DocToPDFConverter.WinForms.19.4.0.56\lib\net46\Syncfusion.DocToPdfConverter.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Syncfusion.Grid.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
<Reference Include="Syncfusion.Grid.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Syncfusion.Grid.Base.19.4.0.56\lib\net46\Syncfusion.Grid.Base.dll</HintPath>
|
<HintPath>..\packages\Syncfusion.Grid.Base.19.4.0.56\lib\net46\Syncfusion.Grid.Base.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -67,6 +76,15 @@
|
|||||||
<Reference Include="Syncfusion.Licensing, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
|
<Reference Include="Syncfusion.Licensing, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Syncfusion.Licensing.19.4.0.56\lib\net46\Syncfusion.Licensing.dll</HintPath>
|
<HintPath>..\packages\Syncfusion.Licensing.19.4.0.56\lib\net46\Syncfusion.Licensing.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.OfficeChart.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.OfficeChart.Base.19.4.0.56\lib\net46\Syncfusion.OfficeChart.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.Pdf.Base, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.Pdf.WinForms.19.4.0.56\lib\net46\Syncfusion.Pdf.Base.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Syncfusion.PdfViewer.Windows, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Syncfusion.PdfViewer.Windows.19.4.0.56\lib\net46\Syncfusion.PdfViewer.Windows.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Syncfusion.SfInput.WinForms, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
<Reference Include="Syncfusion.SfInput.WinForms, Version=19.4460.0.56, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Syncfusion.SfInput.WinForms.19.4.0.56\lib\net46\Syncfusion.SfInput.WinForms.dll</HintPath>
|
<HintPath>..\packages\Syncfusion.SfInput.WinForms.19.4.0.56\lib\net46\Syncfusion.SfInput.WinForms.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -95,6 +113,7 @@
|
|||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Design" />
|
<Reference Include="System.Design" />
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
|
<Reference Include="System.Xaml" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
@@ -104,9 +123,43 @@
|
|||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="Tinkerforge">
|
||||||
|
<HintPath>..\dlls\Tinkerforge.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="WibuCmNET">
|
||||||
|
<HintPath>..\3rdPackage\WibuCmNET.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="wupi.net">
|
||||||
|
<HintPath>..\3rdPackage\wupi.net.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="WupiEngineNet">
|
||||||
|
<HintPath>..\3rdPackage\WupiEngineNet.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="BerichtGen\Bericht.cs" />
|
||||||
|
<Compile Include="BerichtGen\BerichtWorker.cs" />
|
||||||
|
<Compile Include="BerichtGen\FrmOptions.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BerichtGen\FrmOptions.Designer.cs">
|
||||||
|
<DependentUpon>FrmOptions.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BerichtGen\FrmPDFViewer.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BerichtGen\FrmPDFViewer.Designer.cs">
|
||||||
|
<DependentUpon>FrmPDFViewer.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="BerichtGen\makeGraphic.cs" />
|
||||||
<Compile Include="BüroExporter.cs" />
|
<Compile Include="BüroExporter.cs" />
|
||||||
|
<Compile Include="CSVParser\AcceptedCSVFormats.cs" />
|
||||||
|
<Compile Include="CSVParser\BlueLight.cs" />
|
||||||
|
<Compile Include="CSVParser\CSVParser.cs" />
|
||||||
|
<Compile Include="CSVParser\CsvParserFactory.cs" />
|
||||||
|
<Compile Include="CSVParser\UVRelining.cs" />
|
||||||
|
<Compile Include="Database\Datenbank.cs" />
|
||||||
|
<Compile Include="Database\UpdateDatabase.cs" />
|
||||||
<Compile Include="Einstellungen\ObjecteListSetting.cs" />
|
<Compile Include="Einstellungen\ObjecteListSetting.cs" />
|
||||||
<Compile Include="Einstellungen\Settings.cs" />
|
<Compile Include="Einstellungen\Settings.cs" />
|
||||||
<Compile Include="Einstellungen\SoftwareConfiguration.cs" />
|
<Compile Include="Einstellungen\SoftwareConfiguration.cs" />
|
||||||
@@ -244,10 +297,75 @@
|
|||||||
<DependentUpon>frmInfo.cs</DependentUpon>
|
<DependentUpon>frmInfo.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Global.cs" />
|
<Compile Include="Global.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Auftraggeber.cs" />
|
||||||
|
<Compile Include="KlassenBIB\AusgefuehrteTaetigkeiten.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\AbwasserTechnischeAnlage.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\AuftraggeberList.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\AusgefuehrteTaetigkeiten.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Bilder.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\ChargeNummer.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\ImprägnierBericht.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Inspektionskuerzeln.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Leistungsverzeichnis.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Projekte.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Sanierung.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Collections\Sanierungskonzept.cs" />
|
||||||
|
<Compile Include="KlassenBIB\DB.cs" />
|
||||||
|
<Compile Include="KlassenBIB\IImportedObjekte.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Inspektionskuerzeln.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Inspektionsobjekt.cs" />
|
||||||
|
<Compile Include="KlassenBIB\LeistungsVerzeichnis.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Lieferschein.cs" />
|
||||||
|
<Compile Include="KlassenBIB\LinerChargen.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Projekt.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierungskonzept.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\AbstractSanieren.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\AbstractImprägnier.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\ImprägnierungStrukture.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\InlinerSanierung.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\UVAnlagenTyp.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\VorOrtImprägnier.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Renovation\WerkseitigImprägniert.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Reparatur.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Reparatur\Hutprofil.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Reparatur\Kurzliner.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Reparatur\Quicklock.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Reparatur\SanMitHarz.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\Sanierung.cs" />
|
||||||
|
<Compile Include="KlassenBIB\Sanierung\StructChargeNummern.cs" />
|
||||||
|
<Compile Include="KlassenBIB\SavedBilder.cs" />
|
||||||
|
<Compile Include="KlassenBIB\SchachtAnbindung.cs" />
|
||||||
<Compile Include="MassenStatistik.cs" />
|
<Compile Include="MassenStatistik.cs" />
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="ProgrammModule.cs" />
|
<Compile Include="ProgrammModule.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="SanShared\BerichtWorker.cs" />
|
||||||
|
<Compile Include="SanShared\BilderObject.cs" />
|
||||||
|
<Compile Include="SanShared\Dongle.cs" />
|
||||||
|
<Compile Include="SanShared\Exceptions\CSVImportException.cs" />
|
||||||
|
<Compile Include="SanShared\Exceptions\DataBaseVersionMismatchException.cs" />
|
||||||
|
<Compile Include="SanShared\Exceptions\LangNotFoundException.cs" />
|
||||||
|
<Compile Include="SanShared\IAuftraggeber.cs" />
|
||||||
|
<Compile Include="SanShared\IImportedObjekte.cs" />
|
||||||
|
<Compile Include="SanShared\IInspektionsobjekt.cs" />
|
||||||
|
<Compile Include="SanShared\IMakeProtokol.cs" />
|
||||||
|
<Compile Include="SanShared\IProjekt.cs" />
|
||||||
|
<Compile Include="SanShared\IReadCSVData.cs" />
|
||||||
|
<Compile Include="SanShared\ITemperature.cs" />
|
||||||
|
<Compile Include="SanShared\UVcsvStrukture.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\I2006XML.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\ImportBuilder.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\Anschlussdaten.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\Enums.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\InspizierteAbwassertechnischeAnlage.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\Lage.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\OptischeInspektion.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\RGrunddaten.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\Rohrleitung.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\RZustand.cs" />
|
||||||
|
<Compile Include="SchnittstelleImporter\XML2006\XMLParser.cs" />
|
||||||
|
<Compile Include="TempCAN\TemperaturBuilder.cs" />
|
||||||
|
<Compile Include="TempCAN\TinkerForgeTemperatur.cs" />
|
||||||
<Compile Include="UCInliner.cs">
|
<Compile Include="UCInliner.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -272,6 +390,12 @@
|
|||||||
<Compile Include="UCWerkseitigImprägniert.Designer.cs">
|
<Compile Include="UCWerkseitigImprägniert.Designer.cs">
|
||||||
<DependentUpon>UCWerkseitigImprägniert.cs</DependentUpon>
|
<DependentUpon>UCWerkseitigImprägniert.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<EmbeddedResource Include="BerichtGen\FrmOptions.resx">
|
||||||
|
<DependentUpon>FrmOptions.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="BerichtGen\FrmPDFViewer.resx">
|
||||||
|
<DependentUpon>FrmPDFViewer.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="FrmAktuelleBesatzung.resx">
|
<EmbeddedResource Include="FrmAktuelleBesatzung.resx">
|
||||||
<DependentUpon>FrmAktuelleBesatzung.cs</DependentUpon>
|
<DependentUpon>FrmAktuelleBesatzung.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@@ -380,43 +504,34 @@
|
|||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-betriebsdaten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-hydraulikdaten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-metadaten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-referenzlisten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-stammdaten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
|
<None Include="SchnittstelleImporter\XML2006\SchemaDateien\0610-zustandsdaten.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\BerichtGen\BerichtGen.csproj">
|
|
||||||
<Project>{3022da07-fd06-4aea-9fc8-00d318e95a82}</Project>
|
|
||||||
<Name>BerichtGen</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\CSVParser\CSVParser.csproj">
|
|
||||||
<Project>{3f79bd28-9bf6-4902-8977-41e9e71f8488}</Project>
|
|
||||||
<Name>CSVParser</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\Database\Database.csproj">
|
|
||||||
<Project>{b0227727-6cf9-4e2e-9afe-5dd76deaa9db}</Project>
|
|
||||||
<Name>Database</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\Dichtheitspruefung\Dichtheitsprüfung\Dichtheitsprüfung.csproj">
|
<ProjectReference Include="..\Dichtheitspruefung\Dichtheitsprüfung\Dichtheitsprüfung.csproj">
|
||||||
<Project>{324277c6-2eb3-47b7-9dd5-7fa520e7d349}</Project>
|
<Project>{324277c6-2eb3-47b7-9dd5-7fa520e7d349}</Project>
|
||||||
<Name>Dichtheitsprüfung</Name>
|
<Name>Dichtheitsprüfung</Name>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\KlassenBIB\KlassenBIB.csproj">
|
|
||||||
<Project>{c82bd650-466b-403f-bed9-2b1660771f54}</Project>
|
|
||||||
<Name>KlassenBIB</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SanShared\SanShared.csproj">
|
|
||||||
<Project>{c949087e-20e1-4a17-b021-faead363c1d8}</Project>
|
|
||||||
<Name>SanShared</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\SchnittstelleImporter\SchnittstelleImporter.csproj">
|
|
||||||
<Project>{E1564A4D-39FD-489B-8029-AEEF33033EF2}</Project>
|
|
||||||
<Name>SchnittstelleImporter</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\TempCAN\TempCAN.csproj">
|
|
||||||
<Project>{e4979419-5eae-4b6d-a6a0-9632c1de87a0}</Project>
|
|
||||||
<Name>TempCAN</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\UpdateLib\UpdateLib.csproj">
|
<ProjectReference Include="..\UpdateLib\UpdateLib.csproj">
|
||||||
<Project>{cf95db30-247b-4382-948e-3bd5eb73c938}</Project>
|
<Project>{cf95db30-247b-4382-948e-3bd5eb73c938}</Project>
|
||||||
<Name>UpdateLib</Name>
|
<Name>UpdateLib</Name>
|
||||||
|
|||||||
199
SanSystem/SchnittstelleImporter/I2006XML.cs
Normal file
199
SanSystem/SchnittstelleImporter/I2006XML.cs
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
using SanShared;
|
||||||
|
using SchnittstelleImporter.XML2006;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Xml;
|
||||||
|
using System.Xml.Schema;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter
|
||||||
|
{
|
||||||
|
/// <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;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void LoadRefListe()
|
||||||
|
{
|
||||||
|
//XmlSchema s = XmlSchema.Read(XmlReader.Create(@"XML2006\SchemaDateien\0610-referenzlisten.xsd"), null);
|
||||||
|
XmlDocument xmlDocument = new XmlDocument();
|
||||||
|
xmlDocument.Load(@"XML2006\SchemaDateien\0610-referenzlisten.xsd");
|
||||||
|
|
||||||
|
XmlNodeReader nodeReader = new XmlNodeReader(xmlDocument);
|
||||||
|
while(nodeReader.Read())
|
||||||
|
{
|
||||||
|
Trace.WriteLine(nodeReader.Name);
|
||||||
|
Trace.WriteLine(nodeReader.GetAttribute("name"));
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
int x = xmlDocument.ChildNodes.Count;
|
||||||
|
var y = xmlDocument.ChildNodes[7];
|
||||||
|
|
||||||
|
for(int i = 0; i < y.ChildNodes.Count; i++)
|
||||||
|
{
|
||||||
|
var d = y.ChildNodes[i];
|
||||||
|
var e = d["MaterialType"];
|
||||||
|
Trace.WriteLine(e);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void ValidationCallback(object sender, ValidationEventArgs e)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public List<IInspektionsobjekt> GetInspektionsobjekte()
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
List<IInspektionsobjekt> result = new List<IInspektionsobjekt>();
|
||||||
|
List<InspizierteAbwassertechnischeAnlage> anlagen = XMLParser.GetList(XMLFile);
|
||||||
|
foreach(InspizierteAbwassertechnischeAnlage src in anlagen)
|
||||||
|
{
|
||||||
|
IInspektionsobjekt inspektionsobjekt = new Inspektionsobjekt();
|
||||||
|
KlassenBIB.Collections.Inspektionskuerzeln inspektionskuerzelns = new KlassenBIB.Collections.Inspektionskuerzeln();
|
||||||
|
|
||||||
|
inspektionsobjekt.Projektnummer = projektnummer;
|
||||||
|
inspektionsobjekt.Objektbezeichnung = src.Objektbezeichnung;
|
||||||
|
inspektionsobjekt.OrtName = src.Lage.Ortname!= null? src.Lage.Ortname : "";
|
||||||
|
inspektionsobjekt.StrasseName = src.Lage.Strassename != null ? src.Lage.Strassename : "noname";
|
||||||
|
inspektionsobjekt.RohrMaterial = src.OptischeInspektion.Rohrleitung.Grunddaten.Material != null ? getRohrmaterial(src.OptischeInspektion.Rohrleitung.Grunddaten.Material) : "Unbekannt";
|
||||||
|
inspektionsobjekt.Kanalrohrweite = src.OptischeInspektion.Rohrleitung.Grunddaten.Profilhoehe != 0 ? (uint)src.OptischeInspektion.Rohrleitung.Grunddaten.Profilhoehe : (uint)src.OptischeInspektion.Rohrleitung.Grunddaten.Profilbreite;
|
||||||
|
inspektionsobjekt.Haltungslaenge = Convert.ToDouble(src.OptischeInspektion.Rohrleitung.Inspektionslaenge);
|
||||||
|
inspektionsobjekt.VonPunkt = src.OptischeInspektion.Rohrleitung.Grunddaten.KnotenZulauf;
|
||||||
|
inspektionsobjekt.BisPunkt = src.OptischeInspektion.Rohrleitung.Grunddaten.KnotenAblauf;
|
||||||
|
inspektionsobjekt.Inspektionsrichtung = src.OptischeInspektion.Rohrleitung.Inspektionsrichtung;
|
||||||
|
|
||||||
|
|
||||||
|
foreach(RZustand zustand in src.OptischeInspektion.Rohrleitung.Zustaende)
|
||||||
|
{
|
||||||
|
Inspektionskuerzeln inspektionskuerzeln = new Inspektionskuerzeln();
|
||||||
|
inspektionskuerzeln.Station = zustand.Station;
|
||||||
|
inspektionskuerzeln.Hauptkode = zustand.Inspektionskode;
|
||||||
|
inspektionskuerzeln.Charakterisierung1 = zustand.Charakterisierung1;
|
||||||
|
inspektionskuerzeln.Charakterisierung2 = zustand.Charakterisierung2;
|
||||||
|
inspektionskuerzeln.ImVerbindung = zustand.Verbindung;
|
||||||
|
inspektionskuerzeln.LageAmUmfangStart = Convert.ToUInt32(zustand.PositionVon);
|
||||||
|
inspektionskuerzeln.LageAmUmfangEnde = Convert.ToUInt32(zustand.PositionBis);
|
||||||
|
|
||||||
|
Quantifizierung quant1 = zustand.Quantifizierung1;
|
||||||
|
Quantifizierung quant2 = zustand.Quantifizierung2;
|
||||||
|
|
||||||
|
inspektionskuerzeln.Quantifizierung1 = Convert.ToUInt32(quant1.Numerisch);
|
||||||
|
inspektionskuerzeln.Quantifizierung2 = Convert.ToUInt32(quant2.Numerisch);
|
||||||
|
|
||||||
|
inspektionskuerzelns.Add(inspektionskuerzeln);
|
||||||
|
}
|
||||||
|
|
||||||
|
inspektionsobjekt.Schadenskuerzeln = inspektionskuerzelns;
|
||||||
|
result.Add(inspektionsobjekt);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
*/
|
||||||
|
return new List<IInspektionsobjekt>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
39
SanSystem/SchnittstelleImporter/ImportBuilder.cs
Normal file
39
SanSystem/SchnittstelleImporter/ImportBuilder.cs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
using SanShared;
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
45
SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs
Normal file
45
SanSystem/SchnittstelleImporter/XML2006/Anschlussdaten.cs
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class Anschlussdaten
|
||||||
|
{
|
||||||
|
string objektbezeichnung;
|
||||||
|
EKantenTyp kantentyp;
|
||||||
|
decimal entfernung;
|
||||||
|
string anschlussArt;
|
||||||
|
string fixierung;
|
||||||
|
string kommentar;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Objektbezeichnung { get => objektbezeichnung; set => objektbezeichnung = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public EKantenTyp Kantentyp { get => kantentyp; set => kantentyp = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public decimal Entfernung { get => entfernung; set => entfernung = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string AnschlussArt { get => anschlussArt; set => anschlussArt = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Fixierung { get => fixierung; set => fixierung = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Kommentar { get => kommentar; set => kommentar = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
112
SanSystem/SchnittstelleImporter/XML2006/Enums.cs
Normal file
112
SanSystem/SchnittstelleImporter/XML2006/Enums.cs
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public enum EAnlagetyp
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
Haltung = 1,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
Anschlussleitung = 2,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
Schacht = 3,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
Bauwerk = 4
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
enum EInspektionverfahren
|
||||||
|
{
|
||||||
|
TVUntersuchung,
|
||||||
|
Begehung,
|
||||||
|
VomSchacht,
|
||||||
|
Other
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
enum EWetter
|
||||||
|
{
|
||||||
|
KEINNIEDERSCHLAG = 1,
|
||||||
|
REGEN = 2,
|
||||||
|
SCHNEE = 3
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public enum ERohrleitungstyp
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
HALTUNG,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
LEITUNG
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
enum EObjektArt
|
||||||
|
{
|
||||||
|
KANTE = 1,
|
||||||
|
KNOTEN = 2
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public enum EKnotenTyp
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
SCHACHT = 0,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
ANSCHLUSSPUNKT = 1,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
BAUWERK = 2
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public enum EKantenTyp
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
HALTUNG,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
LEITUNG,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
RINNE,
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
GERINNE
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public sealed class InspizierteAbwassertechnischeAnlage
|
||||||
|
{
|
||||||
|
string objektbezeichnung;
|
||||||
|
Lage lage;
|
||||||
|
EAnlagetyp anlagentyp;
|
||||||
|
OptischeInspektion optischeInspektion;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Objektbezeichnung
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return objektbezeichnung;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
objektbezeichnung = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public EAnlagetyp Anlagentyp
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return anlagentyp;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
anlagentyp = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public OptischeInspektion OptischeInspektion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return optischeInspektion;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
optischeInspektion = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public Lage Lage
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return lage;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
lage = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return objektbezeichnung;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
SanSystem/SchnittstelleImporter/XML2006/Lage.cs
Normal file
55
SanSystem/SchnittstelleImporter/XML2006/Lage.cs
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class Lage
|
||||||
|
{
|
||||||
|
string strassename;
|
||||||
|
string ortname;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Strassename
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return strassename;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
strassename = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Ortname
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return ortname;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ortname = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="strassename"></param>
|
||||||
|
/// <param name="ortname"></param>
|
||||||
|
public Lage(string strassename, string ortname)
|
||||||
|
{
|
||||||
|
this.strassename = strassename;
|
||||||
|
this.ortname = ortname;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class OptischeInspektion
|
||||||
|
{
|
||||||
|
DateTime inspektionstime;
|
||||||
|
Rohrleitung rohrleitung;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public DateTime Inspektionstime
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
inspektionstime = value;
|
||||||
|
}
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return inspektionstime;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Inspektionsdatum
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return inspektionstime.ToShortDateString();
|
||||||
|
}
|
||||||
|
/*set
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
//inspektionsdatum = value;
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Inspektionszeit
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return inspektionstime.ToShortTimeString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public Rohrleitung Rohrleitung
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return rohrleitung;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
rohrleitung = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
100
SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs
Normal file
100
SanSystem/SchnittstelleImporter/XML2006/RGrunddaten.cs
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class RGrunddaten
|
||||||
|
{
|
||||||
|
string knotenZulauf;
|
||||||
|
EKnotenTyp knotenZulaufTyp;
|
||||||
|
string knotenAblauf;
|
||||||
|
EKnotenTyp knotenAblaufTyp;
|
||||||
|
int profilhoehe;
|
||||||
|
int profilbreite;
|
||||||
|
int profilart;
|
||||||
|
string material;
|
||||||
|
string kanalart;
|
||||||
|
Anschlussdaten anschlussddaten = null;
|
||||||
|
int herkunftProfilmasse;
|
||||||
|
int herkunftMaterial;
|
||||||
|
decimal regeleinzelrohrlaenge;
|
||||||
|
int artAuskleidung;
|
||||||
|
string innenschutz;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string KnotenZulauf { get => knotenZulauf; set => knotenZulauf = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public EKnotenTyp KnotenZulaufTyp { get => knotenZulaufTyp; set => knotenZulaufTyp = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string KnotenAblauf { get => knotenAblauf; set => knotenAblauf = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public EKnotenTyp KnotenAblaufTyp { get => knotenAblaufTyp; set => knotenAblaufTyp = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int Profilhoehe { get => profilhoehe; set => profilhoehe = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int Profilbreite { get => profilbreite; set => profilbreite = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int Profilart { get => profilart; set => profilart = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Material { get => material; set => material = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Kanalart { get => kanalart; set => kanalart = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public Anschlussdaten Anschlussddaten { get => anschlussddaten; set => anschlussddaten = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int HerkunftProfilmasse { get => herkunftProfilmasse; set => herkunftProfilmasse = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int HerkunftMaterial { get => herkunftMaterial; set => herkunftMaterial = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public decimal Regeleinzelrohrlaenge { get => regeleinzelrohrlaenge; set => regeleinzelrohrlaenge = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int ArtAuskleidung { get => artAuskleidung; set => artAuskleidung = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public bool HasGrundleitung
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return anschlussddaten != null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Innenschutz { get => innenschutz; set => innenschutz = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
102
SanSystem/SchnittstelleImporter/XML2006/RZustand.cs
Normal file
102
SanSystem/SchnittstelleImporter/XML2006/RZustand.cs
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public struct Quantifizierung
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public decimal Numerisch;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Text;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
if (Text != null)
|
||||||
|
return Text;
|
||||||
|
if (Numerisch == 0)
|
||||||
|
return "";
|
||||||
|
return Numerisch.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class RZustand
|
||||||
|
{
|
||||||
|
decimal station;
|
||||||
|
string inspektionskode;
|
||||||
|
string charakterisierung1;
|
||||||
|
string charakterisierung2;
|
||||||
|
bool verbindung;
|
||||||
|
Quantifizierung quantifizierung1;
|
||||||
|
Quantifizierung quantifizierung2;
|
||||||
|
string streckenschaden;
|
||||||
|
int streckenschadennr;
|
||||||
|
int positionVon;
|
||||||
|
int positionBis;
|
||||||
|
string kommentar;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public decimal Station { get => station; set => station = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Inspektionskode { get => inspektionskode; set => inspektionskode = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Charakterisierung1 { get => charakterisierung1; set => charakterisierung1 = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Charakterisierung2 { get => charakterisierung2; set => charakterisierung2 = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public bool Verbindung { get => verbindung; set => verbindung = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public Quantifizierung Quantifizierung1 { get => quantifizierung1; set => quantifizierung1 = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public Quantifizierung Quantifizierung2 { get => quantifizierung2; set => quantifizierung2 = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Streckenschaden { get => streckenschaden; set => streckenschaden = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int Streckenschadennr { get => streckenschadennr; set => streckenschadennr = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int PositionVon { get => positionVon; set => positionVon = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public int PositionBis { get => positionBis; set => positionBis = value; }
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Kommentar { get => kommentar; set => kommentar = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
96
SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs
Normal file
96
SanSystem/SchnittstelleImporter/XML2006/Rohrleitung.cs
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SchnittstelleImporter.XML2006
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public class Rohrleitung
|
||||||
|
{
|
||||||
|
ERohrleitungstyp rohrleitungstyp;
|
||||||
|
decimal inspektionslaenge;
|
||||||
|
string inspektionsrichtung;
|
||||||
|
RGrunddaten grunddaten = null;
|
||||||
|
List<RZustand> zustaende = null;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public ERohrleitungstyp Rohrleitungstyp
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return rohrleitungstyp;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
rohrleitungstyp = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public decimal Inspektionslaenge
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return inspektionslaenge;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
inspektionslaenge = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string Inspektionsrichtung
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
switch (inspektionsrichtung)
|
||||||
|
{
|
||||||
|
case "U": return "Gegen Fliessrichtung";
|
||||||
|
case "O": return "In Fliessrichtung";
|
||||||
|
default: return "Fliessrichtungangabe nicht bekannt(" + inspektionsrichtung + ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
inspektionsrichtung = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public List<RZustand> Zustaende
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return zustaende;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
zustaende = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public RGrunddaten Grunddaten
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return grunddaten;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
grunddaten = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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>
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user