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

41 lines
1.5 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Motifecxlusionprestation.php';
class ControleurAjaxmajmotifrbcl extends Controleur {
private $motifecxlusionprestation;
public function __construct()
{
$this->motifecxlusionprestation = new Motifecxlusionprestation();
}
public function index()
{
}
public function motifrejet()
{
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
$codeMotifRejet = $this->requete->getParametreFormulaire("codeMotifRejet");
$libellemotifRejet = $this->requete->getParametreFormulaire("libellemotifRejet");
$motifrejets = $this->motifecxlusionprestation->getListe();
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'codeMotifRejet' => $codeMotifRejet,
'libellemotifRejet' => $libellemotifRejet, 'motifrejets' => $motifrejets));
}
public function motifexclusion()
{
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
$codeMotifExclusion = $this->requete->getParametreFormulaire("codeMotifExclusion");
$libelleMotifExclusion = $this->requete->getParametreFormulaire("libelleMotifExclusion");
$motifecxlusions = $this->motifecxlusionprestation->getListe();
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'codeMotifExclusion' => $codeMotifExclusion,
'libelleMotifExclusion' => $libelleMotifExclusion, 'motifecxlusions' => $motifecxlusions));
}
}