Objectliste angefangen

This commit is contained in:
HuskyTeufel
2021-09-16 20:36:55 +02:00
parent 4123cc7aba
commit 0f11ce7f0f
26 changed files with 1127 additions and 21 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DaSaSo.Domain.DesignModel
{
public class SewerObjectsToCountry
{
public string CountryName { get; set; }
public IEnumerable<SewerObjectsToStreet> StreetsOfSewerobjects { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using DaSaSo.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DaSaSo.Domain.DesignModel
{
public class SewerObjectsToStreet
{
public string Streetname { get; set; }
public string CountryName { get; set; }
public IEnumerable<SewerObject> SewerObjects { get; set; }
}
}

View File

@@ -12,6 +12,6 @@ namespace DaSaSo.Domain.Model
public string BuildingSiteNumber { get; set; }
public string Country { get; set; }
public string ContactPerson { get; set; }
public IEnumerable<SewerObjects> SewerObjects { get; set; }
public IEnumerable<SewerObject> SewerObjects { get; set; }
}
}

View File

@@ -0,0 +1,28 @@
namespace DaSaSo.Domain.Model
{
public enum EDamageType
{
Riss = 1,
Bruch = 2,
Scherbe = 4,
Wurzel = 8,
Inkrustation = 16,
Ablagerung = 32,
EinrageneStutzen = 64,
Infiltration = 128
}
public enum EPreparationType
{
CleanedHD = 1,
CleanedMechanisch = 2,
CleanedRoborter = 4,
FaekalienFrei = 8
}
public class SewerDamage : DomainObject
{
public SewerObject SewerObject { get; set; }
public decimal Distance { get; set; }
public EDamageType DamageType { get; set; }
public EPreparationType PreparationType { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace DaSaSo.Domain.Model
{
public class SewerObject : DomainObject
{
public Buildingsite BuildingSite { get; set; }
public string StreetName { get; set; }
public string ObjektName { get; set; }
public string PointFrom { get; set; }
public string PointTo { get; set; }
public string Material { get; set; }
public int DN { get; set; }
public decimal SewerLength { get; set; }
public bool SewerActivated { get; set; }
public bool SewerCleaned { get; set; }
public bool WaterBarrier { get; set; }
public bool PermitNeeded { get; set; }
public bool BuildingsiteBarier { get; set; }
public IEnumerable<SewerDamage> SewerDamages { get; set; }
//Not for Databinding
[NotMapped]
public bool IsSelected { get; set; }
}
}

View File

@@ -1,13 +0,0 @@
namespace DaSaSo.Domain.Model
{
public class SewerObjects : DomainObject
{
public Buildingsite BuildingSite { get; set; }
public string StreetName { get; set; }
public string ObjektName { get; set; }
public string PointFrom { get; set; }
public string PointTo { get; set; }
public int DN { get; set; }
public decimal SewerLength { get; set; }
}
}