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

54 lines
1.4 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Examen_temp.php';
require_once 'Modele/Feuillemaladie.php';
class ControleurAjaxenregistrerprescriptionexamen extends Controleur {
private $examen;
private $feuille;
public function __construct() {
$this->examen = new Examen_temp();
$this->feuille = new Feuillemaladie();
}
public function index()
{
$this->genererVueAjax();
}
public function enregistrerprescriptionexamen()
{
$contestation = $this->feuille->getContestationFeuille();
if($contestation == "1"){
$this->rediriger("Feuillemaladie");
}
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
$motifExamen = $this->requete->getParametreFormulaire("motifExamen");
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
$this->examen->enregistrerprescriptionexamen($numeroBon, $codeMedecin, $codeGestionBon, $motifExamen);
}
public function majmotifexamen()
{
$motifExamen = $this->requete->getParametreFormulaire("motifExamen");
$this->examen->majmotifexamen($motifExamen);
}
public function videroptiquetemp()
{
$this->optique->videroptiquetemp();
}
public function envoieprescriptionexamen()
{
$this->examen->envoieprescriptionexamen();
}
}