This commit is contained in:
KANE LAZENI 2026-07-15 14:04:14 +00:00
parent 6f828b320f
commit da9983c5c4
4 changed files with 49 additions and 94 deletions

View File

@ -18,11 +18,11 @@ class ControleurAjaxexclureservices extends Controleurrequete
{
$codePrestataire = $_SESSION['codePrestataire_C'];
$medecinsnonaccessibles = $this->prestataire->getmedecinsnonaccessibles($codePrestataire);
$servicesnonexclus = $this->prestataire->getservicesnonexclus($codePrestataire);
$medecinsaccessibles = $this->prestataire->getmedecinsprestataire($codePrestataire);
$servicesexclus = $this->prestataire->getservicesexclus($codePrestataire);
$this->genererVueAjax(array('medecinsnonaccessibles' => $medecinsnonaccessibles, 'medecinsaccessibles' => $medecinsaccessibles));
$this->genererVueAjax(array('servicesnonexclus' => $servicesnonexclus, 'servicesexclus' => $servicesexclus));
}
public function ajouterunmedecinprestataire()

View File

@ -45602,14 +45602,46 @@ function retirer_exclusion_un_service_prestataire(codeFamilleActe)
donnees = 'codePrestataire='+codePrestataire+'&codeFamilleActe='+codeFamilleActe;
$("#div_medecins_prestataire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
$("#div_services_prestataire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
$.ajax({
url: $("#racineWeb").val()+"Exclureservices/retirerexclusionunserviceprestataire/",
url: $("#racineWeb").val()+"Ajaxexclureservices/retirerexclusionunserviceprestataire/",
type: 'POST',
data: donnees,
success: function(data) {
$('#div_medecins_prestataire').html(data);
$('#div_services_prestataire').html(data);
},
error: function(data) {
},
complete: function()
{
}
});
}
function afficher_services_prestataire()
{
codePrestataire=$("#codePrestataire").val();
if (codePrestataire<=" ")
{
v_msg="Veuillez sélectionner un prestataire!";
v_msgEng="Please select a provider!";
alert_ebene(v_msg, v_msgEng);
return;
}
donnees = 'codePrestataire='+codePrestataire;
$("#div_services_prestataire").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/>&nbsp;&nbsp;<span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
$.ajax({
url: $("#racineWeb").val()+"Ajaxexclureservices/",
type: 'POST',
data: donnees,
success: function(data) {
$('#div_services_prestataire').html(data);
},
error: function(data) {
},

View File

@ -1,16 +1,16 @@
<div class="row">
<div id="div_medecin_1" class="col-xs-7" >
<div id="div_service_1" class="col-xs-6" >
<legend> <?= _("Services non exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
<th style='text-align:center'> => </th>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="5"> <button type="button" style="font-size:8pt;" class="form-control btn btn-primary" onclick="javascript:exclure_tous_services_prestataire();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
<th colspan="3"> <button type="button" style="font-size:8pt;" class="form-control btn btn-primary" onclick="javascript:exclure_tous_services_prestataire();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
@ -36,18 +36,18 @@
</table>
</div>
<div id="div_medecin_2" class="col-xs-5" >
<div id="div_service_2" class="col-xs-6" >
<legend> <?= _("Services exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
</tr>
<tr>
<td colspan="4"> <button type="button" style="font-size:8pt;" class="form-control btn btn-danger" onclick="javascript:retirer_exclusion_tous_servives_prestataire();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
<td colspan="3"> <button type="button" style="font-size:8pt;" class="form-control btn btn-danger" onclick="javascript:retirer_exclusion_tous_servives_prestataire();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
</tr>
</thead>

View File

@ -21,83 +21,6 @@
</tbody>
</table>
<div id="div_medecins_prestataire">
<div id="div_services_prestataire">
<?php require "Vue/Ajaxexclureservices/index.php";?>
<div class="row">
<div id="div_medecin_1" class="col-xs-7" >
<legend> <?= _("Services non exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="5"> <button type="button" style="font-size:8pt;" class="form-control btn btn-primary" onclick="javascript:exclure_tous_services_prestataire();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($servicesnonexclus as $servicenonexclu):
$idFamilleActe = $servicenonexclu['idFamilleActe'];
$codeFamilleActe = $servicenonexclu['codeFamilleActe'];
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($servicenonexclu['codeFamilleActe']) ?> </td>
<?php if (est_anglophone()): ?>
<td><?= $this->nettoyer($servicenonexclu['libelleEng']) ?></td>
<?php else: ?>
<td><?= $this->nettoyer($servicenonexclu['libelle']) ?></td>
<?php endif; ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:exclure_un_servive_prestataire('<?=$codeFamilleActe?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_medecin_2" class="col-xs-5" >
<legend> <?= _("Services exlus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Famille Acte") ?> </th>
</tr>
<tr>
<td colspan="4"> <button type="button" style="font-size:8pt;" class="form-control btn btn-danger" onclick="javascript:retirer_exclusion_tous_servives_prestataire();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($servicesexclus as $serviceexclu):
$idExclu = $serviceexclu['idExclu'];
$codeFamilleActe = $serviceexclu['codeFamilleActe'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_exclusion_un_service_prestataire('<?=$codeFamilleActe?>');" ></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>
</table>
</div>
</div>
</div>