Exemplo n.º 1
0
        public Membre(string[] fields) : this()
        {
            CodePermanent = fields.ElementAt(GetFieldIndex("code_permanent"));
            Prenom        = fields.ElementAt(GetFieldIndex("prenom"));
            Nom           = fields.ElementAt(GetFieldIndex("nom"));
            Naissance     = DateTime.ParseExact(fields.ElementAt(GetFieldIndex("naissance")), "yyyyMMdd", null);
            Vaj           = new VAJ(fields.ElementAt(GetFieldIndex("vaj_remplie")),
                                    fields.ElementAt(GetFieldIndex("vaj_effectuee")),
                                    fields.ElementAt(GetFieldIndex("vaj_autorite")));
            string cpjDate = fields.ElementAt(GetFieldIndex("cpj_date"));

            PrioriteJeunesse = null;
            if (cpjDate.Trim().Length > 0)
            {
                PrioriteJeunesse = DateTime.ParseExact(cpjDate, "yyyyMMdd", null);
            }

            string ccaDate = fields.ElementAt(GetFieldIndex("cca_date"));

            CodeConduite = null;
            if (ccaDate.Trim().Length > 0)
            {
                CodeConduite = DateTime.ParseExact(ccaDate, "yyyyMMdd", null);
            }

            ListeDesPostes.Clear();
            ListeDesPostes.AjoutePoste(fields);

            ListeDesFormations.RemplirListe(fields.ElementAt(GetFieldIndex("modules_reussis")));

            ListeDesBrevets.RemplirListe(fields.ElementAt(GetFieldIndex("brevets")));
        }
Exemplo n.º 2
0
 public void AjoutePoste(string[] fields) => ListeDesPostes.AjoutePoste(fields);