75 lines
4.1 KiB
PHP
75 lines
4.1 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prestationactes.php';
|
|
|
|
class ControleurAjaxrequeteprestationactes extends Controleur {
|
|
|
|
private $prestationactes;
|
|
|
|
public function __construct() {
|
|
$this->prestationactes = new Prestationactes();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
// Ligne 1
|
|
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
|
$datePrestation1 = $this->requete->getParametreDate("datePrestation1");
|
|
$datePrestation2 = $this->requete->getParametreDate("datePrestation2");
|
|
$numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent");
|
|
$numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire");
|
|
|
|
// Ligne 2
|
|
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
|
|
|
$numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1");
|
|
$numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2");
|
|
|
|
$numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1");
|
|
$numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2");
|
|
|
|
$numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1");
|
|
$numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2");
|
|
|
|
$numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1");
|
|
$numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2");
|
|
|
|
// Ligne 3
|
|
$codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire");
|
|
|
|
$numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1");
|
|
$numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2");
|
|
|
|
$codeTypePrestation = $this->requete->getParametreFormulaire("codeTypePrestation");
|
|
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
|
$numeroChambre = $this->requete->getParametreFormulaire("numeroChambre");
|
|
$facture = $this->requete->getParametreFormulaire("facture");
|
|
|
|
// Ligne 4
|
|
$adherent = $this->requete->getParametreFormulaire("adherent");
|
|
$beneficiaire = $this->requete->getParametreFormulaire("beneficiaire");
|
|
|
|
// Ligne 5
|
|
$libelleActe = $this->requete->getParametreFormulaire("libelleActe");
|
|
$libelleFamilleActe = $this->requete->getParametreFormulaire("libelleFamilleActe");
|
|
|
|
// FIN Champs
|
|
|
|
$_SESSION['codePrestataire_C'] = $codePrestataire;
|
|
|
|
$_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation1");
|
|
$_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation2");
|
|
|
|
$prestationactes = $this->prestationactes->requetesprestationactes($codePrestataire, $datePrestation1, $datePrestation2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin,
|
|
$numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1,
|
|
$numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, $codeTypePrestataire, $numeroFeuilleMaladie1,
|
|
$numeroFeuilleMaladie2, $codeTypePrestation, $ententePrealable, $numeroChambre, $facture, $adherent, $beneficiaire, $libelleActe, $libelleFamilleActe);
|
|
|
|
$prestationactes_total = $this->prestationactes->requetesprestationactestotal($codePrestataire, $datePrestation1, $datePrestation2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin,
|
|
$numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1,
|
|
$numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, $codeTypePrestataire, $numeroFeuilleMaladie1,
|
|
$numeroFeuilleMaladie2, $codeTypePrestation, $ententePrealable, $numeroChambre, $facture, $adherent, $beneficiaire, $libelleActe, $libelleFamilleActe);
|
|
|
|
$this->genererVueAjax(array('prestationactes' => $prestationactes, 'prestationactes_total' => $prestationactes_total));
|
|
}
|
|
} |