94 lines
3.0 KiB
PHP
94 lines
3.0 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
require_once 'Modele/Detailseance.php';
|
|
require_once 'Modele/Bonpec.php';
|
|
require_once 'Modele/Detailtarifacte.php';
|
|
|
|
/*require_once 'Modele/Beneficiaire.php';
|
|
|
|
require 'vendor/autoload.php';
|
|
use Aws\Rekognition\RekognitionClient;
|
|
*/
|
|
|
|
class ControleurSeances extends Controleur {
|
|
private $menuvue;
|
|
private $prescription;
|
|
private $detailprescription;
|
|
private $bonpec;
|
|
private $acte;
|
|
|
|
private $beneficiaire;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Seances');
|
|
|
|
$this->prescription = new Seance_temp();
|
|
$this->detailprescription = new Detailseance();
|
|
$this->bonpec = new Bonpec();
|
|
$this->acte = new Detailtarifacte();
|
|
|
|
//$this->beneficiaire = new Beneficiaire();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$codeTypeBon = "KINE";
|
|
|
|
$nbBonsCons = $this->bonpec->getNbBonPrestataireDisponible($codePrestataire, $codeTypeBon);
|
|
$codeGestionBon = $this->bonpec->getCodeGestionBon($codeTypeBon);
|
|
$typeGestionbon = $this->bonpec->getGestionBon($codeGestionBon);
|
|
|
|
$numeroPrescriptionKine = $_SESSION['p_numeroPrescriptionKine_C'];
|
|
|
|
$compteSeance = $this->prescription->getNombreSeance();
|
|
$compteSeancePrestataire = $this->prescription->getNombreSeancePrestataire();
|
|
|
|
|
|
$this->prescription->initseancekine_cso($codeGestionBon);
|
|
|
|
$prescription = $this->prescription->getseancetemp();
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($prescription, true) . ";\n>");
|
|
|
|
|
|
|
|
$_SESSION['p_numeroBonSeance_C'] = $prescription['numeroBonSeance'];
|
|
$_SESSION['proforma_envoye'] = $prescription['proformaEnvoye'];
|
|
|
|
$detailseances = $this->detailprescription->getdetailseancefeuille();
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($detailseances, true) . ";\n>");
|
|
|
|
$totalseances = $this->detailprescription->gettotalseance();
|
|
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
|
|
$codeActe = $prescription['codeActePrescription'];
|
|
|
|
if($codeActe != "") {
|
|
$codeGarantie = $this->acte->getGarantieActe($codeActe);
|
|
}else{
|
|
$codeGarantie = "AUX";
|
|
$codeActe = "";
|
|
}
|
|
|
|
$datePrestation = $this->acte->getDatePrestation($numeroFeuilleMaladie);
|
|
|
|
$_SESSION['datePrestation'] = $datePrestation;
|
|
|
|
|
|
$tm = $this->acte->ticketModerateurDefinitif($codeGarantie, $codeActe, $datePrestation) ;
|
|
|
|
|
|
$tauxCouverture = (100-$tm)."%";
|
|
|
|
$this->genererVue(array('prescription' => $prescription, 'detailseances' => $detailseances,
|
|
'nbBonsCons' => $nbBonsCons, 'codeGestionBon' => $codeGestionBon, 'typeGestionbon' => $typeGestionbon,
|
|
'totalseances' => $totalseances, 'tauxCouverture' => $tauxCouverture, 'compteSeance' => $compteSeance,
|
|
'compteSeancePrestataire' => $compteSeancePrestataire));
|
|
}
|
|
} |