71 lines
2.0 KiB
PHP
71 lines
2.0 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prestationactes_temp.php';
|
|
|
|
class ControleurAjaxafficherverifierfacturepha extends Controleur {
|
|
private $prestations;
|
|
|
|
public function __construct() {
|
|
$this->prestations = new Prestationactes_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C'];
|
|
|
|
$facture_pop = $this->prestations->get_facture_decompte();
|
|
|
|
$prestations = $this->prestations->afficherprestationsfeuille_temp_pha();
|
|
|
|
$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->validerfacturedecpha($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");
|
|
}
|
|
|
|
}
|