예제 #1
0
        public void SupprimerAvaliste(Avaliste avaliste, Employe employe)
        {
            operationBLO = new OperationBLO();
            avalisteBLO.Remove(avaliste);

            operationBLO.AjouterOperation(TypeOperation.Suppression, employe, avaliste.Garantie.Credit.Client, new CompteClient("Indefini"), avaliste.MontantParMois, "toto tata");
        }
예제 #2
0
 public Garantie RechercherAvalise(Avaliste avaliste) => garantieBLO.Find(x =>
                                                                          x.Avaliste == avaliste).FirstOrDefault();
예제 #3
0
        public void AjouterGarantie(Credit credit, string nom, string elementEnGarantie, Avaliste avaliste, string description, double montantEvaluation, Employe employe)
        {
            operationBLO = new OperationBLO();

            fichierStockeBLO = new FichierStockeBLO();

            garantieBLO.Add(new Garantie(new IdentifiantBLO().IdGarantie, DateTime.Now, credit, nom, elementEnGarantie, avaliste, StatutGarantie.En_gage, description, montantEvaluation));

            operationBLO.AjouterOperation(TypeOperation.Ajout, employe, credit.Client, new CompteClient("Indefini"), montantEvaluation, description);

            if (elementEnGarantie != string.Empty)
            {
                fichierStockeBLO.AjouterFichierStocke($"Garantie {nom}", elementEnGarantie, credit.Client, RechercherCredit(new IdentifiantBLO().IdGarantie),
                                                      StatutStockage.Garantie, employe);
            }

            new IdentifiantBLO().AddIdGarantie();
        }