84 lines
3.1 KiB
PHP
Executable File
84 lines
3.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
|
|
class ControleurAjaxcomposantetarifadherentprestataire extends Controleur
|
|
{
|
|
private $detailtarifacte;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->detailtarifacte = new Detailtarifacte();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe");
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAssure");
|
|
$numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent");
|
|
$adherent = $this->requete->getParametreFormulaire("nomAssure");
|
|
|
|
$nomPolice = $this->requete->getParametreFormulaire("nomPolice");
|
|
$nomCollege = $this->requete->getParametreFormulaire("nomCollege");
|
|
$codeLienParente = $this->requete->getParametreFormulaire("codeLienParente");
|
|
|
|
$_SESSION['codeTarifActe_C'] = $codeTarifActe;
|
|
$_SESSION['idAdherent_C'] = $idAdherent;
|
|
$_SESSION['numeroAdherent_C'] = $numeroAdherent;
|
|
$_SESSION['adherent_C'] = $adherent;
|
|
|
|
$_SESSION['nomPolice_C'] = $nomPolice;
|
|
$_SESSION['nomCollege_C'] = $nomCollege;
|
|
$_SESSION['codeLienParente_C'] = $codeLienParente;
|
|
|
|
|
|
$prestatairesdispo = $this->detailtarifacte->getAdherentPrestatairesDisponible($idAdherent, $codeTarifActe);
|
|
|
|
$prestatairetarif = $this->detailtarifacte->getAdherentPrestatairesTarifes($idAdherent, $codeTarifActe);
|
|
|
|
$this->genererVueAjax(array('prestatairesdispo' => $prestatairesdispo, 'prestatairetarif' => $prestatairetarif));
|
|
}
|
|
|
|
public function ajoutertousprestataires()
|
|
{
|
|
$codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe");
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAssure");
|
|
|
|
$this->detailtarifacte->ajouterTousPrestatairesTarifAdherent($idAdherent, $codeTarifActe);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function ajouterunprestataire()
|
|
{
|
|
$codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe");
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAssure");
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
|
|
$this->detailtarifacte->ajouterUnPrestataireTarifAdherent($idAdherent, $codeTarifActe, $codePrestataire);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function retirertousprestataires()
|
|
{
|
|
$codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe");
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAssure");
|
|
|
|
$this->detailtarifacte->retirerTousPrestatairesTarifAdherent($idAdherent, $codeTarifActe);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function retirerunprestataire()
|
|
{
|
|
$codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe");
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAssure");
|
|
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
|
|
$this->detailtarifacte->retirerUnPrestataireTarifAdherent($idAdherent, $codeTarifActe, $codePrestataire);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
} |