Initial commit for radiantprestation project
This commit is contained in:
parent
89481e47af
commit
f856be7d0f
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Billet.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAccueil extends Controleur {
|
||||
|
||||
private $billet;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Accueil");
|
||||
$this->billet = new Billet();
|
||||
}
|
||||
|
||||
// Affiche la liste de tous les billets du blog
|
||||
public function index() {
|
||||
$billets = $this->billet->getBillets();
|
||||
$this->genererVue(array('billets' => $billets));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Familleacte.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurActesmedicaux extends Controleur {
|
||||
private $familleacte;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Actesmedicaux');
|
||||
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeTypePrestation = "ACT";
|
||||
|
||||
$this->familleacte = (new Familleacte())->getListe($codeTypePrestation);
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$this->genererVue(array('familleacte' => $this->familleacte, 'acte' => $this->acte));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
//require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Prestataire.php';
|
||||
require_once 'Modele/Bonpec.php';
|
||||
require_once 'Modele/Etatbon.php';
|
||||
require_once 'Modele/Menuvueprofil.php';
|
||||
|
||||
class ControleurAfficherbons extends Controleur {
|
||||
private $bonpec;
|
||||
private $prestataire;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueprofil();
|
||||
$this->menuvue->getMenuVue('Afficherbons');
|
||||
|
||||
$this->bonpec = new Bonpec();
|
||||
//$this->typebon = (new Typebon())->getListe();
|
||||
$this->etatbon = (new Etatbon())->getListe();
|
||||
$this->prestataire = (new Prestataire())->getListeTypePrestataireBon();
|
||||
}
|
||||
|
||||
public function index($codePrestataire="", $codeEtatBon="9", $noDepart=0, $noFin=0)
|
||||
{
|
||||
if($this->requete->existeParametre("id"))
|
||||
{
|
||||
$codeEtatBon = $this->requete->getParametreFormulaire("id");
|
||||
}
|
||||
else
|
||||
{
|
||||
$codeEtatBon = "9";
|
||||
}
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
if (isset($_POST['codePrestataire']))
|
||||
{
|
||||
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
||||
$_SESSION['p_codePrestataire_C'] = $codePrestataire;
|
||||
$noDepart = $this->requete->getParametreFormulaire("noDepart");
|
||||
$noFin = $this->requete->getParametreFormulaire("noFin");
|
||||
$codeEtatBon = $this->requete->getParametreFormulaire("codeEtatBon");
|
||||
}
|
||||
$bonpecs = $this->bonpec->afficherBonpecs($codePrestataire, $codeEtatBon, $noDepart, $noFin);
|
||||
|
||||
$this->genererVue(array('bonpecs' => $bonpecs,'prestataire' => $this->prestataire, 'etatbon' => $this->etatbon,
|
||||
'codePrestataire' => $codePrestataire, 'codeEtatBon' => $codeEtatBon, 'noDepart' => $noDepart, 'noFin' => $noFin));
|
||||
}
|
||||
|
||||
|
||||
public function annulerBon() {
|
||||
if (isset($_POST['idBon_C']))
|
||||
{
|
||||
$idBon = $this->requete->getParametreFormulaire("idBon_C");
|
||||
$motifAnnulation = $this->requete->getParametreFormulaire("motifAnnulation");
|
||||
$codeEtatBon = $this->requete->getParametreFormulaire("codeEtatBon_anl");
|
||||
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire_anl");
|
||||
|
||||
$this->bonpec->annulerBonId($idBon, $motifAnnulation);
|
||||
|
||||
$this->rediriger("Afficherbons", $codeEtatBon);
|
||||
|
||||
} else
|
||||
{
|
||||
$this->rediriger("/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Ged.php';
|
||||
require_once 'Modele/Menuvueprofil.php';
|
||||
|
||||
class ControleurAfficherged extends Controleur {
|
||||
private $ged;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueprofil();
|
||||
$this->menuvue->getMenuVue('Afficherged');
|
||||
|
||||
$this->ged = new Ged();
|
||||
}
|
||||
|
||||
public function index($nomOrigine="", $codeSecret="")
|
||||
{
|
||||
$numeroBeneficiaire = $_SESSION['p_numeroBeneficiaire_C'];
|
||||
if (isset($_POST['nomOrigine']))
|
||||
{
|
||||
$nomOrigine = $this->requete->getParametreFormulaire("nomOrigine");
|
||||
$codeSecret = $this->requete->getParametreFormulaire("codeSecret");
|
||||
}
|
||||
$geds = $this->ged->afficherGeds($numeroBeneficiaire, $nomOrigine, $codeSecret);
|
||||
|
||||
$this->genererVue(array('geds' => $geds, 'nomOrigine' => $nomOrigine, 'codeSecret' => $codeSecret));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurAjaxactesmedicauxselect extends Controleur {
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$prestations = $this->prestation->getactesmedicauxfeuille($numeroFeuilleMaladie, $codePrestataire);
|
||||
$prestations_total = $this->prestation->getactesmedicauxfeuille_total($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$this->genererVueAjax(array('prestations' => $prestations, 'prestations_total' => $prestations_total));
|
||||
}
|
||||
|
||||
public function majquantite()
|
||||
{
|
||||
$idPrestationactes = $this->requete->getParametre("idPrestationactes");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->prestation->majquantite($idPrestationactes, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
|
||||
class ControleurAjaxactespossibles extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$codeTypePrestation = $this->requete->getParametreFormulaire("codeTypePrestation");
|
||||
$acte = $this->acte->getactespossibles($codeTypePrestation, $codeFamilleActe);
|
||||
$this->genererVueAjax(array('acte' => $acte, 'codeActe' => $codeActe));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
|
||||
class ControleurAjaxactespossiblesmed extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
|
||||
$codeTypePrestation = $this->requete->getParametreFormulaire("codeTypePrestation");
|
||||
|
||||
$acte = $this->acte->getactespossibles($codeTypePrestation, $codeFamilleActe);
|
||||
$this->genererVueAjax(array('acte' => $acte));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
|
||||
class ControleurAjaxactespossiblesselection extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
|
||||
|
||||
$actes = $this->acte->geatactesexamensselection($codeFamilleActe);
|
||||
|
||||
$this->genererVueAjax(array('actes' => $actes));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Affection.php';
|
||||
|
||||
|
||||
class ControleurAjaxaffectionspossibles extends Controleur {
|
||||
private $affection;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->affection = new Affection();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codeTypeAffection = $this->requete->getParametreFormulaire("codeTypeAffection");
|
||||
|
||||
$affections = $this->affection->getListe($codeTypeAffection) ;
|
||||
|
||||
$this->genererVueAjax(array('affections' => $affections));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Bonpec.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
|
||||
class ControleurAjaxafficherbons extends Controleur {
|
||||
private $bonpec;
|
||||
|
||||
public function __construct() {
|
||||
$this->bonpec = new Bonpec();
|
||||
$this->typebon = new Typebon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeTypeBon = $this->requete->getParametre("codeTypeBon");
|
||||
$codeEtatBon = $this->requete->getParametreFormulaire("codeEtatBon");
|
||||
$noDepart = $this->requete->getParametreFormulaire("noDepart");
|
||||
$noFin = $this->requete->getParametreFormulaire("noFin");
|
||||
|
||||
$bonpecs = $this->bonpec->afficherBonpecs($codePrestataire, $codeTypeBon, $codeEtatBon, $noDepart, $noFin);
|
||||
|
||||
$this->genererVueAjax(array('bonpecs' => $bonpecs));
|
||||
}
|
||||
|
||||
public function receptionnerBon() {
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeTypeBon = $this->requete->getParametre("codeTypeBon");
|
||||
$noDepart = $this->requete->getParametreFormulaire("noDepart", "numerique");
|
||||
$noFin = $this->requete->getParametreFormulaire("noFin", "numerique");
|
||||
|
||||
$this->bonpec->receptionnerBon($codePrestataire, $codeTypeBon, $noDepart, $noFin);
|
||||
|
||||
$this->executerAction("index");
|
||||
|
||||
}
|
||||
|
||||
public function demanderAnnulationBon()
|
||||
{
|
||||
$idBon = $this->requete->getParametreFormulaire("idBon");
|
||||
$motifAnnulation = $this->requete->getParametreFormulaire("motifAnnulation");
|
||||
|
||||
$this->bonpec->demanderAnnulationBonId($idBon, $motifAnnulation);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function vide()
|
||||
{
|
||||
$this->genererVueAjax(array());
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Consommable_temp.php';
|
||||
|
||||
class ControleurAjaxafficherconsommables extends Controleur {
|
||||
private $consommable;
|
||||
|
||||
public function __construct() {
|
||||
$this->consommable = new Consommable_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$consommables = $this->consommable->getconsommablesfeuille($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$this->genererVueAjax(array('consommables' => $consommables));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Demandebonpec.php';
|
||||
|
||||
class ControleurAjaxalistedemandebon extends Controleur {
|
||||
private $demandesbons;
|
||||
|
||||
public function __construct() {
|
||||
$this->demandesbons = new Demandebonpec();
|
||||
$this->typebon = new Typebon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeTypeBon = $this->requete->getParametre("codeTypeBon");
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$demandesbons = $this->demandesbons->getDemandeBons($codePrestataire, $codeTypeBon, $d1, $d2);
|
||||
|
||||
$this->genererVueAjax(array('demandesbons' => $demandesbons));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Generartionbon.php';
|
||||
|
||||
class ControleurAjaxalistegenererbons extends Controleur {
|
||||
private $generartionbon;
|
||||
|
||||
public function __construct() {
|
||||
$this->generartionbon = new Generartionbon();
|
||||
$this->typebon = new Typebon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeTypeBon = $this->requete->getParametre("codeTypeBon");
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$generartionbons = $this->generartionbon->afficherListeGenererBonpecs($codePrestataire, $codeTypeBon, $d1, $d2);
|
||||
|
||||
$this->genererVueAjax(array('generartionbons' => $generartionbons));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Bonpec.php';
|
||||
|
||||
class ControleurAjaxbondisponible extends Controleur {
|
||||
private $bonpec;
|
||||
|
||||
public function __construct() {
|
||||
$this->bonpec = new Bonpec();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
|
||||
$resultat = $this->bonpec->etatbon($codePrestataire, $numeroBon);
|
||||
|
||||
$codeEtatBon = $resultat['0'];
|
||||
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$msgErreur = $numeroBon.' : Claim Form '.$resultat['1'].' !';
|
||||
}
|
||||
else
|
||||
{
|
||||
$msgErreur = $numeroBon.' : Bon '.$resultat['1'].' !';
|
||||
}
|
||||
|
||||
$this->genererVueAjax(array('codeEtatBon' => $codeEtatBon, 'msgErreur' => $msgErreur));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
class ControleurAjaxchangerdureechambre extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$numeroChambre = $this->requete->getParametreFormulaire("numeroChambre");
|
||||
|
||||
$infosActe = $this->acte->get_infos_acte($codeActe);
|
||||
|
||||
$prixActe = $infosActe['prix'];
|
||||
$prixTarif = $prixActe;
|
||||
$ententePrealable = $infosActe['ententePrealable'];
|
||||
$acteAlerte = $infosActe['alerte'];
|
||||
$acteExclu = $infosActe['exclu'];
|
||||
$acteChirurgie = $infosActe['chirurgie'];
|
||||
|
||||
$valeurActe = round($prixActe*$quantite);
|
||||
$montantTm = round(($valeurActe*$_SESSION['p_tm_C'])/100);
|
||||
$aRembourser = $valeurActe-$montantTm;
|
||||
|
||||
$this->genererVueAjax(array('prixActe' => $prixActe, 'quantite' => $quantite, 'valeurActe' => $valeurActe,
|
||||
'montantTm' => $montantTm, 'aRembourser' => $aRembourser, 'ententePrealable' => $ententePrealable,
|
||||
'acteExclu' => $acteExclu, 'acteChirurgie' => $acteChirurgie, 'prixTarif' => $prixTarif, 'acteAlerte' => $acteAlerte,
|
||||
'numeroChambre' => $numeroChambre));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Utilisateur.php';
|
||||
|
||||
class ControleurAjaxchangerlangue extends Controleur {
|
||||
private $utilisateur;
|
||||
|
||||
public function __construct() {
|
||||
$this->utilisateur = new Utilisateur();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
|
||||
public function changerlangue()
|
||||
{
|
||||
$this->utilisateur->changerlangueutilisateur();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxchangerordonnance extends Controleur
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroBonOrdonnance = $this->requete->getParametreFormulaire("numeroBonOrdonnance");
|
||||
$_SESSION['p_numeroBonOrdonnance_C'] = $numeroBonOrdonnance;
|
||||
}
|
||||
|
||||
public function reinit()
|
||||
{
|
||||
viderContexte();
|
||||
|
||||
$_SESSION['p_numeroBonOrdonnance_C'] = "-1";
|
||||
$_SESSION['p_numeroBonExamen_C'] = "-1";
|
||||
$_SESSION['p_numeroBonOptique_C'] = "-1";
|
||||
$_SESSION['p_numeroBonKine_C'] = "-1";
|
||||
|
||||
$_SESSION['p_okId'] = "-1";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxchangerordonnancelab extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroBonExamen = $this->requete->getParametreFormulaire("numeroBonExamen");
|
||||
$_SESSION['p_numeroBonExamen_C'] = $numeroBonExamen;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxchangerordonnanceopt extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroBonOptique = $this->requete->getParametreFormulaire("numeroBonOptique");
|
||||
$_SESSION['p_numeroBonOptique_C'] = $numeroBonOptique;
|
||||
}
|
||||
|
||||
public function reinit()
|
||||
{
|
||||
viderContexte();
|
||||
|
||||
$_SESSION['p_numeroBonOrdonnance_C'] = "-1";
|
||||
$_SESSION['p_numeroBonExamen_C'] = "-1";
|
||||
$_SESSION['p_numeroBonOptique_C'] = "-1";
|
||||
$_SESSION['p_numeroBonKine_C'] = "-1";
|
||||
|
||||
$_SESSION['p_okId'] = "-1";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxchangerordonnancesea extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$_SESSION['p_numeroBonSeance_C'] = "-1";
|
||||
$numeroBonKine = $this->requete->getParametreFormulaire("numeroBonKine");
|
||||
$_SESSION['p_numeroBonKine_C'] = $numeroBonKine;
|
||||
}
|
||||
|
||||
public function reinit()
|
||||
{
|
||||
viderContexte();
|
||||
|
||||
$_SESSION['p_numeroBonOrdonnance_C'] = "-1";
|
||||
$_SESSION['p_numeroBonExamen_C'] = "-1";
|
||||
$_SESSION['p_numeroBonOptique_C'] = "-1";
|
||||
$_SESSION['p_numeroBonKine_C'] = "-1";
|
||||
|
||||
$_SESSION['p_okId'] = "-1";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
class ControleurAjaxchangerqteacte extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$prixActe = $this->acte->getprixacte($codeActe);
|
||||
$ententePrealable = $this->acte->getententePrealable($codeActe);
|
||||
$acteExclu = $this->acte->getacteExclu($codeActe);
|
||||
$valeurActe = round($prixActe*$quantite);
|
||||
$montantTm = round(($valeurActe*$_SESSION['p_tm_C'])/100);
|
||||
$aRembourser = $valeurActe-$montantTm;
|
||||
|
||||
$this->genererVueAjax(array('prixActe' => $prixActe, 'quantite' => $quantite, 'valeurActe' => $valeurActe,
|
||||
'montantTm' => $montantTm, 'aRembourser' => $aRembourser, 'ententePrealable' => $ententePrealable,
|
||||
'acteExclu' => $acteExclu));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxcommanderbons extends Controleur {
|
||||
private $typebon;
|
||||
|
||||
public function __construct() {
|
||||
$this->typebon = new Typebon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$typebon = $this->typebon->getListe();
|
||||
|
||||
$this->genererVueAjax(array('typebon' => $typebon));
|
||||
}
|
||||
|
||||
public function commanderBon()
|
||||
{
|
||||
$codeTypeBon = $this->requete->getParametreFormulaire("codeTypeBon");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$commentaire = "";
|
||||
|
||||
$this->typebon->commanderbon($codeTypeBon, $quantite, $commentaire);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
require_once 'Framework/Localisation.php';
|
||||
|
||||
class ControleurAjaxconnexioncookie extends Controleur
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
// require_once '/Framework/Localisation.php';
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$msgErreur = $this->requete->getParametreFormulaire("msgErreur");
|
||||
|
||||
$this->genererVueAjax(array('msgErreur' => $msgErreur));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxconsultationbencso extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$feuillemaladies = $this->feuillemaladie->getfeuillesmaladie($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladies' => $feuillemaladies));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationbenlab extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestataire($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationbenopt extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestataire($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationbenpha extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestataire($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationbensea extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestataire($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxconsultationcso extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$feuillemaladies = $this->feuillemaladie->getfeuillesmaladiecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladies' => $feuillemaladies));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxconsultationcsoentete extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$totalfeuillemaladies = $this->feuillemaladie->gettotalfeuillesmaladiecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('totalfeuillemaladies' => $totalfeuillemaladies));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationlab extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationlabentete extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$totalfactures = $this->facture->gettotalfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('totalfactures' => $totalfactures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationopt extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationoptentete extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$totalfactures = $this->facture->gettotalfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('totalfactures' => $totalfactures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationpha extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationphaentete extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$totalfactures = $this->facture->gettotalfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('totalfactures' => $totalfactures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationsea extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$factures = $this->facture->getfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxconsultationseaentete extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$totalfactures = $this->facture->gettotalfacturesprestatairecons($codePrestataire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('totalfactures' => $totalfactures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/College_temp.php';
|
||||
|
||||
class ControleurAjaxconsultertableauprestation extends Controleur {
|
||||
private $college_temp2;
|
||||
|
||||
public function __construct() {
|
||||
$this->college_temp2 = new College_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idCollegeTemp = $_SESSION['p_idCollegeTemp'];
|
||||
$tableau_prestations = $this->college_temp2->getPrestation($idCollegeTemp);
|
||||
|
||||
$this->genererVueAjax(array('tableau_prestations' => $tableau_prestations));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Finger.php';
|
||||
|
||||
class ControleurAjaxcontextbeneficiaire extends Controleur {
|
||||
private $finger;
|
||||
|
||||
public function __construct() {
|
||||
$this->finger = new Finger();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idBeneficiaire = $this->requete->getParametre("idBeneficiaire");
|
||||
|
||||
$idBeneficiaire_sav = $_SESSION['p_idBeneficiaire_sav'];
|
||||
|
||||
if ($idBeneficiaire == $_SESSION['p_idBeneficiaire_sav'])
|
||||
{
|
||||
$_SESSION['p_okId'] = $this->requete->getParametre("okId");
|
||||
$_SESSION['p_okId_face'] = $this->requete->getParametre("okId_face");
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['p_okId'] = "-1";
|
||||
$_SESSION['p_okId_face'] = "-1";
|
||||
}
|
||||
$_SESSION['p_idBeneficiaire_C'] = $idBeneficiaire;
|
||||
$_SESSION['p_idBeneficiaire_sav'] = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function saveenroleur()
|
||||
{
|
||||
$user_id = $this->requete->getParametreFormulaire("user_id");
|
||||
$this->finger->saveenroleur($user_id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Client.php';
|
||||
|
||||
class ControleurAjaxcontextclient extends Controleur {
|
||||
private $client;
|
||||
|
||||
public function __construct() {
|
||||
$this->client = new Client();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idClient = $this->requete->getParametre("idClient");
|
||||
$this->client->getContexteAjaxClient($idClient);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextfacturelab extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$_SESSION['p_idFacture_C'] = $this->requete->getParametre("idFacture");
|
||||
$_SESSION['p_numeroBonExamen_C'] = $this->requete->getParametre("numeroBonExamen");
|
||||
$_SESSION['p_codePrestataireLivraison_C'] = $this->requete->getParametre("codePrestataireLivraison");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextfactureopt extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$_SESSION['p_idFacture_C'] = $this->requete->getParametre("idFacture");
|
||||
$_SESSION['p_numeroBonOptique_C'] = $this->requete->getParametre("numeroBonOptique");
|
||||
$_SESSION['p_numeroOptique_C'] = $this->requete->getParametre("numeroOptique");
|
||||
$_SESSION['p_codePrestataireLivraison_C'] = $this->requete->getParametre("codePrestataireLivraison");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextfacturepha extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$_SESSION['p_idFacture_C'] = $this->requete->getParametre("idFacture");
|
||||
$_SESSION['p_numeroBonOrdonnance_C'] = $this->requete->getParametre("numeroBonOrdonnance");
|
||||
$_SESSION['p_codePrestataireLivraison_C'] = $this->requete->getParametre("codePrestataireLivraison");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextfacturesea extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$_SESSION['p_idFacture_C'] = $this->requete->getParametre("idFacture");
|
||||
$_SESSION['p_numeroBonKine_C'] = $this->requete->getParametre("numeroBonKine");
|
||||
$_SESSION['p_codePrestataireLivraison_C'] = $this->requete->getParametre("codePrestataireLivraison");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextfeuillemaladie extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$_SESSION['p_numeroFeuilleMaladie_C'] = $this->requete->getParametre("numeroFeuilleMaladie");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxcontextidentification extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$_SESSION['p_user_id_substitut'] = $this->requete->getParametre("user_id_substitut");
|
||||
$_SESSION['p_okId'] = "1";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaxcontextpolice extends Controleur {
|
||||
private $police;
|
||||
|
||||
public function __construct() {
|
||||
$this->police = new Police();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idPolice = $this->requete->getParametre("idPolice");
|
||||
$this->police->getContexteAjaxPolice($idPolice);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
|
||||
class ControleurAjaxdatefacturerelle extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$dateFactureReellefr = $this->requete->getParametreFormulaire("dateFactureReelle");
|
||||
$dateFactureReelle = $this->requete->getParametreDate("dateFactureReelle");
|
||||
|
||||
$_SESSION['p_dateFactureReellefr_C'] = $dateFactureReellefr;
|
||||
$_SESSION['p_dateFactureReelle_C'] = $dateFactureReelle;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Reglement.php';
|
||||
|
||||
class ControleurAjaxdecompte extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
$this->reglement = new Reglement();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
}
|
||||
|
||||
public function initierdecompte()
|
||||
{
|
||||
$idReglement = $this->requete->getParametreFormulaire("idReglement");
|
||||
$_SESSION['p_idReglement_C'] = $idReglement;
|
||||
}
|
||||
|
||||
public function validerdecompteprestataire()
|
||||
{
|
||||
$this->reglement->validerdecompteprestataire();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Utilisateur.php';
|
||||
|
||||
class ControleurAjaxdeconnexion extends Controleur {
|
||||
private $utilisateur;
|
||||
|
||||
public function __construct() {
|
||||
$this->utilisateur = new Utilisateur();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$login = $this->requete->getSession()->getAttribut("p_login");
|
||||
$this->utilisateur->viderTablesTemporairesUser($login);
|
||||
$this->requete->getSession()->detruire();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Raisonconsultation.php';
|
||||
|
||||
class ControleurAjaxdelaicarencecaisonconsultation extends Controleur {
|
||||
private $raison;
|
||||
|
||||
public function __construct() {
|
||||
$this->raison = new Raisonconsultation();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codeRaisonConsultation = $this->requete->getParametreFormulaire("codeRaisonConsultation");
|
||||
|
||||
$delaiCarenceRaisonconsultation_info = $this->raison->getdelaicarencecaisonconsultation($codeRaisonConsultation);
|
||||
$appliquerDelaiCarence_info = $this->raison->getappliquerdelaicarence($codeRaisonConsultation);
|
||||
|
||||
$this->genererVueAjax(array('delaiCarenceRaisonconsultation_info' => $delaiCarenceRaisonconsultation_info,
|
||||
'appliquerDelaiCarence_info' => $appliquerDelaiCarence_info));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typecontrat.php';
|
||||
|
||||
class ControleurAjaxdelaicarencetypecontrat extends Controleur {
|
||||
private $typecontrat;
|
||||
|
||||
public function __construct() {
|
||||
$this->typecontrat = new Typecontrat();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codeTypeContrat = $this->requete->getParametreFormulaire("codeTypeContrat");
|
||||
|
||||
$delaiCarencePolice_info = $this->typecontrat->getinfosdelaicarence($codeTypeContrat);
|
||||
|
||||
$this->genererVueAjax(array('delaiCarencePolice_info' => $delaiCarencePolice_info));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Demandedecompte.php';
|
||||
|
||||
class ControleurAjaxdemandedecompte extends Controleur {
|
||||
private $reglement;
|
||||
|
||||
public function __construct() {
|
||||
$this->reglement = new Demandedecompte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$this->genererVueAjax(array('regle' => $_SESSION['p_decompteRegle_C']));
|
||||
}
|
||||
|
||||
public function initierdemandedecompte()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeExercice = $this->requete->getParametreFormulaire("codeExercice");
|
||||
$codeMois = $this->requete->getParametreFormulaire("codeMois");
|
||||
|
||||
$_SESSION['p_codePrestataire_Dec'] = $codePrestataire;
|
||||
|
||||
$_SESSION['p_codeExercice_C'] = $codeExercice;
|
||||
$_SESSION['p_codeMois_C'] = $codeMois;
|
||||
|
||||
$idDemandeDecompte = $this->reglement->get_idDemandeDecompte($codePrestataire, $codeExercice, $codeMois) ;
|
||||
|
||||
$_SESSION['p_idDemandeDecompte_C'] = $idDemandeDecompte;
|
||||
|
||||
if($idDemandeDecompte==0)
|
||||
{
|
||||
// Créer la demande de décompte dans p_demandedecompte
|
||||
// $this->reglement->initdecompteprestataire();
|
||||
$this->reglement->initdemandedecompte();
|
||||
|
||||
$idDemandeDecompte = $this->reglement->get_idDemandeDecompte($codePrestataire, $codeExercice, $codeMois);
|
||||
|
||||
$_SESSION['p_idDemandeDecompte_C'] = $idDemandeDecompte;
|
||||
}
|
||||
|
||||
// Afficher le décompte
|
||||
$idDemandeDecompte = $_SESSION['p_idDemandeDecompte_C'];
|
||||
|
||||
$infosdemandedecompte = $this->reglement->getinfosdemandedecompte($idDemandeDecompte);
|
||||
|
||||
$_SESSION['p_decompteRegle_C'] = $infosdemandedecompte['regle'];
|
||||
$_SESSION['p_numeroDemandeDecompte_C'] = $infosdemandedecompte['numeroDemandeDecompte'];
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function rechargerdemandedecompte()
|
||||
{
|
||||
$idDemandeDecompte = $_SESSION['p_idDemandeDecompte_C'];
|
||||
$numeroDemandeDecompte = $_SESSION['p_numeroDemandeDecompte_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$codeExercice = $_SESSION['p_codeExercice_C'];
|
||||
$codeMois = $_SESSION['p_codeMois_C'];
|
||||
|
||||
$this->reglement->rechargerdemandedecompte($idDemandeDecompte, $numeroDemandeDecompte, $codePrestataire, $codeExercice, $codeMois);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxdepassementlimitefeuillemaladie extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
|
||||
$infosfeuillemaladie = $this->feuillemaladie->getinfosfeuillemaladie($numeroFeuilleMaladie);
|
||||
|
||||
$fraisExclu = $infosfeuillemaladie['fraisExclu'];
|
||||
|
||||
$this->genererVueAjax(array('fraisExclu' => $fraisExclu));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Derogation.php';
|
||||
|
||||
class ControleurAjaxderogation extends Controleur {
|
||||
private $derogation;
|
||||
|
||||
public function __construct() {
|
||||
$this->derogation = new Derogation();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$derogations = $this->derogation->getderogations($codePrestataire, $idBeneficiaire, $d1, $d2);
|
||||
|
||||
$this->genererVueAjax(array('derogations' => $derogations));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailexamem.php';
|
||||
require_once 'Modele/Examen_temp.php';
|
||||
|
||||
class ControleurAjaxdetailexamen extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Examen_temp();
|
||||
$this->detailprescription = new Detailexamem();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroExamen = $_SESSION['p_numeroExamen_C'];
|
||||
|
||||
$prescription = $this->prescription->getexamentemp();
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailexamenfeuille();
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
$detaillivres = $this->prescription->getdetaillivre();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions,
|
||||
'detailnonlivres' => $detailnonlivres, 'detaillivres' => $detaillivres));
|
||||
}
|
||||
|
||||
public function ajouterexamen()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
|
||||
$this->prescription->ajouterexamen($idExamen);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajouterexamentous()
|
||||
{
|
||||
$this->prescription->ajouterexamentous();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerexamen()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
|
||||
$this->prescription->retirerexamen($idExamen);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerexamentous()
|
||||
{
|
||||
$this->prescription->retirerexamentous();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrerexamen()
|
||||
{
|
||||
$this->prescription->enregistrerexamen();
|
||||
}
|
||||
|
||||
public function majquantiteexam()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailprescription->majquantiteexam($idExamen, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facturesansbon.php';
|
||||
require_once 'Modele/Ouinon.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
|
||||
class ControleurAjaxdetailfacturesansboncso extends Controleur {
|
||||
private $facture;
|
||||
private $prestation;
|
||||
private $beneficiaire;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->facture = new Facturesansbon();
|
||||
$this->ouinonhospit = (new Ouinon())->getListe();
|
||||
$this->prestation = new Prestationactes();
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$facture = $this->facture->getfacture_sans_bon_temp();
|
||||
|
||||
$prestations = $this->facture->getprestations_sans_bon_temp();
|
||||
|
||||
$garantieadherent_temp = $this->facture->afficher_garantieadherent_temp();
|
||||
|
||||
$this->beneficiaire->controlerplafondbeneficiaireannuel($idBeneficiaire);
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTempAssureur();
|
||||
|
||||
$this->genererVueAjax(array('facture' => $facture, 'prestations' => $prestations, 'garantieadherent_temp' => $garantieadherent_temp,
|
||||
'ouinonhospit' => $this->ouinonhospit, 'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
$dateFacture = $this->requete->getParametreDate("dateFacture");
|
||||
$hospitalisation = $this->requete->getParametreFormulaire("hospitalisation");
|
||||
$observations = $this->requete->getParametreFormulaire("observations");
|
||||
$tm = $this->requete->getParametreFormulaire("tm", "numerique");
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$medecinManquant = $this->requete->getParametreFormulaire("medecinManquant");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$initialiserprestation = $this->requete->getParametreFormulaire("initialiserprestation");
|
||||
|
||||
$this->facture->enregistrerfacturetemp($dateFacture, $hospitalisation, $observations, $tm, $numeroBon, $medecinManquant,
|
||||
$codeMedecin, $initialiserprestation);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function validerfacturesansbon()
|
||||
{
|
||||
$this->facture->validerfacturesansbon();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,118 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailexamem.php';
|
||||
require_once 'Modele/Examen_temp.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurAjaxdetaillaboratoire extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Examen_temp();
|
||||
$this->detailprescription = new Detailexamem();
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroBonExamen = $_SESSION['p_numeroBonExamen_C'];
|
||||
$numeroExamen = $_SESSION['p_numeroExamen_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_lab($numeroBonExamen);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription_lab($numeroBonExamen);
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
$detaillivres = $this->prescription->getdetaillivre();
|
||||
|
||||
$garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions,
|
||||
'detailnonlivres' => $detailnonlivres, 'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp,
|
||||
'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
public function ajouterexamen()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
|
||||
$this->prescription->ajouterexamen($idExamen);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajouterexamentous()
|
||||
{
|
||||
$this->prescription->ajouterexamentous();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerexamen()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
|
||||
$this->prescription->retirerexamen($idExamen);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerexamentous()
|
||||
{
|
||||
$this->prescription->retirerexamentous();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrerlaboratoire()
|
||||
{
|
||||
$user_id_substitut = $this->requete->getParametreFormulaire("user_id_substitut");
|
||||
$this->prescription->facturerlaboratoire($user_id_substitut);
|
||||
}
|
||||
|
||||
public function annulersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->annulersubstitutionmedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
$prixSubstitut = $this->requete->getParametreFormulaire("prixSubstitut", "numerique");
|
||||
|
||||
$this->prescription->enregistrersubstitutionmedicament($idMedicament, $prixSubstitut);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajouterexamenprescription()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
|
||||
$this->detailprescription->ajouterexamenlab($codeActe, $ententePrealable);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majquantiteexam()
|
||||
{
|
||||
$idExamen = $this->requete->getParametreFormulaire("idExamen");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailprescription->majquantiteexam($idExamen, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailoptique.php';
|
||||
require_once 'Modele/Optique_temp.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurAjaxdetailopticien extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Optique_temp();
|
||||
$this->detailprescription = new Detailoptique();
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroBonOptique = $_SESSION['p_numeroBonOptique_C'];
|
||||
$numeroOptique = $_SESSION['p_numeroOptique_C'];
|
||||
|
||||
$prescription = $this->prescription->getoptique_opt($numeroBonOptique);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailoptique_opt($numeroBonOptique);
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
$detaillivres = $this->prescription->getdetaillivre();
|
||||
|
||||
$garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions,
|
||||
'detailnonlivres' => $detailnonlivres, 'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp,
|
||||
'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
public function ajouterverre()
|
||||
{
|
||||
$idOptique = $this->requete->getParametreFormulaire("idOptique");
|
||||
|
||||
$this->prescription->ajouterverre($idOptique);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajouterverretous()
|
||||
{
|
||||
$this->prescription->ajouterverretous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerverre()
|
||||
{
|
||||
$idOptique = $this->requete->getParametreFormulaire("idOptique");
|
||||
|
||||
$this->prescription->retirerverre($idOptique);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirerverretous()
|
||||
{
|
||||
$this->prescription->retirerverretous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistreroptique()
|
||||
{
|
||||
$this->prescription->factureropotique();
|
||||
}
|
||||
|
||||
public function majmonture()
|
||||
{
|
||||
$idOptique = $this->requete->getParametreFormulaire("idOptique");
|
||||
$monture = $this->requete->getParametreFormulaire("monture");
|
||||
|
||||
$this->prescription->majmonturetemp($idOptique, $monture);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajouterverreprescription()
|
||||
{
|
||||
$codeOptique = $this->requete->getParametreFormulaire("codeOptique");
|
||||
|
||||
$this->detailprescription->ajouterverreopt($codeOptique);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function creerverre()
|
||||
{
|
||||
$libelleOptique = $this->requete->getParametreFormulaire("libelleOptique");
|
||||
$prixVerre = $this->requete->getParametreFormulaire("prixVerre", "numerique");
|
||||
|
||||
$this->prescription->creerverre($libelleOptique, $prixVerre);
|
||||
|
||||
// $this->genererVueAjax();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function demanderaccordopt()
|
||||
{
|
||||
$idOptique = $this->requete->getParametreFormulaire("idOptique");
|
||||
|
||||
$this->detailprescription->demanderaccordopt($idOptique);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prescription.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
|
||||
class ControleurAjaxdetailoptique extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription($numeroPrescription);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription);
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions));
|
||||
}
|
||||
|
||||
public function ajoutermedicament()
|
||||
{
|
||||
$codeMedicament = $this->requete->getParametreFormulaire("codeMedicament");
|
||||
|
||||
$this->detailprescription->ajoutermedicament($codeMedicament);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimer()
|
||||
{
|
||||
$idOptique = $this->requete->getParametre("idOptique");
|
||||
|
||||
$this->detailoptique->supprimerverre($idOptique);
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
require_once 'Modele/Prescription_temp.php';
|
||||
|
||||
class ControleurAjaxdetailordonnance extends Controleur
|
||||
{
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->prescription = new Prescription_temp();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
require_once 'Modele/Prescription_temp.php';
|
||||
|
||||
class ControleurAjaxdetailpharmacie extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription_temp();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription();
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription);
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
// $detaillivres = $this->prescription->getdetaillivre();
|
||||
$detaillivres = $this->prescription->getdetaillivrecso();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions,
|
||||
'detailnonlivres' => $detailnonlivres, 'detaillivres' => $detaillivres));
|
||||
}
|
||||
|
||||
public function ajoutermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->ajoutermedicamentcso($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajoutermedicamenttous()
|
||||
{
|
||||
$this->prescription->ajoutermedicamenttouscso();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->retirermedicamentcso($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicamenttous()
|
||||
{
|
||||
$this->prescription->retirermedicamenttouscso();
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrerpharmacie()
|
||||
{
|
||||
$this->prescription->enregistrerpharmacie();
|
||||
}
|
||||
|
||||
public function demanderaccordpha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->detailprescription->demanderaccordpha($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
require_once 'Modele/Prescription_temp.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurAjaxdetailpharmacien extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription_temp();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
|
||||
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
$detaillivres = $this->prescription->getdetaillivrepha();
|
||||
|
||||
$garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres,
|
||||
'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp, 'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
public function ajoutermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->ajoutermedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajoutermedicamenttous()
|
||||
{
|
||||
$this->prescription->ajoutermedicamenttous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->retirermedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicamenttous()
|
||||
{
|
||||
$this->prescription->retirermedicamenttous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrerpharmacie()
|
||||
{
|
||||
$this->prescription->facturerpharmacie();
|
||||
}
|
||||
|
||||
public function annulersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->annulersubstitutionmedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
$prixSubstitut = $this->requete->getParametreFormulaire("prixSubstitut", "numerique");
|
||||
|
||||
$this->prescription->enregistrersubstitutionmedicament($idMedicament, $prixSubstitut);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajoutermedicamentprescription()
|
||||
{
|
||||
$codeMedicament = $this->requete->getParametreFormulaire("codeMedicament");
|
||||
|
||||
$this->detailprescription->ajoutermedicamentpha($codeMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majquantitepha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailprescription->majquantitepha($idMedicament, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function demanderaccordpha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->detailprescription->demanderaccordpha($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majprixpha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$prix = $this->requete->getParametreFormulaire("prix", "numerique");
|
||||
|
||||
// $this->detailprescription->majquantitepha($idMedicament, $quantite);
|
||||
$this->detailprescription->majprixpha($idMedicament, $prix);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prescription.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxdetailprescription extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription($numeroPrescription);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription);
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions));
|
||||
}
|
||||
|
||||
public function ajoutermedicament()
|
||||
{
|
||||
$codeMedicament = $this->requete->getParametreFormulaire("codeMedicament");
|
||||
|
||||
$this->detailprescription->ajoutermedicament($codeMedicament);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majquantite()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailprescription->majquantite($idMedicament, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimer()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
|
||||
$this->detailprescription->supprimer($idMedicament);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function initremplacement()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
|
||||
$_SESSION['p_idMedicament_a_remplacer'] = $idMedicament;
|
||||
}
|
||||
|
||||
public function consulterremplacement()
|
||||
{
|
||||
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
|
||||
|
||||
$medicaments_remplaces = $this->detailprescription->getmedicamentsremplaces($numeroBonOrdonnance);
|
||||
|
||||
$this->genererVueAjax(array('medicaments_remplaces' => $medicaments_remplaces));
|
||||
}
|
||||
|
||||
public function remplacermedicament()
|
||||
{
|
||||
$codeMedicamentNouv = $this->requete->getParametreFormulaire("codeMedicamentNouv");
|
||||
|
||||
$this->detailprescription->remplacermedicament($codeMedicamentNouv);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Examen_temp.php';
|
||||
require_once 'Modele/Detailexamem.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxdetailprescriptionexamen extends Controleur {
|
||||
private $examen;
|
||||
private $detailexamen;
|
||||
|
||||
public function __construct() {
|
||||
$this->examen = new Examen_temp();
|
||||
$this->detailexamen = new Detailexamem();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroExamen = $_SESSION['p_numeroExamen_C'];
|
||||
|
||||
$examen = $this->examen->getexamentemp();
|
||||
|
||||
$detailexamens = $this->detailexamen->getdetailexamenfeuille();
|
||||
$nbExamens_0 = count($detailexamens);
|
||||
|
||||
$this->genererVueAjax(array('examen' => $examen, 'detailexamens' => $detailexamens, 'nbExamens_0' => $nbExamens_0));
|
||||
}
|
||||
|
||||
public function ajouterexamen()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
|
||||
$this->detailexamen->ajouterexamen($codeActe, $ententePrealable);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majquantite()
|
||||
{
|
||||
$idExamen = $this->requete->getParametre("idExamen");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailexamen->majquantite($idExamen, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimer()
|
||||
{
|
||||
$idExamen = $this->requete->getParametre("idExamen");
|
||||
|
||||
$this->detailexamen->supprimerexamen($idExamen);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Seance_temp.php';
|
||||
|
||||
class ControleurAjaxdetailseance extends Controleur {
|
||||
private $seance;
|
||||
|
||||
public function __construct() {
|
||||
$this->seance = new Seance_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerseance()
|
||||
{
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->seance->enregistrerseance($codeGestionBon);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxdiagnosticsbeneficiaire extends Controleur
|
||||
{
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$diagnostics = $this->feuillemaladie->getDiagnosticsBeneficiaire($idBeneficiaire);
|
||||
|
||||
$this->genererVueAjax(array('diagnostics' => $diagnostics));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxdiagnosticscons extends Controleur
|
||||
{
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
|
||||
$diagnostics = $this->feuillemaladie->getDiagnostics($numeroFeuilleMaladie);
|
||||
|
||||
$this->genererVueAjax(array('diagnostics' => $diagnostics));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxdossiers extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$_SESSION['p_d1_C'] = $d1;
|
||||
$_SESSION['p_d2_C'] = $d2;
|
||||
|
||||
$feuillemaladies = $this->feuillemaladie->getfeuillesmaladie($codePrestataire, $idBeneficiaire, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladies' => $feuillemaladies));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Reglement.php';
|
||||
|
||||
class ControleurAjaxecartdecomptecons extends Controleur
|
||||
{
|
||||
private $reglement;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->reglement = new Reglement();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
|
||||
$reglement = $this->reglement->getreglement($idReglement);
|
||||
|
||||
$recapecartdecompte = $this->reglement->getrecapecartdecompte($idReglement);
|
||||
|
||||
$this->genererVueAjax(array('reglement' => $reglement, 'recapecartdecompte' => $recapecartdecompte));
|
||||
}
|
||||
|
||||
public function ecartfacture()
|
||||
{
|
||||
$ecartfactures = $this->reglement->getecartsdecompte("1");
|
||||
|
||||
$this->genererVueAjax(array('ecartfactures' => $ecartfactures));
|
||||
}
|
||||
|
||||
public function ecartnonsaisi()
|
||||
{
|
||||
$ecartnonsaisis = $this->reglement->getecartsdecompte("0");
|
||||
|
||||
$this->genererVueAjax(array('ecartnonsaisis' => $ecartnonsaisis));
|
||||
}
|
||||
|
||||
public function recapecratdecompte()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
$this->reglement->recapecratdecompte($idReglement);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxenregistreractemedical extends Controleur {
|
||||
private $prestationacte;
|
||||
|
||||
public function __construct() {
|
||||
$this->prestationacte = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistreractemedical()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
$autorisation = $this->requete->getParametreFormulaire("autorisation");
|
||||
$prixTarif = $this->requete->getParametreFormulaire("prixTarif", "numerique");
|
||||
|
||||
$this->prestationacte->enregistreractemedical($codeActe, $codeMedecin, $quantite, $prixActe, $valeurActe, $montantTm, $aRembourser,
|
||||
$ententePrealable, $autorisation, $prixTarif);
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimeracte()
|
||||
{
|
||||
$idPrestationactes = $this->requete->getParametre("idPrestationactes");
|
||||
$codeTypePrestation = $this->requete->getParametre("codeTypePrestation");
|
||||
|
||||
$this->prestationacte->supprimeracte($idPrestationactes, $codeTypePrestation);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxenregistreractemedicalsel extends Controleur {
|
||||
private $prestationacte;
|
||||
|
||||
public function __construct() {
|
||||
$this->prestationacte = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistreractemedical()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$valeurActe = $prixActe ;
|
||||
// $quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$quantite = "1";
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
$autorisation = "0";
|
||||
$prixTarif = $prixActe ;
|
||||
|
||||
$this->prestationacte->enregistreractemedical($codeActe, $codeMedecin, $quantite, $prixActe, $valeurActe, $montantTm, $aRembourser,
|
||||
$ententePrealable, $autorisation, $prixTarif);
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimeracte()
|
||||
{
|
||||
$idPrestationactes = $this->requete->getParametre("idPrestationactes");
|
||||
$codeTypePrestation = $this->requete->getParametre("codeTypePrestation");
|
||||
|
||||
$this->prestationacte->supprimeracte($idPrestationactes, $codeTypePrestation);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
|
||||
class ControleurAjaxenregistreraffection extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistreraffection()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codeAffection = $this->requete->getParametreFormulaire("codeAffection");
|
||||
|
||||
$this->feuillemaladie->enregistreraffection($numeroFeuilleMaladie, $codeAffection) ;
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimeraffection()
|
||||
{
|
||||
$idAffection = $this->requete->getParametreFormulaire("idAffection");
|
||||
$this->feuillemaladie->supprimeraffection($idAffection);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxenregistrerchambre extends Controleur {
|
||||
private $prestationacte;
|
||||
|
||||
public function __construct() {
|
||||
$this->prestationacte = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerchambre()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$valeurActe = $this->requete->getParametreFormulaire("valeurActe", "numerique");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
$debut = $this->requete->getParametreDate("debut");
|
||||
$fin = $this->requete->getParametreDate("fin");
|
||||
$numeroChambre = $this->requete->getParametreFormulaire("numeroChambre");
|
||||
|
||||
$autorisation = $this->requete->getParametreFormulaire("autorisation");
|
||||
$prixTarif = $this->requete->getParametreFormulaire("prixTarif", "numerique");
|
||||
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
|
||||
$this->prestationacte->enregistrerchambre($codeActe, $quantite, $prixActe, $valeurActe, $montantTm, $aRembourser, $debut, $fin,
|
||||
$numeroChambre, $autorisation, $prixTarif, $ententePrealable);
|
||||
|
||||
// A mettre en commentaire
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function supprimerchambre()
|
||||
{
|
||||
$idChambre = $this->requete->getParametre("idChambre");
|
||||
|
||||
$this->prestationacte->supprimerchambre($idChambre);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,141 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxenregistrerconsultation extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$this->genererVueAjax(array('numeroFeuilleMaladie' => $numeroFeuilleMaladie));
|
||||
}
|
||||
|
||||
public function enregistrerconsultation()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$dateSurvenance = $this->requete->getParametreDate("dateSurvenance");
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$observations = $this->requete->getParametreFormulaire("observations");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$numeroDerogation = $this->requete->getParametreFormulaire("numeroDerogation");
|
||||
$numeroDerogationFinger = $this->requete->getParametreFormulaire("numeroDerogationFinger");
|
||||
$codeRaisonConsultation = $this->requete->getParametreFormulaire("codeRaisonConsultation");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
$medecinManquant = $this->requete->getParametreFormulaire("medecinManquant");
|
||||
$codeSpecialiteManuel = $this->requete->getParametreFormulaire("codeSpecialiteManuel");
|
||||
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$numeroFeuilleMaladie = $this->feuillemaladie->enregistrerconsultation($codeActe, $dateSurvenance, $numeroBon,
|
||||
$observations, $prixActe, $montantTm, $aRembourser, $codeMedecin, $codeRaisonConsultation, $numeroDerogation,
|
||||
$numeroDerogationFinger, $medecinManquant, $codeGestionBon, $codeSpecialiteManuel);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function mailconsultation()
|
||||
{
|
||||
$emailDestination = $_SESSION['p_emailAdherent_C'];
|
||||
|
||||
/* Pour les tests */
|
||||
$email_standard = $_SESSION['p_email_standard'];
|
||||
if($email_standard>" ")
|
||||
{
|
||||
$emailDestination .= ";".$email_standard ;
|
||||
}
|
||||
/* Fin mails tests */
|
||||
|
||||
/* Pour empêcher les envois de mails */
|
||||
$emailDestination = "lkane@ebene.info";
|
||||
/* Fin Pour empêcher les envois de mails */
|
||||
|
||||
if($emailDestination>" ")
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
$dateSurvenance = $this->requete->getParametreDate("dateSurvenance");
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$observations = $this->requete->getParametreFormulaire("observations");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
|
||||
// DEBUT ENVOI DU MAIL
|
||||
|
||||
require_once 'Framework/Ebenegmail.php';
|
||||
|
||||
$obejt = "ALERTE CONSOMMATION";
|
||||
|
||||
$body = "- Prestataire : ".$_SESSION['p_prestataire_C']."
|
||||
|
||||
- Patient : ".$_SESSION['p_beneficiaire_C']." (".$_SESSION['p_numeroBeneficiaire_C'].")
|
||||
|
||||
- Date : ".heureCourante()."
|
||||
|
||||
- Acte : Consultation
|
||||
|
||||
- Coût : ".format_N($prixActe)." ".$_SESSION['p_devise_C']."
|
||||
|
||||
- Ticket Modérateur : ".format_N($montantTm)." ".$_SESSION['p_devise_C']."
|
||||
|
||||
Merci et bonne réception.";
|
||||
|
||||
$body = convertirc($body);
|
||||
|
||||
$addr = explode(';', $emailDestination);
|
||||
foreach ($addr as $ad)
|
||||
{
|
||||
$mail->AddAddress(trim($ad) );
|
||||
}
|
||||
|
||||
// $mail->AddBCC($destCC1, "Pour EBENE"); // Copie cachée BCC
|
||||
|
||||
$mail->Subject = $obejt;
|
||||
|
||||
$mail->Body=$body;
|
||||
// $mail->AltBody=$body;
|
||||
|
||||
// $mail->addAttachment($pj);
|
||||
|
||||
$mail->send();
|
||||
}
|
||||
}
|
||||
|
||||
public function enregistrerinitconsultation()
|
||||
{
|
||||
$dateSurvenance = $this->requete->getParametreDate("dateSurvenance");
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$numeroDerogation = $this->requete->getParametreFormulaire("numeroDerogation");
|
||||
$numeroDerogationFinger = $this->requete->getParametreFormulaire("numeroDerogationFinger");
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$numeroFeuilleMaladie = $this->feuillemaladie->enregistrerinitconsultation($dateSurvenance, $numeroBon, $numeroDerogation, $numeroDerogationFinger, $codeGestionBon);
|
||||
|
||||
// $this->executerAction("index");
|
||||
}
|
||||
|
||||
public function completerconsultation()
|
||||
{
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
// $observations = $this->requete->getParametreFormulaire("observations");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$codeRaisonConsultation = $this->requete->getParametreFormulaire("codeRaisonConsultation");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$aRembourser = $this->requete->getParametreFormulaire("aRembourser", "numerique");
|
||||
$medecinManquant = $this->requete->getParametreFormulaire("medecinManquant");
|
||||
$codeSpecialiteManuel = $this->requete->getParametreFormulaire("codeSpecialiteManuel");
|
||||
|
||||
$this->feuillemaladie->completerconsultation($codeActe, $prixActe, $montantTm, $aRembourser,
|
||||
$codeMedecin, $codeRaisonConsultation, $medecinManquant, $codeSpecialiteManuel);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Derogation.php';
|
||||
|
||||
class ControleurAjaxenregistrerdemandederogation extends Controleur {
|
||||
private $derogation;
|
||||
|
||||
public function __construct() {
|
||||
$this->derogation = new Derogation();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
|
||||
public function enregistrerdemandederogation()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$codeDerogation = $this->requete->getParametreFormulaire("codeDerogation");
|
||||
$observations = $this->requete->getParametreFormulaire("observations");
|
||||
|
||||
$this->derogation->enregistrerdemandederogation($codeDerogation, $observations);
|
||||
}
|
||||
|
||||
public function maildemandederogation()
|
||||
{
|
||||
$emailDestination = $_SESSION['p_emailAdherent_C'];
|
||||
|
||||
if($emailDestination>" ")
|
||||
{
|
||||
$emailDestination .= ";".$_SESSION['p_emailGestionBon_C'];
|
||||
}
|
||||
|
||||
/* Pour les tests */
|
||||
$email_standard = $_SESSION['p_email_standard'];
|
||||
if($email_standard>" ")
|
||||
{
|
||||
$emailDestination .= ";".$email_standard ;
|
||||
}
|
||||
/* Fin mails tests */
|
||||
|
||||
/* Pour empêcher les envois de mails */
|
||||
$emailDestination = "lkane@ebene.info";
|
||||
/* Fin Pour empêcher les envois de mails */
|
||||
|
||||
if($emailDestination>" ")
|
||||
{
|
||||
$codeDerogation = $this->requete->getParametreFormulaire("codeDerogation");
|
||||
$libelleDerogation = $this->requete->getParametreFormulaire("libelleDerogation");
|
||||
$observations = $this->requete->getParametreFormulaire("observations");
|
||||
|
||||
// DEBUT ENVOI DU MAIL
|
||||
|
||||
require_once 'Framework/Ebenegmail.php';
|
||||
|
||||
$obejt = "DEMANDE DE DEROGATION";
|
||||
|
||||
$body = "- Prestataire : ".$_SESSION['p_prestataire_C']."
|
||||
|
||||
- Patient : ".$_SESSION['p_beneficiaire_C']." (".$_SESSION['p_numeroBeneficiaire_C'].")
|
||||
|
||||
- Date : ".heureCourante()."
|
||||
|
||||
- Dérogation : ".$libelleDerogation."
|
||||
|
||||
- Motivations : ".$observations."
|
||||
|
||||
Merci et bonne réception.";
|
||||
|
||||
$body = convertirc($body);
|
||||
|
||||
$addr = explode(';', $emailDestination);
|
||||
foreach ($addr as $ad)
|
||||
{
|
||||
$mail->AddAddress(trim($ad) );
|
||||
}
|
||||
$mail->Subject = $obejt;
|
||||
$mail->Body=$body;
|
||||
$mail->send();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxenregistrerhospitalisation extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerhospitalisation()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->feuillemaladie->enregistrerhospitalisation($numeroBon, $codeGestionBon);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Optique_temp.php';
|
||||
|
||||
class ControleurAjaxenregistreroptique extends Controleur {
|
||||
private $optique;
|
||||
|
||||
public function __construct() {
|
||||
$this->optique = new Optique_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistreroptique()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->optique->enregistreroptique($numeroBon, $codeMedecin, $codeGestionBon);
|
||||
}
|
||||
|
||||
public function videroptiquetemp()
|
||||
{
|
||||
$this->optique->videroptiquetemp();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Prescription.php';
|
||||
|
||||
|
||||
class ControleurAjaxenregistrerprescription extends Controleur {
|
||||
private $prescription;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerprescription()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->prescription->enregistrerprescription($numeroBon, $codeMedecin, $codeGestionBon);
|
||||
}
|
||||
|
||||
public function noprescription()
|
||||
{
|
||||
$this->prescription->noprescription();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Examen_temp.php';
|
||||
|
||||
class ControleurAjaxenregistrerprescriptionexamen extends Controleur {
|
||||
private $examen;
|
||||
|
||||
public function __construct() {
|
||||
$this->examen = new Examen_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerprescriptionexamen()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->examen->enregistrerprescriptionexamen($numeroBon, $codeMedecin, $codeGestionBon);
|
||||
}
|
||||
|
||||
public function videroptiquetemp()
|
||||
{
|
||||
$this->optique->videroptiquetemp();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Seance_temp.php';
|
||||
|
||||
class ControleurAjaxenregistrerprescriptionseance extends Controleur {
|
||||
private $seance;
|
||||
|
||||
public function __construct() {
|
||||
$this->seance = new Seance_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerprescriptionseance()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
$codeMedecin = $this->requete->getParametreFormulaire("codeMedecin");
|
||||
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->seance->enregistrerprescriptionseance($numeroBon, $codeMedecin, $codeGestionBon);
|
||||
}
|
||||
|
||||
|
||||
public function modifierprescriptionseance()
|
||||
{
|
||||
$codeActePrescription = $this->requete->getParametreFormulaire("codeActePrescription");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite");
|
||||
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
$montantTm = $this->requete->getParametreFormulaire("montantTm", "numerique");
|
||||
$montantArembourser = $this->requete->getParametreFormulaire("montantArembourser", "numerique");
|
||||
$fraisReel = $this->requete->getParametreFormulaire("fraisReel", "numerique");
|
||||
|
||||
$ententePrealable = $this->requete->getParametreFormulaire("ententePrealable");
|
||||
$autorisation = $this->requete->getParametreFormulaire("autorisation");
|
||||
|
||||
$this->seance->modifierprescriptionseance($codeActePrescription, $quantite, $prixActe, $montantTm, $montantArembourser,
|
||||
$fraisReel, $ententePrealable);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailoptique.php';
|
||||
|
||||
class ControleurAjaxenregistrerverre extends Controleur {
|
||||
private $detailoptique;
|
||||
|
||||
public function __construct() {
|
||||
$this->detailoptique = new Detailoptique();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function enregistrerverre()
|
||||
{
|
||||
$codeOptique = $this->requete->getParametreFormulaire("codeOptique");
|
||||
|
||||
$this->detailoptique->enregistrerverre($codeOptique);
|
||||
}
|
||||
|
||||
public function supprimerverre()
|
||||
{
|
||||
$idOptique = $this->requete->getParametre("idOptique");
|
||||
|
||||
$this->detailoptique->supprimerverre($idOptique);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,118 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Finger.php';
|
||||
|
||||
class ControleurAjaxenvoimaildivers extends Controleur {
|
||||
private $finger;
|
||||
|
||||
public function __construct() {
|
||||
$this->finger = new Finger();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function verifiertentativeidentitification()
|
||||
{
|
||||
$user_id = $this->requete->getParametreFormulaire("user_id");
|
||||
|
||||
$nbTentative = $this->finger->verifier_tentative_identification($user_id);
|
||||
|
||||
$_SESSION['p_nbTentative'] = $nbTentative;
|
||||
|
||||
// $this->executerAction("index");
|
||||
$this->genererVueAjax(array('nbTentative' => $nbTentative));
|
||||
}
|
||||
|
||||
public function mailfraudeidentite()
|
||||
{
|
||||
require_once 'Framework/Ebenegmail.php';
|
||||
|
||||
$emailDestination = $_SESSION['p_emailGestionBon_C'];
|
||||
|
||||
/* Pour les tests */
|
||||
$email_standard = $_SESSION['p_email_standard'];
|
||||
if($email_standard>" ")
|
||||
{
|
||||
$emailDestination .= ";".$email_standard ;
|
||||
}
|
||||
/* Fin mails tests */
|
||||
|
||||
/* Pour empêcher les envois de mails */
|
||||
$emailDestination = "lkane@ebene.info";
|
||||
/* Fin Pour empêcher les envois de mails */
|
||||
|
||||
$obejt = "ALERTE PLUS DE 3 TENTATIVES D'IDENTIFICATION";
|
||||
|
||||
$body = "- Prestataire : ".$_SESSION['p_prestataire_C']."
|
||||
|
||||
- Patient : ".$_SESSION['p_beneficiaire_C']." (".$_SESSION['p_numeroBeneficiaire_C'].")
|
||||
|
||||
- Date : ".heureCourante()."
|
||||
|
||||
Merci et bonne réception.";
|
||||
|
||||
$body = convertirc($body);
|
||||
|
||||
$addr = explode(';', $emailDestination);
|
||||
foreach ($addr as $ad)
|
||||
{
|
||||
$mail->AddAddress(trim($ad) );
|
||||
}
|
||||
|
||||
$mail->Subject = $obejt;
|
||||
|
||||
$mail->Body=$body;
|
||||
|
||||
$mail->send();
|
||||
}
|
||||
|
||||
public function mailententeprealable()
|
||||
{
|
||||
$numeroBon = $this->requete->getParametreFormulaire("numeroBon");
|
||||
|
||||
require_once 'Framework/Ebenegmail.php';
|
||||
|
||||
$emailDestination = $_SESSION['p_emailMedecinConseil_C'];
|
||||
|
||||
/* Pour les tests */
|
||||
$email_standard = $_SESSION['p_email_standard'];
|
||||
if($email_standard>" ")
|
||||
{
|
||||
$emailDestination .= ";".$email_standard ;
|
||||
}
|
||||
/* Fin mails tests */
|
||||
|
||||
/* Pour empêcher les envois de mails */
|
||||
$emailDestination = "lkane@ebene.info";
|
||||
/* Fin Pour empêcher les envois de mails */
|
||||
|
||||
$obejt = "ALERTE HOSPITALISATION";
|
||||
|
||||
$body = "- Prestataire : ".$_SESSION['p_prestataire_C']."
|
||||
|
||||
- Patient : ".$_SESSION['p_beneficiaire_C']." (".$_SESSION['p_numeroBeneficiaire_C'].")
|
||||
|
||||
- Date : ".heureCourante()."
|
||||
|
||||
- No Bon Hospitalisation : ".$numeroBon."
|
||||
|
||||
Merci et bonne réception.";
|
||||
|
||||
$body = convertirc($body);
|
||||
|
||||
$addr = explode(';', $emailDestination);
|
||||
foreach ($addr as $ad)
|
||||
{
|
||||
$mail->AddAddress(trim($ad) );
|
||||
}
|
||||
|
||||
$mail->Subject = $obejt;
|
||||
|
||||
$mail->Body=$body;
|
||||
|
||||
$mail->send();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
|
||||
class ControleurAjaxexamenspossiblesselection extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codeFamilleActe = $this->requete->getParametreFormulaire("codeFamilleActe");
|
||||
|
||||
$actes = $this->acte->geatexamenspossiblesselection($codeFamilleActe);
|
||||
$this->genererVueAjax(array('actes' => $actes));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Seance_temp.php';
|
||||
|
||||
class ControleurAjaxfacturatioseancecso extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Seance_temp();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
/*
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
*/
|
||||
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription));
|
||||
}
|
||||
|
||||
public function modifierseancecso()
|
||||
{
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$prixActe = $this->requete->getParametreFormulaire("prixActe", "numerique");
|
||||
|
||||
$fraisReel = round($prixActe*$quantite);
|
||||
$montantTm = round(($fraisReel*$_SESSION['p_tm_C'])/100);
|
||||
$aRembourser = $fraisReel-$montantTm;
|
||||
|
||||
$this->prescription->modifierseancecso($quantite, $fraisReel, $montantTm, $aRembourser);
|
||||
}
|
||||
|
||||
public function facturerseance()
|
||||
{
|
||||
$this->prescription->facturerseance();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Seance_temp.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
class ControleurAjaxfacturatioseancesea extends Controleur {
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Seance_temp();
|
||||
$this->prestation = new Prestationactes();
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$numeroBonKine = $_SESSION['p_numeroBonKine_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_sea($numeroBonKine);
|
||||
|
||||
$garantieadherent_temp = $this->prestation->afficher_garantieadherent_temp();
|
||||
|
||||
$acte = $this->acte->getseancespossibles();
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'garantieadherent_temp' => $garantieadherent_temp,
|
||||
'acte' => $acte, 'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
public function facturerseance()
|
||||
{
|
||||
$user_id_substitut = $this->requete->getParametreFormulaire("user_id_substitut");
|
||||
|
||||
$codeGestionBon = $this->requete->getParametreFormulaire("codeGestionBon");
|
||||
|
||||
$this->prescription->facturerseance($user_id_substitut, $codeGestionBon);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,140 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailprescription.php';
|
||||
require_once 'Modele/Prescription_temp.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
|
||||
class ControleurAjaxdetailpharmacien extends Controleur {
|
||||
private $prescription;
|
||||
private $detailprescription;
|
||||
private $prestation;
|
||||
|
||||
public function __construct() {
|
||||
$this->prescription = new Prescription_temp();
|
||||
$this->detailprescription = new Detailprescription();
|
||||
$this->prestation = new Prestationactes();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
|
||||
$numeroPrescription = $_SESSION['p_numeroPrescription_C'];
|
||||
|
||||
$prescription = $this->prescription->getprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance);
|
||||
|
||||
$detailnonlivres = $this->prescription->getdetailnonlivre();
|
||||
|
||||
// $detaillivres = $this->prescription->getdetaillivre();
|
||||
$detaillivres = $this->prescription->getdetaillivrepha();
|
||||
|
||||
// $factures = $this->prescription->getfactures_ordonnance($numeroBonOrdonnance);
|
||||
|
||||
$garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
/*
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres,
|
||||
'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp, 'factures' => $factures));
|
||||
*/
|
||||
|
||||
$this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres,
|
||||
'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp));
|
||||
}
|
||||
|
||||
public function ajoutermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->ajoutermedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajoutermedicamenttous()
|
||||
{
|
||||
$this->prescription->ajoutermedicamenttous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->retirermedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function retirermedicamenttous()
|
||||
{
|
||||
$this->prescription->retirermedicamenttous();
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrerpharmacie()
|
||||
{
|
||||
$this->prescription->facturerpharmacie();
|
||||
}
|
||||
|
||||
public function annulersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->prescription->annulersubstitutionmedicament($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function enregistrersubstitutionmedicament()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
$prixSubstitut = $this->requete->getParametreFormulaire("prixSubstitut", "numerique");
|
||||
|
||||
$this->prescription->enregistrersubstitutionmedicament($idMedicament, $prixSubstitut);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function ajoutermedicamentprescription()
|
||||
{
|
||||
$codeMedicament = $this->requete->getParametreFormulaire("codeMedicament");
|
||||
|
||||
$this->detailprescription->ajoutermedicamentpha($codeMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majquantitepha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
|
||||
$this->detailprescription->majquantitepha($idMedicament, $quantite);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function demanderaccordpha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
||||
|
||||
$this->detailprescription->demanderaccordpha($idMedicament);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
|
||||
public function majprixpha()
|
||||
{
|
||||
$idMedicament = $this->requete->getParametre("idMedicament");
|
||||
$prix = $this->requete->getParametreFormulaire("prix", "numerique");
|
||||
|
||||
// $this->detailprescription->majquantitepha($idMedicament, $quantite);
|
||||
$this->detailprescription->majprixpha($idMedicament, $prix);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxfactureconspop extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$_SESSION['p_idFacture_C'] = $idFacture;
|
||||
|
||||
$facture = $this->facture->consulterfacturefacture($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('facture' => $facture));
|
||||
}
|
||||
|
||||
public function feuillemaladie()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ;
|
||||
|
||||
$diagnostics = $this->facture->consulterfacturediagnostics($idFacture);
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics));
|
||||
}
|
||||
|
||||
public function prestationactes()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$prestations = $this->facture->consulterfactureprestationactes($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('prestations' => $prestations));
|
||||
}
|
||||
|
||||
public function medicaments()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$medicaments = $this->facture->consulterfacturemedicaments($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('medicaments' => $medicaments));
|
||||
}
|
||||
|
||||
public function verres()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$verres = $this->facture->consulterfactureverres($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('verres' => $verres));
|
||||
}
|
||||
|
||||
public function geds()
|
||||
{
|
||||
unset($_FILES['fichier_upload']);
|
||||
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$geds = $this->facture->getgedfacture($idFacture);
|
||||
|
||||
$this->genererVueAjax(array('geds' => $geds));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxfactureconsprestataire extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$_SESSION['p_idFacture_C'] = $idFacture;
|
||||
|
||||
$facture = $this->facture->consulterfacturefacture($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('facture' => $facture));
|
||||
}
|
||||
|
||||
public function feuillemaladie()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ;
|
||||
|
||||
$diagnostics = $this->facture->consulterfacturediagnostics($idFacture);
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics));
|
||||
}
|
||||
|
||||
public function prestationactes()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$prestations = $this->facture->consulterfactureprestationactes($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('prestations' => $prestations));
|
||||
}
|
||||
|
||||
public function medicaments()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$medicaments = $this->facture->consulterfacturemedicaments($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('medicaments' => $medicaments));
|
||||
}
|
||||
|
||||
public function verres()
|
||||
{
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$verres = $this->facture->consulterfactureverres($idFacture) ;
|
||||
|
||||
$this->genererVueAjax(array('verres' => $verres));
|
||||
}
|
||||
|
||||
public function geds()
|
||||
{
|
||||
unset($_FILES['fichier_upload']);
|
||||
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$geds = $this->facture->getgedfacture($idFacture);
|
||||
|
||||
$this->genererVueAjax(array('geds' => $geds));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaxfacturerfeuillemaladie extends Controleur {
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
|
||||
public function facturer()
|
||||
{
|
||||
$user_id_substitut = $this->requete->getParametreFormulaire("user_id_substitut");
|
||||
|
||||
$this->feuillemaladie->facturer($user_id_substitut);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,196 +0,0 @@
|
|||
<?php
|
||||
// require_once 'Framework/Controleur.php';
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
require_once 'Modele/Prestationactes.php';
|
||||
require_once 'Modele/Typeaffection.php';
|
||||
require_once 'Modele/Affection.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxfeuillemaladie extends Controleurrequete {
|
||||
private $feuillemaladie;
|
||||
private $prestation;
|
||||
private $typeaffection;
|
||||
private $affection;
|
||||
private $beneficiaire;
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
$this->prestation = new Prestationactes();
|
||||
$this->typeaffection = new Typeaffection();
|
||||
$this->affection = new Affection();
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$garantieadherent_temp = null;
|
||||
|
||||
$infosfeuillemaladie = $this->feuillemaladie->getinfosfeuillemaladie($numeroFeuilleMaladie);
|
||||
$facture = $infosfeuillemaladie['facture'];
|
||||
|
||||
$this->prestation->vider_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
if($facture==0)
|
||||
{
|
||||
$garantieadherent_temp = $this->prestation->init_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire);
|
||||
}
|
||||
|
||||
$feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie);
|
||||
|
||||
$prestations = $this->prestation->getprestationsfeuille($numeroFeuilleMaladie, $codePrestataire);
|
||||
|
||||
$typeaffections = $this->typeaffection->getListe() ;
|
||||
|
||||
$codeTypeAffection = $feuillemaladie['codeTypeAffection'];
|
||||
|
||||
$affections = $this->affection->getListe($codeTypeAffection) ;
|
||||
|
||||
$diagnostics = $this->feuillemaladie->getDiagnostics($numeroFeuilleMaladie);
|
||||
|
||||
$idBeneficiaire = $_SESSION['p_idBeneficiaire_C'];
|
||||
|
||||
$this->beneficiaire->controlerplafondbeneficiaireannuel($idBeneficiaire);
|
||||
|
||||
$limite_beneficiaire = $this->prestation->getLimitesBeneficiaireTemp();
|
||||
|
||||
$this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'prestations' => $prestations,
|
||||
'garantieadherent_temp' => $garantieadherent_temp, 'typeaffections' => $typeaffections, 'affections' => $affections,
|
||||
'diagnostics' => $diagnostics, 'limite_beneficiaire' => $limite_beneficiaire));
|
||||
}
|
||||
|
||||
public function imprimerfacture()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
|
||||
$feuillemaladie = $this->feuillemaladie->getfeuillemaladieimpression($numeroFeuilleMaladie);
|
||||
|
||||
$idFacture = $this->requete->getParametreFormulaire("idFacture");
|
||||
|
||||
$facture = $this->facture->consulterfacturefacture($idFacture) ;
|
||||
|
||||
$prestations = $this->facture->consulterfactureprestationactes($idFacture) ;
|
||||
|
||||
$pdf = new FPDF('L');
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=8;
|
||||
|
||||
$pdf->SetMargins(15, 15, 15) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 10);
|
||||
|
||||
$pdf->Cell(130,$ht,convertirc($_SESSION['p_nomSociete']),0,0,'L',false);
|
||||
$pdf->Cell(130,$ht,convertirc(_("FACTURE"). " No ".$facture['idFacture']." => " . $facture['prestataire']),0,1,'R',false);
|
||||
|
||||
$pdf->ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','', 10);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Souscripteur")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['souscripteur']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Patient")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['beneficiaire'] . " ( " . $feuillemaladie['numeroBeneficiaire'] . " )"),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Adhérent")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['adherent']),0,0,'L',false);
|
||||
|
||||
/*
|
||||
$pdf->Cell(40,$ht,convertirc("E-mail"),0,0,'L',false);
|
||||
$pdf->Cell(160,$ht,convertirc(" : ".$feuillemaladie['emailAdherent']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("No Tel"),0,0,'L',false);
|
||||
$pdf->Cell(160,$ht,convertirc(" : ".$feuillemaladie['telAdherent']),0,1,'L',false);
|
||||
*/
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Systeme")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".dateheureFr($feuillemaladie['dateSysteme'])),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Médecin")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['medecinConsultation']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No OM")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['noOrdreMedecin']),0,1,'L',false);
|
||||
|
||||
/*
|
||||
$pdf->Cell(40,$ht,convertirc("Consultation"),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".dateFr($feuillemaladie['dateConsultation'])),0,0,'L',false);
|
||||
*/
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Raison Cons")),0,0,'L',false);
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['raisonconsultationEng']),0,0,'L',false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['raisonconsultation']),0,0,'L',false);
|
||||
}
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No Bon")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonConsultation']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Ord Pharm")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonOrdonnance']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Ord Verres")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBonOptique']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Bon Exam")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonExamen']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Bon KINE")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBonKine']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Bon Hospit")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonHospitalisation']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Facturé par")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$facture['codeUtilisateur']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("Date"),1,0,'C',false);
|
||||
$pdf->Cell(117,$ht,convertirc(_("Acte")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Valeur")),1,0,'C',false);
|
||||
$pdf->Cell(10,$ht,convertirc(_("Qté")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Frais")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("T M")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("A Remb")),1,1,'C',false);
|
||||
|
||||
foreach ($prestations as $prestation)
|
||||
{
|
||||
$pdf->Cell(40,$ht,dateheureLang($prestation['dateSysteme']),1,0,'C',false);
|
||||
$pdf->Cell(117,$ht,convertirc($prestation['libelleActe']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($prestation['valeurActe']),1,0,'C',false);
|
||||
$pdf->Cell(10,$ht,format_N($prestation['quantite']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($prestation['fraisReel']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($prestation['montantTm']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($prestation['montantArembourser']),1,1,'C',false);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Arial','B', 10);
|
||||
|
||||
$pdf->Cell(187,$ht,convertirc("Total : "),1,0,'C',false);
|
||||
|
||||
$pdf->Cell(20,$ht,format_N($facture['fraisReel']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($facture['montantTm']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($facture['montantArembourser']),1,1,'C',false);
|
||||
|
||||
$fichier="Temp/facture"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_wait" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
// require_once 'Modele/Societeuser.php';
|
||||
|
||||
class ControleurAjaxgabarit extends Controleur
|
||||
{
|
||||
// private $societeuser;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// $this->societeuser = new Societeuser();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Ged.php';
|
||||
|
||||
class ControleurAjaxged extends Controleur {
|
||||
private $ged;
|
||||
|
||||
public function __construct() {
|
||||
$this->ged = new Ged();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
// $this->genererVueAjax(array('reponse' => $reponse));
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function verifierexistancefichier()
|
||||
{
|
||||
$cheminFichier = $this->requete->getParametreFormulaire("cheminFichier");
|
||||
|
||||
// modifié à cause de l'url distant chez le prestataire => remote_file_exists($url)
|
||||
// if(file_exists($cheminFichier))
|
||||
if(remote_file_exists($cheminFichier))
|
||||
{
|
||||
$reponse = "1";
|
||||
} else
|
||||
{
|
||||
$reponse = "0";
|
||||
}
|
||||
|
||||
echo "$reponse";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,151 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Demandedecompte.php';
|
||||
|
||||
class ControleurAjaximprimerdemandedecompte extends Controleurrequete
|
||||
{
|
||||
private $reglement;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->reglement = new Demandedecompte();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function imprimerdemandecompte()
|
||||
{
|
||||
$idDemandeDecompte = $_SESSION['p_idDemandeDecompte_C'];
|
||||
$numeroDemandeDecompte = $_SESSION['p_numeroDemandeDecompte_C'];
|
||||
$villeSignature = $_SESSION['p_villeSignature_C'];
|
||||
|
||||
$reglement = $this->reglement->getdemandedecompte($idDemandeDecompte);
|
||||
|
||||
$codeTypePrestataire = $reglement['codeTypePrestataire'];
|
||||
|
||||
if($codeTypePrestataire=="CSO")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildemandedecompteexportcso($numeroDemandeDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="PHA")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildemandedecompteexportpha($numeroDemandeDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="OPT")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildemandedecompteexportopt($numeroDemandeDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="LAB")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildemandedecompteexportlab($numeroDemandeDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="SEA")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildemandedecompteexportsea($numeroDemandeDecompte);
|
||||
}
|
||||
|
||||
// $nb = count($factures);
|
||||
|
||||
$pdf = new FPDF('L');
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=4;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 7);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc($_SESSION['p_nomSociete']),0,0,'L',false);
|
||||
$pdf->Cell(0,$ht,convertirc(_("BORDERAU DEMANDE DECOMPTE") . " No ".$reglement['numeroDemandeDecompte']." => " . _("PRESTATAIRE") . " => " . $reglement['prestataire']),0,1,'R',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 7);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc(_('Edité par le prestataire le') . ' : '.heureCouranteLang($_SESSION['p_lang'])),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc(_("PERIODE") . " : " . $reglement['periode']),0,1,'R',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 6);
|
||||
|
||||
$pdf->Cell(10,$ht,convertirc("No"),1,0,'C',false);
|
||||
$pdf->Cell(10,$ht,convertirc("Dt"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Police")),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc(_("Souscripteur")),1,0,'L',false);
|
||||
$pdf->Cell(50,$ht,convertirc(_("Adhérent")),1,0,'L',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("No Benef")),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc(_("Bénéficiaire")),1,0,'L',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("Bon")),1,0,'C',false);
|
||||
|
||||
$pdf->Cell(20,$ht,convertirc(_("Coût")),1,0,'R',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("T M")),1,0,'R',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Retenu")),1,1,'R',false);
|
||||
|
||||
$ordre = "0";
|
||||
$fraisReel = "0";
|
||||
$montantTm = "0";
|
||||
$montantArembourser = "0";
|
||||
$fraisRetenu = "0";
|
||||
|
||||
|
||||
foreach ($factures as $facture)
|
||||
{
|
||||
$ordre++;
|
||||
$pdf->Cell(10,$ht,$ordre,1,0,'C',false);
|
||||
$pdf->Cell(10,$ht,$facture['jourFacture'],1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc($facture['numeroPolice']),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc(substr($facture['souscripteur'], 0, 25)),1,0,'L',false);
|
||||
$pdf->Cell(50,$ht,substr($facture['adherent'], 0, 30),1,0,'L',false);
|
||||
$pdf->Cell(15,$ht,convertirc($facture['numeroBeneficiaire']),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,substr($facture['beneficiaire'], 0, 30),1,0,'L',false);
|
||||
$pdf->Cell(15,$ht,convertirc($facture['numeroBon']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($facture['fraisReel']),1,0,'R',false);
|
||||
$pdf->Cell(15,$ht,format_N($facture['montantTm']),1,0,'R',false);
|
||||
$pdf->Cell(20,$ht,format_N($facture['fraisRetenu']),1,1,'R',false);
|
||||
|
||||
$fraisReel += $facture['fraisReel'];
|
||||
$montantTm += $facture['montantTm'];
|
||||
$montantArembourser += $facture['montantArembourser'];
|
||||
$fraisRetenu += $facture['fraisRetenu'];
|
||||
}
|
||||
|
||||
$pdf->SetFont('Arial','B', 6);
|
||||
|
||||
$pdf->Cell(220,$ht,convertirc("TOTAUX : "),1,0,'C',false);
|
||||
|
||||
$pdf->Cell(20,$ht,format_N($fraisReel),1,0,'R',false);
|
||||
$pdf->Cell(15,$ht,format_N($montantTm),1,0,'R',false);
|
||||
$pdf->Cell(20,$ht,format_N($fraisRetenu),1,1,'R',false);
|
||||
|
||||
$pdf->SetFontSize(8);
|
||||
$pdf->Cell(0,6,convertirc(_('Arrêté la présente demande de décompte à la somme de') . ' :'),0,1,'C',false);
|
||||
$pdf->SetFont('','I');
|
||||
$pdf->SetFillColor(135,206,250); // bleu
|
||||
|
||||
// $pdf->Cell(0,6,asLetters($fraisRetenu)." ".$_SESSION['p_devise_C'],0,1,'C',true);
|
||||
$pdf->Cell(0,6, convetirEnLettre($fraisRetenu, $_SESSION['p_lang'])." ".$_SESSION['p_devise_C'],0,1,'C',true);
|
||||
|
||||
$pdf->SetFont('');
|
||||
|
||||
// $pdf->SetY(-70);
|
||||
|
||||
$pdf->Cell(0,6,convertirc(_('Fait à') . ' ' . $villeSignature.', ' . _('le') . ' ') . dateCouranteLang($_SESSION['p_lang']),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(10);
|
||||
$pdf->SetFont('','U');
|
||||
$pdf->Cell(0,6,convertirc(_('Pour') . ' : '.$reglement['prestataire']),0,0,'C',false);
|
||||
|
||||
|
||||
$fichier="Temp/borderau_decompte"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_wait" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,354 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Reglement.php';
|
||||
|
||||
class ControleurAjaximprimerdemandereglement extends Controleurrequete
|
||||
{
|
||||
private $reglement;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->reglement = new Reglement();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
$numeroDecompte = $_SESSION['p_numeroDecompte_C'];
|
||||
|
||||
$reglement = $this->reglement->getreglement($idReglement);
|
||||
|
||||
$pdf = new FPDF();
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=10;
|
||||
|
||||
$lg=60;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','B', 15);
|
||||
|
||||
$pdf->SetY(30);
|
||||
|
||||
$pdf->Cell(0,10,convertirc($_SESSION['p_nomSociete']),1,1,'C',false);
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->SetFont('Arial','BU', 15);
|
||||
|
||||
$pdf->SetFontSize(12);
|
||||
|
||||
$pdf->Cell(0,10,convertirc(_("DEMANDE DE REGLEMENT POUR DECOMPTE") . " No ".$reglement['numeroDecompte']),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc(_("PRESTATAIRE")),0,0,'L',false);
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc(': '.$reglement['prestataire']),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc(_("MONTANT EN CHIFFRES")),0,0,'L',false);
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,": ".format_N($reglement['montantApayer'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc(_("MONTANT EN LETTRES")),0,0,'L',false);
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
// $pdf->Cell(0,10,": ".asLetters($reglement['montantApayer'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
$pdf->Cell(0,10,": ".convetirEnLettre($reglement['montantApayer'], $_SESSION['p_lang'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc("SERVICE DEMANDEUR"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc(": DIRECTION SANTE"),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc("A VERSER AU COMPTE No"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc(":"),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc("SUR"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc(":"),0,1,'L');
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->Cell(0,10,convertirc('Fait à '.$_SESSION['p_villeSociete'].', le ').heureCourante(),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(10);
|
||||
|
||||
$pdf->SetFont('Arial','B', 12);
|
||||
$pdf->Cell($lg,10,convertirc("VISA DIRECTION SANTE"),0,0,'L',false);
|
||||
$pdf->Cell(0,10,convertirc("VISA DAF"),0,1,'R');
|
||||
|
||||
$pdf->Ln(20);
|
||||
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc("Chèque No :"),0,1,'L');
|
||||
$pdf->Cell(0,10,convertirc("Sur :"),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','BU', 15);
|
||||
|
||||
$pdf->SetFontSize(12);
|
||||
|
||||
$pdf->Cell(0,20,convertirc("REMISE CHEQUE"),0,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',12);
|
||||
$pdf->Cell(0,10,convertirc("Nom et Prénoms :"),0,1,'L');
|
||||
$pdf->Cell(0,10,convertirc("Carte d'identité No :"),0,1,'L');
|
||||
$pdf->Cell(0,10,convertirc("Délivrée à :"),0,1,'L');
|
||||
$pdf->Cell(0,10,convertirc("Siganture :"),0,1,'L');
|
||||
|
||||
$fichier="Temp/demande_regelement"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_wait" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
}
|
||||
|
||||
public function imprimerbordereaudecompte()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
$numeroDecompte = $_SESSION['p_numeroDecompte_C'];
|
||||
|
||||
$reglement = $this->reglement->getreglement($idReglement);
|
||||
|
||||
$codeTypePrestataire = $reglement['codeTypePrestataire'];
|
||||
|
||||
if($codeTypePrestataire=="CSO")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildecompteexportcso($numeroDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="PHA")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildecompteexportpha($numeroDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="OPT")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildecompteexportopt($numeroDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="LAB")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildecompteexportlab($numeroDecompte);
|
||||
}
|
||||
elseif($codeTypePrestataire=="SEA")
|
||||
{
|
||||
$factures = $this->reglement->getdetaildecompteexportsea($numeroDecompte);
|
||||
}
|
||||
|
||||
$pdf = new FPDF('L');
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=4;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 7);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc($_SESSION['p_nomSociete']),0,0,'L',false);
|
||||
$pdf->Cell(0,$ht,convertirc("BORDERAU POUR DECOMPTE No ".$reglement['numeroDecompte']." => "."PRESTATAIRE ".$reglement['prestataire']),0,1,'R',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 7);
|
||||
|
||||
$pdf->Cell(60,$ht,convertirc('Edité le : '.heureCourante()),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(60,$ht,convertirc($reglement['etatdecompte']),0,0,'C',false);
|
||||
|
||||
// $pdf->Cell(60,$ht,convertirc("PERIODE : ".$reglement['periode']),0,0,'C',false);
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$pdf->Cell(60,$ht,convertirc("PERIODE : ".$reglement['periodeEng']),0,0,'C',false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf->Cell(60,$ht,convertirc("PERIODE : ".$reglement['periode']),0,0,'C',false);
|
||||
}
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc('No Lot : '.$reglement['numeroLotDecompte']),0,1,'R',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 6);
|
||||
|
||||
$pdf->Cell(7,$ht,convertirc("No"),1,0,'C',false);
|
||||
$pdf->Cell(7,$ht,convertirc("Dt"),1,0,'C',false);
|
||||
$pdf->Cell(14,$ht,convertirc("Police"),1,0,'C',false);
|
||||
$pdf->Cell(36,$ht,convertirc("Souscripteur"),1,0,'L',false);
|
||||
$pdf->Cell(44,$ht,convertirc("Adhérent"),1,0,'L',false);
|
||||
$pdf->Cell(14,$ht,convertirc("No Benef"),1,0,'C',false);
|
||||
$pdf->Cell(44,$ht,convertirc("Bénéficiaire"),1,0,'L',false);
|
||||
$pdf->Cell(14,$ht,convertirc("Bon"),1,0,'C',false);
|
||||
$pdf->Cell(17,$ht,convertirc("Actes Méd"),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,convertirc("Méd & cons"),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,convertirc("Coût"),1,0,'R',false);
|
||||
$pdf->Cell(12,$ht,convertirc("TM"),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,convertirc("Charge"),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,convertirc("Retenu"),1,1,'R',false);
|
||||
|
||||
|
||||
$ordre = "0";
|
||||
$fraisReel_acte_med = "0";
|
||||
$fraisReel_phar_cons = "0";
|
||||
$fraisReel = "0";
|
||||
$montantTm = "0";
|
||||
$montantArembourser = "0";
|
||||
$montantApayer = "0";
|
||||
|
||||
foreach ($factures as $facture)
|
||||
{
|
||||
$ordre++;
|
||||
|
||||
$pdf->Cell(7,$ht,$ordre,1,0,'C',false);
|
||||
$pdf->Cell(7,$ht,$facture['jourFacture'],1,0,'C',false);
|
||||
$pdf->Cell(14,$ht,convertirc($facture['numeroPolice']),1,0,'C',false);
|
||||
$pdf->Cell(36,$ht,convertirc(substr($facture['souscripteur'], 0, 25)),1,0,'L',false);
|
||||
// $pdf->Cell(44,$ht,convertirc(substr($facture['adherent'], 0, 30)),1,0,'L',false);
|
||||
$pdf->Cell(44,$ht,substr($facture['adherent'], 0, 30),1,0,'L',false);
|
||||
$pdf->Cell(14,$ht,convertirc($facture['numeroBeneficiaire']),1,0,'C',false);
|
||||
// $pdf->Cell(44,$ht,convertirc(substr($facture['beneficiaire'], 0, 30)),1,0,'L',false);
|
||||
$pdf->Cell(44,$ht,substr($facture['beneficiaire'], 0, 30),1,0,'L',false);
|
||||
$pdf->Cell(14,$ht,convertirc($facture['numeroBon']),1,0,'C',false);
|
||||
$pdf->Cell(17,$ht,format_N($facture['fraisReel_acte_med']),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($facture['fraisReel_phar_cons']),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($facture['fraisReel']),1,0,'R',false);
|
||||
$pdf->Cell(12,$ht,format_N($facture['montantTm']),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($facture['montantArembourser']),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($facture['montantApayer']),1,1,'R',false);
|
||||
|
||||
$fraisReel_acte_med += $facture['fraisReel_acte_med'];
|
||||
$fraisReel_phar_cons += $facture['fraisReel_phar_cons'];
|
||||
$fraisReel += $facture['fraisReel'];
|
||||
$montantTm += $facture['montantTm'];
|
||||
$montantArembourser += $facture['montantArembourser'];
|
||||
$montantApayer += $facture['montantApayer'];
|
||||
}
|
||||
|
||||
$pdf->SetFont('Arial','B', 6);
|
||||
|
||||
$pdf->Cell(180,$ht,convertirc("TOTAUX : "),1,0,'C',false);
|
||||
|
||||
$pdf->Cell(17,$ht,format_N($fraisReel_acte_med),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($fraisReel_phar_cons),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($fraisReel),1,0,'R',false);
|
||||
$pdf->Cell(12,$ht,format_N($montantTm),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($montantArembourser),1,0,'R',false);
|
||||
$pdf->Cell(17,$ht,format_N($montantApayer),1,1,'R',false);
|
||||
|
||||
$pdf->SetFontSize(8);
|
||||
$pdf->Cell(0,6,convertirc('Imprimé par le prestataire / Printed by the provider'),0,1,'C',false);
|
||||
|
||||
$fichier="Temp/borderau_decompte"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_wait" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
}
|
||||
|
||||
public function imprimerdecompteprestataireaccord()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
$numeroDecompte = $_SESSION['p_numeroDecompte_C'];
|
||||
|
||||
$reglement = $this->reglement->getreglement($idReglement);
|
||||
|
||||
// $pdf = new FPDF();
|
||||
// On va mettre en paysage
|
||||
// $pdf = new FPDF('L');
|
||||
$pdf = new FPDF();
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=10;
|
||||
|
||||
$lg=60;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','B', 15);
|
||||
|
||||
$pdf->SetY(25);
|
||||
|
||||
$pdf->Cell(0,10,convertirc($_SESSION['p_nomSociete']),1,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','BU', 15);
|
||||
|
||||
$pdf->SetFontSize(12);
|
||||
|
||||
$pdf->Cell(0,10,convertirc("DECOMPTE DE REGLEMENT"),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("PRESTATAIRE"),0,0,'L',false);
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,convertirc(': '.$reglement['prestataire']),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("PERIODE"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,convertirc(': '.$reglement['periode']),0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("MONTANT FACTURE"),0,0,'L',false);
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,": ".format_N($reglement['montantPrestataire'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("MONTANT A PAYER"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,": ".format_N($reglement['montantApayer'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("DIFFERENCES"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,": ".format_N($reglement['difference'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell($lg,10,convertirc("MONTANT PAYE"),0,0,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','I',11);
|
||||
$pdf->Cell(0,10,": ".format_N($reglement['montantPaye'])." ".$_SESSION['p_devise_C'],0,1,'L');
|
||||
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->Cell(0,10,convertirc('APPROUVE, LE ').dateheureFr($reglement['heureValidationDecompte'])." par ".$reglement['userValidationDecompte'],0,1,'C',false);
|
||||
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell(0,10,convertirc('Fait à '.$_SESSION['p_villeSociete'].', le ').heureCourante(),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','B', 11);
|
||||
$pdf->Cell(0,10,convertirc("Accord du Prestataire"),0,1,'C');
|
||||
|
||||
$fichier="Temp/TMP_ACCORD_PREST_DECOMPTE"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_wait" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,214 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Reglement.php';
|
||||
|
||||
class ControleurAjaximprimerecartdecompte extends Controleurrequete
|
||||
{
|
||||
private $reglement;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->reglement = new Reglement();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idReglement = $_SESSION['p_idReglement_C'];
|
||||
$reglement = $this->reglement->getreglement($idReglement);
|
||||
$recapecartdecompte = $this->reglement->getrecapecartdecompte($idReglement);
|
||||
$ecartfactures = $this->reglement->getecartsdecompte("1");
|
||||
$ecartnonsaisis = $this->reglement->getecartsdecompte("0");
|
||||
|
||||
$pdf = new FPDF();
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
// $_SESSION['p_nomSociete']
|
||||
|
||||
$ht=6;
|
||||
|
||||
$lg1=35;
|
||||
$lg2=75;
|
||||
$lg3=40;
|
||||
$lg4=40;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 10);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc($_SESSION['p_nomSociete']),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 10);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc(_("DECOMPTE DE REGLEMENT")),0,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','', 8);
|
||||
|
||||
$pdf->Cell($lg1,$ht,convertirc(_("PRESTATAIRE")),0,0,'L',false);
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".$reglement['prestataire']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell($lg3,$ht,convertirc(_("MONTANT FACTURE")),0,0,'L',false);
|
||||
$pdf->Cell($lg4,$ht,convertirc(" : ".format_N($reglement['montantPrestataire'])." ".$_SESSION['p_devise_C']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell($lg1,$ht,convertirc(_("PERIODE")),0,0,'L',false);
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".$reglement['periodeEng']),0,0,'L',false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".$reglement['periode']),0,0,'L',false);
|
||||
}
|
||||
|
||||
$pdf->Cell($lg3,$ht,convertirc(_("No Lot")),0,0,'L',false);
|
||||
$pdf->Cell($lg4,$ht,convertirc(" : ".$reglement['numeroLotDecompte']),0,1,'L',false);
|
||||
|
||||
|
||||
$pdf->Cell($lg1,$ht,convertirc(_("MONTANT A PAYER")),0,0,'L',false);
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".format_N($reglement['montantApayer'])." ".$_SESSION['p_devise_C']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell($lg3,$ht,convertirc(_("MONTANT PAYE")),0,0,'L',false);
|
||||
$pdf->Cell($lg4,$ht,convertirc(" : ".format_N($reglement['montantPaye'])." ".$_SESSION['p_devise_C']),0,1,'L',false);
|
||||
|
||||
|
||||
$pdf->Cell($lg1,$ht,convertirc(_("DATE DE REGLEMENT")),0,0,'L',false);
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".dateLang($reglement['dateReglement'])),0,1,'L',false);
|
||||
|
||||
//
|
||||
$pdf->Cell($lg1,$ht,convertirc(_("EN NOTRE FAVEUR")),0,0,'L',false);
|
||||
$pdf->Cell($lg2,$ht,convertirc(" : ".format_N($recapecartdecompte['montantEcartTotalEnFavAss'])." ".$_SESSION['p_devise_C']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell($lg3,$ht,convertirc(_("EN SA FAVEUR")),0,0,'L',false);
|
||||
$pdf->Cell($lg4,$ht,convertirc(" : ".format_N($recapecartdecompte['montantEcartTotalEnFavPrest'])." ".$_SESSION['p_devise_C']),0,1,'L',false);
|
||||
|
||||
// $pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 10);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc(_("RAISONS DES DISCORDANCES")),0,1,'C',false);
|
||||
|
||||
// $pdf->SetFont('Arial','B', 8);
|
||||
$pdf->SetFont('Arial','', 8);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("Différences entre décompte et réclamation prestataire"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc("Nb Factures"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("Montants Prestataire"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("Montants Assureur"),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,convertirc("Différences"),1,1,'C',false);
|
||||
|
||||
// $pdf->SetFont('Arial','', 8);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("Décompte Système"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($reglement['ndFacture']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($reglement['montantPrestataire']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($reglement['montantApayer']),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,format_N($reglement['montantRedresse']),1,1,'C',false);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("Total Différences"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($recapecartdecompte['nbTotal']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantPrestataireTotal']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantAssureurTotal']),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,format_N($recapecartdecompte['montantEcartTotal']),1,1,'C',false);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("Différences sur factures saisies dans le système"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($recapecartdecompte['nbTotalFacture']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantPrestataireTotalFacture']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantAssureurTotalFacture']),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,format_N($recapecartdecompte['montantEcartTotalFacture']),1,1,'C',false);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("Différences sur factures hors système"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($recapecartdecompte['nbTotalNonsaisi']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantPrestataireTotalNonsaisi']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantAssureurTotalNonsaisi']),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,format_N($recapecartdecompte['montantEcartTotalNonsaisi']),1,1,'C',false);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("En faveur du prestataire"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($recapecartdecompte['nbTotalEnFavPrest']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantEcartTotalEnFavPrest']),1,1,'C',false);
|
||||
|
||||
$pdf->Cell(85,$ht,convertirc("En faveur de l'assureur"),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,format_N($recapecartdecompte['nbTotalEnFavAss']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($recapecartdecompte['montantEcartTotalEnFavAss']),1,1,'C',false);
|
||||
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 10);
|
||||
$pdf->Cell(0,$ht,convertirc(_("DETAILS SAISIES DANS LE SYSTEME")),0,1,'C',false);
|
||||
$pdf->SetFont('Arial','BI', 6);
|
||||
|
||||
$pdf->Cell(15,$ht,convertirc("Date"),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc(_("Bénéficiaire")),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("Prestataire")),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("Assureur")),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,convertirc(_("Différence")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Sens")),1,0,'C',false);
|
||||
$pdf->Cell(60,$ht,convertirc("Observations"),1,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 6);
|
||||
|
||||
foreach ($ecartfactures as $facture)
|
||||
{
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$libelleEcart = $facture['libelleEcartEng'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$libelleEcart = $facture['libelleEcart'];
|
||||
}
|
||||
$pdf->Cell(15,$ht,dateLang($facture['dateFacture']),1,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc($facture['numeroBeneficiaire']." ".$facture['beneficiaire']),1,0,'L',false);
|
||||
$pdf->Cell(15,$ht,format_N($facture['montantPrestataire']),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,format_N($facture['montantAssureur']),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,format_N($facture['montantEcart']),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc($libelleEcart),1,0,'C',false);
|
||||
$pdf->Cell(60,$ht,convertirc($facture['observations']),1,1,'C',false);
|
||||
}
|
||||
|
||||
// HOSRS SYSTEME
|
||||
$pdf->Ln(5);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 10);
|
||||
$pdf->Cell(0,$ht,convertirc(_("NON SAISIES DANS LE SYSTEME")),0,1,'C',false);
|
||||
$pdf->SetFont('Arial','BI', 6);
|
||||
|
||||
$pdf->Cell(20,$ht,convertirc("Date"),1,0,'C',false);
|
||||
$pdf->Cell(60,$ht,convertirc(_("Bénéficiaire")),1,0,'C',false);
|
||||
$pdf->Cell(20,$ht,convertirc(_("Montant")),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,convertirc(_("Sens")),1,0,'C',false);
|
||||
$pdf->Cell(65,$ht,convertirc("Observations"),1,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 6);
|
||||
|
||||
foreach ($ecartnonsaisis as $facture)
|
||||
{
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$libelleEcart = $facture['libelleEcartEng'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$libelleEcart = $facture['libelleEcart'];
|
||||
}
|
||||
$pdf->Cell(20,$ht,dateLang($facture['dateFacture']),1,0,'C',false);
|
||||
$pdf->Cell(60,$ht,convertirc($facture['numeroBeneficiaire']." ".$facture['beneficiaire']),1,0,'L',false);
|
||||
$pdf->Cell(20,$ht,format_N($facture['montantPrestataire']),1,0,'C',false);
|
||||
$pdf->Cell(25,$ht,convertirc($libelleEcart),1,0,'C',false);
|
||||
$pdf->Cell(65,$ht,convertirc($facture['observations']),1,1,'C',false);
|
||||
}
|
||||
|
||||
$fichier="Temp/TMP_differecnes_decompte"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_export_ecart_decompte" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,131 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Feuillemaladie.php';
|
||||
|
||||
class ControleurAjaximprimerfeuillemaladie extends Controleurrequete
|
||||
{
|
||||
private $feuillemaladie;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->feuillemaladie = new Feuillemaladie();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C'];
|
||||
|
||||
$feuillemaladie = $this->feuillemaladie->getfeuillemaladieimpression($numeroFeuilleMaladie);
|
||||
|
||||
$pdf = new FPDF();
|
||||
// $pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=10;
|
||||
|
||||
// $pdf->SetMargins(15, 15, 15) ;
|
||||
$pdf->SetMargins(15, 15) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 10);
|
||||
|
||||
$pdf->SetY(30);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc($_SESSION['p_nomSociete_C']),0,1,'C',false);
|
||||
|
||||
$pdf->ln(10);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 10);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc(_("FEUILLE MALADIE") . " : " . $_SESSION['p_nomProduitSante']),0,1,'C',false);
|
||||
|
||||
$pdf->ln(10);
|
||||
|
||||
$pdf->SetFont('Arial','', 9);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Souscripteur")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['souscripteur']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No Police")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroPolice']),0,1,'L',false);
|
||||
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Patient")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['beneficiaire']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No Patient")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBeneficiaire']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Adhérent")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['adherent']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No Adhérent")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroAdherent']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("E-mail"),0,0,'L',false);
|
||||
$pdf->Cell(160,$ht,convertirc(" : ".$feuillemaladie['emailAdherent']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("No Tel"),0,0,'L',false);
|
||||
$pdf->Cell(160,$ht,convertirc(" : ".$feuillemaladie['telAdherent']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Prestataire")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['prestataire']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(12,$ht,convertirc(_("Systeme")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".dateheureFr($feuillemaladie['dateSysteme'])),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Médecin")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['medecinConsultation']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No OM")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['noOrdreMedecin']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("Consultation"),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".dateFr($feuillemaladie['dateConsultation'])),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("No Bon")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBonConsultation']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Ord Pharm")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonOrdonnance']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Ord Verres")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBonOptique']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Bon Exam")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonExamen']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Bon KINE")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroBonKine']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc(_("Bon Hospit")),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['numeroBonHospitalisation']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Chambre")),0,0,'L',false);
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['numeroChambre']),0,1,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("Observ"),0,0,'L',false);
|
||||
$pdf->Cell(95,$ht,convertirc(" : ".$feuillemaladie['observations']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(25,$ht,convertirc(_("Raison Cons")),0,0,'L',false);
|
||||
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
||||
{
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['raisonconsultationEng']),0,1,'L',false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$pdf->Cell(45,$ht,convertirc(" : ".$feuillemaladie['raisonconsultation']),0,1,'L',false);
|
||||
}
|
||||
|
||||
$fichier="Temp/TMP_feuille_maladie"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
|
||||
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" >' . _("Télécharger") . ' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleurrequete.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Garantieadherent.php';
|
||||
|
||||
class ControleurAjaximprimerlimite extends Controleurrequete
|
||||
{
|
||||
private $adherent;
|
||||
private $garantieadherent;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->adherent = new Adherent();
|
||||
$this->garantieadherent = new Garantieadherent();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['p_idAdherent_C'];
|
||||
|
||||
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
||||
$garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent);
|
||||
$totalgarantieadherent = $this->garantieadherent->getTotalGarantieAdherent($idAdherent);
|
||||
|
||||
$pdf = new FPDF();
|
||||
$pdf->AliasNbPages();
|
||||
$pdf->AddPage();
|
||||
|
||||
$ht=10;
|
||||
|
||||
$pdf->SetMargins(10, 10, 10) ;
|
||||
|
||||
$pdf->SetFont('Arial','BI', 9);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc($_SESSION['p_nomSociete']),0,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','BIU', 9);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc("LILITES DE LA FAMILLE"),0,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','BI', 9);
|
||||
|
||||
$pdf->Cell(30,$ht,convertirc("Nom Adhérent"),0,0,'C',false);
|
||||
$pdf->Cell(50,$ht,convertirc(" : ".$adherent['nom']),0,0,'L',false);
|
||||
|
||||
$pdf->Cell(40,$ht,convertirc("Prénoms Adhérent"),0,0,'C',false);
|
||||
$pdf->Cell(60,$ht,convertirc(" : ".$adherent['prenoms']),0,1,'L',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 9);
|
||||
|
||||
$pdf->Cell(0,$ht,convertirc('Edité le : '.heureCourante()),0,1,'R',false);
|
||||
|
||||
$pdf->SetFont('Arial','BI', 9);
|
||||
|
||||
$pdf->Cell(55,$ht,convertirc("Garantie"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("Annuelles"),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,convertirc("Taux(%)"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("En vigeur"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("Consommations"),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,convertirc("Solde"),1,1,'C',false);
|
||||
|
||||
$pdf->SetFont('Arial','', 9);
|
||||
|
||||
foreach ($garantieadherents as $garantieadherent)
|
||||
{
|
||||
$pdf->Cell(55,$ht,convertirc($garantieadherent['garantie']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($garantieadherent['plafondAnnuel']),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,$garantieadherent['tauxAvenant'],1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($garantieadherent['plafond']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($garantieadherent['consommation']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($garantieadherent['solde']),1,1,'C',false);
|
||||
}
|
||||
|
||||
$pdf->SetFont('Arial','BI', 9);
|
||||
|
||||
$pdf->Cell(55,$ht,convertirc("Totaux : "),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($totalgarantieadherent['plafondAnnuel']),1,0,'C',false);
|
||||
$pdf->Cell(15,$ht,"",1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($totalgarantieadherent['plafond']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($totalgarantieadherent['consommation']),1,0,'C',false);
|
||||
$pdf->Cell(30,$ht,format_N($totalgarantieadherent['solde']),1,1,'C',false);
|
||||
|
||||
$fichier="Temp/limites_famille"."_".uniqid().".pdf";
|
||||
$pdf->Output($fichier,"F");
|
||||
echo 'Télécharger le résultat : <a href="'.$fichier.'" target="_blank" >LIMITES DE LA FAMILLE</a>';
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Detailtarifacte.php';
|
||||
|
||||
class ControleurAjaxinfosacte extends Controleur {
|
||||
private $acte;
|
||||
|
||||
public function __construct() {
|
||||
$this->acte = new Detailtarifacte();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$codePrestataire = $this->requete->getParametreFormulaire("codePrestataire");
|
||||
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
||||
|
||||
$resultat = $this->acte->getInfosActe_bon($codePrestataire, $codeActe);
|
||||
|
||||
$montantacte_info = $resultat['0'];
|
||||
$tauxCouverture_info = $resultat['1'];
|
||||
|
||||
$this->genererVueAjax(array('montantacte_info' => $montantacte_info, 'tauxCouverture_info' => $tauxCouverture_info));
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user