From a74fe77e96777354d4ff6e91e6efdf9509330b1f Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Thu, 26 Mar 2026 00:12:10 +0000 Subject: [PATCH] a --- ...ControleurBaremepriseenchargelettrecle.php | 11 +- Modele/Garantiesbaremepriseencharge.php | 13 +++ Vue/Baremepriseenchargelettrecle/index.php | 109 ++---------------- 3 files changed, 34 insertions(+), 99 deletions(-) diff --git a/Controleur/ControleurBaremepriseenchargelettrecle.php b/Controleur/ControleurBaremepriseenchargelettrecle.php index 4959b57c..1b8051a0 100755 --- a/Controleur/ControleurBaremepriseenchargelettrecle.php +++ b/Controleur/ControleurBaremepriseenchargelettrecle.php @@ -18,10 +18,17 @@ class ControleurBaremepriseenchargelettrecle extends Controleur public function index() { $idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge']; - $actes = $this->garantie->getActesGarantieBaremeInitialLettreCle($idBaremePriseEnCharge); + $actes = $this->garantie->getActesGarantieBaremeInitialLettreCle($idBaremePriseEnCharge); + $lettrecles = $this->garantie->getLettreCleBaremeAdd(); + $tmBareme = $this->garantie->getTmBaremeInitial($idBaremePriseEnCharge); + $maxDateEffetBareme = $this->garantie->getMaxDateEffetBaremeInitial($idBaremePriseEnCharge); + $this->genererVue(array( - 'actes' => $actes, + 'actes' => $actes, + 'lettrecles' => $lettrecles, + 'tmBareme' => $tmBareme, + 'maxDateEffetBareme'=> $maxDateEffetBareme, )); } } \ No newline at end of file diff --git a/Modele/Garantiesbaremepriseencharge.php b/Modele/Garantiesbaremepriseencharge.php index 7b45eaae..ada034cc 100755 --- a/Modele/Garantiesbaremepriseencharge.php +++ b/Modele/Garantiesbaremepriseencharge.php @@ -1740,4 +1740,17 @@ class Garantiesbaremepriseencharge extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + public function getLettreCleBaremeAdd() + { + if (est_anglophone()){ + $sql = "CALL sp_lettre_cle_baremeadd_eng(?, ?, ?);"; + }else{ + $sql = "CALL sp_lettre_cle_baremeadd(?, ?, ?);"; + } + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + } diff --git a/Vue/Baremepriseenchargelettrecle/index.php b/Vue/Baremepriseenchargelettrecle/index.php index 7b27fdb9..43007d5c 100755 --- a/Vue/Baremepriseenchargelettrecle/index.php +++ b/Vue/Baremepriseenchargelettrecle/index.php @@ -5,8 +5,6 @@ - -
@@ -25,57 +23,21 @@ - + - - - - + - -
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -86,74 +48,26 @@ NAME="dateEffetActe" value="" required > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -165,9 +79,10 @@ + - + ">