facture = new Facture(); $this->ouinonhospit = (new Ouinon())->getListe(); $this->prestation = new Prestationactes(); $this->beneficiaire = new Beneficiaire(); } public function index() { $idBeneficiaire = $_SESSION['idBeneficiaire_C']; $facture = $this->facture->getfactureclassique_temp(); $prestations = $this->facture->getprestationsclassiques_temp(); $garantieadherent_temp = $this->facture->afficher_garantieadherent_temp(); $this->beneficiaire->controlerplafondbeneficiaireannuel($idBeneficiaire); $limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTempAssureur(); $this->genererVueAjax(array('facture' => $facture, 'prestations' => $prestations, 'garantieadherent_temp' => $garantieadherent_temp, 'ouinonhospit' => $this->ouinonhospit, 'limite_beneficiaire' => $limite_beneficiaire)); } public function majprix() { $idPrestation = $this->requete->getParametre("idPrestation"); $valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique"); $this->facture->majprix($idPrestation, $valeurActe); $this->executerAction("index"); } public function majtm() { $tm = $this->requete->getParametreFormulaire("tm", "numerique"); $this->facture->majtm($tm); $this->executerAction("index"); } public function enregistrerfacturetemp() { $prestataire = $this->requete->getParametreFormulaire("prestataire"); $dateFacture = $this->requete->getParametreDate("dateFacture"); $hospitalisation = $this->requete->getParametreFormulaire("hospitalisation"); $observations = $this->requete->getParametreFormulaire("observations"); $tm = $this->requete->getParametreFormulaire("tm", "numerique"); $numeroFacture = $this->requete->getParametreFormulaire("numeroFacture"); $this->facture->enregistrerfacturetemp($prestataire, $dateFacture, $hospitalisation, $observations, $tm, $numeroFacture); $this->executerAction("index"); } public function validerfactureclassique() { $this->facture->validerfactureclassique(); } public function enregistrerpaiementfactureclassique() { $codeModePaiement = $this->requete->getParametreFormulaire("codeModePaiement"); $referencePaiement = $this->requete->getParametreFormulaire("referencePaiement"); $dateComptable = $this->requete->getParametreDate("dateComptable"); $this->facture->enregistrerpaiementfactureclassique($dateComptable, $codeModePaiement, $referencePaiement); } }