diff --git a/Controleur/ControleurAjaxbaremelettrecle.php b/Controleur/ControleurAjaxbaremelettrecle.php
index 1f57da4c..17765fda 100755
--- a/Controleur/ControleurAjaxbaremelettrecle.php
+++ b/Controleur/ControleurAjaxbaremelettrecle.php
@@ -81,4 +81,19 @@ class ControleurAjaxbaremelettrecle extends Controleur {
$this->garantie->supprimerActeBaremeInitialLettreCle($idActe);
}
+
+ public function detailactes()
+ {
+ $idActesbaremeinitiallettrecle = $this->requete->getParametreFormulaire("idActesbaremeinitiallettrecle");
+
+ $_SESSION['idActesbaremeinitiallettrecle'] = $idActesbaremeinitiallettrecle;
+
+ $detailactes = $this->garantie->getActesGarantieBaremeInitialLettreCleDetailacte($idActesbaremeinitiallettrecle);
+
+ $this->genererVueAjax(array
+ (
+ 'detailactes' => $detailactes
+ ));
+ }
+
}
\ No newline at end of file
diff --git a/Js/fonctions.js b/Js/fonctions.js
index 426958a3..6c55765c 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -92108,3 +92108,94 @@ function actualiser_bareme_acte_lettre_cle()
});
}
+
+function detail_baremeacte_lettre_cle(idActesbaremeinitiallettrecle)
+{
+ alert("detail_baremeacte_lettre_cle => "+idActesbaremeinitiallettrecle);
+ return;
+
+ donnees = 'idBaremePriseEnCharge='+idBaremePriseEnCharge;
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxbaremelettrecle/detailactes/",
+ type : 'post',
+ data: donnees,
+ error: function(errorData){
+ //alert("Erreur : "+errorData);
+ },
+ success: function(data) {
+ //alert("Success : "+data);
+ $('#div_detail_bareme').html(data);
+ },
+ complete: function() {
+
+ }
+ });
+
+}
+
+function supprimer_baremeacte_lettre_cle_detail(adminProd, idActe)
+{
+ alert("supprimer_baremeacte_lettre_cle_detail => "+idActe);
+ return;
+
+ if (adminProd != "1"){
+ v_msg="Vous n'\u00eates pas autoris\u00e9!";
+ v_msgEng="You are not authorized!";
+ alert_ebene(v_msg, v_msgEng);
+
+ return;
+ }
+
+ v_msg="Confirmez-vous cette suppression?";
+ v_msgEng="Do you confirm this deletion?";
+
+
+ confirm_ebene(v_msg, v_msgEng)
+ .then((isConfirmed) => {
+ if (isConfirmed) {
+ // L'utilisateur a confirmé
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxbaremelettrecle/supprimerdetailacte/",
+ type : 'post',
+ data: "idActe="+idActe,
+ error: function(errorData) {
+ },
+ success: function(data) {
+ },
+ complete: function() {
+ idActesbaremeinitiallettrecle = $("#idActesbaremeinitiallettrecle").val();
+
+ detail_baremeacte_lettre_cle(idActesbaremeinitiallettrecle);
+ }
+ });
+ } else {
+ // L'utilisateur a annulé
+ console.log("Confirmation refusée");
+ }
+ });
+
+}
+
+function actualiser_bareme_acte_lettre_cle_detail()
+{
+ alert("actualiser_bareme_acte_lettre_cle => "+idBaremePriseEnCharge);
+ return;
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxbaremelettrecle/",
+ type : 'post',
+ // data: donnees,
+ error: function(errorData){
+ //alert("Erreur : "+errorData);
+ },
+ success: function(data) {
+ //alert("Success : "+data);
+ $('#div_detail_bareme').html(data);
+ },
+ complete: function() {
+
+ }
+ });
+
+}
diff --git a/Modele/Garantiesbaremepriseencharge.php b/Modele/Garantiesbaremepriseencharge.php
index f725f1c3..7b45eaae 100755
--- a/Modele/Garantiesbaremepriseencharge.php
+++ b/Modele/Garantiesbaremepriseencharge.php
@@ -1731,4 +1731,13 @@ class Garantiesbaremepriseencharge extends Modele {
$this->executerRequete($sql, array($idActe, $user));
}
+ public function getActesGarantieBaremeInitialLettreCleDetailacte($idActesbaremeinitiallettrecle)
+ {
+ $sql = "call sp_afficher_lettre_cle_bareme_detail_actes(?);";
+
+ $resultat = $this->executerRequete($sql, array($idActesbaremeinitiallettrecle));
+
+ return $resultat->fetchAll(PDO::FETCH_ASSOC);
+ }
+
}
diff --git a/Vue/Ajaxbaremelettrecle/detailactes.php b/Vue/Ajaxbaremelettrecle/detailactes.php
new file mode 100755
index 00000000..ec6b2dd9
--- /dev/null
+++ b/Vue/Ajaxbaremelettrecle/detailactes.php
@@ -0,0 +1,65 @@
+
+
+
+
+ "0"): ?>
+
+
+
+ | = _("Acte") ?> |
+ = _("Effet") ?> |
+ = _("Plafond Acte") ?> |
+ = _("TM") ?> |
+ = _("Actif") ?> |
+ = _("Suppr") ?> |
+
+
+
+
+ nettoyer($v['id']);
+ $supprime = $v['supprime'];
+ $libelle = $this->nettoyer($v['libelle']);
+
+ if (est_anglophone())
+ {
+ $libelle = $this->nettoyer($v['libelleEng']);
+ }
+
+ if($this->nettoyer($v['actif'])=="1"){
+ $actif = "Oui";
+ }else{
+ $actif = "Non";
+ }
+ ?>
+
+
+
+
+
+
+ | = $libelle ?> |
+ = datefr($this->nettoyer($v['dateEffet'])); ?> |
+ = format_N($this->nettoyer($v['forfaitPlafond']));?> |
+ = $this->nettoyer($v['ticketModerateur']);?> |
+ = $actif;?> |
+
+
+
+ |
+
+ |
+
+
+
+
+
+
+
+ = _("Aucune ligne insérée") ?>
+
+
\ No newline at end of file
diff --git a/Vue/Ajaxbaremelettrecle/index.php b/Vue/Ajaxbaremelettrecle/index.php
index f77d72a7..6099d7b0 100755
--- a/Vue/Ajaxbaremelettrecle/index.php
+++ b/Vue/Ajaxbaremelettrecle/index.php
@@ -3,15 +3,10 @@
?>
"0"): ?>
- DETAIL Ajaxbaremelettrecle
-
-
- | = _("LIGNES PARAMETREES SUR ACTE") ?> |
-
-
+ | = _("Détail") ?> |
= _("Lettre Clé") ?> |
= _("Désignation") ?> |
= _("Effet") ?> |
@@ -45,6 +40,12 @@
+ |
+
+ |
+
= $this->nettoyer($v['lettreCle']); ?> |
= $libelle ?> |
= datefr($this->nettoyer($v['dateEffet'])); ?> |
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index f19074ac..88341c63 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -976,7 +976,7 @@
-
+