From eb3af87f1d867ff399d47f0e38389a016a66ac16 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Mon, 12 Jan 2026 19:35:34 +0000 Subject: [PATCH] fg --- Js/fonctions.js | 209 +++++++++++++++++ Vue/Ajaxfactureconspop/feuillemaladie.php | 260 +++++++++++---------- Vue/Ajaxfactureconspop/geds.php | 100 +++++--- Vue/Ajaxfactureconspop/medicaments.php | 129 ++++++---- Vue/Ajaxfactureconspop/prestationactes.php | 163 ++++++++----- Vue/Ajaxfactureconspop/verres.php | 101 +++++--- Vue/gabarit.php | 2 +- 7 files changed, 666 insertions(+), 298 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index f3104ad..c9a9dae 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -3922,3 +3922,212 @@ function consulter_facture_pop(idFacture) } }); } + +function consulterfacturefeuillemaladie_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/feuillemaladie/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureprestationactes_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/prestationactes/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfacturemedicaments_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/medicaments/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureverres_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/verres/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} + +function consulterfactureged_pop() +{ + idFacture = $("#idFacture").val(); + + $("#div_facture_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + donnees = 'idFacture='+idFacture; + + if(isNaN(idFacture)) + { + v_msg="Valeur numérique exigée!"; + v_msgEng="Numeric value required!"; + alert_ebene(v_msg, v_msgEng); + + $("#idFacture").val("0"); + $("#idFacture").focus(); + return; + } + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxfactureconspop/geds/", + type: 'POST', + data: donnees, + success: function(data) { + $("#div_facture_detail").html(data); + }, + error: function(data) { + }, + complete: function() { + } + }); +} \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/feuillemaladie.php b/Vue/Ajaxfactureconspop/feuillemaladie.php index 321b35d..7faa8cd 100644 --- a/Vue/Ajaxfactureconspop/feuillemaladie.php +++ b/Vue/Ajaxfactureconspop/feuillemaladie.php @@ -1,134 +1,136 @@ -
- nettoyer($feuillemaladie['codeTypeAffection']); +
+ nettoyer($feuillemaladie['libelleAffectionEng']); + $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultationEng']); + } else { + $libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection']); + $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultation']); + } + + if($AffectionVisible != "1") { + $libelleAffection = $this->nettoyer($feuillemaladie['codeAffection']); + } + ?> - $codeAffection = $this->nettoyer($feuillemaladie['codeAffection']); +
+ + +
+ +
+
+
+
+ +
nettoyer($feuillemaladie['numeroFeuilleMaladie']) ?>
+
+
+ +
nettoyer($feuillemaladie['dateConsultation'])) ?>
+
+
+ +
nettoyer($feuillemaladie['prestataire']) ?>
+
+
+ +
nettoyer($feuillemaladie['medecinConsultation']) ?>
+
+
- if (est_anglophone()) - { - $libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng']); - $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultationEng']); - } - else - { - $libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection']); - $raisonconsultation = $this->nettoyer($feuillemaladie['raisonconsultation']); - } - - $AffectionVisible = $_SESSION['AffectionVisible']; - - if($AffectionVisible!="1") - { - $libelleAffection = $codeAffection; - } - ?> - " disabled > - - - - - - - - - +
+ $feuillemaladie['numeroBonConsultation'], + 'Phar.' => $feuillemaladie['numeroBonOrdonnance'], + 'Hosp.' => $feuillemaladie['numeroBonHospitalisation'], + 'Opt.' => $feuillemaladie['numeroBonOptique'], + 'Exam.' => $feuillemaladie['numeroBonExamen'], + 'Kine.' => $feuillemaladie['numeroBonKine'] + ]; + foreach($bons as $lbl => $val): ?> +
+
+
+
nettoyer($val) ?: '-' ?>
+
+
+ +
- - +
+
+ +
+
+
+ +
+ +
+
+
+ + - - - +
+
+ + + + + + + + + + + + + + + nettoyer($diagnostic['supprime']) == '1'); + $rowStyle = $isSupprime ? 'style="background-color: #fff5f5; opacity: 0.7;"' : ''; + + $codeAff = $this->nettoyer($diagnostic['codeAffection']); + $libAff = est_anglophone() ? $this->nettoyer($diagnostic['libelleAffectionEng']) : $this->nettoyer($diagnostic['libelleAffection']); + + if($AffectionVisible != "1") { $libAff = $codeAff; } + else { $libAff .= " $codeAff"; } + ?> + > + + + + + + + + +
+ nettoyer($diagnostic['dateSysteme'])) ?> + + + + + + nettoyer($diagnostic['codeUtilisateur']) ?> + + nettoyer($diagnostic['userSuppression']) ?> + + nettoyer($diagnostic['heueSuppression'])) ?> +
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - nettoyer($diagnostic['id']); - $supprime = $this->nettoyer($diagnostic['supprime']); - - $codeAffection = $this->nettoyer($diagnostic['codeAffection']); - - if (est_anglophone()) - { - $libelleAffection = $this->nettoyer($diagnostic['libelleAffectionEng'])." => ".$codeAffection; - } - else - { - $libelleAffection = $this->nettoyer($diagnostic['libelleAffection'])." => ".$codeAffection; - } - - $AffectionVisible = $_SESSION['AffectionVisible']; - if($AffectionVisible!="1") - { - $libelleAffection = $codeAffection; - } - ?> - - - - - - - - - - - - - - -
Date Diagnostic User
User Date
nettoyer($diagnostic['dateSysteme'])) ?> nettoyer($diagnostic['codeUtilisateur']) ?> nettoyer($diagnostic['userSuppression']) ?> nettoyer($diagnostic['heueSuppression'])) ?>
- -
+ \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/geds.php b/Vue/Ajaxfactureconspop/geds.php index 5f051df..ef98615 100644 --- a/Vue/Ajaxfactureconspop/geds.php +++ b/Vue/Ajaxfactureconspop/geds.php @@ -1,29 +1,75 @@ -
+
+
+
+
+ + + + +
-
- - - - - - - - - - nettoyer($ged['idGed']); - $cheminFichier = $this->nettoyer($ged['cheminFichier']); - ?> - - - - - - - -
Date
nettoyer($ged['dateSysteme'])) ?>nettoyer($ged['nomOrigine']) ?> - -
-
+
+ + + + + + + + + + + + + + + nettoyer($ged['idGed']); + $cheminFichier = $this->nettoyer($ged['cheminFichier']); + $nomFichier = $this->nettoyer($ged['nomOrigine']); + + // Détection de l'icône selon l'extension + $extension = strtolower(pathinfo($nomFichier, PATHINFO_EXTENSION)); + $icon = "fa-file-lines"; + if(in_array($extension, ['jpg', 'jpeg', 'png'])) $icon = "fa-file-image text-info"; + if($extension == 'pdf') $icon = "fa-file-pdf text-danger"; + ?> + + + + + + + + +
+ +
+
nettoyer($ged['dateSysteme'])) ?>
+
+
+
+ +
+ + ID: # +
+
+
+ "> + + +
+
+
+
+
-
+ \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/medicaments.php b/Vue/Ajaxfactureconspop/medicaments.php index eb8774e..8f6ac98 100644 --- a/Vue/Ajaxfactureconspop/medicaments.php +++ b/Vue/Ajaxfactureconspop/medicaments.php @@ -1,52 +1,85 @@ -
- +
+ - " disabled > +
+ + +
- - - - - - - - - - - - - +
+
Date
+ + + + + + + + + + + + + nettoyer($medicament['ententePrealable']); + $libelle = $this->nettoyer($medicament['libelleMedicament']); + $code = $this->nettoyer($medicament['codeMedicament']); - nettoyer($medicament['ententePrealable']); - $libelleMedicament = $this->nettoyer($medicament['libelleMedicament']); - $codeMedicament = $this->nettoyer($medicament['codeMedicament']); + if($actVisible != "1") { $libelle = $code; } - if($actVisible!="1") - { - $libelleMedicament = $codeMedicament; - } - ?> - - - - - - - - - - - - - - - - - - - -
nettoyer($medicament['dateSysteme'])) ?> nettoyer($medicament['valeurActe'])) ?> nettoyer($medicament['quantite']) ?> nettoyer($medicament['fraisReel'])) ?> nettoyer($medicament['montantTm'])) ?> nettoyer($medicament['montantArembourser'])) ?>
-
+ // Logique de statut pour l'entente préalable + $statusLabel = ""; + $rowClass = ""; + + switch($entente) { + case '1': // Accordé + $statusLabel = ''; + break; + case '2': // En attente / Attention + $statusLabel = ''; + break; + case '9': // Refusé + $statusLabel = ''; + $rowClass = "table-danger opacity-75"; + break; + } + ?> + + + nettoyer($medicament['dateSysteme'])) ?> + + +
+ +
+
+ +
Code:
+ +
+
+ + nettoyer($medicament['valeurActe'])) ?> + nettoyer($medicament['quantite']) ?> + nettoyer($medicament['fraisReel'])) ?> + nettoyer($medicament['montantTm'])) ?> + + nettoyer($medicament['montantArembourser'])) ?> + + + + + +
+ +
+ Accordé + En attente + Refusé / Hors panier +
+
+ + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/prestationactes.php b/Vue/Ajaxfactureconspop/prestationactes.php index 20c3665..1bd3da3 100644 --- a/Vue/Ajaxfactureconspop/prestationactes.php +++ b/Vue/Ajaxfactureconspop/prestationactes.php @@ -1,66 +1,105 @@ -
- +
+ - " disabled > +
+ + +
- - - - - - - - - - - - - - - +
+
Date Val
+ + + + + + + + + + + + + + + nettoyer($prestation['codeTypePrestation']); + $entente = $this->nettoyer($prestation['ententePrealable']); + $auto = $this->nettoyer($prestation['autorisation']); + $valide = $this->nettoyer($prestation['valide']); + + $codeActe = $this->nettoyer($prestation['codeActe']); + $libelleActe = est_anglophone() ? $this->nettoyer($prestation['libelleActeEng']) : $this->nettoyer($prestation['libelleActe']); - nettoyer($prestation['codeTypePrestation']); - $ententePrealable = $this->nettoyer($prestation['ententePrealable']); - $autorisation = $this->nettoyer($prestation['autorisation']); - - $codeActe = $this->nettoyer($prestation['codeActe']); - if (est_anglophone()) - { - $libelleActe = $this->nettoyer($prestation['libelleActeEng']); - } - else - { - $libelleActe = $this->nettoyer($prestation['libelleActe']); - } + if($actVisible != "1") { $libelleActe = $codeActe; } - if($actVisible!="1") - { - $libelleActe = $codeActe; - } - ?> - - - - - - - - - - - - - - - - - - - - - -
Val.
nettoyer($prestation['dateSysteme'])) ?> nettoyer($prestation['valeurActe'])) ?> nettoyer($prestation['quantite']) ?> nettoyer($prestation['fraisReel'])) ?> nettoyer($prestation['montantTm'])) ?> nettoyer($prestation['montantArembourser'])) ?> nettoyer($prestation['valide']) ?>
-
+ // Logique de statut (Entente ou Autorisation) + $rowClass = ""; + $statusIcon = ""; + + if($entente == '9' || $auto == '9') { + $rowClass = "table-danger opacity-75"; + $statusIcon = ''; + } elseif($entente == '2' || $auto == '2') { + $rowClass = "table-warning bg-opacity-10"; + $statusIcon = ''; + } elseif($entente == '1' || $auto == '1') { + $statusIcon = ''; + } + ?> + + + nettoyer($prestation['dateSysteme'])) ?> + + + + + +
+ +
+ + +
Code:
+ +
+
+ + nettoyer($prestation['valeurActe'])) ?> + nettoyer($prestation['quantite']) ?> + nettoyer($prestation['fraisReel'])) ?> + nettoyer($prestation['montantTm'])) ?> + + nettoyer($prestation['montantArembourser'])) ?> + + + + + + + + + + + + +
+ +
+
+ + + +
+
+ +
+
+ + + \ No newline at end of file diff --git a/Vue/Ajaxfactureconspop/verres.php b/Vue/Ajaxfactureconspop/verres.php index b48a6c0..3488484 100644 --- a/Vue/Ajaxfactureconspop/verres.php +++ b/Vue/Ajaxfactureconspop/verres.php @@ -1,35 +1,74 @@ -
- +
+ - " disabled > +
+ + +
- - - - - - - - - +
+
Date
+ + + + + + + + + + + + + + nettoyer($verre['libelleVerre']); + $codeOptique = $this->nettoyer($verre['codeOptique']); - nettoyer($verre['libelleVerre']); - $codeOptique = $this->nettoyer($verre['codeOptique']); + // Gestion de la confidentialité (Masquage du libellé si actVisible != 1) + if($actVisible != "1") { + $displayTitle = $codeOptique; + $subTitle = ""; + } else { + $displayTitle = $libelleVerre; + $subTitle = '
Code: '.$codeOptique.'
'; + } + ?> + + + + + + + + +
+ +
+
nettoyer($verre['dateSysteme'])) ?>
+
+
+
+
+ +
+
+ + +
+
+
+ nettoyer($verre['valeurActe'])) ?> +
+
+
- if($actVisible!="1") - { - $libelleVerre = $codeOptique; - } - ?> - - nettoyer($verre['dateSysteme'])) ?> - - nettoyer($verre['valeurActe'])) ?> - - - - - + \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 983a11b..00c0279 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -634,7 +634,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +