This commit is contained in:
KANE LAZENI 2026-01-05 14:21:02 +00:00
parent 85ebc1643a
commit a761c37e61
3 changed files with 13 additions and 5 deletions

View File

@ -218,7 +218,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
public function traiterlignesimportees() public function traiterlignesimportees()
{ {
$idPolice = $_SESSION['idPolice_C']; $idPolice = $_SESSION['idPolice_C'];
$avenants = $this->avenant->getAvenant($idPolice); $avenants = $this->avenant->getAvenantClient($idPolice);
$this->genererVueAjax(array('avenants' => $avenants)); $this->genererVueAjax(array('avenants' => $avenants));
} }

View File

@ -4,7 +4,15 @@ class Avenant extends Modele {
public function getAvenant($idPolice) public function getAvenant($idPolice)
{ {
// $sql = 'call sp_avenants_police(?)'; $sql = 'call sp_avenants_police(?)';
$resultat = $this->executerRequete($sql, array($idPolice));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getAvenantClient($idPolice)
{
$sql = 'call sp_avenants_police_client(?)'; $sql = 'call sp_avenants_police_client(?)';
$resultat = $this->executerRequete($sql, array($idPolice)); $resultat = $this->executerRequete($sql, array($idPolice));

View File

@ -1,8 +1,8 @@
<?php <?php
$this->titre = "Intersanté - Médicaments soumis à entente préalable"; $this->titre = "Intersanté - Mouvements sur les assurés";
?> ?>
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="MEDICAMENTS SOUMIS A ENTENTE PREALABLE" readonly> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="ENTREES SORTIE DES ASSURES" readonly>
<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>