This commit is contained in:
KONE SOREL 2026-01-22 15:39:31 +00:00
parent 5481f3ddfe
commit 269a6f075c
7 changed files with 168 additions and 27 deletions

View File

@ -0,0 +1,24 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Remboursement.php';
class ControleurAjaxrhvalidationrd extends Controleur {
private $remboursement;
public function __construct() {
$this->remboursement = new Remboursement();
}
public function index() {
$idDemande = $this->requete->getParametreFormulaire("idDemande");
$demande = $this->remboursement->getDemandeRemboursement($idDemande);
$reponsedemande = $this->remboursement->getstatutpaiementrd();
$this->genererVueAjax(array('demande' => $demande, 'reponsedemande' => $reponsedemande));
}
}

View File

@ -5662,4 +5662,41 @@ function actualiser_remboursement()
{
window.location.assign($("#racineWeb" ).val()+"Remboursement/");
}
}
function valider_remboursement(idDemande){
$("#div_patienter").html(`
<div class="d-flex flex-column align-items-center justify-content-center" style="padding-top:80px;">
<div class="spinner-border text-primary" role="status" style="width:3rem; height:3rem;">
<span class="visually-hidden">Loading...</span>
</div>
<span class="mt-3 fs-5 fw-bold">
Veuillez patienter... / Please wait...
</span>
</div>
`);
donnees = 'idDemande='+idDemande;
$.ajax({
url: $("#racineWeb").val()+"Ajaxrhvalidationrd/",
type : 'post',
data: donnees,
error: function(errorData){
alert("Erreur : "+errorData);
},
success: function(data) {
//alert("Success : "+data);
$("#div_patienter").html('');
$('#div_activation').html(data);
//appliquerDataTable();
$('#div_activation').modal("show");
},
complete: function() {
}
});
}

View File

@ -63,8 +63,8 @@
</span>
<?php endif; ?>
</td>
<td class="text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($v['motifReponseDemandeRemboursement']) ?>">
<small class="text-muted italic"><?= $v['motifReponseDemandeRemboursement'] ?: '-' ?></small>
<td class="text-truncate" style="max-width: 200px;" title="<?= $this->nettoyer($v['motifRejetRh']) ?>">
<small class="text-muted italic"><?= $v['motifRejetRh'] ?: '-' ?></small>
</td>
<td class="text-center">
<div class="btn-group shadow-sm">

View File

@ -0,0 +1,75 @@
<?php
$idDemande = $this->nettoyer($demande['id']);
$numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']);
$codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']);
$lien = $this->nettoyer($demande['lien']);
$numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']);
$observation = $this->nettoyer($demande['observation']);
$codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']);
$beneficiaire = $this->nettoyer($demande['beneficiaire']);
$adherent = $this->nettoyer($demande['adherent']);
$numeroAdherent = $this->nettoyer($demande['numeroAdherent']);
$idPolice = $this->nettoyer($demande['idPolice']);
$numeroPolice = $this->nettoyer($demande['numeroPolice']);
if (est_anglophone()){
$lien = $this->nettoyer($demande['lienEng']);
}
?>
<div class="modal-dialog" style="max-width:70%" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-bs-dismiss="modal">&times;</button>
<legend class="modal-title" style="text-align:center;"><?= _('Valider une demande')?></legend>
</div>
<div class="modal-body">
<div id="div_motif" style="margin-top:30px; margin-bottom:30px;">
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
<tbody>
<tr>
<td width="8%"> <?= _("Demande N°");?></td>
<td colspan="3">
<input style="font-size:10pt;" class ="form-control" type="text" value="<?= $numeroDemandeRemboursement; ?>" readonly>
</td>
</tr>
<tr>
<td > <?= _("Titulaire");?></td>
<td >
<input style="font-size:10pt;" class ="form-control" type="text" value="<?= $adherent."(".$numeroAdherent.")"; ?>" readonly>
</td>
<td style='text-align:center' width="8%"> <?= _("Patient");?></td>
<td >
<input style="font-size:10pt;" class ="form-control" type="text" value="<?= $beneficiaire."(".$numeroBeneficiaire.")"; ?>" readonly>
</td>
</tr>
<tr>
<td ><?= _("Etat validation");?></td >
<td colspan="3">
<select class="form-select form-select-sm border-primary-subtle" id="codeStatutPaiement" name="codeStatutPaiement">
<?php liste_options($reponsedemande, $codeStatutPaiement); ?>
</select>
</td>
</tr>
<tr>
<td class="required" width="8%"> <?= _("Motif");?></td>
<td colspan="3">
<textarea class="form-control-sm" placeholder="<?= _("Obligatoire si refus");?>" name="motifRejetRh" id="motifRejetRh" rows="5" required style="width:100%;"></textarea>
</td>
</tr>
<tr>
<td colspan="4">
<input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_validation_rd(<?= $idDemande ?>);">
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" id="" class="btn btn-default" data-bs-dismiss="modal" ><?= _("Fermer") ?></button>
</div>
</div>
</div>

View File

@ -1,25 +1,25 @@
<?php
$this->titre = "Intersanté - Remboursement Direct";
$idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? "0";
$idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? "0";
if($idDemandeRemboursement > "0"){
$numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']);
$codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']);
$lien = $this->nettoyer($demande['lien']);
$numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']);
$observation = $this->nettoyer($demande['observation']);
$codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']);
$beneficiaire = $this->nettoyer($demande['beneficiaire']);
$adherent = $this->nettoyer($demande['adherent']);
$numeroAdherent = $this->nettoyer($demande['numeroAdherent']);
$idPolice = $this->nettoyer($demande['idPolice']);
$numeroPolice = $this->nettoyer($demande['numeroPolice']);
if (est_anglophone()){
$lien = $this->nettoyer($demande['lienEng']);
}
}
$numeroDemandeRemboursement = $this->nettoyer($demande['numeroDemandeRemboursement']);
$codeEtatDemandeRemboursement = $this->nettoyer($demande['codeEtatDemandeRemboursement']);
$lien = $this->nettoyer($demande['lien']);
$numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']);
$observation = $this->nettoyer($demande['observation']);
$codeStatutPaiement = $this->nettoyer($demande['codeStatutPaiement']);
$beneficiaire = $this->nettoyer($demande['beneficiaire']);
$adherent = $this->nettoyer($demande['adherent']);
$numeroAdherent = $this->nettoyer($demande['numeroAdherent']);
$idPolice = $this->nettoyer($demande['idPolice']);
$numeroPolice = $this->nettoyer($demande['numeroPolice']);
if (est_anglophone()){
$lien = $this->nettoyer($demande['lienEng']);
}
?>
<div id="div_liste" class="card shadow-lg border-0 mb-4" style="border-radius: 15px;">
@ -159,4 +159,5 @@
</div>
<?php endif; ?>
</div>
</div>
</div>

View File

@ -4,14 +4,16 @@
<div id="div_liste" class="container-fluid py-3">
<div class="d-flex align-items-center mb-4">
<div class="bg-primary text-white p-3 rounded-3 shadow-sm me-3">
<i class="fas fa-hand-holding-usd fa-2x"></i>
<i class="fas fa-hand-holding-usd"></i>
</div>
<div>
<h1 class="mb-0 fw-bold text-uppercase text-primary"><?= _("Validation des demandes") ?></h1>
<h3 class="mb-0 fw-bold text-uppercase text-primary"><?= _("Validation des demandes") ?></h3>
<p class="text-muted mb-0"><?= _("Liste des dossiers Hors Tiers Payant des assurés") ?></p>
</div>
</div>
<div id="div_patienter"></div>
<div class="card shadow-sm border-0 mb-4" style="border-radius: 12px;">
<div class="card-body p-3">
<form id="form_filtres" class="row g-3 align-items-end">
@ -34,7 +36,7 @@
</div>
<div class="col-12 col-md-4 col-lg-3">
<label class="form-label small fw-bold text-muted mb-1"><?= _("État demande") ?></label>
<label class="form-label small fw-bold text-muted mb-1"><?= _("État validation") ?></label>
<select class="form-select form-select-sm border-primary-subtle" id="codeStatutPaiement" name="codeStatutPaiement">
<?php liste_options_consultation($reponsedemande, ""); ?>
</select>
@ -57,4 +59,6 @@
</div>
</div>
</div>
</div>
</div>
<div id="div_validation" class="modal fade"></div>

View File

@ -663,7 +663,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Application Scripts -->
<script src="/Js/fonctions.js?ver=2026.01.22.01"></script>
<script src="/Js/fonctions.js?ver=2026.01.22.04"></script>
<script type="text/javascript">
raffraichier_gabarit();