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,
|
||||
'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 += '&intituleCompteBancaire='+intituleCompteBancaire;
|
||||
|
||||
alert(donnees);
|
||||
return;
|
||||
|
||||
$("#div_rdvPossible").html('<div class="spinner-responsive">' + '<span><i class="fa fa-spinner"></i></span>' + '</div>');
|
||||
$("#div_cpt_bancaire").html('<div class="spinner-responsive">' + '<span><i class="fa fa-spinner"></i></span>' + '</div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Rendezvous/rdvpossible/",
|
||||
url: $("#racineWeb").val()+"Remboursement/enregistrercptbancaire/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -154,53 +154,55 @@
|
|||
<?php endif; ?>
|
||||
|
||||
<!-- div compte bancaire assuré -->
|
||||
<?php if($banque['numeroCompteBancaire']>' ' && $banque['intituleCompteBancaire']>' '): ?>
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' readonly >
|
||||
<tbody>
|
||||
<tr>
|
||||
<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>
|
||||
<div id="div_cpt_bancaire">
|
||||
<?php if($banque['numeroCompteBancaire']>' ' && $banque['intituleCompteBancaire']>' '): ?>
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' readonly >
|
||||
<tbody>
|
||||
<tr>
|
||||
<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><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="numeroCompteBancaire" NAME="numeroCompteBancaire" value="<?=$this->nettoyer($banque['numeroCompteBancaire'])?>" readonly ></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td > <?= _("Banque") ?> </td>
|
||||
<td>
|
||||
<SELECT style='font-size:10pt;' class="form-control" id="codeBanque" NAME="codeBanque" required>
|
||||
<?php liste_options($banques, $banque["codeBanque"]); ?>
|
||||
</SELECT>
|
||||
</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>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else: ?>
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td > <?= _("Banque") ?> </td>
|
||||
<td>
|
||||
<SELECT style='font-size:10pt;' class="form-control" id="codeBanque" NAME="codeBanque" required>
|
||||
<?php liste_options($banques, $banque["codeBanque"]); ?>
|
||||
</SELECT>
|
||||
</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>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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 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>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<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> </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;' >
|
||||
</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;' >
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Bouton Enregistrer -->
|
||||
<?php if($idDemandeRemboursement == "0" && $codeEtatDemandeRemboursement == "0"): ?>
|
||||
<div class="col-12">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user