diff --git a/Controleur/ControleurRemboursement.php b/Controleur/ControleurRemboursement.php
index c1b5a29..3d51346 100755
--- a/Controleur/ControleurRemboursement.php
+++ b/Controleur/ControleurRemboursement.php
@@ -178,5 +178,14 @@ class ControleurRemboursement extends Controleur {
$this->genererVue(array('benficiaires' => $benficiaires, 'msgErreurGed' => $msgErreurGed,
'demande' => $demande, 'geds' => $geds, 'banque' => $banque, 'banques' => $banques));
}
+
+ public function enregistrercptbancaire()
+ {
+ $codeBanque = $this->requete->getParametreFormulaire("codeBanque");
+ $numeroCompteBancaire = $this->requete->getParametreFormulaire("numeroCompteBancaire");
+ $intituleCompteBancaire = $this->requete->getParametreFormulaire("intituleCompteBancaire");
+
+ $this->remb->enregistrercptbancaire($codeBanque, $numeroCompteBancaire, $intituleCompteBancaire);
+ }
}
\ No newline at end of file
diff --git a/Js/fonctions.js b/Js/fonctions.js
index 4996cd5..42cd0f4 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -18924,13 +18924,10 @@ function enregistrer_compte_bancaire_assure(){
donnees += '&numeroCompteBancaire='+numeroCompteBancaire;
donnees += '&intituleCompteBancaire='+intituleCompteBancaire;
- alert(donnees);
- return;
-
- $("#div_rdvPossible").html('
' + '' + '
');
+ $("#div_cpt_bancaire").html('' + '' + '
');
$.ajax({
- url: $("#racineWeb").val()+"Rendezvous/rdvpossible/",
+ url: $("#racineWeb").val()+"Remboursement/enregistrercptbancaire/",
type : 'post',
data: donnees,
error: function(errorData) {
diff --git a/Modele/Remboursement.php b/Modele/Remboursement.php
index 9763da8..8ab3678 100755
--- a/Modele/Remboursement.php
+++ b/Modele/Remboursement.php
@@ -88,4 +88,13 @@ class Remboursement extends Modele {
return $liste->fetch(PDO::FETCH_ASSOC);
}
+ public function enregistrercptbancaire($codeBanque, $numeroCompteBancaire, $intituleCompteBancaire)
+ {
+ $idAdherent = $_SESSION['idAdherent_C'];
+
+ $sql = 'Call sp_a_enregistrer_cpt_bancaire(?, ?, ?, ?);';
+
+ $this->executerRequete($sql,array($idAdherent, $codeBanque, $numeroCompteBancaire, $intituleCompteBancaire));
+ }
+
}
\ No newline at end of file
diff --git a/Vue/Remboursement/index.php b/Vue/Remboursement/index.php
index 413aed8..09860e1 100755
--- a/Vue/Remboursement/index.php
+++ b/Vue/Remboursement/index.php
@@ -154,53 +154,55 @@
- ' ' && $banque['intituleCompteBancaire']>' '): ?>
-
-
-
- | = _("Banque") ?> |
- |
+
+ ' ' && $banque['intituleCompteBancaire']>' '): ?>
+
-
-
+
+
+
+
-
-
-
-
-