a
This commit is contained in:
parent
f8770db6c6
commit
42de5c6d93
|
|
@ -20,10 +20,10 @@ class ControleurExclureservices extends Controleur {
|
|||
|
||||
$prestataire = $this->prestataire->getunprestatairebycode($codePrestataire);
|
||||
|
||||
$medecinsnonaccessibles = $this->prestataire->getmedecinsnonaccessibles($codePrestataire);
|
||||
$servicesnonexclus = $this->prestataire->getservicesnonexclus($codePrestataire);
|
||||
|
||||
$medecinsaccessibles = $this->prestataire->getmedecinsprestataire($codePrestataire);
|
||||
$servicesexclus = $this->prestataire->getservicesexclus($codePrestataire);
|
||||
|
||||
$this->genererVue(array('prestataire' => $prestataire, 'medecinsnonaccessibles' => $medecinsnonaccessibles, 'medecinsaccessibles' => $medecinsaccessibles));
|
||||
$this->genererVue(array('prestataire' => $prestataire, 'servicesnonexclus' => $servicesnonexclus, 'servicesexclus' => $servicesexclus));
|
||||
}
|
||||
}
|
||||
|
|
@ -563,5 +563,23 @@ class Prestataire extends Modele {
|
|||
|
||||
$this->executerRequete($sql, array($codeSociete, $codeGestionBon, $codePrestataire, $user));
|
||||
}
|
||||
|
||||
public function getservicesnonexclus($codePrestataire)
|
||||
{
|
||||
$sql = 'CALL sp_get_services_non_exclus(?);';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($codePrestataire));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getservicesexclus($codePrestataire)
|
||||
{
|
||||
$sql = 'call sp_get_services_exclus(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($codePrestataire));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,10 +28,8 @@
|
|||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("No Méd") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Nom") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Prénoms") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Spécialité") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Code") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
|
||||
<th style='text-align:center'> => </th>
|
||||
</tr>
|
||||
|
||||
|
|
@ -42,22 +40,20 @@
|
|||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($medecinsnonaccessibles as $medecinsnonaccessible):
|
||||
$idMedecin = $medecinsnonaccessible['idMedecin'];
|
||||
$codeMedecin = $medecinsnonaccessible['codeMedecin'];
|
||||
<?php foreach ($servicesnonexclus as $servicenonexclu):
|
||||
$idFamilleActe = $servicenonexclu['idFamilleActe'];
|
||||
$codeFamilleActe = $servicenonexclu['codeFamilleActe'];
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'> <?= $this->nettoyer($medecinsnonaccessible['noOrdreMedecin']) ?> </td>
|
||||
<td><?= $this->nettoyer($medecinsnonaccessible['nom']) ?></td>
|
||||
<td><?= $this->nettoyer($medecinsnonaccessible['prenoms']) ?></td>
|
||||
|
||||
<td align='center'> <?= $this->nettoyer($servicenonexclu['codeFamilleActe']) ?> </td>
|
||||
|
||||
<?php if (est_anglophone()): ?>
|
||||
<td><?= $this->nettoyer($medecinsnonaccessible['specialite']) ?></td>
|
||||
<td><?= $this->nettoyer($servicenonexclu['libelleEng']) ?></td>
|
||||
<?php else: ?>
|
||||
<td><?= $this->nettoyer($medecinsnonaccessible['specialiteEng']) ?></td>
|
||||
<td><?= $this->nettoyer($servicenonexclu['libelle']) ?></td>
|
||||
<?php endif; ?>
|
||||
|
||||
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_medecin_prestataire('<?=$codeMedecin?>');" ></td>
|
||||
|
||||
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_medecin_prestataire('<?=$codeFamilleActe?>');" ></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
@ -82,16 +78,20 @@
|
|||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($medecinsaccessibles as $medecinsaccessible):
|
||||
$idMedecin = $medecinsaccessible['idMedecin'];
|
||||
$codeMedecin = $medecinsaccessible['codeMedecin'];
|
||||
<?php foreach ($servicesexclus as $serviceexclu):
|
||||
$idExclu = $serviceexclu['idExclu'];
|
||||
$codeFamilleActe = $serviceexclu['codeFamilleActe'];
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_medecin_prestataire('<?=$codeMedecin?>');" ></td>
|
||||
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_medecin_prestataire('<?=$codeFamilleActe?>');" ></td>
|
||||
|
||||
<td align='center'> <?= $this->nettoyer($medecinsaccessible['noOrdreMedecin']) ?> </td>
|
||||
<td><?= $this->nettoyer($medecinsaccessible['nom']) ?></td>
|
||||
<td><?= $this->nettoyer($medecinsaccessible['prenoms']) ?></td>
|
||||
<td align='center'> <?= $this->nettoyer($serviceexclu['codeFamilleActe']) ?> </td>
|
||||
|
||||
<?php if (est_anglophone()): ?>
|
||||
<td><?= $this->nettoyer($servicenonexclu['libelleEng']) ?></td>
|
||||
<?php else: ?>
|
||||
<td><?= $this->nettoyer($servicenonexclu['libelle']) ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user