college_temp = new College_temp(); $this->oui_non = new Ouinon(); } public function index() { $idCollege = $this->requete->getParametreFormulaire("idCollege"); $college = $this->college_temp->getCollegepoliceId($idCollege); $_SESSION['idCollege'] = $idCollege; $affections = $this->college_temp->getaffections(); $affectionstm = $this->college_temp->getaffectionstm($idCollege); $appliquerPlafond = $this->oui_non->getListe(); $this->genererVueAjax(array('college' => $college, 'affections' => $affections, 'affectionstm' => $affectionstm, 'appliquerPlafond' => $appliquerPlafond)); } public function majtm() { $idAffection = $this->requete->getParametreFormulaire("idAffection"); $tm = $this->requete->getParametreFormulaire("tm"); $this->college_temp->majtmaffectiontm($idAffection, $tm); //$this->executerAction("index"); } public function retirer() { $idAffection = $this->requete->getParametreFormulaire("idAffection"); $this->college_temp->retireraffectiontm($idAffection); //$this->executerAction("index"); } public function ajouter() { $codeAffection = $this->requete->getParametreFormulaire("codeAffection"); $idCollege = $this->requete->getParametreFormulaire("idCollege"); $tm = $this->requete->getParametreFormulaire("tm"); $appliquerPlafond= $this->requete->getParametreFormulaire("appliquerPlafond"); $this->college_temp->ajouteruneaffectiontm($codeAffection, $idCollege, $tm, $appliquerPlafond); //$this->executerAction("index"); } public function initprestation() { $idCollegeTemp = $_SESSION['idCollegeTemp']; $this->college_temp->initPrestationCollege($idCollegeTemp); } // 09-01-2023 public function majgarantie() { $idPrestation = $this->requete->getParametreFormulaire("idPrestation"); $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); $this->college_temp->majgarantieprestatairetm($idPrestation, $codeGarantie); //$this->executerAction("index"); } public function majaffection() { $idPrestation = $this->requete->getParametreFormulaire("idPrestation"); $codeAffection = $this->requete->getParametreFormulaire("codeAffection"); $this->college_temp->majaffectionprestatairetm($idPrestation, $codeAffection); //$this->executerAction("index"); } //10-04-2023 public function majplafond() { $idAffection = $this->requete->getParametreFormulaire("idAffection"); $appliquerPlafond = $this->requete->getParametreFormulaire("appliquerPlafond"); $this->college_temp->majplafondaffectiontm($idAffection, $appliquerPlafond); //$this->executerAction("index"); } }