Verzeichnisse umgeräumt
This commit is contained in:
14
SewerStammGen.Shared/Contracts/IAuftraggeberDataService.cs
Normal file
14
SewerStammGen.Shared/Contracts/IAuftraggeberDataService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface IAuftraggeberDataService : IDataService<Auftraggeber>
|
||||
{
|
||||
}
|
||||
}
|
||||
18
SewerStammGen.Shared/Contracts/IDataService.cs
Normal file
18
SewerStammGen.Shared/Contracts/IDataService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
public interface IDataService<T>: IDisposable
|
||||
{
|
||||
Task<IEnumerable<T>> GetAll();
|
||||
Task<T> Get(int id);
|
||||
Task<T> Create(T entity);
|
||||
Task<T> Update(T entity);
|
||||
Task<bool> Delete(int id);
|
||||
//T CreateNonAsync(T entity);
|
||||
}
|
||||
}
|
||||
13
SewerStammGen.Shared/Contracts/IExport.cs
Normal file
13
SewerStammGen.Shared/Contracts/IExport.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
internal interface IExport
|
||||
{
|
||||
bool Export();
|
||||
}
|
||||
}
|
||||
13
SewerStammGen.Shared/Contracts/IImport.cs
Normal file
13
SewerStammGen.Shared/Contracts/IImport.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Contracts
|
||||
{
|
||||
internal interface IImport
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
15
SewerStammGen.Shared/Contracts/IProjektDataService.cs
Normal file
15
SewerStammGen.Shared/Contracts/IProjektDataService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface IProjektDataService : IDataService<Projekt>
|
||||
{
|
||||
}
|
||||
}
|
||||
17
SewerStammGen.Shared/Contracts/ISchachtDataService.cs
Normal file
17
SewerStammGen.Shared/Contracts/ISchachtDataService.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using SewerStammGen.Shared.Domain;
|
||||
using Shared.Contracts;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Contracts
|
||||
{
|
||||
public interface ISchachtDataService : IDataService<Schacht>
|
||||
{
|
||||
Task<IEnumerable<Schacht>> GetAllByProjekt(int projektID);
|
||||
Task<IEnumerable<Schacht>> GetAllByProjekt(Projekt projekt);
|
||||
}
|
||||
}
|
||||
18
SewerStammGen.Shared/Domain/Auftraggeber.cs
Normal file
18
SewerStammGen.Shared/Domain/Auftraggeber.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Domain
|
||||
{
|
||||
public class Auftraggeber : DBObject
|
||||
{
|
||||
public string Name { get; set; } = String.Empty;
|
||||
public string Strasse { get; set; } = String.Empty;
|
||||
public string Ort { get; set; } = String.Empty;
|
||||
public string Postleitzahl { get; set; } = String.Empty;
|
||||
public string Ansprechpartner { get; set; } = String.Empty;
|
||||
public string Telefonnummer { get; set; } = String.Empty;
|
||||
}
|
||||
}
|
||||
13
SewerStammGen.Shared/Domain/DBObject.cs
Normal file
13
SewerStammGen.Shared/Domain/DBObject.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Domain
|
||||
{
|
||||
public class DBObject
|
||||
{
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
21
SewerStammGen.Shared/Domain/Kanal.cs
Normal file
21
SewerStammGen.Shared/Domain/Kanal.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Domain
|
||||
{
|
||||
public class Kanal : DBObject
|
||||
{
|
||||
public string Objektbezeichnung { get; set; } = String.Empty;
|
||||
public Schacht? StartSchacht { get; set; }
|
||||
public Schacht? EndSchacht { get; set; }
|
||||
public int DN { get; set; }
|
||||
public string Material { get; set; } = String.Empty;
|
||||
public decimal Haltungslaenge { get; set; }
|
||||
public Projekt? Projekt { get; set; }
|
||||
public EEntwaeserung Entwaesserung { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
23
SewerStammGen.Shared/Domain/Projekt.cs
Normal file
23
SewerStammGen.Shared/Domain/Projekt.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
using SewerStammGen.Shared.Enum;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Domain
|
||||
{
|
||||
public class Projekt : DBObject
|
||||
{
|
||||
public string Projektname { get; set; } = String.Empty;
|
||||
public string Erstelldatum { get; set; } = String.Empty;
|
||||
public string Strasse { get; set; } = String.Empty;
|
||||
public string Ort { get; set; } = String.Empty;
|
||||
public Auftraggeber Auftraggeber { get; set; }
|
||||
public EExportType ExportType { get; set; }
|
||||
public EKodierungssystem Kodierungssystem { get; set; }
|
||||
public IList<Kanal> Kanaele { get; set; } = new List<Kanal>();
|
||||
public IList<Schacht> Schaechte { get; set;} = new List<Schacht>();
|
||||
}
|
||||
}
|
||||
27
SewerStammGen.Shared/Domain/Schacht.cs
Normal file
27
SewerStammGen.Shared/Domain/Schacht.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Domain
|
||||
{
|
||||
public class Schacht : DBObject
|
||||
{
|
||||
public string Objektbezeichnung { get; set; } = String.Empty;
|
||||
public decimal RechtsWert { get; set; }
|
||||
public decimal HochWert { get; set; }
|
||||
public decimal SohlHoehe { get; set; }
|
||||
public decimal DeckelHoehe { get; set; }
|
||||
public Projekt? Projekt { get; set; }
|
||||
public EEntwaeserung Entwaesserung { get; set; }
|
||||
}
|
||||
|
||||
public enum EEntwaeserung
|
||||
{
|
||||
Regenwasser,
|
||||
Schmutzwasser,
|
||||
Mischwasser
|
||||
}
|
||||
}
|
||||
18
SewerStammGen.Shared/Enum/EExportType.cs
Normal file
18
SewerStammGen.Shared/Enum/EExportType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Enum
|
||||
{
|
||||
public enum EExportType
|
||||
{
|
||||
KANDIS4,
|
||||
KANDIS6,
|
||||
M150,
|
||||
XML2006,
|
||||
XML2013,
|
||||
XML2017
|
||||
}
|
||||
}
|
||||
18
SewerStammGen.Shared/Enum/EKodierungssystem.cs
Normal file
18
SewerStammGen.Shared/Enum/EKodierungssystem.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SewerStammGen.Shared.Enum
|
||||
{
|
||||
public enum EKodierungssystem
|
||||
{
|
||||
EN13508_2_2003,
|
||||
EN13508_2_2003_DWA_M_192_2,
|
||||
EN13508_2_2003_ARBEITSHILFEN_ABWASSER,
|
||||
EN13508_2_2011,
|
||||
EN13508_2_2011_DWA_M_192_2,
|
||||
EN13508_2_2011_ARBEITSHILFEN_ABWASSER
|
||||
}
|
||||
}
|
||||
15
SewerStammGen.Shared/SewerStammGen.Shared.csproj
Normal file
15
SewerStammGen.Shared/SewerStammGen.Shared.csproj
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Services\**" />
|
||||
<EmbeddedResource Remove="Services\**" />
|
||||
<None Remove="Services\**" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user