Verzeichnisse umgeräumt

This commit is contained in:
2023-04-13 09:24:40 +02:00
parent 1d649d14cb
commit 047e036442
99 changed files with 8 additions and 1930 deletions

View 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>
{
}
}

View 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);
}
}

View 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();
}
}

View 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
{
}
}

View 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>
{
}
}

View 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);
}
}

View 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;
}
}

View 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; }
}
}

View 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; }
}
}

View 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>();
}
}

View 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
}
}

View 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
}
}

View 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
}
}

View 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>