menuvue = new Menuvueutilisateur(); $this->beneficiaire = new Beneficiaire(); $this->echeancier = new Echeancier_temp(); $this->typeecheancier = new Typeecheancier(); } public function index() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $beneficiaires = $this->beneficiaire->afficherfacturationpolice($debut, $fin); $total_a_facturer = $this->beneficiaire->affichertotalfacturationpolice($debut, $fin); $this->genererVueAjax(array('beneficiaires' => $beneficiaires, 'total_a_facturer' => $total_a_facturer)); } public function selectionnertoutlignesafacturer() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $choix = $this->requete->getParametre("choix"); $this->beneficiaire->selectionnertoutlignesafacturer($choix, $debut, $fin); } public function selectionner() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $idBeneficiairePrimeTemp = $this->requete->getParametre("idBeneficiairePrimeTemp"); $choix = $this->requete->getParametre("choix"); $total_a_facturer = $this->beneficiaire->selectionnerunelignesafacturer($idBeneficiairePrimeTemp, $choix, $debut, $fin); $this->genererVueAjax(array('total_a_facturer' => $total_a_facturer)); } public function initecheancierfacturation() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $idEmission_temp = $this->beneficiaire->initecheancierfacturation($debut, $fin); $_SESSION['idEmission_temp'] = $idEmission_temp; } public function getnbecheancier() { $codeTypeEcheancier = $this->requete->getParametreFormulaire("codeTypeEcheancier"); $nbEcheance_info = $this->typeecheancier->getNbEcheancier($codeTypeEcheancier); $this->genererVueAjax(array('nbEcheance_info' => $nbEcheance_info)); } public function majecheancier() { $idEmission_temp = $_SESSION['idEmission_temp']; $codeTypeEcheancier = $this->requete->getParametreFormulaire("codeTypeEcheancier"); $nbEcheance = $this->requete->getParametreFormulaire("nbEcheance"); $tauxInteret = $this->requete->getParametreFormulaire("tauxInteret"); $this->echeancier->majEcheancier_temp($idEmission_temp, $codeTypeEcheancier, $nbEcheance, $tauxInteret); } public function enregistrer() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $this->echeancier->enregistrer($debut, $fin); } public function majlibelle() { $idEcheancier = $this->requete->getParametreFormulaire("idEcheancier"); $libelleEcheance = $this->requete->getParametreFormulaire("libelleEcheance"); $this->echeancier->majlibelle($idEcheancier, $libelleEcheance); } public function majdatepaiement() { $idEcheancier = $this->requete->getParametreFormulaire("idEcheancier"); $datePaiement = $this->requete->getParametreDate("datePaiement"); $this->echeancier->majdatepaiement($idEcheancier, $datePaiement); } public function majtauxecheance() { $idEcheancier = $this->requete->getParametreFormulaire("idEcheancier"); $tauxEcheance = $this->requete->getParametreFormulaire("tauxEcheance"); $nbEcheance = $this->requete->getParametreFormulaire("nbEcheance"); // var_dump($idEcheancier); $this->echeancier->majtauxecheance($idEcheancier, $tauxEcheance, $nbEcheance); } public function afficherecheancierfacturation() { $typeecheancier = $this->typeecheancier->getListe(); $entete_echeancier = $this->echeancier->getEntete_echeancier_temp(); $echeanciers = $this->echeancier->getEcheancier_temp(); $total_echeancier = $this->echeancier->getTotalEcheancier_temp(); $this->genererVueAjax(array('typeecheancier' => $typeecheancier, 'entete_echeancier' => $entete_echeancier, 'echeanciers' => $echeanciers, 'total_echeancier' => $total_echeancier)); } public function majaccessoiresfacturation() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte", "numerique"); $this->beneficiaire->majaccessoiresfacturation($fraisCarte, $debut, $fin); } public function majprimesfacturation() { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); $idCollege = $this->requete->getParametreFormulaire("idCollege"); $old_primeNette = $this->requete->getParametreFormulaire("old_primeNette", "numerique"); $nv_primeNette = $this->requete->getParametreFormulaire("nv_primeNette", "numerique"); $this->beneficiaire->majprimesfacturation($idCollege, $old_primeNette, $nv_primeNette, $debut, $fin); } public function getparametrestypeecheancier() { $codeTypeEcheancier = $this->requete->getParametreFormulaire("codeTypeEcheancier"); $parametrestypeecheancier = $this->typeecheancier->getparametrestypeecheancier($codeTypeEcheancier) ; $this->genererVueAjax(array('parametrestypeecheancier' => $parametrestypeecheancier)); } }