示例#1
0
 private bool IsNotEmpty(IRaumRecord r)
 {
     if (string.IsNullOrEmpty(r.Top) || r.Top.Trim() == string.Empty)
     {
         return(false);
     }
     return(true);
 }
示例#2
0
 private bool IsTopWithoutZuschlagAndZubehoer(IRaumRecord r)
 {
     if (IsZubehoer(r))
     {
         return(false);
     }
     if (IsZuschlag(r))
     {
         return(false);
     }
     return(true);
 }
示例#3
0
 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);
     }
 }
示例#4
0
 // 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);
 }
示例#5
0
        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;
        }
示例#6
0
        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);
        }
示例#7
0
 public IKategorieRecord CreateKategorie(IRaumRecord raumRecord)
 {
     return(new KategorieRecord(raumRecord));
 }
示例#8
0
 private bool IsZubehoer(IRaumRecord r)
 {
     return(Regex.IsMatch(r.Begrundung, "Zubehör", RegexOptions.IgnoreCase));
 }
示例#9
0
 private bool IsZuschlag(IRaumRecord r)
 {
     return(Regex.IsMatch(r.Begrundung, "Zuschlag", RegexOptions.IgnoreCase));
 }