コード例 #1
0
ファイル: SalarieBLO.cs プロジェクト: loic-10/TransFlash
 public bool VoirSiComptePossedeDecouvert(Salarie salarie)
 {
     creditBLO = new CreditBLO();
     if (creditBLO.DecouvertDuClient(salarie.CompteClientEmploye.Client) != null)
     {
         return(true);
     }
     return(false);
 }
コード例 #2
0
ファイル: SalarieBLO.cs プロジェクト: loic-10/TransFlash
        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");
        }
コード例 #3
0
        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");
        }
コード例 #4
0
        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);
        }
コード例 #5
0
ファイル: SalarieBLO.cs プロジェクト: loic-10/TransFlash
        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");
        }
コード例 #6
0
ファイル: SalarieBLO.cs プロジェクト: loic-10/TransFlash
 public void ValiderDecouvert(Credit credit, Employe employe)
 {
     operationBLO = new OperationBLO();
     creditBLO    = new CreditBLO();
 }