示例#1
0
        /// <summary>
        /// Valider le Livret2 (Créer ou mettre à jour le diplome du candidiat
        /// </summary>
        public void ValiderLivret2()
        {
            // Vérification du diplome
            DiplomeCand oDipCand = oCandidat.lstDiplomes.Where(obj => obj.oDiplome.ID == oDiplome.ID).FirstOrDefault();

            if (oDipCand == null)
            {
                // Le candidat n'a pas le diplome
                oDipCand = oCandidat.AddDiplome(oDiplome);
            }

            if (oDipCand != null)
            {
                // Mise à jour des Domaines de compétences Candidat
                foreach (var item in oDipCand.lstDCCands)
                {
                    //Récupération du DCCand
                    DCLivret oDCLiv = lstDCLivrets.FirstOrDefault(dc => (dc.IsAValider && dc.oDomaineCompetence.ID == item.oDomaineCompetence.ID));
                    if (oDCLiv != null)
                    {
                        if (oDCLiv.Decision.ToUpper().StartsWith("10-"))
                        {
                            item.Statut = "Validé";
                        }
                        if (oDCLiv.Decision.ToUpper().StartsWith("20-"))
                        {
                            item.Statut = "Refusé";
                        }
                        item.ModeObtention = "VAE";
                        item.DateObtention = this.lstJurys[0].DateJury;
                    }
                }
                oDipCand.CalculerStatut();
            }
        }//ValiderLivret2
示例#2
0
 /// <summary>
 /// initialisation des stattus des domaines de compétences du Livret
 /// </summary>
 /// <param name="pdiplomeCand"></param>
 public void InitDCLivrets(DiplomeCand pdiplomeCand)
 {
     foreach (DomaineCompetenceCand oDCCand in pdiplomeCand.lstDCCands)
     {
         DCLivret oDCL = lstDCLivrets.Where(i => i.NomDC == oDCCand.NomDomaineCompetence).FirstOrDefault();
         if (oDCL == null)
         {
             oDCL = new DCLivret(oDCCand.oDomaineCompetence);
             lstDCLivrets.Add(oDCL);
         }
         oDCL.Statut        = oDCCand.Statut;
         oDCL.ModeObtention = oDCCand.ModeObtention;
         oDCL.DateObtention = oDCCand.DateObtention;
         oDCL.Commentaire   = oDCCand.Commentaire;
         if (oDCL.Statut == "")
         {
             if (NumPassage > 1)
             {
                 oDCL.Statut = "Refusé";
             }
             else
             {
                 oDCL.Statut = "En Cours";
             }
         }
         if (oDCL.Statut != "Validé")
         {
             oDCL.IsAValider = true;
         }
     }
 }
示例#3
0
        public DiplomeCand AddDiplome(Diplome pDiplome = null, String pStatut = "Validé")
        {
            DiplomeCand oReturn = null;

            if (pDiplome == null)
            {
                pDiplome = Diplome.getDiplomeParDefaut();
            }
            oReturn        = new DiplomeCand(pDiplome, DateTime.Now);
            oReturn.Statut = pStatut;
//            oReturn.oCandidat = this;
            this.lstDiplomes.Add(oReturn);

            return(oReturn);
        }