a
This commit is contained in:
parent
6aeef44a10
commit
abef50d4dc
|
|
@ -178,5 +178,14 @@ class ControleurRemboursement extends Controleur {
|
||||||
$this->genererVue(array('benficiaires' => $benficiaires, 'msgErreurGed' => $msgErreurGed,
|
$this->genererVue(array('benficiaires' => $benficiaires, 'msgErreurGed' => $msgErreurGed,
|
||||||
'demande' => $demande, 'geds' => $geds, 'banque' => $banque, 'banques' => $banques));
|
'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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -18924,13 +18924,10 @@ function enregistrer_compte_bancaire_assure(){
|
||||||
donnees += '&numeroCompteBancaire='+numeroCompteBancaire;
|
donnees += '&numeroCompteBancaire='+numeroCompteBancaire;
|
||||||
donnees += '&intituleCompteBancaire='+intituleCompteBancaire;
|
donnees += '&intituleCompteBancaire='+intituleCompteBancaire;
|
||||||
|
|
||||||
alert(donnees);
|
$("#div_cpt_bancaire").html('<div class="spinner-responsive">' + '<span><i class="fa fa-spinner"></i></span>' + '</div>');
|
||||||
return;
|
|
||||||
|
|
||||||
$("#div_rdvPossible").html('<div class="spinner-responsive">' + '<span><i class="fa fa-spinner"></i></span>' + '</div>');
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: $("#racineWeb").val()+"Rendezvous/rdvpossible/",
|
url: $("#racineWeb").val()+"Remboursement/enregistrercptbancaire/",
|
||||||
type : 'post',
|
type : 'post',
|
||||||
data: donnees,
|
data: donnees,
|
||||||
error: function(errorData) {
|
error: function(errorData) {
|
||||||
|
|
|
||||||
|
|
@ -88,4 +88,13 @@ class Remboursement extends Modele {
|
||||||
return $liste->fetch(PDO::FETCH_ASSOC);
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -154,53 +154,55 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- div compte bancaire assuré -->
|
<!-- div compte bancaire assuré -->
|
||||||
<?php if($banque['numeroCompteBancaire']>' ' && $banque['intituleCompteBancaire']>' '): ?>
|
<div id="div_cpt_bancaire">
|
||||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' readonly >
|
<?php if($banque['numeroCompteBancaire']>' ' && $banque['intituleCompteBancaire']>' '): ?>
|
||||||
<tbody>
|
<table class="table table-responsive table-condensed" style='font-size:10pt;' readonly >
|
||||||
<tr>
|
<tbody>
|
||||||
<td > <?= _("Banque") ?> </td>
|
<tr>
|
||||||
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="banque" NAME="banque" value="<?=$this->nettoyer($banque['banque'])?>" readonly></td>
|
<td > <?= _("Banque") ?> </td>
|
||||||
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="banque" NAME="banque" value="<?=$this->nettoyer($banque['banque'])?>" readonly></td>
|
||||||
|
|
||||||
<td align="center" > <?= _("Cpte bancaire") ?> </td>
|
<td align="center" > <?= _("Cpte bancaire") ?> </td>
|
||||||
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($banque['numeroCompteBancaire'])?>" readonly ></td>
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($banque['numeroCompteBancaire'])?>" readonly ></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td> <?= _("Intititulé Cpte") ?> </td>
|
<td> <?= _("Intititulé Cpte") ?> </td>
|
||||||
<td colspan="3"> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($banque['intituleCompteBancaire'])?>" readonly ></td>
|
<td colspan="3"> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($banque['intituleCompteBancaire'])?>" readonly ></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td > <?= _("Banque") ?> </td>
|
<td > <?= _("Banque") ?> </td>
|
||||||
<td>
|
<td>
|
||||||
<SELECT style='font-size:10pt;' class="form-control" id="codeBanque" NAME="codeBanque" required>
|
<SELECT style='font-size:10pt;' class="form-control" id="codeBanque" NAME="codeBanque" required>
|
||||||
<?php liste_options($banques, $banque["codeBanque"]); ?>
|
<?php liste_options($banques, $banque["codeBanque"]); ?>
|
||||||
</SELECT>
|
</SELECT>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
||||||
<td align="center" > <?= _("Cpte bancaire") ?> </td>
|
<td align="center" > <?= _("Cpte bancaire") ?> </td>
|
||||||
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($banque['numeroCompteBancaire'])?>" ></td>
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($banque['numeroCompteBancaire'])?>" ></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td> <?= _("Intititulé Cpte") ?> </td>
|
<td> <?= _("Intititulé Cpte") ?> </td>
|
||||||
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($banque['intituleCompteBancaire'])?>" ></td>
|
<td> <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="intituleCompteBancaire" NAME="intituleCompteBancaire" value="<?=$this->nettoyer($banque['intituleCompteBancaire'])?>" ></td>
|
||||||
|
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td>
|
<td>
|
||||||
<input class = "form-control btn btn-primary" type="button" value="<?= _("Enregister Compte bancaire") ?>" onClick="javascript:enregistrer_compte_bancaire_assure();" style='font-size:10pt;' >
|
<input class = "form-control btn btn-primary" type="button" value="<?= _("Enregister Compte bancaire") ?>" onClick="javascript:enregistrer_compte_bancaire_assure();" style='font-size:10pt;' >
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<!-- Bouton Enregistrer -->
|
<!-- Bouton Enregistrer -->
|
||||||
<?php if($idDemandeRemboursement == "0" && $codeEtatDemandeRemboursement == "0"): ?>
|
<?php if($idDemandeRemboursement == "0" && $codeEtatDemandeRemboursement == "0"): ?>
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user