269 lines
9.5 KiB
PHP
Executable File
269 lines
9.5 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Facture.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
require_once 'Modele/Motifecxlusionprestation.php';
|
|
|
|
class ControleurAjaxdetailfactureclassique extends Controleur {
|
|
private $facture;
|
|
private $prestation;
|
|
private $beneficiaire;
|
|
private $motifecxlusionprestation;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->facture = new Facture();
|
|
$this->ouinonhospit = (new Ouinon())->getListe();
|
|
$this->prestation = new Prestationactes();
|
|
$this->beneficiaire = new Beneficiaire();
|
|
$this->motifecxlusionprestation = new Motifecxlusionprestation();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idDossierClassique = $_SESSION['idDossierClassique'] ;
|
|
|
|
$dossier = $this->facture->getdossierclassique($idDossierClassique);
|
|
|
|
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
|
|
|
$facture = $this->facture->getfactureclassique_temp();
|
|
|
|
$prestations = $this->facture->getprestationsclassiques_temp();
|
|
|
|
$garantieadherent_temp = $this->facture->afficher_garantieadherent_temp();
|
|
|
|
$this->beneficiaire->controlerplafondbeneficiaireannuel($idBeneficiaire);
|
|
|
|
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTempAssureur();
|
|
|
|
$motifecxlusions = $this->motifecxlusionprestation->getListe();
|
|
$motifrejets = $this->motifecxlusionprestation->getListe();
|
|
|
|
$this->genererVueAjax(array('facture' => $facture, 'prestations' => $prestations, 'garantieadherent_temp' => $garantieadherent_temp,
|
|
'ouinonhospit' => $this->ouinonhospit, 'limite_beneficiaire' => $limite_beneficiaire, 'dossier' => $dossier, 'motifecxlusions' => $motifecxlusions,
|
|
'motifrejets' => $motifrejets));
|
|
}
|
|
|
|
public function majprix()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique");
|
|
|
|
$this->facture->majprix($idPrestation, $valeurActe);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majtm()
|
|
{
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
|
|
$this->facture->majtm($tm);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function enregistrerfacturetemp()
|
|
{
|
|
$prestataire = $this->requete->getParametreFormulaire("prestataire");
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
$hospitalisation = $this->requete->getParametreFormulaire("hospitalisation");
|
|
$observations = $this->requete->getParametreFormulaire("observations");
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
$numeroFacture = $this->requete->getParametreFormulaire("numeroFacture");
|
|
$codePrestataire = $this->facture->getCodePrestataire($prestataire);
|
|
|
|
$this->facture->enregistrerfacturetemp($prestataire, $dateFacture, $hospitalisation, $observations, $tm, $numeroFacture, $codePrestataire);
|
|
|
|
$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 modifierprestatairefacture()
|
|
{
|
|
$prestataire = $this->requete->getParametreFormulaire("prestataire");
|
|
$codePrestataire = $this->facture->getCodePrestataire($prestataire);
|
|
|
|
$this->facture->modifierprestatairefacture($prestataire, $codePrestataire);
|
|
}
|
|
|
|
public function modifierdatefacture()
|
|
{
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
|
|
$this->facture->modifierdatefacture($dateFacture);
|
|
}
|
|
|
|
public function validerfactureclassique()
|
|
{
|
|
$prestataire = $this->requete->getParametreFormulaire("prestataire");
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
|
|
$this->facture->validerfactureclassique($prestataire, $dateFacture);
|
|
}
|
|
|
|
public function enregistrerpaiementfactureclassique()
|
|
{
|
|
$codeModePaiement = $this->requete->getParametreFormulaire("codeModePaiement");
|
|
$referencePaiement = $this->requete->getParametreFormulaire("referencePaiement");
|
|
$dateComptable = $this->requete->getParametreDate("dateComptable");
|
|
|
|
$this->facture->enregistrerpaiementfactureclassique($dateComptable, $codeModePaiement, $referencePaiement);
|
|
}
|
|
|
|
public function tmfacturerbcl()
|
|
{
|
|
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
|
|
$tm_rbcl = $this->facture->fn_tm_rbcl($idBeneficiaire, $codePrestataire);
|
|
|
|
$this->genererVueAjax(array('tm_rbcl' => $tm_rbcl));
|
|
}
|
|
|
|
public function majmontantrejete()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$montantRejete = $this->requete->getParametreFormulaire("montantRejete", "numerique");
|
|
|
|
|
|
|
|
$this->facture->majmontantrejete($idPrestation, $montantRejete);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majmontanteclu()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$montantExclu = $this->requete->getParametreFormulaire("montantExclu", "numerique");
|
|
|
|
$this->facture->majmontanteclu($idPrestation, $montantExclu);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function majtmuneprestation()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
|
|
|
$this->facture->majtmuneprestation($idPrestation, $tm);
|
|
|
|
$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 enregistrerfacturesanstmtemp()
|
|
{
|
|
$prestataire = $this->requete->getParametreFormulaire("prestataire");
|
|
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
|
$hospitalisation = $this->requete->getParametreFormulaire("hospitalisation");
|
|
$observations = $this->requete->getParametreFormulaire("observations");
|
|
$numeroFacture = $this->requete->getParametreFormulaire("numeroFacture");
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
|
|
$this->facture->enregistrerfacturesanstmtemp($prestataire, $dateFacture, $hospitalisation, $observations, $numeroFacture, $codePrestataire);
|
|
|
|
$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));
|
|
}
|
|
} |