コード例 #1
0
ファイル: Membre.cs プロジェクト: dupontmaxime/SISCParser
        public bool PosteDansGroupe(string numeroDeGroupe, bool actif = true)
        {
            Palier recherchePalier = new Palier(numeroDeGroupe);

            if (recherchePalier.Groupe == "000" && ListeDesPostes.Exists(p => p.Actif() == actif))
            {
                return(true);
            }
            if (ListeDesPostes.Exists(p => p.PalierDuPoste.Groupe == recherchePalier.Groupe && p.Actif() == actif))
            {
                return(true);
            }
            return(false);
        }
コード例 #2
0
 public Poste(string poste, string palier, string fonction, string debut, string fin)
 {
     NomDePoste      = poste;
     PalierDuPoste   = new Palier(palier);
     FonctionDuPoste = new Fonction(fonction);
     if (debut.Trim().Length != 0)
     {
         Debut = DateTime.ParseExact(debut, "yyyyMMdd", null);
     }
     else
     {
         Debut = null;
     }
     if (fin.Trim().Length != 0)
     {
         Fin = DateTime.ParseExact(fin, "yyyyMMdd", null);
     }
     else
     {
         Fin = null;
     }
 }