diff --git a/Controleur/ControleurAjaxexclureservices.php b/Controleur/ControleurAjaxexclureservices.php index 237c2f3e..19b38f61 100644 --- a/Controleur/ControleurAjaxexclureservices.php +++ b/Controleur/ControleurAjaxexclureservices.php @@ -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() diff --git a/Js/fonctions.js b/Js/fonctions.js index e69d07f6..0fa53f74 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -45602,14 +45602,46 @@ function retirer_exclusion_un_service_prestataire(codeFamilleActe) donnees = 'codePrestataire='+codePrestataire+'&codeFamilleActe='+codeFamilleActe; - $("#div_medecins_prestataire").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_services_prestataire").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); $.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('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxexclureservices/", + type: 'POST', + data: donnees, + success: function(data) { + $('#div_services_prestataire').html(data); }, error: function(data) { }, diff --git a/Vue/Ajaxexclureservices/index.php b/Vue/Ajaxexclureservices/index.php index 0eb89f31..2e746a72 100644 --- a/Vue/Ajaxexclureservices/index.php +++ b/Vue/Ajaxexclureservices/index.php @@ -1,16 +1,16 @@
-
+
- - - + + + - + @@ -36,18 +36,18 @@
=> =>
-
+
- - - + + + - + diff --git a/Vue/Exclureservices/index.php b/Vue/Exclureservices/index.php index 742d81ce..3d1c63ca 100644 --- a/Vue/Exclureservices/index.php +++ b/Vue/Exclureservices/index.php @@ -21,83 +21,6 @@
<= <=
-
- +
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
=>
nettoyer($servicenonexclu['codeFamilleActe']) ?> nettoyer($servicenonexclu['libelleEng']) ?>nettoyer($servicenonexclu['libelle']) ?>
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<=
nettoyer($serviceexclu['codeFamilleActe']) ?> nettoyer($servicenonexclu['libelleEng']) ?>nettoyer($servicenonexclu['libelle']) ?>
-
-