From 269a6f075c628f62bcca28ba67e4f8ef6b4cb3cd Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Thu, 22 Jan 2026 15:39:31 +0000 Subject: [PATCH] deff --- Controleur/ControleurAjaxrhvalidationrd.php | 24 +++++++ Js/fonctions.js | 39 ++++++++++- Vue/Ajaxdemanderemboursement/index.php | 4 +- Vue/Ajaxrhvalidationrd/index.php | 75 +++++++++++++++++++++ Vue/Remboursement/index.php | 39 +++++------ Vue/Remboursementclassique/index.php | 12 ++-- Vue/gabarit.php | 2 +- 7 files changed, 168 insertions(+), 27 deletions(-) create mode 100755 Controleur/ControleurAjaxrhvalidationrd.php create mode 100755 Vue/Ajaxrhvalidationrd/index.php diff --git a/Controleur/ControleurAjaxrhvalidationrd.php b/Controleur/ControleurAjaxrhvalidationrd.php new file mode 100755 index 0000000..195e1f1 --- /dev/null +++ b/Controleur/ControleurAjaxrhvalidationrd.php @@ -0,0 +1,24 @@ +remboursement = new Remboursement(); + } + + public function index() { + + $idDemande = $this->requete->getParametreFormulaire("idDemande"); + + $demande = $this->remboursement->getDemandeRemboursement($idDemande); + + $reponsedemande = $this->remboursement->getstatutpaiementrd(); + + $this->genererVueAjax(array('demande' => $demande, 'reponsedemande' => $reponsedemande)); + + } + +} diff --git a/Js/fonctions.js b/Js/fonctions.js index 7ae824a..863485e 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -5662,4 +5662,41 @@ function actualiser_remboursement() { window.location.assign($("#racineWeb" ).val()+"Remboursement/"); -} \ No newline at end of file +} + + +function valider_remboursement(idDemande){ + + $("#div_patienter").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idDemande='+idDemande; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxrhvalidationrd/", + type : 'post', + data: donnees, + error: function(errorData){ + alert("Erreur : "+errorData); + }, + success: function(data) { + //alert("Success : "+data); + $("#div_patienter").html(''); + $('#div_activation').html(data); + //appliquerDataTable(); + $('#div_activation').modal("show"); + + }, + complete: function() { + + } + }); +} \ No newline at end of file diff --git a/Vue/Ajaxdemanderemboursement/index.php b/Vue/Ajaxdemanderemboursement/index.php index ccd69e3..4237f3c 100755 --- a/Vue/Ajaxdemanderemboursement/index.php +++ b/Vue/Ajaxdemanderemboursement/index.php @@ -63,8 +63,8 @@ - - + +
diff --git a/Vue/Ajaxrhvalidationrd/index.php b/Vue/Ajaxrhvalidationrd/index.php new file mode 100755 index 0000000..200dd19 --- /dev/null +++ b/Vue/Ajaxrhvalidationrd/index.php @@ -0,0 +1,75 @@ +nettoyer($demande['id']); + $numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']); + $codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']); + $lien = $this->nettoyer($demande['lien']); + $numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']); + $observation = $this->nettoyer($demande['observation']); + $codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']); + $beneficiaire = $this->nettoyer($demande['beneficiaire']); + $adherent = $this->nettoyer($demande['adherent']); + $numeroAdherent = $this->nettoyer($demande['numeroAdherent']); + $idPolice = $this->nettoyer($demande['idPolice']); + $numeroPolice = $this->nettoyer($demande['numeroPolice']); + + if (est_anglophone()){ + $lien = $this->nettoyer($demande['lienEng']); + } +?> + + diff --git a/Vue/Remboursement/index.php b/Vue/Remboursement/index.php index 804cf62..a0635e3 100755 --- a/Vue/Remboursement/index.php +++ b/Vue/Remboursement/index.php @@ -1,25 +1,25 @@ titre = "Intersanté - Remboursement Direct"; - $idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? "0"; + $idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? "0"; - if($idDemandeRemboursement > "0"){ - $numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']); - $codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']); - $lien = $this->nettoyer($demande['lien']); - $numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']); - $observation = $this->nettoyer($demande['observation']); - $codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']); - $beneficiaire = $this->nettoyer($demande['beneficiaire']); - $adherent = $this->nettoyer($demande['adherent']); - $numeroAdherent = $this->nettoyer($demande['numeroAdherent']); - $idPolice = $this->nettoyer($demande['idPolice']); - $numeroPolice = $this->nettoyer($demande['numeroPolice']); - - if (est_anglophone()){ - $lien = $this->nettoyer($demande['lienEng']); - } - } + + $numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']); + $codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']); + $lien = $this->nettoyer($demande['lien']); + $numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']); + $observation = $this->nettoyer($demande['observation']); + $codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']); + $beneficiaire = $this->nettoyer($demande['beneficiaire']); + $adherent = $this->nettoyer($demande['adherent']); + $numeroAdherent = $this->nettoyer($demande['numeroAdherent']); + $idPolice = $this->nettoyer($demande['idPolice']); + $numeroPolice = $this->nettoyer($demande['numeroPolice']); + + if (est_anglophone()){ + $lien = $this->nettoyer($demande['lienEng']); + } + ?>
@@ -159,4 +159,5 @@
- \ No newline at end of file + + diff --git a/Vue/Remboursementclassique/index.php b/Vue/Remboursementclassique/index.php index e828f0f..818816d 100755 --- a/Vue/Remboursementclassique/index.php +++ b/Vue/Remboursementclassique/index.php @@ -4,14 +4,16 @@
- +
-

+

+
+
@@ -34,7 +36,7 @@
- + @@ -57,4 +59,6 @@
- \ No newline at end of file + + + \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index d6d71a9..3218663 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -663,7 +663,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +