absperrblasen werden gezählt
This commit is contained in:
@@ -8,6 +8,27 @@ namespace XMLParser.Functions
|
||||
{
|
||||
public static class Calculate
|
||||
{
|
||||
public static string CalculateWaterBariedAsString(List<KanalObjekt> inspektionen)
|
||||
{
|
||||
List<KanalObjekt> barieded = inspektionen.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Wasserhaltung != EWasserhaltung.NONE);
|
||||
List<int> DistinctDurchmesser = barieded.Select(s => s.Inspektionsdaten.OptischeInspektion.Rohrleitung.Grunddaten.Profilbreite).Distinct().ToList();
|
||||
|
||||
string result = "#ANZAHLGESAMT# Dichtkissen gesetzt. ";
|
||||
int counter = 0;
|
||||
|
||||
foreach(int durchmesser in DistinctDurchmesser)
|
||||
{
|
||||
List<KanalObjekt> abgesperrt = barieded.FindAll(x => x.Inspektionsdaten.OptischeInspektion.Rohrleitung.Grunddaten.Profilbreite.Equals(durchmesser));
|
||||
result = string.Format("{0} DN{1} in Schacht", result, durchmesser);
|
||||
foreach(KanalObjekt objekt in abgesperrt)
|
||||
{
|
||||
result = string.Format(" {0} {1} ", result, objekt.Stammdaten.Objektbezeichnung);
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
result = result.Replace("#ANZAHLGESAMT#",counter.ToString());
|
||||
return result;
|
||||
}
|
||||
public static Dictionary<ECalculatedResult,decimal> CalculateStreet(List<KanalObjekt> inspektionen)
|
||||
{
|
||||
Dictionary<ECalculatedResult,decimal> result = new Dictionary<ECalculatedResult, decimal>();
|
||||
|
||||
Reference in New Issue
Block a user