Objectliste angefangen
This commit is contained in:
14
DaSaSo.Domain/DesignModel/SewerObjectsToCountry.cs
Normal file
14
DaSaSo.Domain/DesignModel/SewerObjectsToCountry.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
17
DaSaSo.Domain/DesignModel/SewerObjectsToStreet.cs
Normal file
17
DaSaSo.Domain/DesignModel/SewerObjectsToStreet.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
28
DaSaSo.Domain/Model/SewerDamage.cs
Normal file
28
DaSaSo.Domain/Model/SewerDamage.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
27
DaSaSo.Domain/Model/SewerObject.cs
Normal file
27
DaSaSo.Domain/Model/SewerObject.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user