public bool VoirSiComptePossedeDecouvert(Salarie salarie) { creditBLO = new CreditBLO(); if (creditBLO.DecouvertDuClient(salarie.CompteClientEmploye.Client) != null) { return(true); } return(false); }
public void DemanderDecouvert(Salarie salarie, double montantDecouvert, Employe employe) { operationBLO = new OperationBLO(); creditBLO = new CreditBLO(); creditBLO.DemanderCredit(TypeCredit.A_court_terme, 1, salarie.CompteClientEmploye.Client, new Garantie(0), montantDecouvert, employe); operationBLO.AjouterOperation(TypeOperation.Credit, employe, salarie.CompteClientEmploye.Client, new CompteClient("Indefini"), montantDecouvert, "toto tata"); }
public void PayerDette(Remboursement remboursement, Credit credit, double montant, Employe employe) { operationBLO = new OperationBLO(); creditBLO = new CreditBLO(); creditBLO.ReduireMontantCredit(credit, montant, employe); int index = remboursementBLO.IndexOf(remboursement); remboursement.StatutRemboursement = StatutRemboursement.Validé; remboursementBLO[index] = remboursement; operationBLO.AjouterOperation(TypeOperation.Ajout, employe, credit.Client, new CompteClient("Indefini"), montant, "toto tata"); }
public void ValiderRemboursement(Remboursement remboursement, Employe employe) { operationBLO = new OperationBLO(); creditBLO = new CreditBLO(); int index = remboursementBLO.IndexOf(remboursement); remboursement.StatutRemboursement = StatutRemboursement.Validé; remboursementBLO[index] = remboursement; operationBLO.AjouterOperation(TypeOperation.Validation, employe, remboursement.Credit.Client, new CompteClient("Indefini"), remboursement.Montant, "toto tata"); creditBLO.ReduireMontantCredit(remboursement.Credit, remboursement.Montant, employe); }
public void RecevoirVirement(Salarie salarie, double montant, Employe employe) { transactionBLO = new TransactionBLO(); operationBLO = new OperationBLO(); creditBLO = new CreditBLO(); transactionBLO.InitierTransaction(TypeCompte.Courant, TypeTransaction.Dépot, new Epargne(0), salarie.CompteClientEntreprise, salarie.CompteClientEmploye, employe, montant, 0); string codeTransaction = transactionBLO.CodeTransaction(TypeTransaction.Dépot); transactionBLO.ValiderTransactionCompteCourant(transactionBLO.RechercherUneTransaction(codeTransaction), employe); operationBLO.AjouterOperation(TypeOperation.Virement, employe, salarie.CompteClientEmploye.Client, new CompteClient("Indefini"), montant, "toto tata"); }
public void ValiderDecouvert(Credit credit, Employe employe) { operationBLO = new OperationBLO(); creditBLO = new CreditBLO(); }