private bool IsNotEmpty(IRaumRecord r) { if (string.IsNullOrEmpty(r.Top) || r.Top.Trim() == string.Empty) { return(false); } return(true); }
private bool IsTopWithoutZuschlagAndZubehoer(IRaumRecord r) { if (IsZubehoer(r)) { return(false); } if (IsZuschlag(r)) { return(false); } return(true); }
private bool IsAllgForSumme(IRaumRecord r) { if (string.IsNullOrEmpty(r.Top) || r.Top.Trim() == string.Empty) { return(false); } if (Regex.IsMatch(r.Top, "ALLG", RegexOptions.IgnoreCase)) { return(true); } else { return(false); } }
// alte variante private bool IsTopForSumme(IRaumRecord r) { if (string.IsNullOrEmpty(r.Top) || r.Top.Trim() == string.Empty) { return(false); } if (IsAllgForSumme(r)) { return(false); } if (IsPkwForSumme(r)) { return(false); } return(true); }
public KategorieRecord(IRaumRecord raumRecord) { // folgende felder bilden die id einer kategorie Top = raumRecord.Top; Lage = raumRecord.Lage; Widmung = raumRecord.Widmung; Begrundung = raumRecord.Begrundung; RNW = raumRecord.RNW; if (string.IsNullOrEmpty(RNW)) { RNW = "1,00"; } Nutzwert = raumRecord.Nutzwert; ProjektId = raumRecord.ProjektId; }
public bool IsEqualTo(IRaumRecord otherRaumRecord) { if (Top != otherRaumRecord.Top) { return(false); } if (Lage != otherRaumRecord.Lage) { return(false); } if (Raum != otherRaumRecord.Raum) { return(false); } if (Widmung != otherRaumRecord.Widmung) { return(false); } if (RNW != otherRaumRecord.RNW) { return(false); } if (Begrundung != otherRaumRecord.Begrundung) { return(false); } if (!DblEquals(Nutzwert, otherRaumRecord.Nutzwert)) { return(false); } if (!DblEquals(Flaeche, otherRaumRecord.Flaeche)) { return(false); } return(true); }
public IKategorieRecord CreateKategorie(IRaumRecord raumRecord) { return(new KategorieRecord(raumRecord)); }
private bool IsZubehoer(IRaumRecord r) { return(Regex.IsMatch(r.Begrundung, "Zubehör", RegexOptions.IgnoreCase)); }
private bool IsZuschlag(IRaumRecord r) { return(Regex.IsMatch(r.Begrundung, "Zuschlag", RegexOptions.IgnoreCase)); }