prestation/Controleur/ControleurAjaxrequetedemandederogation.php
2025-12-01 18:54:33 +00:00

49 lines
2.2 KiB
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Derogation.php';
class ControleurAjaxrequetedemandederogation extends Controleur
{
private $Derogation;
public function __construct() {
$this->derogation = new Derogation();
}
public function index()
{
// Ligne 1
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
$dateDemande1 = $this->requete->getParametreDate("dateDemande1");
$dateDemande2 = $this->requete->getParametreDate("dateDemande2");
$numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent");
$numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire");
// Ligne 2
$numeroDerogation1 = $this->requete->getParametreFormulaire("numeroDerogation1");
$numeroDerogation2 = $this->requete->getParametreFormulaire("numeroDerogation2");
// Ligne 3
$codeDerogation = $this->requete->getParametreFormulaire("codeDerogation");
$codeReponseDerogation = $this->requete->getParametreFormulaire("codeReponseDerogation");
// Ligne 4
$adherent = $this->requete->getParametreFormulaire("adherent");
$beneficiaire = $this->requete->getParametreFormulaire("beneficiaire");
// FIN Champs
$_SESSION['codePrestataire_C'] = $codePrestataire;
$_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateDemande1");
$_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateDemande2");
$demandederogations = $this->derogation->requetesdemandederogation($codePrestataire, $dateDemande1, $dateDemande2, $numeroAdherent, $numeroBeneficiaire,
$numeroDerogation1, $numeroDerogation2, $codeDerogation, $codeReponseDerogation, $adherent, $beneficiaire) ;
$demandederogations_total = $this->derogation->requetesdemandederogationtotal($codePrestataire, $dateDemande1, $dateDemande2, $numeroAdherent, $numeroBeneficiaire,
$numeroDerogation1, $numeroDerogation2, $codeDerogation, $codeReponseDerogation, $adherent, $beneficiaire) ;
$this->genererVueAjax(array('demandederogations' => $demandederogations, 'demandederogations_total' => $demandederogations_total));
}
}