36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Ententeprealable.php';
|
|
require_once 'Modele/Prestataire.php';
|
|
require_once 'Modele/Reponseententeprealable.php';
|
|
|
|
class ControleurAjaxententeprealables extends Controleur {
|
|
private $ententeprealable;
|
|
private $prestataire;
|
|
private $reponseententeprealable;
|
|
|
|
public function __construct() {
|
|
$this->ententeprealable = new Ententeprealable();
|
|
$this->prestataire = new Prestataire();
|
|
$this->reponseententeprealable = (new Reponseententeprealable())->getListe();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codeReponseEntentePrealable = $this->requete->getParametreFormulaire("codeReponseEntentePrealable");
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
$debut = $this->requete->getParametreDate("debut_entente");
|
|
$fin = $this->requete->getParametreDate("fin_entente");
|
|
|
|
$_SESSION['p_dEntente_C'] = $debut ;
|
|
$_SESSION['p_d2_C'] = $fin ;
|
|
$_SESSION['etatEntente'] = $codeReponseEntentePrealable;
|
|
|
|
$ententeprealables = $this->ententeprealable->getEntenteprealables($codePrestataire, $codeReponseEntentePrealable, $debut, $fin);
|
|
|
|
$reponseententeprealable = $this->reponseententeprealable;
|
|
|
|
$this->genererVueAjax(array('codeReponseEntentePrealable' => $codeReponseEntentePrealable,'reponseententeprealable' => $reponseententeprealable,'ententeprealables' => $ententeprealables, 'debut' => $debut ,'fin' => $fin ));
|
|
}
|
|
} |