192 lines
6.0 KiB
PHP
Executable File
192 lines
6.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Facture.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
require_once 'Modele/Prestataire.php';
|
|
|
|
class ControleurAjaxmodifierfactureclassique extends Controleur {
|
|
private $facture;
|
|
private $ouinonhospit;
|
|
private $prestataire;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->facture = new Facture();
|
|
$this->ouinonhospit = (new Ouinon())->getListe();
|
|
$this->prestataire = new Prestataire();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idFacture = $_SESSION['idFacture_C'];
|
|
|
|
|
|
|
|
$_SESSION['idFactureCourant'] = $idFacture;
|
|
|
|
$idDossierClassique = $_SESSION['idDossierClassique'];
|
|
|
|
|
|
$dossier = $this->facture->getdossierclassique($idDossierClassique);
|
|
|
|
$factures = $this->facture->getfacturesdossierclassique($idDossierClassique);
|
|
|
|
$facture = $this->facture->getfactureclassique();
|
|
|
|
//var_dump($facture);
|
|
|
|
$prestations = $this->facture->getprestations_classiques();
|
|
|
|
$prestataire = $this->prestataire->getprestatairelibelle();
|
|
|
|
$this->genererVueAjax(array('facture' => $facture, 'prestations' => $prestations, 'dossier' => $dossier,
|
|
'ouinonhospit' => $this->ouinonhospit, 'prestataire' => $prestataire));
|
|
}
|
|
|
|
public function majprix()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique");
|
|
$idFacture = $_SESSION['idFacture_C'];
|
|
|
|
|
|
$this->facture->majprixacte($idPrestation, $valeurActe, $idFacture);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function modifierfacture()
|
|
{
|
|
$prestataire = $this->requete->getParametreFormulaire("prestataire");
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
$hospitalisation = $this->requete->getParametreFormulaire("hospitalisation");
|
|
$observations = $this->requete->getParametreFormulaire("observations");
|
|
$codePrestataire = $this->facture->getCodePrestataire($prestataire);
|
|
|
|
$this->facture->modifierfacture($prestataire, $dateFacture, $hospitalisation, $observations, $codePrestataire);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
|
|
public function majmontantrejete()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$montantRejete = $this->requete->getParametreFormulaire("montantRejete", "numerique");
|
|
$idFacture = $_SESSION['idFacture_C'];
|
|
|
|
|
|
$this->facture->majmontantrejeteacte($idPrestation, $montantRejete, $idFacture);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majmontanteclu()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$montantExclu = $this->requete->getParametreFormulaire("montantExclu", "numerique");
|
|
$idFacture = $_SESSION['idFacture_C'];
|
|
|
|
$this->facture->majmontantecluacte($idPrestation, $montantExclu, $idFacture);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majtmuneprestation()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
$idFacture = $_SESSION['idFacture_C'];
|
|
|
|
$this->facture->majtmuneprestationacte($idPrestation, $tm, $idFacture);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
|
|
public function majmotifrejet()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
$codeMotifRejet = $this->requete->getParametreFormulaire("codeMotifRejet");
|
|
|
|
$this->facture->majmotifrejet($idPrestation, $codeMotifRejet);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majmotifexclusion()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
$codeMotifExclusion = $this->requete->getParametreFormulaire("codeMotifExclusion");
|
|
|
|
$this->facture->majmotifexclusion($idPrestation, $codeMotifExclusion);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
|
|
public function majdetailrejet()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
$detailRejet = $this->requete->getParametreFormulaire("detailRejet");
|
|
|
|
$this->facture->majdetailrejet($idPrestation, $detailRejet);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
|
|
public function detailrejet()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
|
|
$prestation = $this->facture->getdetailrejetfactureclassique_temp($idPrestation);
|
|
|
|
$detailRejet = $prestation['detailRejet'];
|
|
|
|
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'detailRejet' => $detailRejet));
|
|
}
|
|
|
|
public function majdetailexclusion()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
$detailExclusion = $this->requete->getParametreFormulaire("detailExclusion");
|
|
|
|
$this->facture->majdetailexclusion($idPrestation, $detailExclusion);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function detailexclusion()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
|
|
$prestation = $this->facture->getdetailexclusionfactureclassique_temp($idPrestation);
|
|
|
|
$detailExclusion = $prestation['detailExclusion'];
|
|
|
|
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'detailExclusion' => $detailExclusion));
|
|
}
|
|
|
|
public function consulterdetailrejet()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
|
|
$prestation = $this->facture->getdetailrejetfactureclassique_temp($idPrestation);
|
|
|
|
$detailRejet = $prestation['detailRejet'];
|
|
|
|
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'detailRejet' => $detailRejet));
|
|
}
|
|
|
|
public function consulterdetailexclusion()
|
|
{
|
|
$idPrestation = $this->requete->getParametreFormulaire("idPrestation");
|
|
|
|
$prestation = $this->facture->getdetailexclusionfactureclassique_temp($idPrestation);
|
|
|
|
$detailExclusion = $prestation['detailExclusion'];
|
|
|
|
$this->genererVueAjax(array('idPrestation' => $idPrestation, 'detailExclusion' => $detailExclusion));
|
|
}
|
|
} |