production/Vue/Prescriptionseancecons/index.php
2025-12-01 16:12:12 +00:00

323 lines
14 KiB
PHP
Executable File

<?php
$this->titre = "INTER SANTE - Prescription Séance";
$numeroBonKine = $_SESSION['numeroBonKine_C'];
$actVisible = $_SESSION['actVisible'];
?>
<script type="text/javascript">
</script>
<input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "<?= _("Informations sur la prescription") . " : " . $_SESSION['numeroPrescription_C']
. " => " . _("Prestataire") . " : " . $_SESSION['prestataire_C'] . " => " . _("Feuille Maladie") . " : " . $_SESSION['numeroFeuilleMaladie_C'] ?>" readonly >
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<tr>
<td width="5%" > <?= _("Souscrip.") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= $_SESSION['nomClient_C'] ?>" onChange="" readonly >
</td>
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="5%" align="center"> <?= _("Bénéf.") ?> </td>
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['beneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Bénéf.") ?> </td>
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
</tr>
<tr>
<td colspan="8">
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
</td>
</tr>
</tbody>
</table>
<?php if($numeroBonKine > "0"): ?>
<?php
$motifSeance = is_array($seance) ? $this->nettoyer($seance['motifSeance']) : "";
$dureeTraitement = is_array($seance) ? $this->nettoyer($seance['dureeTraitement']) : "0";
$rapportTraitement = is_array($seance) ? $this->nettoyer($seance['rapportTraitement']) : "";
$codeActePrescription = is_array($seance) ? $this->nettoyer($seance['codeActePrescription']) : "";
$ententePrealableKine = is_array($seance) ? $this->nettoyer($seance['ententePrealable']) : "0";
$datePrestation = is_array($seance) ? $this->nettoyer($seance['ententePrealable']) : $_SESSION['datePrestation'];
$medecinPrescription = is_array($seance) ? $this->nettoyer($seance['medecinPrescription']) : "";
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
{
$libelleActePrescription = is_array($seance) ? $this->nettoyer($seance['libelleActePrescriptionEng']) : "";
}
else
{
$libelleActePrescription = is_array($seance) ? $this->nettoyer($seance['libelleActePrescription']) : "";
}
?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="5%" > Date</td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($datePrestation, $_SESSION['lang']) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
<td width="5%" align="center"> <?= _("Médecin") ?> </td>
<td colspan="3">
<INPUT class="form-control" TYPE="text" value="<?= $medecinPrescription ?>" readonly style='font-size:10pt;'>
</td>
<td width="7%" align="center"> <?= _("No Bon") ?> </td>
<td width="13%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonKine ?>" readonly > </td>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="5%" class="required"> <?= _("Motif") ?> </td>
<td colspan="3"><input id="motifSeance" name="motifSeance" style="font-size:10pt;" class="form-control" value="<?= $motifSeance ?>" disabled type="text"></td>
</tr>
</tbody>
</table>
<div id="examens">
<legend> <?= _("Séance prescrit") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="5%" > <?= _("Acte") ?> </td>
<?php if($actVisible=="1"): ?>
<?php if($ententePrealableKine=='2'): ?>
<td colspan="5" style='background-color: yellow; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='1'): ?>
<td colspan="5" style='background-color: #00ff00; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='9'): ?>
<td colspan="5" style='background-color: red;color:white; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php else: ?>
<td colspan="5" style="background-color: #5c656a; color:white; font-size:13pt;"> <?= $libelleActePrescription ?> </td>
<?php endif; ?>
<?php else: ?>
<td colspan="5"> <?= _("KINE") ?> </td>
<?php endif; ?>
</td>
<td align="center" width="7%"><?= _("Durée (J)") ?></td>
<td width="13%">
<input style="font-size:10pt; text-align:center;" class="form-control" value="<?= $dureeTraitement ?>" type="text" disabled>
</td>
</tr>
<?php
$nbSeance = is_array($seance) ? $this->nettoyer($seance['nbSeance']) : "0";
$quantiteCorrigee = is_array($seance) ? $this->nettoyer($seance['quantiteCorrigee']) : "0";
$nbLivreOld = is_array($seance) ? $this->nettoyer($seance['nbLivreOld']) : "0";
$nbRestant = is_array($seance) ? $this->nettoyer($seance['nbRestant']) : "0";
?>
<tr>
<td> <?= _("Nb Prescrit") ?> </td>
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbSeance" name="nbSeance" value="<?= $nbSeance ?>" readonly > </td>
<td width="5%" align="center"> <?= _("Nb Modifié") ?> </td>
<td width="20%" > <input class="form-control" style="background-color:blue !important;color:white; text-align: center; font-size:10pt;" type="number" id="quantiteCorrigee " name="quantiteCorrigee " value="<?= $quantiteCorrigee ?>" readonly > </td>
<td width="5%" align="center"> <?= _("Nb Effectué") ?> </td>
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbLivreOld" name="nbLivreOld" value="<?= $nbLivreOld ?>" readonly > </td>
<td width="7%" align="center"> <?= _("Nb Restant") ?> </td>
<td width="13%"> <input class="form-control" style="background-color:red !important;color:white; text-align: center; font-size:10pt;" type="number" id="nbRestant" name="nbRestant" value="<?= $nbRestant ?>" readonly > </td>
</tr>
</tbody>
</table>
<table class="table table-condensed table-responsive" >
<tbody >
<tr >
<td width="100%" style="padding: 3px 6px;background-color: #337ab7;color: #fff; font-weight: bold;text-transform: uppercase;font-size:13pt;">
<?= _("Séances Effectuées") ?>
</td >
</tr >
</tbody>
</table>
<?php $nbSeances = 0; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style="text-align:center"> <?= _("Acte") ?> </th>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Nombre") ?> </th>
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
<th style="text-align:center"> <?= _("Bon Séance") ?> </th>
<!--<th style="text-align:center"> <?= _("Base") ?> </th>-->
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
<th style="text-align:center"> <?= _("TM") ?> </th>
<th style="text-align:center"> <?= _("Mont. TM") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
<th style="text-align:center"> <?= _("Dépass") ?> </th>
<th style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td align="center" colspan="6"> Total </td>
<td align="center" ><?= format_N($totalseances['fraisReel_total']); ?></td>
<td></td>
<td align="center" ><?= format_N($totalseances['montantTm_total']); ?></td>
<td align="center" ><?= format_N($totalseances['montantArembourser_total']); ?></td>
<td align="center" ><?= format_N($totalseances['depassement_total']); ?></td>
<td></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detailseances as $detailseance):
$idSeance=$this->nettoyer($detailseance['id']);
$ententePrealable = $this->nettoyer($detailseance['ententePrealable']);
$codePrestatairePrescription = $this->nettoyer($detailseance['codePrestatairePrescription']);
$codePrestataire = $this->nettoyer($detailseance['codePrestataire']);
//var_dump($codePrestataire);
$nbSeances++;
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeanceEng']);
}
else
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeance']);
}
$codeMotifDepassement = $this->nettoyer($detailseance['codeMotifDepassement']);
$motif = $this->nettoyer($detailseance['motif']);
$motifEng = $this->nettoyer($detailseance['motifEng']);
$tarif = $this->nettoyer($detailseance['tarif']);
?>
<?php if($ententePrealable=='2'): ?>
<tr style="background-color: yellow;" >
<?php elseif($ententePrealable=='1'): ?>
<tr style="background-color: #00ff00;" >
<?php elseif($ententePrealable=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align="center"> <?= $libelleActeSeance ?> </td>
<td align="center"> <?= dateheureLang($this->nettoyer($detailseance['dateSysteme'])) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['quantite']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['prestataireSeance']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['numeroBonSeance']) ?> </td>
<?php if($codePrestatairePrescription==$codePrestataire): ?>
<td align='center'>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:alert_ebene("<?= $tarif ?>, <?= $tarif ?>");'>
<?= format_N($this->nettoyer($detailseance['valeurActe'])) ?>
</button>
</td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['fraisReel'])) ?> </td>
<td align='center'> <?= $this->nettoyer($detailseance['tm'])?></td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantArembourser'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailseance['depassement'])) ?> </td>
<?php if($codeMotifDepassement!=''): ?>
<td align='center'>
<button type="button" class="btn btn-info" title="<?= _("Voir le motif du dépassement...") ?>" onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
<?php else: ?>
<td colspan="7"> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td style='font-size:12pt; font-weight:bold;'><?= _("Rapport Traitement") ?></td >
</tr>
<tr>
<td ><textarea style='font-size:10pt; width:100%;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" disabled style="width:100%;"><?= $rapportTraitement;?></textarea></td>
</tr>
</tbody>
</table>
</div>
<div id="div_ged_0" style="margin-top:20px;">
<form enctype="multipart/form-data" action="Prescriptionseancecons" method="post">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Document") ?> </td>
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
<td> </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
</tr>
</tbody>
</table>
</form>
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
<INPUT style='font-size:12pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreur ?>" readonly >
<?php endif; ?>
<table class="table table-striped table-hover table-condensed table-responsive" style="font-size:9pt;" >
<thead>
<th width="12%" style='text-align:center'> Date </th>
<th style='text-align:center'> <?= _("Document GED") ?> </th>
<th width="11%" style='text-align:center'> <?= _("Télécharger") ?> </th>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed=$this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
?>
<tr valign="top">
<td align='center'><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($ged['nomOrigine']) ?></td>
<td align="center">
<a style="font-size:10pt;" href="<?= $cheminFichier ?>" target="_blank" > <?= _("Télécharger") ?> </a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php endif; ?>