prestation/Controleur/ControleurAjaxafficherverifierfacture.php
2025-12-05 10:42:46 +00:00

72 lines
2.1 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Prestationactes_temp.php';
class ControleurAjaxafficherverifierfacture extends Controleur {
private $prestations;
public function __construct() {
$this->prestations = new Prestationactes_temp();
}
public function index()
{
$numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C'];
$idFacture = $_SESSION['idFacture_C'];
$facture_pop = $this->prestations->get_facture_decompte();
$prestations = $this->prestations->afficherprestationsfeuille_temp();
$prestations_total = $this->prestations->getprestationsfeuille_temp_total();
$this->genererVueAjax(array('facture_pop' => $facture_pop, 'prestations' => $prestations, 'prestations_total' => $prestations_total));
}
public function validerprestation()
{
$idPrestationactes = $this->requete->getParametreFormulaire("idPrestationactes");
$choix = $this->requete->getParametreFormulaire("choix");
$this->prestations->validerprestation($idPrestationactes, $choix);
$this->executerAction("index");
}
public function validerfacturedec()
{
$idFacture = $this->requete->getParametreFormulaire("idFacture");
$this->prestations->validerfacturedec($idFacture);
}
public function reinitfacturedec()
{
$idFacture = $this->requete->getParametreFormulaire("idFacture");
$this->prestations->reinitfacturedec($idFacture);
$this->executerAction("index");
}
public function majmontantforce()
{
$idPrestationactes = $this->requete->getParametreFormulaire("idPrestationactes");
$montantForce = $this->requete->getParametreFormulaire("montantForce");
$this->prestations->majmontantforce($idPrestationactes, $montantForce);
$this->executerAction("index");
}
public function substituermedicament()
{
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
$this->prescription->annulersubstitutionmedicament($idMedicament);
// $this->executerAction("index");
}
}