z
This commit is contained in:
parent
37177b1a90
commit
838c267d7e
22
Controleur/ControleurAjaxfacturesfamille.php
Normal file
22
Controleur/ControleurAjaxfacturesfamille.php
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
require_once 'Framework/Controleur.php';
|
||||||
|
require_once 'Modele/Facture.php';
|
||||||
|
|
||||||
|
class ControleurAjaxfacturesfamille extends Controleur {
|
||||||
|
private $facture;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
$this->facture = new Facture();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$idAdherent = $_SESSION['idAdherent_C'];
|
||||||
|
$d1 = $this->requete->getParametreDate("d1");
|
||||||
|
$d2 = $this->requete->getParametreDate("d2");
|
||||||
|
|
||||||
|
$factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ;
|
||||||
|
|
||||||
|
$this->genererVueAjax(array('factures' => $factures));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3177,3 +3177,26 @@ function factures_famille_2()
|
||||||
{
|
{
|
||||||
window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/");
|
window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function listerfacturefamille()
|
||||||
|
{
|
||||||
|
d1=$("#d1").val();
|
||||||
|
d2=$("#d2").val();
|
||||||
|
|
||||||
|
donnees = 'd1='+d1+'&d2='+d2;
|
||||||
|
|
||||||
|
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: $("#racineWeb").val()+"Ajaxfacturesfamille/",
|
||||||
|
type : 'post',
|
||||||
|
data: donnees,
|
||||||
|
error: function(errorData) {
|
||||||
|
},
|
||||||
|
success: function(data) {
|
||||||
|
$("#div_dossiers").html(data);
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
||||||
69
Vue/Ajaxfacturesfamille/index.php
Normal file
69
Vue/Ajaxfacturesfamille/index.php
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
<div id="div_dossiers">
|
||||||
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style='text-align:center'> Type </th>
|
||||||
|
<th style='text-align:center'> <?= _("No Bon") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Id Fact") ?> </th>
|
||||||
|
<th style='text-align:center'> Date </th>
|
||||||
|
<th> <?= _("Prestataire") ?> </th>
|
||||||
|
<th> <?= _("Bénéficiaire") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Frais") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("T M") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("A Remb") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Dépas") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Ret") ?> </th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($factures as $facture):
|
||||||
|
$idFacture=$this->nettoyer($facture['idFacture']);
|
||||||
|
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
|
||||||
|
$tiersPayant = $facture['tiersPayant'];
|
||||||
|
|
||||||
|
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
||||||
|
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
||||||
|
|
||||||
|
if($codeTypeFacture=="PHAR")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="OPT")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="LAB")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
||||||
|
}
|
||||||
|
elseif($codeTypeFacture=="SEA")
|
||||||
|
{
|
||||||
|
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr valign="top">
|
||||||
|
|
||||||
|
<td align='center'> <?= $codeTypeFacture ?> </td>
|
||||||
|
<td align='center'> <?= $numeroBon ?> </td>
|
||||||
|
|
||||||
|
<td align='center'>
|
||||||
|
<input style='font-size:7pt;' type="button" value="<?= $idFacture ?>"
|
||||||
|
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
||||||
|
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
|
||||||
|
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user