internal bool IsPracownikUkryty(PracownikVM pracownik) { try { if (Brak) { if (pracownik.ListaDokumentow.Any(d => d.GetType() == TypFiltra)) { return(true); } else { return(false); } } else { return(!pracownik.ListaDokumentow.Any(d => d.GetType() == TypFiltra && (Numer == null || Numer.Equals("") || d.Numer.Contains(Numer)) && (dataWaznosciMin == null || d.DataWaznosci >= dataWaznosciMin) && (dataWaznosciMax == null || d.DataWaznosci <= dataWaznosciMax) && (!wygasly || d.DataWaznosci < DateTime.Now) && (!brakDaty || d.DataWaznosci == null))); } } catch (Exception ex) { log.Error(ex); throw ex; } }
public override bool Equals(Object obj) { Fraction fractionObj = obj as Fraction; if (fractionObj == null) { return(false); } else { return(Numer.Equals(fractionObj.Numer) && Denom.Equals(fractionObj.Denom)); } }
internal string Validate() { try { if (Numer == null || Numer.Equals("")) { return("Brak numeru"); } else { return(""); } } catch (Exception ex) { log.Error(ex); throw ex; } }