45 lines
2.0 KiB
PHP
Executable File
45 lines
2.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Seance_temp.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
|
|
|
class ControleurAjaxprixseancesea extends Controleur {
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Seance_temp();
|
|
$this->prestation = new Prestationactes();
|
|
$this->garantie = new Garantiesbaremepriseencharge();
|
|
}
|
|
|
|
public function index() {
|
|
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
|
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
|
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
|
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
|
|
|
$this->prescription->modifierseancesea($codeActe, $quantite, $numeroBonKine);
|
|
|
|
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
|
|
|
$numeroFeuilleMaladie = $prescription['numeroFeuilleMaladie'];
|
|
$idBeneficiaire = $prescription['idBeneficiaire'];
|
|
|
|
$datePrestation = $this->prescription->getDateSurvenance($numeroFeuilleMaladie);
|
|
$codeGarantie = $this->prestation->getGarantieActe($codeActe);
|
|
|
|
$this->garantie->getsourcebaremegarantienew($idBeneficiaire, $codeGarantie, $datePrestation);
|
|
$statut = $this->garantie->getstatutacte($idBeneficiaire,$codeActe,$codeGarantie);
|
|
$motifStatut = $this->garantie->getlibellemotifdepassement($statut);
|
|
$this->garantie->baremesolde($idBeneficiaire,$codeActe,$codeGarantie,$numeroFeuilleMaladie);
|
|
$baremesolde = $this->garantie->getbaremesolde($idBeneficiaire,$codeActe,$codeGarantie,$numeroFeuilleMaladie);
|
|
|
|
|
|
$garantieadherent_temp = null;//$this->prestation->afficher_garantieadherent_temp();
|
|
|
|
$this->genererVueAjax(array('prescription' => $prescription, 'garantieadherent_temp' => $garantieadherent_temp,
|
|
'statut' => $statut, 'baremesolde' => $baremesolde, 'motifStatut' => $motifStatut));
|
|
}
|
|
} |