This commit is contained in:
KANE LAZENI 2026-07-15 14:12:26 +00:00
parent da9983c5c4
commit ee86316875
3 changed files with 132 additions and 7 deletions

View File

@ -1,4 +1,4 @@
<?php
$servicenonexclu<?php
require_once 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
@ -28,9 +28,9 @@ class ControleurAjaxexclureservices extends Controleurrequete
public function ajouterunmedecinprestataire()
{
$codePrestataire = $_SESSION['codePrestataire_C'];
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
$this->prestataire->ajouterunmedecinprestataire($codePrestataire, $codeMedecin);
$this->prestataire->ajouterunmedecinprestataire($codePrestataire, $codeFamilleActe);
$this->executerAction("index");
}
@ -57,9 +57,9 @@ class ControleurAjaxexclureservices extends Controleurrequete
public function retirerunmedecinprestataire()
{
$codePrestataire = $_SESSION['codePrestataire_C'];
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
$this->prestataire->retirerunmedecinprestataire($codePrestataire, $codeMedecin);
$this->prestataire->retirerunmedecinprestataire($codePrestataire, $codeFamilleActe);
$this->executerAction("index");
}

View File

@ -27072,7 +27072,6 @@ function ajouter_tous_medecins_prestataire()
}
}
function retirer_tous_medecins_prestataire()
{
codePrestataire=$("#codePrestataire").val();
@ -45589,6 +45588,9 @@ function afficher_demande_fraisfun(idBeneficiaire, no) {
// 15/07/2026 => exclusion services
function retirer_exclusion_un_service_prestataire(codeFamilleActe)
{
alert("retirer_exclusion_un_service_prestataire");
return;
codePrestataire=$("#codePrestataire").val();
if (codePrestataire<=" ")
@ -45621,6 +45623,9 @@ function retirer_exclusion_un_service_prestataire(codeFamilleActe)
function afficher_services_prestataire()
{
alert("afficher_services_prestataire");
return;
codePrestataire=$("#codePrestataire").val();
if (codePrestataire<=" ")
@ -45650,3 +45655,123 @@ function afficher_services_prestataire()
}
});
}
function exclure_tous_services_prestataire()
{
alert("exclure_tous_services_prestataire");
return;
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;
v_msg="Attention, cela va ajouter tous les médecins disponibles pour ce prestataire! Confirmez-vous?";
v_msgEng="Be careful, this will add all the doctors available for this provider! Do you confirm?";
if(confirm_ebene(v_msg, v_msgEng))
{
$("#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/ajoutertousmedecinsprestataire/",
type: 'POST',
data: donnees,
success: function(data) {
$('#div_services_prestataire').html(data);
},
error: function(data) {
},
complete: function() {
}
});
}
}
function exclure_un_servive_prestataire(codeFamilleActe)
{
alert("exclure_un_servive_prestataire");
return;
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+'&codeFamilleActe='+codeFamilleActe;
$("#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/ajouterunmedecinprestataire/",
type: 'POST',
data: donnees,
success: function(data) {
$('#div_services_prestataire').html(data);
},
error: function(data) {
},
complete: function()
{
}
});
}
function retirer_exclusion_tous_servives_prestataire()
{
alert("retirer_exclusion_tous_servives_prestataire");
return;
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;
v_msg="Attention, cela va vider ce prestataire de tous ces médecins! Confirmez-vous?";
v_msgEng="Be careful, this will empty this provider of all these doctors! Do you confirm?";
if(confirm_ebene(v_msg, v_msgEng))
{
$("#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/retirertousmedecinsprestataire/",
type: 'POST',
data: donnees,
success: function(data)
{
$('#div_services_prestataire').html(data);
},
error: function(data)
{
},
complete: function()
{
}
});
}
}

View File

@ -258,7 +258,7 @@
<script src="Js/datepicker-fr.js"></script>
<?php endif; ?>
<script src="Js/fonctions.js?ver=2026.05.04.08"></script>
<script src="Js/fonctions.js?ver=2026.07.15.00"></script>
<script src="<?= $_SESSION['dossierSociete'].'/Js/societe.js' ?>" > </script>