289 lines
13 KiB
PHP
289 lines
13 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Consultation";
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'] ;
|
|
|
|
$tm = ($_SESSION['p_tm_TP']>"0") ? $_SESSION['p_tm_TP'] : $_SESSION['p_tm_C'];
|
|
?>
|
|
|
|
<input class="sr-only" id="badcodeGestionBon" name="badcodeGestionBon" type="text" value= "<?= $badcodeGestionBon ?>" >
|
|
<input class="sr-only" id="delaiCarenceRaisonconsultation" name="delaiCarenceRaisonconsultation" type="number" value= "0" >
|
|
<input class="sr-only" id="appliquerDelaiCarence" name="appliquerDelaiCarence" type="text" value= "0" >
|
|
|
|
<?php if ($badcodeGestionBon=="1") : ?>
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("REVOIR LE TYPE DE GESTION DES BONS") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<form id="frmconsultation" name="frmconsultation" method="post" >
|
|
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="CONS">
|
|
<input class="sr-only" type="text" id="codeMedecin" name="codeMedecin">
|
|
<input class="sr-only" type="text" id="nbBonsCons" name="nbBonsCons" Value="<?= $nbBonsCons ?>" >
|
|
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
|
|
|
|
<legend> <?= _("Fiche de Consultation") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("T M") ?> </td>
|
|
<td width="30%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="number" id="tauxCouverture" name="tauxCouverture" value="<?= $tm ?>" readonly ></td>
|
|
|
|
<td width="10%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td>
|
|
<button id="btn_pop_medecin" name="btn_pop_medecin" type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popRechercheMedecin" style='font-size:10pt;' ><span id="nomMedecin" name="nomMedecin"> <?= _("Rechercher un Médecin...") ?> </span></button>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Méd non enreg") ?> </td>
|
|
<td colspan="1"><INPUT class="form-control" TYPE="text" id="medecinManquant" NAME="medecinManquant" style='font-size:10pt;' readonly ></td>
|
|
|
|
<td align="center"> <?= _("Spécialité") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="codeSpecialiteManuel" NAME="codeSpecialiteManuel" disabled style='font-size:10pt;'>
|
|
<?php liste_options($specialite,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Famille Actes") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="codeFamilleActe" NAME="codeFamilleActe" required onChange="javascript:ajaxactespossibles();" style='font-size:10pt;' >
|
|
<?php liste_options($familleacte,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Acte") ?> </td>
|
|
<td>
|
|
<div id="listeacte">
|
|
<SELECT class="form-control" id="codeActe" NAME="codeActe" required onChange="javascript:ajaxprixacte();" style='font-size:10pt;' >
|
|
<?php liste_options($acte,""); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="infosacte" style='font-size:10pt;'>
|
|
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="0">
|
|
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="0">
|
|
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="0">
|
|
<input class="sr-only" type="number" id="delaiCarenceActe" name="delaiCarenceActe" value="0">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > Valeur </td>
|
|
<td width="30%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly> </td>
|
|
|
|
<td width="10%" align="center"> <?= _("T M") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
|
|
|
|
<td width="10%" align="center"> <?= _("A Remb") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="text" value="0" readonly ></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Consultation") ?> </td>
|
|
<td width="30%" >
|
|
<!--
|
|
<?php if($modeSaisieFacture=="1") : ?>
|
|
<INPUT class="form-control" TYPE="text" id="dateSurvenance" NAME="dateSurvenance" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" readonly style='font-size:10pt;' >
|
|
<?php else: ?>
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateSurvenance" NAME="dateSurvenance" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" required style='font-size:10pt;' >
|
|
<?php endif; ?>
|
|
-->
|
|
<INPUT class="form-control" TYPE="text" id="dateSurvenance" NAME="dateSurvenance" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" readonly style='font-size:10pt;' >
|
|
</td>
|
|
|
|
<td width="10%" align="center"> <?= _("Raison Consult") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="codeRaisonConsultation" NAME="codeRaisonConsultation" onChange="ajaxdelaicarencecaisonconsultation();" required autofocus style='font-size:10pt;'>
|
|
<?php liste_options($raison,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> Observations </td>
|
|
<td colspan="5"><INPUT class="form-control" TYPE="text" id="observations" NAME="observations" style='font-size:10pt;' ></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Bons Disponibles") ?> </td>
|
|
<td width="30%" > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsCons ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center" > <?= _("Gestion") ?> </td>
|
|
<td>
|
|
<?php if($badcodeGestionBon=="1") : ?>
|
|
<input class="form-control" style="text-align: center; font-size:10pt; background-color: red;color:white;" Value="<?= _("INCONNU") ?>" readonly >
|
|
<?php else: ?>
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $typeGestionbon ?>" readonly >
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="infosbon">
|
|
<?php if($codeGestionBon!="0"): ?>
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="1">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="1">
|
|
<input class="sr-only" type="text" id="numeroBon" name="numeroBon" value="1">
|
|
|
|
<?php if($codeGestionBon=="1" && $nbBonsCons<1): ?>
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerconsultation();" style='font-size:10pt;' >
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($nbBonsCons<1): ?>
|
|
<tr>
|
|
<input class="sr-only" type="number" id="numeroBon" name="numeroBon" required >
|
|
<td>
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td width="10%" > <?= _("Numéro Bon") ?> </td>
|
|
<td width="30%" >
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required
|
|
onChange="javascript:ajaxinfosbonconsultation();" onkeypress="javascript:ctrlkeypress_numeroBon(event);"
|
|
>
|
|
</td>
|
|
|
|
<td width="10%" > </td>
|
|
<td>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' >
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</div>
|
|
|
|
<?php if (isset($msgErreur)): ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popRechercheMedecin" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"><?= _("Rechercher un Médecin...") ?></h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listemedecins">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" onkeypress="javascript:ctrlkeypress_medecin(event);" style='font-size:10pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" onkeypress="javascript:ctrlkeypress_medecin(event);" style='font-size:10pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popRechercheActe" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_acte" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Rechercher un Acte...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_liste_actes_cons" onkeypress="javascript:ctrlkeypress_actes_cons(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> Code </th>
|
|
<th style="text-align:center"> <?= _("Famille") ?> </th>
|
|
<th style="text-align:center" > <?= _("Acte") ?> </th>
|
|
<th style="text-align:center" > <?= _("Prix") ?> </th>
|
|
<th style="text-align:center" > <?= _("Accord") ?> </th>
|
|
<th style="text-align:center" > <?= _("Exclu") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="3"><input type="text" class="form-control" id="libelleActeSearch" name="libelleActeSearch" style='font-size:10pt;' ></td>
|
|
<td colspan="3"><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_actes_cons();" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php endif; ?>
|
|
|
|
<div id="infodelaicarence" style="display: none">
|
|
<input type="number" id="delaiCarenceRaisonconsultation_info" name="delaiCarenceRaisonconsultation_info" value="0">
|
|
<input type="text" id="appliquerDelaiCarence_info" name="appliquerDelaiCarence_info" value="0">
|
|
</div>
|