From a009e04090b5de2b6c9795dd94cb3fff364ec257 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 30 Dec 2025 10:55:06 +0000 Subject: [PATCH] =?UTF-8?q?Nouvel=20Adh=C3=A9rent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap_new/css/style_office.css | 14 + Controleur/ControleurAjaxproraterprime.php | 23 + Controleur/ControleurCreeradherent.php | 138 ++ Js/fonctions.js | 92 + Modele/Adherent.php | 975 ++++++--- Modele/Adherent_temp.php | 25 + Modele/Avenant.php | 84 + Modele/Beneficiaire.php | 1781 +++++++++++++---- Modele/Client.php | 195 +- Modele/Collegepolice.php | 150 ++ Modele/Localite.php | 9 +- Modele/Naturepiece.php | 26 +- Modele/Ouinon.php | 13 +- Modele/Pays.php | 9 +- Modele/Police.php | 2 +- Modele/Sexe.php | 13 +- Modele/Situationfamille.php | 13 +- Modele/Ville.php | 9 +- .../Controleur/Consultercollegeindex.php | 24 + .../radiant/Tarifs/Controleur/Cpfc1eng.php | 265 +++ .../radiant/Tarifs/Controleur/Cpfc1kiny.php | 269 +++ .../radiant/Tarifs/Controleur/Cpfc2eng.php | 275 +++ .../radiant/Tarifs/Controleur/Cpfc2kiny.php | 274 +++ .../radiant/Tarifs/Controleur/Cpstandard.php | 675 +++++++ .../Tarifs/Controleur/Cpstandardeng.php | 578 ++++++ .../Controleur/Creercollegedenregistrer.php | 33 + .../Tarifs/Controleur/Creercollegedindex.php | 18 + .../Controleur/Creercollegedinitcollege.php | 8 + .../Controleur/Creercollegeenregistrer.php | 32 + .../Tarifs/Controleur/Creercollegeindex.php | 16 + .../Controleur/Creercollegeinitcollege.php | 8 + .../Tarifs/Controleur/Devisstandard.php | 694 +++++++ .../Tarifs/Controleur/Devisstandardeng.php | 681 +++++++ .../Tarifs/Controleur/Editioncarteassure.php | 130 ++ .../Modifiercollegedenregistrer.php | 46 + .../Controleur/Modifiercollegedindex.php | 33 + .../Controleur/Modifiercollegeenregistrer.php | 37 + .../Controleur/Modifiercollegeindex.php | 27 + .../Consultercollegeindex.php | 24 + .../Tarifs/Controleur_2024_10_31/Cpfc1eng.php | 253 +++ .../Controleur_2024_10_31/Cpfc1kiny.php | 255 +++ .../Tarifs/Controleur_2024_10_31/Cpfc2eng.php | 261 +++ .../Controleur_2024_10_31/Cpfc2kiny.php | 261 +++ .../Controleur_2024_10_31/Cpstandard.php | 662 ++++++ .../Controleur_2024_10_31/Cpstandardeng.php | 566 ++++++ .../Creercollegedenregistrer.php | 33 + .../Creercollegedindex.php | 18 + .../Creercollegedinitcollege.php | 8 + .../Creercollegeenregistrer.php | 32 + .../Creercollegeindex.php | 16 + .../Creercollegeinitcollege.php | 8 + .../Controleur_2024_10_31/Devisstandard.php | 691 +++++++ .../Devisstandardeng.php | 678 +++++++ .../Modifiercollegedenregistrer.php | 46 + .../Modifiercollegedindex.php | 33 + .../Modifiercollegeenregistrer.php | 37 + .../Modifiercollegeindex.php | 27 + Societes/radiant/Tarifs/Img/logo_carte.png | Bin 0 -> 40256 bytes Societes/radiant/Tarifs/Img/logo_societe.png | Bin 0 -> 59484 bytes .../radiant/Tarifs/Modele/College_temp.php | 682 +++++++ .../radiant/Tarifs/Modele/College_temp_d.php | 528 +++++ Societes/radiant/Tarifs/Modele/Police.php | 686 +++++++ Societes/radiant/Tarifs/Modele/Police_d.php | 348 ++++ Societes/radiant/Tarifs/Modele/Tarif.php | 158 ++ .../radiant/Tarifs/Vue/Consultercollege.php | 415 ++++ Societes/radiant/Tarifs/Vue/Creercollege.php | 603 ++++++ Societes/radiant/Tarifs/Vue/Creercolleged.php | 631 ++++++ .../radiant/Tarifs/Vue/Modifiercollege.php | 671 +++++++ .../radiant/Tarifs/Vue/Modifiercolleged.php | 641 ++++++ Vue/Ajaxproraterprime/index.php | 93 + Vue/Creeradherent/index.php | 211 ++ Vue/Fichepolice/index.php | 6 +- Vue/gabarit.php | 2 +- 73 files changed, 16552 insertions(+), 726 deletions(-) create mode 100644 Controleur/ControleurAjaxproraterprime.php create mode 100644 Controleur/ControleurCreeradherent.php create mode 100644 Modele/Adherent_temp.php create mode 100644 Modele/Avenant.php create mode 100644 Societes/radiant/Tarifs/Controleur/Consultercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpfc1eng.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpfc1kiny.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpfc2eng.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpfc2kiny.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpstandard.php create mode 100644 Societes/radiant/Tarifs/Controleur/Cpstandardeng.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegedenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegedindex.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegedinitcollege.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegeenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Controleur/Creercollegeinitcollege.php create mode 100644 Societes/radiant/Tarifs/Controleur/Devisstandard.php create mode 100644 Societes/radiant/Tarifs/Controleur/Devisstandardeng.php create mode 100644 Societes/radiant/Tarifs/Controleur/Editioncarteassure.php create mode 100644 Societes/radiant/Tarifs/Controleur/Modifiercollegedenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur/Modifiercollegedindex.php create mode 100644 Societes/radiant/Tarifs/Controleur/Modifiercollegeenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur/Modifiercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Consultercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1eng.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1kiny.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2eng.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2kiny.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandard.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandardeng.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedindex.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedinitcollege.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeinitcollege.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandard.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandardeng.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedindex.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeenregistrer.php create mode 100644 Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeindex.php create mode 100644 Societes/radiant/Tarifs/Img/logo_carte.png create mode 100644 Societes/radiant/Tarifs/Img/logo_societe.png create mode 100644 Societes/radiant/Tarifs/Modele/College_temp.php create mode 100644 Societes/radiant/Tarifs/Modele/College_temp_d.php create mode 100644 Societes/radiant/Tarifs/Modele/Police.php create mode 100644 Societes/radiant/Tarifs/Modele/Police_d.php create mode 100644 Societes/radiant/Tarifs/Modele/Tarif.php create mode 100644 Societes/radiant/Tarifs/Vue/Consultercollege.php create mode 100644 Societes/radiant/Tarifs/Vue/Creercollege.php create mode 100644 Societes/radiant/Tarifs/Vue/Creercolleged.php create mode 100644 Societes/radiant/Tarifs/Vue/Modifiercollege.php create mode 100644 Societes/radiant/Tarifs/Vue/Modifiercolleged.php create mode 100644 Vue/Ajaxproraterprime/index.php create mode 100644 Vue/Creeradherent/index.php diff --git a/Bootstrap_new/css/style_office.css b/Bootstrap_new/css/style_office.css index 5b93fbc..235ab22 100644 --- a/Bootstrap_new/css/style_office.css +++ b/Bootstrap_new/css/style_office.css @@ -1320,4 +1320,18 @@ li i { margin-right:10px; color:#007bff; } border: 1px solid #ffeeba !important; font-size: 0.9rem; padding: 8px 12px; +} + +/* Style pour le sélecteur de date focus */ +.datepicker:focus { + border-color: var(--office-secondary); + background-color: #f8faff; +} + +/* Animation de l'affichage de la prime */ +#div_prime:not(:empty) { + border: 2px dashed var(--office-primary-lighter); + padding: 15px; + border-radius: 8px; + background-color: white; } \ No newline at end of file diff --git a/Controleur/ControleurAjaxproraterprime.php b/Controleur/ControleurAjaxproraterprime.php new file mode 100644 index 0000000..21bbb83 --- /dev/null +++ b/Controleur/ControleurAjaxproraterprime.php @@ -0,0 +1,23 @@ +adherent_temp = new Adherent_temp(); + } + + public function index() + { + $user = $_SESSION['login']; + $idCollege = $this->requete->getParametreFormulaire("idCollege"); + $prorata = $this->requete->getParametreFormulaire("prorata"); + $dateEntree = $this->requete->getParametreDate("dateEntree"); + + $adherent_temp = $this->adherent_temp->getAdherent_temp($idCollege, $dateEntree, $user, $prorata) ; + + $this->genererVueAjax(array('adherent_temp' => $adherent_temp)); + } +} diff --git a/Controleur/ControleurCreeradherent.php b/Controleur/ControleurCreeradherent.php new file mode 100644 index 0000000..805e953 --- /dev/null +++ b/Controleur/ControleurCreeradherent.php @@ -0,0 +1,138 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Creeradherent'); + + $this->adherent = new Adherent(); + $this->beneficiaire = new Beneficiaire(); + $this->naturepiece = (new Naturepiece())->getListe(); + $this->sexe = (new Sexe())->getListe(); + $this->situationfamille = (new Situationfamille())->getListe(); + // $this->pays = (new Pays())->getListe($_SESSION['codePaysSociete']); + $this->pays = new Pays(); + $this->groupesanguin = (new Groupesanguin())->getListe(); + $this->tarif = new Tarif(); + $this->college = (new Collegepolice())->getListe($_SESSION['idPolice_C']); + $this->avenant = (new Avenant())->getListeEnCours($_SESSION['idPolice_C']); + $this->ouinonprorata = (new Ouinon())->getListe(); + + $this->ville = new Ville(); + $this->localite = new Localite(); + $this->client = new Client(); + } + + public function index() + { + $idClient = $_SESSION['idClient_C']; + $client = $this->client->getClientId($idClient); + + $codeSociete = $_SESSION['codeSociete']; + $codePays = $client['codePays']; + $codeVille = $client['codeVille']; + $codeLocalite = $client['codeLocalite']; + + $pays = $this->pays->getListe($codePays); + $ville = $this->ville->getListe($codePays); + $localite = $this->localite->getListe($codePays, $codeVille); + + $idPolice = $_SESSION['idPolice_C']; + + $ville = $this->ville->getListe($codePays); + $localite = $this->localite->getListe($codePays, $codeVille); + + $this->genererVue(array('college' => $this->college, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe, + 'pays' => $pays, 'situationfamille' => $this->situationfamille, 'groupesanguin' => $this->groupesanguin, + 'avenant' => $this->avenant, 'ouinonprorata' => $this->ouinonprorata, 'ville' => $ville, 'localite' => $localite, + 'codePays' => $codePays, 'codeVille' => $codeVille, 'codeLocalite' => $codeLocalite)); + } + + public function ajouteradherent() + { + $idPolice = $_SESSION['idPolice_C']; + + $racineNoAdherent = $this->requete->getSession()->getAttribut('racineNoAdherent'); + $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); + $idCollege = $this->requete->getParametre("idCollege"); + $idPolice = $this->requete->getParametre("idPolice"); + $numeroPolice = $this->requete->getParametre("numeroPolice"); + $nom = $this->requete->getParametre("nom"); + $prenoms = $this->requete->getParametreFormulaire("prenoms"); + $codeNaturePiece = $this->requete->getParametre("codeNaturePiece"); + $numeroPiece = $this->requete->getParametreFormulaire("numeroPiece"); + $sexe = $this->requete->getParametreFormulaire("sexe"); + $dateNaissance = $this->requete->getParametreDate("dateNaissance"); + $codeGroupeSanguin = $this->requete->getParametreFormulaire("codeGroupeSanguin"); + $codeSituationFamille = $this->requete->getParametreFormulaire("codeSituationFamille"); + $nombreEnfants = $this->requete->getParametreFormulaire("nombreEnfants"); + $adresseGeo = $this->requete->getParametreFormulaire("adresseGeo"); + $adressePostale = $this->requete->getParametreFormulaire("adressePostale"); + $codePays = $this->requete->getParametre("codePays"); + $telephonFixe = $this->requete->getParametreFormulaire("telephonFixe"); + $telephonePortable = $this->requete->getParametreFormulaire("telephonePortable"); + $email = $this->requete->getParametreFormulaire("email"); + $dateEntree = $this->requete->getParametreDate("dateEntree"); + $idAvenant = $this->requete->getParametre("idAvenant"); + + $codeLocalite = $this->requete->getParametre("codeLocalite"); + + $user = $this->requete->getSession()->getAttribut('login'); + $dateCre = date("Y-m-d"); + + $nom = strtoupper($nom); + $prenoms = ucwords($prenoms); + + $dernierIdAdherent = $this->adherent->ajouteradherent($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, + $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite) ; + + $idBeneficiaire = $this->beneficiaire->ajouterAdherent($dernierIdAdherent); + + // On va calculuer la prime + $codeLienParente = "A"; + $idAdherent = $dernierIdAdherent; + $_SESSION['idAdherent_C'] = $idAdherent; + $_SESSION['idBeneficiaire_C'] = $idBeneficiaire; + + // On actualise le contexte : NbAdh et NbAss + $idPolice = $_SESSION['idPolice_C']; + $this->adherent->getNbassure($idPolice); + + $this->rediriger("Ficheadherent/".$idAdherent); + } + +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index fecbfea..462bc76 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -681,4 +681,96 @@ function assurance_familiale() } window.location.assign($("#racineWeb" ).val()+"Assuranceindividuelle/"); +} + +function est_ce_police_famille() +{ + codeTypeContrat = $("#codeTypeContrat_C").val(); + return (codeTypeContrat=="F"); +} + +function creer_adherents() +{ + // 06/11/2020 + if(est_ce_police_famille()) + { + window.location.assign($("#racineWeb" ).val()+"Assuranceindividuelle/"); + return; + } + + nbAdh = $("#nbAdh_C").val(); + codeTypeContrat = $("#codeTypeContrat_C").val(); + + if ( (codeTypeContrat!="G") && (nbAdh>0) ) + { + v_msg="Ce n\'est pas une police GROUPE!"; + v_msgEng="This is not a GROUP policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + etat=$("#codeEtatPolice_C").val(); + + if (etat=="RE") + { + v_msg="Attention! Police résiliée!"; + v_msgEng="Warning! Terminated policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="SU") + { + v_msg="Attention! Police suspendue!"; + v_msgEng="Warning! Suspended policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="AN") + { + v_msg="Attention! Police annulée!"; + v_msgEng="Warning! Canceled policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + window.location.assign($("#racineWeb" ).val()+"Creeradherent/"); +} + +function prorater_prime_adherent() +{ + idCollege=$("#idCollege").val(); + dateEntree=$("#dateEntree").val(); + prorata=$("#prorata").val(); + + if (idCollege<=" ") + { + v_msg="Veuillez sélectionner un collège!"; + v_msgEng="Please select a college!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + donnees = 'idCollege='+idCollege; + donnees += '&dateEntree='+dateEntree; + donnees += '&prorata='+prorata; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxproraterprime/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_prime").html(data); + }, + complete: function() { + } + }); } \ No newline at end of file diff --git a/Modele/Adherent.php b/Modele/Adherent.php index ec1da9f..1f30ac8 100755 --- a/Modele/Adherent.php +++ b/Modele/Adherent.php @@ -3,10 +3,10 @@ require_once 'Framework/Modele.php'; class Adherent extends Modele { public function getAdherentSimple($idAdherent) { - $sql = 'select * from vw_p_adherent WHERE (idAdherent)'; + $sql = 'select * from adherent WHERE (id=?)'; $adherent = $this->executerRequete($sql, array($idAdherent)); - return $adherent->fetch(); + return $adherent->fetch(PDO::FETCH_ASSOC); } public function getAdherents($noadherentsearch=null, $noPiecesearch=null, $emailsearch=null, @@ -19,16 +19,29 @@ class Adherent extends Modele { $prenomsearch = contruireParamLike($prenomsearch); $telsearch = contruireParamLike($telsearch); - $sql = 'select A.* from vw_p_adherent A WHERE (A.codeSociete=?) AND (numeroAdherent LIKE ?) - AND (emailAdherent LIKE ?) AND (nomAdherent LIKE ?) AND (prenomsAdherent LIKE ?) - AND (telephonePortableAdherent LIKE ?)'; + $sql = 'SELECT A.id, A.codeSociete, numeroAdherent, nom, prenoms, B.libelle as Ville, telephonePortable + FROM adherent A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille) + WHERE (A.codeSociete=? AND numeroAdherent LIKE ? AND telephonePortable LIKE ? AND email LIKE ? AND + nom LIKE ? AND prenoms LIKE ? AND telephonePortable LIKE ?)'; $adherent = $this->executerRequete($sql, array($_SESSION['codeSociete'], $noadherentsearch, $noPiecesearch, $emailsearch,$nomsearch, $prenomsearch, $telsearch)); - return $adherent; + + return $adherent->fetchAll(PDO::FETCH_ASSOC); } public function getAdherent($numeroAdherent) { - $sql = 'sselect A.* from vw_p_adherent A WHERE (A.codeSociete=?) AND (A.numeroAdherent=?)'; + $sql = 'select A.*, C.libelle as produit,D.libelle as naturepiece, + E.libelle as situationfamille, F.libelle as pays, G.libelle as motifsortie, + H.libelle as etatadherent, Cl.libelleCollege, A.primeArchive + from adherent A + left join produit C on (C.codeSociete=A.codeSociete and C.codeProduit=A.codeProduit) + left join college Cl on (Cl.codeSociete=A.codeSociete and Cl.id=A.idCollege) + left join naturepiece D on (D.codeSociete=A.codeSociete and D.codeNaturePiece=A.codeNaturePiece) + left join situationfamille E on (E.codeSituationFamille=A.codeSituationFamille) + left join pays F on (F.codeSociete=A.codeSociete and F.codePays=A.codePays) + left join motifsortie G on (G.codeMotifSortie=A.codeMotifSortie) + left join etatpersonne H on (H.codeEtatPersonne=A.codeEtatAdherent) + WHERE (A.codeSociete=?) AND (A.numeroAdherent=?)'; $adherent = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroAdherent)); return $adherent; @@ -37,169 +50,133 @@ class Adherent extends Modele { public function getAdherentId($idAdherent) { $sql = 'call sp_get_adherent_id(?);'; $adherent = $this->executerRequete($sql, array($idAdherent)); - return $adherent->fetch(); + return $adherent->fetch(PDO::FETCH_ASSOC); } - public function getAdherentIdConso($idAdherent) { - $sql = 'call sp_p_get_adherent_id_conso(?);'; + public function getAdherentIdConso($idAdherent) + { + $sql = 'call sp_get_adherent_id_conso(?);'; $adherent = $this->executerRequete($sql, array($idAdherent)); - return $adherent->fetch(); + return $adherent->fetch(PDO::FETCH_ASSOC); } + public function getNombreAdherents() + { + $sql = 'select count(*) as nbAdherents FROM adherent A WHERE (A.codeSociete=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['nbAdherents']; + } + public function getIdAdherent($numeroAdherent) { - $sql = 'SELECT idAdherent FROM vw_p_adherent WHERE (codeSociete=?) AND (numeroAdherent=?)'; + $sql = 'SELECT id FROM adherent WHERE (codeSociete=?) AND (numeroAdherent=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroAdherent)); - $ligne = $resultat->fetch(); - return $ligne['idAdherent']; + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['id']; } public function getContexteAdherentId($idAdherent) { - $sql = 'select * from vw_p_adherent where (idAdherent=?);'; + $sql = 'call sp_get_contexte_adherent_id(?);'; $resultat = $this->executerRequete($sql, array($idAdherent)); - $context = $resultat->fetch(); - - $_SESSION['idClient_C'] = $context['idClient']; - $_SESSION['numeroClient_C'] = $context['numeroClient']; - $_SESSION['nomClient_C'] = $context['nomClient']; - $_SESSION['adresseGeoClient_C'] = $context['adresseGeoClient']; - $_SESSION['boitepostaleClient_C'] = $context['boitepostaleClient']; - $_SESSION['telephoneBureauClient_C'] = $context['telephoneBureauClient']; - $_SESSION['telephonePortableClient_C'] = $context['telephonePortableClient']; - $_SESSION['faxClient_C'] = $context['faxClient']; - $_SESSION['emailClient_C'] = $context['emailClient']; - $_SESSION['idPolice_C'] = $context['idPolice']; - $_SESSION['numeroPolice_C'] = $context['numeroPolice']; - $_SESSION['dateEffetPolice_C'] = $context['dateEffetPolice']; - $_SESSION['dateFinPolice_C'] = $context['dateFinPolice']; - $_SESSION['dateEcheancePolice_C'] = $context['dateEcheancePolice']; - $_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice']; - $_SESSION['idCollege_C'] = $context['idCollege']; - $_SESSION['codeProduit_C'] = $context['codeProduit']; - $_SESSION['idAdherent_C'] = $context['idAdherent']; - $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; - $_SESSION['nomAdherent_C'] = $context['nomAdherent']; - $_SESSION['prenomsAdherent_C'] = $context['prenomsAdherent']; - $_SESSION['adherent_C'] = $context['adherent']; - $_SESSION['telephonePortableAdherent_C'] = $context['telephonePortableAdherent']; - $_SESSION['emailAdherent_C'] = $context['emailAdherent']; - $_SESSION['produit_C'] = $context['produit']; - $_SESSION['libelleCollege_C'] = $context['libelleCollege']; - $_SESSION['exercieReference_C'] = $context['exercieReference']; - $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; - - $_SESSION['adresseGeoAdherent_C'] = ""; - $_SESSION['paysAdherent_C'] = ""; - $_SESSION['adressePostaleAdherent_C'] = ""; - $_SESSION['telephonFixeAdherent_C'] = ""; - $_SESSION['nomBeneficiaire_C'] = ""; - $_SESSION['prenomsBeneficiaire_C'] = ""; - $_SESSION['beneficiaire_C'] = ""; - $_SESSION['codeLienParente_C'] = ""; - $_SESSION['numeroPiece_C'] = ""; - $_SESSION['sexe_C'] = ""; - $_SESSION['codeGroupeSanguin_C'] = ""; - $_SESSION['dateNaissance_C'] = ""; - $_SESSION['telephonePortableBeneficiaire_C'] = ""; - $_SESSION['dateEntreeBeneficiaire_C'] = ""; - $_SESSION['dateSortieBeneficiaire_C'] = ""; - $_SESSION['codeMotifSortie_C'] = ""; - $_SESSION['codeEtatBeneficiaire_C'] = ""; - $_SESSION['lienPhoto_C'] = ""; - $_SESSION['dateEffetBeneficiaire_C'] = ""; - $_SESSION['enVigueur_C'] = ""; - $_SESSION['naturepiece_C'] = ""; - $_SESSION['lienparente_C'] = ""; - $_SESSION['motifsortie_C'] = ""; - $_SESSION['etatbeneficiaire_C'] = ""; - $_SESSION['ageBeneficiaire_C'] = ""; - $_SESSION['idBeneficiaire_C'] = ""; - - $_SESSION['decede_C'] = ""; - $_SESSION['dateDeces_C'] = ""; + // $context = $resultat->fetch(PDO::FETCH_ASSOC); + $context = $resultat->fetch(PDO::FETCH_ASSOC); - $_SESSION['user_id_C'] = "0"; - $_SESSION['finger_id_C'] = "0"; - - $_SESSION['numeroBeneficiaire_C'] = ""; - $_SESSION['numeroFeuilleMaladie_C'] = "0"; - $_SESSION['numeroPrescription_C'] = "0"; - $_SESSION['numeroPrescription_C'] = "0"; - $_SESSION['idFacture_C'] = "0"; + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['nomClient_C'] = $context['nomClient']; + $_SESSION['codeLangueClient'] = $context['codeLangueClient']; + $_SESSION['codeLangueAdherent'] = $context['codeLangueAdherent']; + $_SESSION['idPolice_C'] = $context['idPolice']; + $_SESSION['numeroPolice_C'] = $context['numeroPolice']; + + $_SESSION['idAdherent_C'] = $context['idAdherent']; + $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; + $_SESSION['nomAdherent_C'] = $context['nomAdherent']; + $_SESSION['adherent_C'] = $context['adherent']; + $_SESSION['codeProduit_C'] = $context['codeProduit']; + $_SESSION['idCollege_C'] = $context['idCollege']; + $_SESSION['rachatTmAdh_C'] = $context['rachatTm']; + + $_SESSION['codeEtatAdherent_C'] = $context['codeEtatAdherent']; + + $_SESSION['email_C'] = $context['email']; + $_SESSION['telephonePortable_C'] = $context['telephonePortable']; + + $_SESSION['garantieArchive_C'] = $context['garantieArchive']; + $_SESSION['exercieReference_C'] = $context['exercieReference']; + $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; + + $_SESSION['codeLocalite'] = $context['codeLocalite']; + + // 06/05/2020 + $_SESSION['codeTypeContrat'] = $context['codeTypeContrat']; + $_SESSION['idApporteur_C'] = $context['idApporteur']; + $_SESSION['codeTypeApporteur_C'] = $context['codeTypeApporteur']; + $_SESSION['codeApporteur_C'] = $context['codeApporteur']; + $_SESSION['libelleApporteur_C'] = $context['libelleApporteur']; + // Fin 06/05/2020 + + $_SESSION['idBeneficiaire_C'] = ""; + $_SESSION['numeroBeneficiaire_C'] = ""; + $_SESSION['nomBeneficiaire_C'] = ""; + $_SESSION['lienPhoto_C'] = ""; + $_SESSION['beneficiaire_C'] = ""; + $_SESSION['enVigueur_C'] = ""; + + $_SESSION['decede_C'] = "0"; + $_SESSION['dateDeces_C'] = ""; + $_SESSION['fraisFuneraireDemande_C'] = "0"; + $_SESSION['fraisFunerairePaye_C'] = "0"; + return $context; } public function getContexteAdherentIdConso($idAdherent) { - $sql = 'call sp_p_get_contexte_adherent_id_conso(?);'; + $sql = 'call sp_get_contexte_adherent_id_conso(?);'; $resultat = $this->executerRequete($sql, array($idAdherent)); - $context = $resultat->fetch(); + $context = $resultat->fetch(PDO::FETCH_ASSOC); - $_SESSION['idClient_C'] = $context['idClient']; - $_SESSION['numeroClient_C'] = $context['numeroClient']; - $_SESSION['nomClient_C'] = $context['nomClient']; - $_SESSION['adresseGeoClient_C'] = $context['adresseGeoClient']; - $_SESSION['boitepostaleClient_C'] = $context['boitepostaleClient']; - $_SESSION['telephoneBureauClient_C'] = $context['telephoneBureauClient']; - $_SESSION['telephonePortableClient_C'] = $context['telephonePortableClient']; - $_SESSION['faxClient_C'] = $context['faxClient']; - $_SESSION['emailClient_C'] = $context['emailClient']; - $_SESSION['idPolice_C'] = $context['idPolice']; - $_SESSION['numeroPolice_C'] = $context['numeroPolice']; - $_SESSION['dateEffetPolice_C'] = $context['dateEffetPolice']; - $_SESSION['dateFinPolice_C'] = $context['dateFinPolice']; - $_SESSION['dateEcheancePolice_C'] = $context['dateEcheancePolice']; - $_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice']; - $_SESSION['idCollege_C'] = $context['idCollege']; - $_SESSION['codeProduit_C'] = $context['codeProduit']; - $_SESSION['idAdherent_C'] = $context['idAdherent']; - $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; - $_SESSION['nomAdherent_C'] = $context['nomAdherent']; - $_SESSION['prenomsAdherent_C'] = $context['prenomsAdherent']; - $_SESSION['adherent_C'] = $context['adherent']; - $_SESSION['telephonePortableAdherent_C'] = $context['telephonePortableAdherent']; - $_SESSION['emailAdherent_C'] = $context['emailAdherent']; - $_SESSION['produit_C'] = $context['produit']; - $_SESSION['libelleCollege_C'] = $context['libelleCollege']; - $_SESSION['exercieReference_C'] = $context['exercieReference']; - $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['nomClient_C'] = $context['nomClient']; + $_SESSION['codeLangueClient'] = $context['codeLangueClient']; + $_SESSION['codeLangueAdherent'] = $context['codeLangueAdherent']; - $_SESSION['adresseGeoAdherent_C'] = ""; - $_SESSION['paysAdherent_C'] = ""; - $_SESSION['adressePostaleAdherent_C'] = ""; - $_SESSION['telephonFixeAdherent_C'] = ""; - $_SESSION['nomBeneficiaire_C'] = ""; - $_SESSION['prenomsBeneficiaire_C'] = ""; - $_SESSION['beneficiaire_C'] = ""; - $_SESSION['codeLienParente_C'] = ""; - $_SESSION['numeroPiece_C'] = ""; - $_SESSION['sexe_C'] = ""; - $_SESSION['codeGroupeSanguin_C'] = ""; - $_SESSION['dateNaissance_C'] = ""; - $_SESSION['telephonePortableBeneficiaire_C'] = ""; - $_SESSION['dateEntreeBeneficiaire_C'] = ""; - $_SESSION['dateSortieBeneficiaire_C'] = ""; - $_SESSION['codeMotifSortie_C'] = ""; - $_SESSION['codeEtatBeneficiaire_C'] = ""; - $_SESSION['lienPhoto_C'] = ""; - $_SESSION['dateEffetBeneficiaire_C'] = ""; - $_SESSION['enVigueur_C'] = ""; - $_SESSION['naturepiece_C'] = ""; - $_SESSION['lienparente_C'] = ""; - $_SESSION['motifsortie_C'] = ""; - $_SESSION['etatbeneficiaire_C'] = ""; - $_SESSION['ageBeneficiaire_C'] = ""; - $_SESSION['idBeneficiaire_C'] = ""; - $_SESSION['numeroBeneficiaire_C'] = ""; - $_SESSION['numeroFeuilleMaladie_C'] = "0"; - $_SESSION['numeroPrescription_C'] = "0"; - $_SESSION['idFacture_C'] = "0"; + $_SESSION['idPolice_C'] = $context['idPolice']; + $_SESSION['numeroPolice_C'] = $context['numeroPolice']; + + $_SESSION['idAdherent_C'] = $context['idAdherent']; + $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; + $_SESSION['nomAdherent_C'] = $context['nomAdherent']; + $_SESSION['codeProduit_C'] = $context['codeProduit']; + $_SESSION['idCollege_C'] = $context['idCollege']; + $_SESSION['rachatTmAdh_C'] = $context['rachatTm']; + + $_SESSION['codeEtatAdherent_C'] = $context['codeEtatAdherent']; + + $_SESSION['email_C'] = $context['email']; + $_SESSION['telephonePortable_C'] = $context['telephonePortable']; + $_SESSION['exercieReference_C'] = $context['exercieReference']; + $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; + + $_SESSION['codeLocalite'] = $context['codeLocalite']; - $_SESSION['decede_C'] = ""; - $_SESSION['dateDeces_C'] = ""; + $_SESSION['idBeneficiaire_C'] = ""; + $_SESSION['numeroBeneficiaire_C'] = ""; + $_SESSION['nomBeneficiaire_C'] = ""; + $_SESSION['lienPhoto_C'] = ""; + $_SESSION['beneficiaire_C'] = ""; + $_SESSION['enVigueur_C'] = ""; + + $_SESSION['decede_C'] = "0"; + $_SESSION['dateDeces_C'] = ""; + $_SESSION['fraisFuneraireDemande_C'] = "0"; + $_SESSION['fraisFunerairePaye_C'] = "0"; return $context; } @@ -210,15 +187,494 @@ class Adherent extends Modele { return ($resultat->rowCount() > 0); } - public function getRapportSpAdherent($idAdherent) + public function getDenierNumeroAdherent() + { + $sql = 'select dernierNumeroAdherent from numerotationadherent WHERE (codeSociete=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + + if ($resultat->rowCount() == 0) + { + $sql = 'INSERT INTO numerotationadherent (codeSociete, racineNoAdherent, dernierNumeroAdherent) values (?,?,?)'; + $this->executerRequete($sql, array($_SESSION['codeSociete'], $_SESSION['racineNoAdherent'], "1")); + return "0"; + } else + { + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['dernierNumeroAdherent']; + } + } + + public function setDenierNumeroAdherent($numeroAdherent) + { + $sql = 'update numerotationadherent set dernierNumeroAdherent=? WHERE (codeSociete=?)'; + $this->executerRequete($sql, array($numeroAdherent, $_SESSION['codeSociete'])); + } + + public function ajouter($idCollege, $numeroAdherent, $nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, + $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $dateCre, $user, $idAvenant) + { + $dernierNumeroBeneficiaire = '1'; + $sql = 'insert into adherent ( + codeSociete, + idPolice, + numeroPolice, + idCollege, + codeProduit, + numeroAdherent, + nom, + prenoms, + codeNaturePiece, + numeroPiece, + sexe, + dateNaissance, + codeGroupeSanguin, + codeSituationFamille, + nombreEnfants, + adresseGeo, + adressePostale, + codePays, + telephonFixe, + telephonePortable, + email, + dateEntree, + dateCre, + user, + dernierNumeroBeneficiaire, + primeFamille, + primeBeneficiaire, + surprimeOption, + surprimeTm, + surprimeAnt, + commission, + commissionAutre, + primeNette, + primeNetteStat, + primeHt, + taxe, + fraisCarte, + primeTtc, + cplFuneraire, + primeCplFuneraire, + rachatTm, + deduireComm, + idAvenant, + ratioAvenant, + dateEffet, + delaiCarenceAdherent + ) + select + A.codeSociete, + A.idPolice, + A.numeroPolice, + A.id as idCollege, + A.codeProduit, + ? numeroAdherent, + ? nom, + ? prenoms, + ? codeNaturePiece, + ? numeroPiece, + ? sexe, + ? dateNaissance, + ? codeGroupeSanguin, + ? codeSituationFamille, + ? nombreEnfants, + ? adresseGeo, + ? adressePostale, + ? codePays, + ? telephonFixe, + ? telephonePortable, + ? email, + ? dateEntree, + + ? dateCre, + ? user, + "1" dernierNumeroBeneficiaire, + B.primeFamille, + A.primeBeneficiaire, + B.surprimeOption, + B.surprimeTm, + B.surprimeAnt, + + B.commission, + B.commissionAutre, + B.primeNette, + B.primeNetteStat, + B.primeHt, + B.taxe, + B.fraisCarte, + B.primeTtc, + + A.cplFuneraire, + B.primeCplFuneraire, + A.rachatTm, + A.deduireComm, + ?, + B.ratioAvenant, + B.dateEffet, + B.delaiCarenceAdherent + from college A + join adherent_temp B on (B.idCollege=A.id) + where (A.id=?) and (B.user=?)'; + + $this->executerRequete($sql, array($numeroAdherent, $nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, + $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $dateCre, $user, $idAvenant, $idCollege, $user)); + + $dernierId = $this->dernierId(); + + $sql = 'insert into garantieadherent (codeSociete, idPolice, idCollege, idAdherent, numeroAdherent, codeGarantie, garantie, + optionnelle, additionnelle, ordre, plafond, ratioAvenant, plafondAnnuel, plafondCollege, champApplication, exercieReference) + + select A.codeSociete, A.idPolice, A.idCollege, A.id as idAdherent, A.numeroAdherent, B.codeGarantie, B.garantie, + B.optionnelle, B.additionnelle, ordre, B.plafond, case when B.optionnelle="1" then "1" else A.ratioAvenant end as ratioAvenant, + B.plafond as plafondAnnuel, B.plafond as plafondCollege, B.champApplication, fn_exercice_adherent(A.id, A.dateEffet) AS exercieReference + from adherent A + join garantiecollege B on (B.idPolice=A.idPolice) and (B.idCollege=A.idCollege) + where A.id=?'; + + $this->executerRequete($sql, array($dernierId)); + + // On va prorater les limites des garanties de base + $sql = 'update garantieadherent set plafond = round(plafondAnnuel*ratioAvenant) + where (idAdherent=?) and (optionnelle!="1")'; + + $this->executerRequete($sql, array($dernierId)); + + // On va cumuler plafond frais funéraire et complément frais funéraire + $sql = 'call sp_maj_plafond_funeraire(?);'; + $this->executerRequete($sql, array($dernierId)); + // + $sql = 'delete from adherent_temp where (`user`=?)'; + $this->executerRequete($sql, array($user)); + + return $dernierId; + } + + public function modifier($id, $nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, $dateNaissance, $codeGroupeSanguin, + $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, $codePays, $telephonFixe, $telephonePortable, $email, $codeLocalite) + { + $sql = 'UPDATE adherent + SET + nom=?, + prenoms=?, + codeNaturePiece=?, + numeroPiece=?, + sexe=?, + dateNaissance=?, + codeGroupeSanguin=?, + codeSituationFamille=?, + nombreEnfants=?, + adresseGeo=?, + adressePostale=?, + codePays=?, + telephonFixe=?, + telephonePortable=?, + email=?, + codeLocalite=? + where (id=?)'; + + $this->executerRequete($sql, array($nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, $dateNaissance, $codeGroupeSanguin, + $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, $codePays, $telephonFixe, $telephonePortable, $email, $codeLocalite, $id)); + + $sql = 'UPDATE beneficiaire AS A + join adherent AS B on (A.idAdherent=B.id) + SET + A.idCollege=B.idCollege, + A.codeProduit=B.codeProduit, + + A.nomBeneficiaire=B.nom, + A.prenomsBeneficiaire=B.prenoms, + + A.codeNaturePiece=B.codeNaturePiece, + A.numeroPiece=B.numeroPiece, + A.sexe=B.sexe, + A.dateNaissance=B.dateNaissance, + A.codeGroupeSanguin=B.codeGroupeSanguin, + A.telephonePortable=B.telephonePortable, + A.dateEntree=B.dateEntree, + + A.primeFamille=B.primeFamille, + A.primeBeneficiaire=B.primeBeneficiaire, + A.surprimeOption=B.surprimeOption, + A.surprimeTm=B.surprimeTm, + A.surprimeAnt=B.surprimeAnt, + A.commission=B.commission, + A.primeNette=B.primeNette, + A.primeHt=B.primeHt, + A.taxe=B.taxe, + A.fraisCarte=B.fraisCarte, + A.primeTtc=B.primeTtc, + A.cplFuneraire=B.cplFuneraire, + A.primeCplFuneraire=B.primeCplFuneraire, + A.rachatTm=B.rachatTm + where (A.idAdherent=?) and (codeLienParente="A")'; + + $this->executerRequete($sql, array($id)); + } + + public function supprimer($idAdherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_supprimer_adherent(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $user)); + + $idPolice = $_SESSION['idPolice_C']; + $this->getNbassure($idPolice); + } + + public function formaterNumeroAdherent($racineNoAdherent,$numeroAdherent) + { + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_formater_numero_adherent(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $adh = $resultat->fetch(PDO::FETCH_ASSOC); + + $numeroAdherent = $adh['numeroAdherent']; + + return $numeroAdherent; + } + + public function getAdherentsSimple($idPolice) + { + $sql = 'select A.*, C.libelle as produit, Cl.libelleCollege, Cl.garantieArchive + from adherent A + left join produit C on (C.codeSociete=A.codeSociete and C.codeProduit=A.codeProduit) + left join college Cl on (Cl.codeSociete=A.codeSociete and Cl.id=A.idCollege) + WHERE (A.codeSociete=?) AND (A.idPolice=?) and (A.supprime!="1") order by numeroAdherent'; + + $adherents = $this->executerRequete($sql, array($_SESSION['codeSociete'], $idPolice)); + return $adherents; + } + + public function getNbassure($idPolice) { + // nb famille et de dépendants + /* + $sql = 'select + ifnull(sum(case when codeLienParente="A" then "1" else "0" end), "0") as ndAdh, + ifnull(SUM(case when codeLienParente="A" then "0" else "1" end), "0") as ndDep, + ifnull(SUM(case when codeEtatBeneficiaire="V" then "1" else "0" end), "0") as ndActif + from beneficiaire where (codeSociete=?) AND (idPolice=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $idPolice)); + // $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + */ + + $sql = 'CALL sp_popoulation_police(?);'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['ndAdh_C'] = $effectif['ndAdh']; + $_SESSION['ndDep_C'] = $effectif['ndDep']; + $_SESSION['ndActif_C'] = $effectif['ndActif']; + } + + public function getRapportSpAdherent($idAdherent, $dateReference) { - $dj = date("Y-m-d"); $sql = 'call sp_rapport_sp_adherent(?, ?)'; - $sppolice = $this->executerRequete($sql, array($idAdherent, $dj)); + $sppolice = $this->executerRequete($sql, array($idAdherent, $dateReference)); return $sppolice->fetch(PDO::FETCH_ASSOC); } + public function changeretat($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat) + { + $user = $_SESSION['login']; + $sql = 'call sp_changer_etat_adherent(?, ?, ?, ?, ?)'; + $this->executerRequete($sql, array($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat, $user)); + } + + public function initLimiteAdditionnelle($idAdherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_init_limite_add_adherent(?, ?)'; + $this->executerRequete($sql, array($idAdherent, $user)); + } + + public function getGarAddCollege() + { + $user = $_SESSION['login']; + $sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A + join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie) + where (A.user=?) order by A.ordre'; + + $garanties = $this->executerRequete($sql, array($user)); + return $garanties; + } + + public function majplafondadd($idGarantie, $plafond) + { + $sql = 'update garantieaddition_temp set plafond=? where (id=?)'; + $this->executerRequete($sql, array($plafond, $idGarantie)); + } + + public function changerlimite($idAdherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_changer_limite_adherent(?, ?)'; + $this->executerRequete($sql, array($idAdherent, $user)); + } + + public function recalculersoldefamille() + { + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_recalcul_solde_famille(?, ?)'; + + $this->executerRequete($sql, array($idAdherent, $user)); + } + + public function initremplacementadherent($idPolice, $idAdherent, $dateSortie , $dateRemplacement, $user, + $motifavenant, $fraisCarte) + { + $sql = 'call sp_init_remplacement_adherent(?, ?, ?, ?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $idAdherent, $dateSortie , $dateRemplacement, $user, $motifavenant, $fraisCarte)); + } + + public function getbeneficiairearemplacer() + { + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_get_beneficiaire_a_remplacer(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $user)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + + } + + public function getadherentremplacanttemp() + { + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_get_adherent_remplacant_temp(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $user)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + + public function getremplacementadherent_temp() + { + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_get_remplacementadherent_temp(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $user)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function enregistrerremplacementadherent($nom, $prenoms, $codeNaturePiece, $numeroPiece, $sexe, + $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $fraisCarte) + { + $idPolice = $_SESSION['idPolice_C']; + $idAdherent = $_SESSION['idAdherent_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_enregistrer_remplacement_adherent(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idPolice, $idAdherent, $user, $nom, $prenoms, $codeNaturePiece, $numeroPiece, + $sexe, $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $fraisCarte)); + } + + public function getremplacementadherent($idAdherent) + { + $sql = 'call sp_get_remplacementadherent_id_remplace(?);'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getgarantieremplacementadherent($idAdherent) + { + $sql = 'call sp_get_garantieremplacementadherent(?);'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getbeneficiaireremplacementadherent($idRemplacementadherent) + { + $sql = 'call sp_get_beneficiairerremplacementadherent(?);'; + + $resultat = $this->executerRequete($sql, array($idRemplacementadherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getAdherentIdRempl($idAdherent) + { + $sql = 'call sp_get_adherent_id_rempl(?);'; + $adherent = $this->executerRequete($sql, array($idAdherent)); + return $adherent->fetch(PDO::FETCH_ASSOC); + } + + public function getlisteassuresexo($idPolice) + { + $sql = 'call sp_liste_assures_exo(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function reinitpaswd($idAdherent) + { + $sql = 'call sp_r_reinit_utilisateur_adh(?, ?)'; + + $this->executerRequete($sql, array($_SESSION['codeSociete'], $idAdherent)); + } + + public function desactiver($idAdherent) + { + $sql = 'call sp_r_desactiver_utilisateur_adh(?)'; + + $this->executerRequete($sql, array($idAdherent)); + } + + public function activer($idAdherent) + { + $sql = 'call sp_r_activer_utilisateur_adh(?)'; + + $this->executerRequete($sql, array($idAdherent)); + } + + public function ajouteradherent($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, + $sexe, $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite) + { + $user = $_SESSION['login']; + + $sql = 'call sp_enregistrer_nouvel_adherent(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, + $sexe, $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $dernierIdAdherent = $ligne['dernierIdAdherent']; + return $dernierIdAdherent; + } + public function getlisteexo($idAdherent) { $sql = 'call sp_get_exercices_adherent(?)'; @@ -227,7 +683,92 @@ class Adherent extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getadherentlocalitein($codeLocalite) + { + $idPolice = $_SESSION['idPolice_C']; + $sql = 'call sp_r_get_adherent_localite_in(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $codeLocalite)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getadherentlocaliteout($codeLocalite) + { + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_r_get_adherent_localite_out(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $codeLocalite)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function ajouteradherentlocalitetous($codeLocalite) + { + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_r_ajouter_adherent_localite_tous(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $codeLocalite)); + } + + public function ajouterunadherentlocalite($idAherent, $codeLocalite) + { + $sql = 'call sp_r_ajouter_un_adherent_localite(?, ?);'; + + $this->executerRequete($sql, array($idAherent, $codeLocalite)); + } + + public function getadherentlocaliteexport() + { + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_r_get_adherent_localite_export(?);'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getlisteentetecontrat($idAdherent) + { + $sql = 'call sp_get_entete_contrat_adherent(?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getlisteentetecontratadherent($idAdherent) + { + $sql = 'call sp_get_entete_contrat_adherent(?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getlisteentetecontratbeneficiaire($idBeneficiaire) + { + $sql = 'call sp_get_entete_contrat_beneficiaire(?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getentetecontrat($idEntetecontrat) + { + $sql = 'SELECT * FROM entetecontrat WHERE id=? limit 1;'; + + $resultat = $this->executerRequete($sql, array($idEntetecontrat)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + public function controlerplafondadherentannuel($idAdherent) { $sql = 'select fn_control_plafond_adherent_courant(?) as controlerPlafondAdherent;'; @@ -236,105 +777,71 @@ class Adherent extends Modele { $ligne = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['controlerPlafondAdherent'] = $ligne['controlerPlafondAdherent']; } - - public function getlisteprestations() + + public function getAdherent_temp($idCollege, $dateEntree, $user, $prorata) { - $sql = 'SELECT datePrestation, codeTypePrestation, - valeurActe,montantArembourser - FROM p_prestationactes limit 1'; + $sql = 'call sp_init_adherent_familiale(?, ?, ?, ?)'; + + $adherent_temp = $this->executerRequete($sql, array($idCollege, $dateEntree, $user, $prorata)); + return $adherent_temp->fetch(PDO::FETCH_ASSOC); + } + + public function initadherentfamilialie_temp() + { + $idCollege = $_SESSION['dernierIdCollege']; + $idAvenant = $_SESSION['dernierIdAvenant']; + $dateEntree = $_SESSION['dernierDateAvenant']; + $codeCommercial = $_SESSION['codeApporteur_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_init_adherent_familiale(?, ?, ?, ?)'; + + $adherent_temp = $this->executerRequete($sql, array($idCollege,$dateEntree, $codeCommercial, $user)); - $resultat = $this->executerRequete($sql); + return $adherent_temp->fetch(PDO::FETCH_ASSOC); + } + + public function ajouteradherentfamilialie($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, + $sexe, $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite) + { + $user = $_SESSION['login']; + + $sql = 'call sp_enregistrer_nouvel_adherent_famliale(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idPolice, $idCollege, $nom, $prenoms, $codeNaturePiece, $numeroPiece, + $sexe, $dateNaissance, $codeGroupeSanguin, $codeSituationFamille, $nombreEnfants, $adresseGeo, $adressePostale, + $codePays, $telephonFixe, $telephonePortable, $email, $dateEntree, $user, $idAvenant, $codeLocalite)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $dernierIdAdherent = $ligne['dernierIdAdherent']; + return $dernierIdAdherent; + } + + public function getlisteassuresfamiliale($idPolice, $idApporteur, $debut, $fin) + { + $sql = 'call sp_liste_assures_familiale(?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idPolice, $idApporteur, $debut, $fin)); return $resultat->fetchAll(PDO::FETCH_ASSOC); } - - public function getconsommationadherent() + public function getlisteassuresfamilialeexport($idPolice, $idApporteur, $debut, $fin) { - $idAdherent=$_SESSION['idAdherent_C']; + $sql = 'call sp_liste_assures_familiale_export(?, ?, ?, ?)'; - $sql = 'SELECT fn_consommation_adherent(?,CURDATE()) AS consommation;'; + $resultat = $this->executerRequete($sql, array($idPolice, $idApporteur, $debut, $fin)); - $resultat = $this->executerRequete($sql, array($idAdherent)); - $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['consommation']; - - + return $resultat->fetchAll(PDO::FETCH_ASSOC); } - - public function getsoldeadherent() + public function getrecapprimeadhrent($idAdherent) { - $idAdherent=$_SESSION['idAdherent_C']; - - $sql = 'SELECT fn_solde_plafond_adherent(?,CURDATE()) AS solde;'; - - $resultat = $this->executerRequete($sql, array($idAdherent)); - $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['solde']; - - - } - - public function getPrestationsmensuelles($idAdherent){ - - if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ - $sql = 'call prestations_mensuelles_famille_eng(?)'; - }else{ - $sql = 'call prestations_mensuelles_famille(?)'; - } - - $resultat = $this->executerRequete($sql, array($idAdherent)); - - return $resultat->fetchAll(PDO::FETCH_ASSOC); - } - - public function getPrestationsLiensParente($idAdherent){ - - if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ - - $sql = 'call prestations_lienparente_famille_eng(?)'; - }else{ - $sql = 'call prestations_lienparente_famille(?)'; - } - - $resultat = $this->executerRequete($sql, array($idAdherent)); - - return $resultat->fetchAll(PDO::FETCH_ASSOC); - } - - public function getLimitesAdherent($idAdherent, $dateJour){ - - $sql = 'call sp_situation_famille_newversion(?, ?)'; - - $resultat = $this->executerRequete($sql, array($idAdherent, $dateJour)); + $sql = 'CALL sp_recap_prime_adherent_familiale(?);'; + $resultat = $this->executerRequete($sql, array($idAdherent)); return $resultat->fetch(PDO::FETCH_ASSOC); - } - - public function getConsosAdherent($idAdherent) - { - $datePrestation = date('Y-m-d'); - - $sql = 'call sp_consos_adherent_newversion(?, ?)'; - - $resultat = $this->executerRequete($sql, array($idAdherent, $datePrestation)); - - return $resultat->fetchAll(PDO::FETCH_ASSOC); - - } - - public function getConsosTotalAdherent($idAdherent) - { - $datePrestation = date('Y-m-d'); - - $sql = 'call sp_consos_total_adherent_newversion(?, ?)'; - - $resultat = $this->executerRequete($sql, array($idAdherent, $datePrestation)); - - return $resultat->fetch(PDO::FETCH_ASSOC); - - } - + } } \ No newline at end of file diff --git a/Modele/Adherent_temp.php b/Modele/Adherent_temp.php new file mode 100644 index 0000000..f8a06b4 --- /dev/null +++ b/Modele/Adherent_temp.php @@ -0,0 +1,25 @@ +executerRequete($sql, array($idCollege, $dateEntree, $user, $prorata)); + return $adherent_temp->fetch(PDO::FETCH_ASSOC); + } + + public function recapadherentfamilialetemp($idCollege, $dateEntree, $primeBase, $codeTypeEcheancier) + { + $codeCommercial = $_SESSION['codeApporteur_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_recap_prime_adherent_familiale_temp(?, ?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idCollege, $dateEntree, $primeBase, $codeTypeEcheancier, + $codeCommercial, $user)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } +} \ No newline at end of file diff --git a/Modele/Avenant.php b/Modele/Avenant.php new file mode 100644 index 0000000..508b3af --- /dev/null +++ b/Modele/Avenant.php @@ -0,0 +1,84 @@ +executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getAvenantNonFactures($idPolice) + { + $sql = 'call sp_avenants_non_factures_police(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListe($idPolice) + { + $sql = 'SELECT A.id as `code`, concat(B.libelle, " du ",DATE_FORMAT(dateEffet, "%d/%m/%Y")) as libelle + from avenant A + join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant) + where (idPolice=?) and (B.ajoutAliment="1") + order by numeroAvenant DESC'; + + $liste = $this->executerRequete($sql, array($idPolice)); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListeToutes($idPolice) + { + $sql = 'SELECT A.id as `code`, concat(IFNULL(B.libelle, B.codeTypeAvenant), " du ",DATE_FORMAT(dateEffet, "%d/%m/%Y")) as libelle + from avenant A + left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant) + where (idPolice=?) order by numeroAvenant DESC'; + + $liste = $this->executerRequete($sql, array($idPolice)); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getdateavenant($idAvenant) + { + $sql = 'select fn_get_date_avenant(?) as dateAvenant'; + + $resultat = $this->executerRequete($sql, array($idAvenant)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['dateAvenant']; + } + + public function getListeEnCours($idPolice) + { + if (est_anglophone()) + { + $sql = 'SELECT A.id AS `code`, CONCAT(B.libelleEng, " of ",DATE_FORMAT(A.dateEffet, "%d/%m/%Y")) AS libelle + FROM avenant A + JOIN typeavenant B ON (B.codeTypeAvenant=A.codeTypeAvenant) + JOIN police P ON (P.id=A.idPolice) + WHERE (A.idPolice=?) AND (B.ajoutAliment="1") + AND (A.dateEffet>=P.dateEffet) + ORDER BY A.numeroAvenant DESC;'; + } + else + { + $sql = 'SELECT A.id AS `code`, CONCAT(B.libelle, " du ",DATE_FORMAT(A.dateEffet, "%d/%m/%Y")) AS libelle + FROM avenant A + JOIN typeavenant B ON (B.codeTypeAvenant=A.codeTypeAvenant) + JOIN police P ON (P.id=A.idPolice) + WHERE (A.idPolice=?) AND (B.ajoutAliment="1") + AND (A.dateEffet>=P.dateEffet) + ORDER BY A.numeroAvenant DESC;'; + } + + + $liste = $this->executerRequete($sql, array($idPolice)); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } +} diff --git a/Modele/Beneficiaire.php b/Modele/Beneficiaire.php index 21503e0..d92f2d8 100755 --- a/Modele/Beneficiaire.php +++ b/Modele/Beneficiaire.php @@ -2,14 +2,19 @@ require_once 'Framework/Modele.php'; class Beneficiaire extends Modele { - public function getBeneficiaireVide() - { + public function getBeneficiaireVide() { + viderContexte(); - // $sql = 'SELECT * from vw_p_beneficiaire WHERE (1=2)'; - - $sql = 'SELECT * from vw_p_beneficiaire WHERE 0'; + /* + $sql = 'SELECT A.id as idBeneficiaire, A.*, B.idPolice, B.numeroPolice, B.telephonePortable, B.email, fn_age(A.dateNaissance) as age, + B.codeEtatAdherent + FROM beneficiaire A JOIN adherent B ON (B.id=A.idAdherent) + WHERE (1=2)'; + */ + $sql = 'call sp_r_recherche_beneficiaire_vide();'; + $beneficiaire = $this->executerRequete($sql); return $beneficiaire; } @@ -21,14 +26,14 @@ class Beneficiaire extends Modele { $telephonePortable = contruireParamLike($telephonePortable); $email = contruireParamLike($email); - $sql = 'call sp_p_get_beneficiaires(?, ?, ?, ?, ?);'; + $sql = 'call sp_get_beneficiaires(?, ?, ?, ?, ?);'; $adherent = $this->executerRequete($sql, array($_SESSION['codeSociete'], $nomBeneficiaire, $prenomsBeneficiaire, $telephonePortable, $email)); return $adherent; } public function getBeneficiairesAdh($numeroAdherent) { - $sql = 'SELECT * from vw_p_beneficiaire A WHERE (A.codeSociete=?) AND (A.numeroAdherent=?) order by A.numeroBeneficiaire'; + $sql = 'call sp_r_recherche_beneficiaire_no_adh(?, ?);'; $beneficiaires = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroAdherent)); return $beneficiaires; @@ -36,318 +41,1171 @@ class Beneficiaire extends Modele { public function getBeneficiaire($numeroBeneficiaire) { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_no(?, ?, ?, ?);'; + + $sql = 'call sp_r_recherche_beneficiaire_no(?, ?);'; - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBeneficiaire, $codeReseau, $codePrestataire)); + $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBeneficiaire)); return $beneficiaire; } - public function getBeneficiaireConsultation($numeroBonConsultation) + public function getBeneficiaireId($idBeneficiaire) { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_consultation(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonConsultation, $codeReseau, $codePrestataire)); - return $beneficiaire; - } - - public function getBeneficiaireConsultationCso($numeroBonConsultation) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_consultation_cso(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonConsultation, $codeReseau)); + $sql = 'call sp_get_beneficiaire_id(?);'; + $beneficiaire = $this->executerRequete($sql, array($idBeneficiaire)); return $beneficiaire->fetch(PDO::FETCH_ASSOC); } - public function getBeneficiaireOrdonnance($numeroBonOrdonnance) + + public function getPrimeBeneficiaire($idBeneficiaire) { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_ordonnance(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonOrdonnance, $codeReseau, $codePrestataire)); - return $beneficiaire; - } - - public function getBeneficiaireOptique($numeroBonOptique) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_optique(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonOptique, $codeReseau, $codePrestataire)); - return $beneficiaire; - } - - public function getBeneficiaireOrdonnanceCso($numeroBonOrdonnance) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_ordonnance_cso(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonOrdonnance, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); + $sql = 'call sp_get_prime_beneficiaire(?);'; + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + return $resultat->fetch(PDO::FETCH_ASSOC); } - public function getBeneficiaireOptiqueCso($numeroBonOptique) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_optique_cso(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonOptique, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireExamenCso($numeroBonExamen) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_examen_cso(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonExamen, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireKineCso($numeroBonKine) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_kine_cso(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonKine, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireSeanceKine($numeroBonSeance) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_seance_kine(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonSeance, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireOrdonnancePha($numeroBonOrdonnance) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_ordonnance(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonOrdonnance, $codeReseau, $codePrestataire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireOrdonnanceLab($numeroBonExamen) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_examen(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonExamen, $codeReseau, $codePrestataire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireOrdonnanceLabCsoExt($numeroBonExamen) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_examen_cso_ext(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonExamen, $codeReseau, $codePrestataire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireOrdonnanceSea($numeroBonKine) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_seance(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonKine, $codeReseau, $codePrestataire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireOrdonnanceOpt($numeroBonOptique) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_optique(?, ?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBonOptique, $codeReseau, $codePrestataire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } - - public function getBeneficiaireHospit($numeroBonHospitalisation) - { - $codeReseau = $_SESSION['codeReseauPrestataire_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $sql = 'call sp_p_get_beneficiaire_hospit(?, ?, ?);'; - - $beneficiaire = $this->executerRequete($sql, array($codePrestataire, $numeroBonHospitalisation, $codeReseau)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); - } + public function getNombreBeneficiaires() + { + $sql = 'select count(*) as nbBeneficiaires FROM adherent A WHERE (A.codeSociete=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['nbBeneficiaires']; + } public function getIdBeneficiaire($numeroBeneficiaire) { - $sql = 'SELECT idBeneficiaire FROM vw_p_beneficiaire WHERE (codeSociete=?) AND (numeroBeneficiaire=?)'; + $sql = 'SELECT id FROM beneficiaire WHERE (codeSociete=?) AND (numeroBeneficiaire=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroBeneficiaire)); $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['idBeneficiaire']; + return $ligne['id']; } public function getIdPremierBeneficiaire($idAdherent) { - $sql = 'SELECT idBeneficiaire FROM vw_p_beneficiaire WHERE (idAdherent=?)'; + $sql = 'SELECT id FROM beneficiaire WHERE (idAdherent=?)'; $resultat = $this->executerRequete($sql, array($idAdherent)); $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['idBeneficiaire']; + return $ligne['id']; } - - public function getContexteBeneficiaireId($id) + public function getContexteBeneficiaireId($id) { - $idAdherent = $_SESSION['idAdherent_C']; - $sql = 'call sp_a_get_beneficiaire_id(?, ?);'; + $sql = 'call sp_r_get_beneficiaire_id(?);'; - $resultat = $this->executerRequete($sql, array($idAdherent, $id)); + $resultat = $this->executerRequete($sql, array($id)); $context = $resultat->fetch(PDO::FETCH_ASSOC); - if($context) + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['nomClient_C'] = $context['nomClient']; + $_SESSION['codeLangueClient'] = $context['codeLangueClient']; + $_SESSION['codeLangueAdherent'] = $context['codeLangueAdherent']; + + $_SESSION['idPolice_C'] = $context['idPolice']; + $_SESSION['numeroPolice_C'] = $context['numeroPolice']; + + $_SESSION['idAdherent_C'] = $context['idAdherent']; + $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; + $_SESSION['nomAdherent_C'] = $context['nomAdherent']; + $_SESSION['idCollege_C'] = $context['idCollege']; + + $_SESSION['idBeneficiaire_C'] = $context['idBeneficiaire']; + $_SESSION['numeroBeneficiaire_C'] = $context['numeroBeneficiaire']; + $_SESSION['nomBeneficiaire_C'] = $context['nomBeneficiaire']; + $_SESSION['email_C'] = $context['email']; + $_SESSION['telephonePortable_C'] = $context['telephonePortable']; + $_SESSION['lienPhoto_C'] = $context['lienPhoto']; + $_SESSION['codeLienParente_C'] = $context['codeLienParente']; + + $_SESSION['codeEtatBeneficiaire_C'] = $context['codeEtatBeneficiaire']; + $_SESSION['codeEtatAdherent_C'] = $context['codeEtatAdherent']; + $_SESSION['exercieReference_C'] = $context['exercieReference']; + $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; + + $_SESSION['codeLocalite'] = $context['codeLocalite']; + + // 06/05/2020 + $_SESSION['codeTypeContrat'] = $context['codeTypeContrat']; + $_SESSION['idApporteur_C'] = $context['idApporteur']; + $_SESSION['codeTypeApporteur_C'] = $context['codeTypeApporteur']; + $_SESSION['codeApporteur_C'] = $context['codeApporteur']; + $_SESSION['libelleApporteur_C'] = $context['libelleApporteur']; + // Fin 06/05/2020 + + + // $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaire']; + if (est_anglophone()) { - $_SESSION['idClient_C'] = $context['idClient']; - $_SESSION['numeroClient_C'] = $context['numeroClient']; - $_SESSION['nomClient_C'] = $context['nomClient']; - $_SESSION['codeLangueClient'] = $context['codeLangueClient']; - $_SESSION['codeLangueAdherent'] = $context['codeLangueAdherent']; - - $_SESSION['idPolice_C'] = $context['idPolice']; - $_SESSION['numeroPolice_C'] = $context['numeroPolice']; - - $_SESSION['codeGcAssureur_C'] = $context['codeGcAssureur']; - $_SESSION['nomGcAssureur_C'] = $context['garant']; - - $_SESSION['idAdherent_C'] = $context['idAdherent']; - $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; - $_SESSION['nomAdherent_C'] = $context['nomAdherent']; - $_SESSION['idCollege_C'] = $context['idCollege']; - - $_SESSION['idBeneficiaire_C'] = $context['idBeneficiaire']; - $_SESSION['numeroBeneficiaire_C'] = $context['numeroBeneficiaire']; - $_SESSION['nomBeneficiaire_C'] = $context['nomBeneficiaire']; - $_SESSION['email_C'] = $context['email']; - $_SESSION['telephonePortable_C'] = $context['telephonePortable']; - $_SESSION['lienPhoto_C'] = $context['lienPhoto']; - $_SESSION['codeLienParente_C'] = $context['codeLienParente']; - - $_SESSION['codeEtatBeneficiaire_C'] = $context['codeEtatBeneficiaire']; - $_SESSION['codeEtatAdherent_C'] = $context['codeEtatAdherent']; - $_SESSION['exercieReference_C'] = $context['exercieReference']; - $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; - - $_SESSION['codeLocalite'] = $context['codeLocalite']; - - $_SESSION['dateEffetInitialPolice_C'] = $context['dateEffetInitialPolice']; - $_SESSION['dateAvenantPolice_C'] = $context['dateAvenantPolice']; - - /////////////////////////////////////////////////////////////// - $_SESSION['dateEntreeBeneficiaire_C'] = $context['dateEntreeBeneficiaire']; - $_SESSION['dateEffetPolice_C'] = $context['dateEffetPolice']; - - //////////////////////////////////////////////////////////////////// - $_SESSION['baseTarification_C'] = $context['baseTarification']; - - // $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaire']; - if (est_anglophone()) - { - $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaireEng']; - } - else - { - $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaire']; - } - $_SESSION['adherent_C'] = $context['nomAdherent']; - $_SESSION['beneficiaire_C'] = $context['nomBeneficiaire']; - $_SESSION['enVigueur_C'] = $context['enVigueur']; - - $_SESSION['decede_C'] = $context['decede']; - $_SESSION['dateDeces_C'] = $context['dateDeces']; - $_SESSION['fraisFuneraireDemande_C'] = $context['fraisFuneraireDemande']; - $_SESSION['fraisFunerairePaye_C'] = $context['fraisFunerairePaye']; - - $_SESSION['dateEcheancePolice_C'] = $context['dateEcheancePolice']; - - $_SESSION['garantieArchive_C'] = $context['garantieArchive']; - - $_SESSION['faceRegistered_C'] = $context['faceRegistered']; - - $_SESSION['nomPolice_C'] = $context['libellePolice']; - $_SESSION['nomCollege_C'] = $context['libelleCollege']; - - // vérifier que la photo du bénéficiaire existe - $photo = ""; - $_SESSION['photoAssureCrypte'] = ""; - - if ($_SESSION['lienPhoto_C']>" ") - { - $photo = $_SESSION['lienPhotoFace'].$_SESSION['lienPhoto_C']; - if(!file_exists($photo)) - { - $_SESSION['lienPhoto_C'] = ""; - } - else - { - $_SESSION['photoAssureCrypte'] = decryptImage($photo); - } - } - - return true; + $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaireEng']; } else { - return false; + $_SESSION['etatbeneficiaire_C'] = $context['etatbeneficiaire']; } + + $_SESSION['adherent_C'] = $context['nomAdherent']; + $_SESSION['beneficiaire_C'] = $context['nomBeneficiaire']; + $_SESSION['enVigueur_C'] = $context['enVigueur']; + + $_SESSION['decede_C'] = $context['decede']; + $_SESSION['dateDeces_C'] = $context['dateDeces']; + $_SESSION['fraisFuneraireDemande_C'] = $context['fraisFuneraireDemande']; + $_SESSION['fraisFunerairePaye_C'] = $context['fraisFunerairePaye']; + + $_SESSION['dateEcheancePolice_C'] = $context['dateEcheancePolice']; + + $_SESSION['garantieArchive_C'] = $context['garantieArchive']; + + $_SESSION['faceRegistered_C'] = $context['faceRegistered']; + + $photoFace = ""; + + if ($_SESSION['lienPhoto_C']>" ") + { + $photoFace = $_SESSION['dossierSociete'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C']; + /* + if(!@fopen($photoFace, 'r')) + { + $_SESSION['lienPhoto_C'] = ""; + } + */ + } + } - public function getBeneficiairesId($idAdherent, $dateJour) { + public function getContexteBeneficiaireAssure($id) { + $sql = 'SELECT A.idAdherent, A.numeroAdherent, B.telephonePortable, + concat(B.prenomsAdherent," ",B.nomAdherent) as nomAdherent, + A.id as idBeneficiaire, A.numeroBeneficiaire, B.email, A.lienPhoto, + concat(A.prenomsBeneficiaire," ",A.nomBeneficiaire) as nomBeneficiaire, codeLienParente, Cl.garantieArchive + FROM beneficiaire A + JOIN adherent B ON (B.id=A.idAdherent) + left join college Cl on (Cl.id=A.idCollege) + WHERE (A.idAdherent=?) AND(A.id=?)'; - $sql = 'CALL sp_a_beneficiaireId(?, ?);'; + $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'], $id)); + + if ($resultat->rowCount()==0) + { + $sql = 'SELECT A.idAdherent, A.numeroAdherent, B.telephonePortable, + concat(B.prenomsAdheren," ",B.nomAdherent) as nomAdherent, A.enVigueur, + A.id as idBeneficiaire, A.numeroBeneficiaire, B.email, A.lienPhoto, + concat(A.prenomsBeneficiaire," ",A.nomBeneficiaire) as nomBeneficiaire, codeLienParente, + A.decede, A.dateDeces, A.fraisFuneraireDemande, A.fraisFunerairePaye, Cl.garantieArchive + FROM beneficiaire A + JOIN adherent B ON (B.id=A.idAdherent) + left join college Cl on (Cl.id=A.idCollege) + WHERE (A.idAdherent=?) + AND (A.codeLienParente="A")'; - $beneficiaires = $this->executerRequete($sql, array($idAdherent, $dateJour)); + $resultat = $this->executerRequete($sql, array($_SESSION['idAdherent_C'])); + } + $context = $resultat->fetch(PDO::FETCH_ASSOC); + $_SESSION['idBeneficiaire_C'] = $context['idBeneficiaire']; + $_SESSION['numeroBeneficiaire_C'] = $context['numeroBeneficiaire']; + $_SESSION['nomBeneficiaire_C'] = $context['nomBeneficiaire']; + $_SESSION['email_C'] = $context['email']; + $_SESSION['telephonePortable_C'] = $context['telephonePortable']; + $_SESSION['lienPhoto_C'] = $context['lienPhoto']; + $_SESSION['codeLienParente_C'] = $context['codeLienParente']; + $_SESSION['beneficiaire_C'] = $context['nomBeneficiaire']; + $_SESSION['enVigueur_C'] = $context['enVigueur']; + + $_SESSION['decede_C'] = $context['decede']; + $_SESSION['dateDeces_C'] = $context['dateDeces']; + $_SESSION['fraisFuneraireDemande_C'] = $context['fraisFuneraireDemande']; + $_SESSION['fraisFunerairePaye_C'] = $context['fraisFunerairePaye']; + $_SESSION['garantieArchive_C'] = $context['garantieArchive']; + + // vérifier que la photo du bénéficiaire existe - return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + $photoFace = ""; + + if ($_SESSION['lienPhoto_C']>" ") + { + $photoFace = $_SESSION['dossierSociete'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C']; + /* + if(!@fopen($photoFace, 'r')) + { + $_SESSION['lienPhoto_C'] = ""; + } + */ + } + } + + public function getContexteAdherentId($id) { + $sql = 'SELECT A.id AS idAdherent, A.numeroAdherent, A.nom AS nomAdherent, A.prenoms AS prenomsAdherent, + CONCAT(A.nom," ",A.prenoms) AS nomCompletAdherent, telephonePortable, email, + codeProduit, idCollege, fn_exercice_adherent(A.id, A.dateEffet) AS exercieReference, + fn_id_entetecontrat_police(A.idPolice, A.dateEffet) AS idEntetecontrat + FROM adherent A WHERE (A.codeSociete=?) AND (A.id=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $context = $resultat->fetch(PDO::FETCH_ASSOC); + $_SESSION['idAdherent_C'] = $context['idAdherent']; + $_SESSION['numeroAdherent_C'] = $context['numeroAdherent']; + $_SESSION['nomAdherent_C'] = $context['nomAdherent']; + $_SESSION['codeProduit_C'] = $context['codeProduit']; + $_SESSION['idCollege_C'] = $context['idCollege']; + + $_SESSION['adherent_C'] = $context['nomCompletAdherent']; + $_SESSION['exercieReference_C'] = $context['exercieReference']; + $_SESSION['idEntetecontrat'] = $context['idEntetecontrat']; + } + + public function existeligne($numeroAdherent) { + $sql = 'select id FROM adherent WHERE (codeSociete=?) and (numeroAdherent=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroAdherent)); + return ($resultat->rowCount() > 0); + } + + public function ajouter($idAdherent, $numeroBeneficiaire, $nomBeneficiaire, + $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, + $dateNaissance, $telephonePortable, $dateEntree, $dateCre, $user, $idAvenant, $fraisCarte) + { + $dernierNumeroBeneficiaire = '1'; + $sql = 'INSERT INTO beneficiaire ( + codeSociete, + idPolice, + numeroPolice, + codeProduit, + idCollege, + idAdherent, + numeroAdherent, + rachatTm, + deduireComm, + numeroBeneficiaire, + nomBeneficiaire, + prenomsBeneficiaire, + codeLienParente, + codeNaturePiece, + numeroPiece, + sexe, + codeGroupeSanguin, + dateNaissance, + telephonePortable, + dateEntree, + dateCre, + `user`, + cplFuneraire, + primeFamille, + primeBeneficiaire, + primeCplFuneraire, + surprimeOption, + surprimeTm, + surprimeAnt, + commission, + commissionAutre, + primeNette, + primeNetteStat, + accessoire, + primeHt, + taxe, + fraisCarte, + primeTtc, + idAvenant, + ratioAvenant, + dateEffet, + codeEtatFacturation, + delaiCarence + ) + + select + A.codeSociete, + A.idPolice, + A.numeroPolice, + A.codeProduit, + A.idCollege, + A.id as idAdherent, + A.numeroAdherent, + A.rachatTm, + A.deduireComm, + concat(A.numeroAdherent, fn_numordre(A.dernierNumeroBeneficiaire+1, 2)), + ?, + ?, + ?, + ?, + ?, + ?, + ?, + ?, + ?, + ?, + ?, + ?, + B.cplFuneraireBeneficiaire, + -- BN.primeFamille, + CASE WHEN BN.codeEtatFacturation="1" THEN 0 ELSE BN.primeFamille END as primeFamille, + BN.primeBeneficiaire, + BN.primeCplFuneraire, + BN.surprimeOption, + BN.surprimeTm, + BN.surprimeAnt, + BN.commission, + BN.commissionAutre, + BN.primeNette, + BN.primeNetteStat, + BN.accessoire, + BN.primeHt, + BN.taxe, + -- BN.fraisCarte, + ?, + BN.primeTtc, + ?, + BN.ratioAvenant, + BN.dateEffet, + BN.codeEtatFacturation, + BN.delaiCarence + from adherent A + join beneficiaire_temp BN on (BN.idAdherent=A.id) + join college B ON (B.id=A.idCollege) + WHERE (A.id=?) and (BN.user=?)'; + + $this->executerRequete($sql, array($nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, $sexe, + $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $dateCre, $user, $fraisCarte, $idAvenant, $idAdherent, $user)); + + $dernierId = $this->dernierId(); + + $sql = 'insert into beneficiaireprime + ( + codeSociete, + idPolice, + idAvenant, + dateEffet, + enVigueur, + idBeneficiaire, + numeroBeneficiaire, + primeNette, + primeCplFuneraire, + commission, + commissionAutre, + primeNetteStat, + accessoire, + primeHt, + taxe, + fraisCarte, + primeTtc, + dateSysteme, + codeUtilisateur, + idEmission, + numeroEmission, + idAdherent, + exercice, + exercieReference, + dateEffetPolice, + dateFinPolice, + dateEffetAdherent, + dateEffetBeneficiaire, + codeProduit, + codeLienParente, + idCollege, + codeEtatFacturation, + userFacturation, + dateFacturation, + idEntetecontrat + ) + select + A.codeSociete, + A.idPolice, + A.idAvenant, + A.dateEffet, + A.enVigueur, + A.id as idBeneficiaire, + A.numeroBeneficiaire, + A.primeNette, + A.primeCplFuneraire, + A.commission, + A.commissionAutre, + A.primeNetteStat, + A.accessoire, + A.primeHt, + A.taxe, + A.fraisCarte, + A.primeTtc, + now() as dateSysteme, + A.`user` as codeUtilisateur, + "0" idEmission, + "0" numeroEmission, + A.idAdherent, + year(A.dateEffet) as exercice, + year(B.dateEffet) as exercieReference, + B.dateEffet as dateEffetPolice, + B.dateFin as dateFinPolice, + Ad.dateEffet as dateEffetAdherent, + A.dateEffet as dateEffetBeneficiaire, + A.codeProduit, + A.codeLienParente, + A.idCollege, + A.codeEtatFacturation, + CASE WHEN A.codeEtatFacturation="1" THEN A.`user` ELSE "" END as userFacturation, + CASE WHEN A.codeEtatFacturation="1" THEN now() ELSE null END as dateFacturation, + fn_id_entetecontrat_police(A.idPolice, A.dateEffet) as idEntetecontrat + from beneficiaire A + join police B on (B.id=A.idPolice) + join adherent Ad on (Ad.id=A.idAdherent) + where (A.id=?);'; + + $this->executerRequete($sql, array($dernierId)); + + $sql = 'delete from beneficiaire_temp where (`user`=?)'; + $this->executerRequete($sql, array($user)); + + // On va cumuler plafond frais funéraire et complément frais funéraire + $sql = 'call sp_maj_plafond_funeraire(?);'; + $this->executerRequete($sql, array($idAdherent)); + // + + // return $this->dernierId(); + return $dernierId; + } + + public function modifier($id, $nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, + $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire) + { + $sql = 'UPDATE beneficiaire SET nomBeneficiaire=?, prenomsBeneficiaire=?, codeLienParente=?, codeNaturePiece=?, numeroPiece=?, + sexe=?, codeGroupeSanguin=?, dateNaissance=?, telephonePortable=?, dateEntree=?, primeFamille=?, primeBeneficiaire=? where (id=?)'; + + $this->executerRequete($sql, array($nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, + $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire, $id)); + } + + public function supprimer($idBeneficiaire) { + $user = $_SESSION['login']; + + $sql = 'call sp_supprimer_beneficiaire(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $user)); + + $idPolice = $_SESSION['idPolice_C']; + $this->getNbassure($idPolice); + } + + public function supprimerempreinte($motif) + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_r_supprimer_empreinte(?, ?, ?);'; + + $this->executerRequete($sql, array($idBeneficiaire, $user, $motif)); + } + + public function formaterNumeroAdherent($racineNoAdherent,$numeroAdherent) + { + $idPolice = $_SESSION['idPolice_C']; + /* + $numeroAdherent = "000000".$numeroAdherent; + $numeroAdherent = substr($numeroAdherent, -7); + $numeroAdherent = $racineNoAdherent.$numeroAdherent; + return $numeroAdherent; + */ + + $sql = 'call sp_formater_numero_adherent(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $adh = $resultat->fetch(PDO::FETCH_ASSOC); + + $numeroAdherent = $adh['numeroAdherent']; + + return $numeroAdherent; + + } + + public function ajouterAdherent($idAdherent) + { + $sql = 'call sp_enregistrer_premier_beneficiaire(?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $dernierIdBeneficiaire = $ligne['dernierIdBeneficiaire']; + return $dernierIdBeneficiaire; + } + + public function getBeneficiairesId($id) + { + $sql = 'call sp_get_beneficiaires_adherent(?, ?);'; + + $beneficiaires = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getBeneficiairesAfacturer($idPolice) + { + $sql = 'call sp_beneficiaires_a_facturer(?)'; + + $beneficiaires = $this->executerRequete($sql, array($idPolice)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getTotalAfacturer($idPolice) + { + $sql = 'call sp_total_beneficiaires_a_facturer(?)'; + + $totaafacturer = $this->executerRequete($sql, array($idPolice)); + + return $totaafacturer->fetch(PDO::FETCH_ASSOC); + } + + public function getNbAfacturer($idPolice) { + $sql = 'select count(*) as nb FROM beneficiaire A WHERE (A.idPolice=?) + AND (A.codeEtatFacturation ="9") AND (A.primeTtc!=0)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['nb']; + } + + public function selectionfacturation($idBeneficiairePrime, $choix) + { + // $sql = 'update beneficiaire set codeEtatFacturation=? WHERE (id=?)'; + + $sql = 'call sp_select_un_beneficiaire_a_facturer(?, ?);'; + + $this->executerRequete($sql, array($idBeneficiairePrime, $choix)); + + } + + public function selectionnertout($idPolice, $choix) + { + $sql = 'call sp_select_beneficiaire_a_facturer(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $choix)); + } + + public function majEtatFacturation($idPolice, $numeroEmission, $idEmission) + { + /* + $sql = 'INSERT INTO beneficiairequittance (codeSociete, idEmission, numeroEmission, idBeneficiaire, + numeroBeneficiaire, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc, idPolice) + + SELECT codeSociete, ? AS idEmission, ? AS numeroEmission, id AS idBeneficiaire, numeroBeneficiaire, + primeNette, commission, primeHt, taxe, fraisCarte, primeTtc, A.idPolice + FROM beneficiaire A WHERE (A.codeSociete=?) AND (A.idPolice=?) + AND (A.codeEtatFacturation ="9") AND (A.primeTtc!=0)'; + + $this->executerRequete($sql, array($idEmission, $numeroEmission, $_SESSION['codeSociete'], $idPolice)); + + $sql = 'update beneficiaire set codeEtatFacturation="1" WHERE (codeSociete=?) AND (idPolice=?) + AND (codeEtatFacturation="9") AND (primeTtc!=0)'; + + $this->executerRequete($sql, array($_SESSION['codeSociete'], $idPolice)); + */ + + $sql = 'call sp_maj_etat_facturation(?, ?, ?);'; + $this->executerRequete($sql, array($idPolice, $numeroEmission, $idEmission)); + } + + public function getDenierNumeroBeneficiaire($idAdherent) + { + $sql = 'select dernierNumeroBeneficiaire from adherent WHERE (id=?)'; + $resultat = $this->executerRequete($sql, array($idAdherent)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['dernierNumeroBeneficiaire']; + } + + public function setDenierNumeroBeneficiaire($idAdherent, $dernierNumeroBeneficiaire) + { + $sql = 'update adherent set dernierNumeroBeneficiaire=? WHERE (id=?)'; + $this->executerRequete($sql, array($dernierNumeroBeneficiaire, $idAdherent)); + } + + + public function changerPhoto($id, $nomImage) + { + $sql = 'update beneficiaire set lienPhoto=?, faceRegistered="1" WHERE (id=?)'; + $this->executerRequete($sql, array($nomImage, $id)); + } + + public function getListeAssure() { + $numeroAdherent = $_SESSION['numeroAdherent_C']; + $sql = 'SELECT numeroBeneficiaire as `code`, prenomsBeneficiaire AS libelle + FROM beneficiaire WHERE numeroAdherent=? ORDER BY 2'; + + $liste = $this->executerRequete($sql, array($numeroAdherent)); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function Rqlisteassure($numeroBeneficiaire1, $numeroBeneficiaire2, $nomBeneficiaire, + $prenomsBeneficiaire, $date1, $date2, $date3, $date4) + { + $nomBeneficiaire = contruireParamLike($nomBeneficiaire); + $prenomsBeneficiaire = contruireParamLike($prenomsBeneficiaire); + + If($numeroBeneficiaire1=="0") + { + $numeroBeneficiaire1=""; + } + + $sql = 'SELECT B.nomAdherent, B.prenomsAdherent, B.numeroAdherent, B.numeroPolice, + B.policeAssistance, A.numeroBeneficiaire, A.prenomsBeneficiaire, A.nomBeneficiaire, + A.codeLienParente, A.codeSexe, + DATE_FORMAT(A.dateNaissance, "%d/%m/%Y") AS dateNaissance_fr, + fn_age(A.dateNaissance) as age, + DATE_FORMAT(A.dateEntree, "%d/%m/%Y") AS dateEntree_fr, + DATE_FORMAT(A.dateSortie, "%d/%m/%Y") AS dateSortie_fr + FROM beneficiaire A + JOIN adherent B ON (B.id=A.idAdherent) + WHERE (A.numeroBeneficiaire BETWEEN ? AND ?) + AND (A.nomBeneficiaire LIKE ?) AND (A.prenomsBeneficiaire LIKE ?) + AND (A.dateNaissance BETWEEN ? AND ?) AND (A.dateEntree BETWEEN ? AND ?) + ORDER BY B.nomAdherent, B.prenomsAdherent, A.codeLienParente, + A.prenomsBeneficiaire, A.nomBeneficiaire'; + + $liste = $this->executerRequete($sql, array($numeroBeneficiaire1, $numeroBeneficiaire2, $nomBeneficiaire, + $prenomsBeneficiaire, $date1, $date2, $date3, $date4)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function imposerprime($idAdherent, $idBeneficiaire, $primeNette, $commission, $commissionAutre, $primeHt, $accessoire, + $taxe, $fraisCarte, $primeTtc, $primeNetteStat) + { + $user = $_SESSION['login']; + + $sql = 'call sp_imposer_prime_beneficiaire(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($idAdherent, $idBeneficiaire, $primeNette, $commission, $commissionAutre, $accessoire, $primeHt, + $taxe, $fraisCarte, $primeTtc, $primeNetteStat, $user)); + } + + public function getTotalBeneficiairesId($idAdherent) { + $sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission, + IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe, IFNULL(sum(primeBase),"0") as primeBase, + IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc + FROM beneficiaire A WHERE (idAdherent=?) and (A.supprime!="1")'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + // return $resultat->fetch(PDO::FETCH_ASSOC); + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getNbassure($idPolice) { + // nb famille et de dépendants + /* + $sql = 'select + ifnull(sum(case when codeLienParente="A" then "1" else "0" end), "0") as ndAdh, + ifnull(SUM(case when codeLienParente="A" then "0" else "1" end), "0") as ndDep, + ifnull(SUM(case when codeEtatBeneficiaire="V" then "1" else "0" end), "0") as ndActif + from beneficiaire where (codeSociete=?) AND (idPolice=?) and (supprime!="1")'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + */ + + $sql = 'CALL sp_popoulation_police(?);'; + + $resultat = $this->executerRequete($sql, array($id)); + $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['ndAdh_C'] = $effectif['ndAdh']; + $_SESSION['ndDep_C'] = $effectif['ndDep']; + $_SESSION['ndActif_C'] = $effectif['ndActif']; + } + + public function getBeneficiairesAexporter($idPolice, $dateAnalyse) + { + if (est_anglophone()) + { + $sql = 'call sp_export_assure_eng(?, ?);'; + } + else + { + $sql = 'call sp_export_assure(?, ?);'; + } + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $dateAnalyse)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getBeneficiairesAexporterSansFormat($idPolice, $dateAnalyse) + { + if (est_anglophone()) + { + $sql = 'call sp_export_assure_sans_format_eng(?, ?);'; + } + else + { + $sql = 'call sp_export_assure_sans_format(?, ?);'; + } + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $dateAnalyse)); + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getBeneficiairesAimprimer($idPolice, $dateAnalyse) + { + if (est_anglophone()) + { + $sql = 'call sp_imprimer_assure_eng(?, ?);'; + } + else + { + $sql = 'call sp_imprimer_assure(?, ?);'; + } + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $dateAnalyse)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getEnteteBeneficiairesAimprimer($idPolice) + { + $sql = 'call sp_entete_liste_assure(?);'; + + $entete = $this->executerRequete($sql, array($idPolice)); + return $entete->fetch(PDO::FETCH_ASSOC); + } + + public function changeretat($idbeneficiaire, $codeEtatbeneficiaire, $motifEtat, $dateEtat) + { + $user = $_SESSION['login']; + $sql = 'call sp_changer_etat_beneficiaire(?, ?, ?, ?, ?)'; + $this->executerRequete($sql, array($idbeneficiaire, $codeEtatbeneficiaire, $motifEtat, $dateEtat, $user)); + } + + public function majdatesortie($idbeneficiaire, $dateSortie, $motifSortie) + { + + $user = $_SESSION['login']; + + $sql = 'call sp_maj_date_sortie(?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idbeneficiaire, $user, $dateSortie, $motifSortie)); + } + + public function getBeneficiairesActifs($dateAnalyse) + { + $sql = 'call sp_assures_actifs(?);'; + + $resultat = $this->executerRequete($sql, array($dateAnalyse)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getBeneficiairesActifsExport($dateAnalyse) + { + $sql = 'call sp_assures_actifs_export(?);'; + + $resultat = $this->executerRequete($sql, array($dateAnalyse)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getempreintesupprimers() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'call sp_empreintes_supprimees(?);'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); } public function gethistoempreintesupprimers($debut, $fin) { - $idAdherent = $_SESSION['idAdherent_C']; - - $sql = 'call sp_a_histo_suppression_empreintes(?, ?, ?);'; + $sql = 'call sp_histo_suppression_empreintes(?, ?);'; - $resultat = $this->executerRequete($sql, array($idAdherent, $debut, $fin)); + $resultat = $this->executerRequete($sql, array($debut, $fin)); return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getModeleAssures() + { + $sql = 'CALL sp_export_modele_assure();'; + + $beneficiaires = $this->executerRequete($sql); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function initIinsererLigneModeleAssure() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_init_inserer_ligne_modele_assure(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function insererLigneModeleAssure($idAvenant, $categorie, $numeroAdherent, $noFamille, $nom, $prenoms, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $email) + { + $idSaisie = $_SESSION['idSaisie']; + $user = $_SESSION['login']; + + $sql = 'call sp_inserer_ligne_modele_assure(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($idAvenant, $user, $idSaisie, $categorie, $numeroAdherent, $noFamille, $nom, $prenoms, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $email)); + } + + + public function getListeAssuresImportes() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_afficher_lignes_importees(?, ?);'; + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $user)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function gererIncorporationSurFamExistante() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_gerer_incorporation_sur_fam_existante(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + + public function calculerprimeimportee() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_calculer_prime_importee(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function enregistrerparamimportassure($nomOrigine, $nouveau_fichier, $taille) + { + $idPolice = $_SESSION['idPolice_C']; + $codeSociete = $_SESSION['codeSociete']; + $user = $_SESSION['login']; + //$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; + $cheminFichier = $nouveau_fichier; + + $sql = 'call sp_r_enregistrer_param_import_assure(?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $codeSociete, $nomOrigine, $cheminFichier, $taille, $user)); + } + + public function getFichierImport() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_afficher_fichier_import(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function exclureligneimportee($idBeneficiairemodel, $exclure) + { + $sql = 'call sp_r_exclure_ligne_importee(?, ?)'; + + $this->executerRequete($sql, array($idBeneficiairemodel, $exclure)); + } + + public function getListeAdherentImportes($idCollege) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_afficher_adherents_importees(?, ?, ?)'; + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $user, $idCollege)); + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListeAdherentImportesCollege($idCollege) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_afficher_adherents_importees_college(?, ?, ?)'; + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $user, $idCollege)); + + + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function ajouterunadherentaucollege($idBeneficiairemodel, $idCollege) + { + $user = $_SESSION['login']; + + $sql = 'call sp_r_ajouter_adherent_importee_college(?, ?, ?)'; + + $this->executerRequete($sql, array($user, $idBeneficiairemodel, $idCollege)); + } + + + public function retirerunadherentaucollege($idBeneficiairemodel) + { + $user = $_SESSION['login']; + + $sql = 'call sp_r_retirer_adherent_importee_college(?, ?)'; + + $this->executerRequete($sql, array($user, $idBeneficiairemodel)); + } + + public function getnbadhimpsanscollege() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'SELECT fn_nb_adh_imp_sans_college(?, ?) AS nb_adh;'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['nb_adh']; + } + + public function incorpoerassuresimportes() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_incorporer_assures_importes(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function ajoutertousadherentaucollege($idCollege) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_r_ajouter_tous_adherent_importee_college(?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idCollege)); + } + + public function ajoutersanscollegeadherentaucollege($idCollege) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_r_ajouter_adherent_sans_college_importee_college(?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idCollege)); + } + + // retirertousadherentaucollege + public function retirertousadherentaucollege($idCollege) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_r_retirer_tous_adherent_importee_college(?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idCollege)); + } + + public function majetape() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_r_maj_etape_3_import_assure(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function getadhimpfamillesansadherent() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_adh_imp_famille_sans_adherent(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['noFamille']; + } + + public function getadhimpfamilleplusieursadherent() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_adh_imp_famille_plusieurs_adherent(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['noFamille']; + } + + public function getadhimpfamilleexistantsansadherent() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_adh_imp_famille_existant_sans_adherent(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['noFamille']; + } + + public function getBeneficiairesNonFature($idPolice) + { + $sql = 'call sp_beneficiaires_non_factures(?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function afficherfacturationpolice($debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_afficher_facturation_police(?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function initfacturationpolice() + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'CALL sp_init_facturation_police(?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idSaisie)); + } + + public function selectionnertoutlignesafacturer($choix, $debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_select_tous_beneficiaire_a_facturer(?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin, $choix)); + } + + public function selectionnerunelignesafacturer($idBeneficiairePrimeTemp, $choix, $debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_select_un_beneficiaire_a_facturer(?, ?, ?, ?, ?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin, $idBeneficiairePrimeTemp, $choix)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + + } + + public function affichertotalfacturationpolice($debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_recap_beneficiaire_a_facturer(?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + + public function initecheancierfacturation($debut, $fin) + { + $codeSociete = $_SESSION['codeSociete']; + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_init_echeancier_facturation(?, ?, ?, ?, ?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($codeSociete, $idPolice, $user, $idSaisie, $debut, $fin, $_SESSION['lang'])); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['idEmission_temp']; + } + + public function majaccessoiresfacturation($fraisCarte, $debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + + $sql = 'call sp_maj_accessoires_facturation(?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin, $fraisCarte)); + } + + public function majprimesfacturation($idCollege, $old_primeNette, $nv_primeNette, $debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_maj_primes_facturation(?, ?, ?, ?, ?, ?, ?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin, $idCollege, $old_primeNette, $nv_primeNette)); + } + + public function gethistoenrollementempreinte($debut, $fin) + { + $sql = 'call sp_histo_enrollement_empreinte(?, ?);'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getentetecontrat($idEntetecontrat) + { + $sql = 'SELECT * FROM entetecontrat WHERE id=? limit 1;'; + + $resultat = $this->executerRequete($sql, array($idEntetecontrat)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getlisteentetecontratadherent($idAdherent) + { + $sql = 'call sp_get_entete_contrat_adherent(?)'; + + $resultat = $this->executerRequete($sql, array($idAdherent)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getlisteentetecontratbeneficiaire($idBeneficiaire) + { + $sql = 'call sp_get_entete_contrat_beneficiaire(?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } public function controlerplafondbeneficiaireannuel($idBeneficiaire) { @@ -371,138 +1229,215 @@ class Beneficiaire extends Modele { $_SESSION['controlerPlafondAdherent'] = $ligne['controlerPlafondAdherent']; } - - public function getBeneficiaireId($idBeneficiaire) + public function ajouterAdherentfamilialie($idAdherent) { + $sql = 'call sp_enregistrer_premier_beneficiaire_famliale(?)'; - $sql = 'call sp_get_beneficiaire_id(?);'; - $beneficiaire = $this->executerRequete($sql, array($idBeneficiaire)); - return $beneficiaire->fetch(PDO::FETCH_ASSOC); + $resultat = $this->executerRequete($sql, array($idAdherent)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $dernierIdBeneficiaire = $ligne['dernierIdBeneficiaire']; + return $dernierIdBeneficiaire; } - - - public function modifier($nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, - $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire, $numeroCmu, - $numeroMatricule, $codeTarifActe, $dateSouscription, $vip, $seuilRdBeneficiaire, $numeroBs, $codeTypeRemboursement, $id) + + public function ajouterfamiliale($idAdherent, $numeroBeneficiaire, $nomBeneficiaire, + $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, + $dateNaissance, $telephonePortable, $dateEntree, $user, $idAvenant, $fraisCarte) { + $sql = 'CALL sp_ajouter_beneficiaire_famliale(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; + + /* + $dernierId = $this->executerRequete($sql, array($idAdherent, $nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $user, + $idAvenant, $fraisCarte)); + */ - $sql = 'CALL sp_modifier_beneficiaire(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);'; + $resultat = $this->executerRequete($sql, array($idAdherent, $nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $user, + $idAvenant, $fraisCarte)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $dernierIdBeneficiaire = $ligne['dernierIdBeneficiaire']; + return $dernierIdBeneficiaire; + } + + public function getModeleAssuresFamiliale() + { + $idPolice = $_SESSION['idPolice_C']; - $this->executerRequete($sql, array($nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, - $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire, $numeroCmu, - $numeroMatricule, $codeTarifActe, $dateSouscription, $vip, $seuilRdBeneficiaire, $numeroBs, $codeTypeRemboursement, $id)); + $sql = 'CALL sp_export_modele_assure_familiale(?);'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function initIinsererLigneModeleAssureFamiliale() + { + $idPolice = $_SESSION['idPolice_C']; $user = $_SESSION['login']; - $sql = 'CALL sp_modifier_beneficiaireprime(?, ?);'; - $this->executerRequete($sql, array($id, $user)); - } - - - public function getIdBeneficiaireAdherent($idAdherent) { - $sql = 'SELECT idBeneficiaire FROM vw_p_beneficiaire - WHERE (codeSociete=?) AND (idAdherent=?) - AND (codeLienParente="A");'; - $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $idAdherent)); - - $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['idBeneficiaire']; - } - - public function getconsommationbeneficiaire() - { - $idBeneficiaire=$_SESSION['idBeneficiaire_C']; - - $sql = 'SELECT fn_conso_beneficiaire_periode(?,CURDATE()) AS consommation;'; - - $resultat = $this->executerRequete($sql, array($idBeneficiaire)); - $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['consommation']; - + + $sql = 'CALL sp_init_inserer_ligne_modele_assure(?, ?);'; - } - - - public function getsoldebeneficiaire() + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function insererLigneModeleAssureFamiliale($idAvenant, $categorie, $numeroAdherent, $noFamille, $nom, $prenoms, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $email, $codecommercial, $codeTypeEcheancier, + $primeBase, $dateEntree) { - $idBeneficiaire=$_SESSION['idBeneficiaire_C']; - - $sql = 'SELECT fn_solde_plafond_beneficiaire(?,CURDATE()) AS solde;'; - - $resultat = $this->executerRequete($sql, array($idBeneficiaire)); - $ligne = $resultat->fetch(PDO::FETCH_ASSOC); - return $ligne['solde']; + $idSaisie = $_SESSION['idSaisie']; + $user = $_SESSION['login']; + $sql = 'call sp_inserer_ligne_modele_assure_familiale(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);'; - } - - - public function getSituationPolice($idBeneficiaire) - { - $date = date('Y-m-d'); - - //var_dump($idBeneficiaire, $date); - - $sql = 'call sp_situation_beneficiaire_famille_newversion(?,?);'; - $police = $this->executerRequete($sql, array($idBeneficiaire, $date)); - return $police->fetch(PDO::FETCH_ASSOC); + $resultat = $this->executerRequete($sql, array($idAvenant, $user, $idSaisie, $categorie, $numeroAdherent, $noFamille, $nom, $prenoms, $codeLienParente, + $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $email, $codecommercial, $codeTypeEcheancier, + $primeBase, $dateEntree)); } - - public function getSituationCollege($idBeneficiaire) + + public function recapitulerImportationAssuresFamliale() { - $date = date('Y-m-d'); - $sql = 'call sp_situation_beneficiaire_annuel_newversion(?, ?);'; - $college = $this->executerRequete($sql, array($idBeneficiaire, $date)); - return $college->fetch(PDO::FETCH_ASSOC); + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + + $sql = 'CALL sp_recap_import_assures_familiale(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); } - - public function getConsosBeneficiaire($idBeneficiaire) + + public function getListeAssuresImportesFamiliale() { - $datePrestation = date('Y-m-d'); + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_afficher_lignes_importees_familiale(?, ?);'; + + $beneficiaires = $this->executerRequete($sql, array($idPolice, $user)); - $sql = 'call sp_consos_beneficiaire_newversion(?, ?)'; + return $beneficiaires->fetchAll(PDO::FETCH_ASSOC); + } + + public function incorpoerassuresimportesfamiliale() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_incorporer_assures_importes_familiale(?, ?);'; + + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function exporter_beneficiaire_a_facturer($debut, $fin) + { + $idPolice = $_SESSION['idPolice_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + + $sql = 'call sp_exporter_beneficiaire_a_facturer(?, ?, ?, ?, ?);'; - $resultat = $this->executerRequete($sql, array($idBeneficiaire, $datePrestation)); + $resultat = $this->executerRequete($sql, array($idPolice, $user, $idSaisie, $debut, $fin)); return $resultat->fetchAll(PDO::FETCH_ASSOC); - - } + } - - public function getConsosTotalBeneficiaire($idBeneficiaire) + public function getlogreconnaissancefaciale($debut, $fin) { - $datePrestation = date('Y-m-d'); + $sql = 'call sp_get_log_reconnaissance_faciale(?, ?)'; - $sql = 'call sp_consos_total_beneficiaire_newversion(?, ?)'; + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getlogreconnaissancefacialeexport($debut, $fin) + { + $sql = 'call sp_get_log_reconnaissance_faciale_export(?, ?)'; - $resultat = $this->executerRequete($sql, array($idBeneficiaire, $datePrestation)); + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function re_init() + { + $_SESSION['idBeneficiaire_C'] = ""; + $_SESSION['Patient_C'] = ""; + $_SESSION['beneficiaire_C'] = ""; + $_SESSION['adherent_C'] = ""; + $_SESSION['user_id_C'] = ""; + $_SESSION['finger_id_C'] = ""; + $_SESSION['faceRegistered_C'] = ""; + } + + public function getpatientlike($numeroBeneficiaire, $nomsearch) + { + $nomsearch = contruireParamLike($nomsearch); + $numeroBeneficiaire = contruireParamLike($numeroBeneficiaire); + $idPolice = $_SESSION['idPolice_C']; - return $resultat->fetch(PDO::FETCH_ASSOC); + $sql = 'call sp_r_patients_like(?, ?, ?)'; - } - - public function getPrestationsmensuelles($idBeneficiaire){ - - if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){ - $sql = 'call prestations_mensuelles_beneficiaire_eng(?)'; - }else{ - $sql = 'call prestations_mensuelles_beneficiaire(?)'; - } - - $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + $resultat = $this->executerRequete($sql, array($idPolice, $numeroBeneficiaire, $nomsearch)); return $resultat->fetchAll(PDO::FETCH_ASSOC); - } + } + + public function getpatientlikevide() + { + $sql = 'call sp_r_patients_vide()'; + $resultat = $this->executerRequete($sql); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getlogreregisterface($debut, $fin) + { + $sql = 'call sp_get_log_register_face(?, ?)'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } - //Reconnaissance Faciale 26-09-2025 - public function registerface($numeroBeneficiaire) + public function getlogreregisterfaceexport($debut, $fin) + { + $sql = 'call sp_get_log_register_face_export(?, ?)'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getlogreremoveface($debut, $fin) + { + $sql = 'call sp_get_log_remove_face(?, ?)'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getlogreremovefaceexport($debut, $fin) + { + $sql = 'call sp_get_log_remove_face_export(?, ?)'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function registerface($numeroBeneficiaire) { $codePrestataire = ""; - $user = $_SESSION['login']; + $user = $_SESSION['login']; - $sql = 'call sp_a_register_face(?, ?)'; + $sql = 'call sp_p_register_face(?, ?, ?)'; - $this->executerRequete($sql, array($numeroBeneficiaire, $user)); + $this->executerRequete($sql, array($numeroBeneficiaire, $codePrestataire, $user)); } public function unregisterface($numeroBeneficiaire, $motif) @@ -579,33 +1514,53 @@ class Beneficiaire extends Modele { $ligne = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['idLogapiface'] = $ligne['idLogapiface']; } - - public function getlogreconnaissancefaciale($debut, $fin) + + public function supprimerface($motif) { - $ipConnexion = contruireParamLike($ipConnexion); - - $sql = 'call sp_get_logreconnaissancefaciale(?, ?)'; + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $user = $_SESSION['login']; - $resultat = $this->executerRequete($sql, array($debut, $fin)); + $sql = 'call sp_r_supprimer_face(?, ?, ?);'; + + $this->executerRequete($sql, array($idBeneficiaire, $user, $motif)); + } + public function getfacesupprimers() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'call sp_faces_supprimees(?);'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getModeBiometrie() { + $sql = 'CALL sp_get_mode_biometrie(?);'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $_SESSION['codeModeBiometrie'] = $ligne['codeModeBiometrie']; - public function changerPhoto($id, $nomImage) - { - $sql = 'update beneficiaire set lienPhoto=?, faceRegistered="1" WHERE (id=?)'; - $this->executerRequete($sql, array($nomImage, $id)); + $codeModeBiometrie = $_SESSION['codeModeBiometrie']; + if($codeModeBiometrie=='1' or $codeModeBiometrie=='3'){ + $_SESSION['fingerActif'] = '1'; + } + else{ + $_SESSION['fingerActif'] = '0'; + } + + if($codeModeBiometrie=='2' or $codeModeBiometrie=='3'){ + $_SESSION['faceActif'] = '1'; + } + else{ + $_SESSION['faceActif'] = '0'; + } } - - public function supprimerPhoto($id) - { - $sql = 'update beneficiaire set lienPhoto="", faceRegistered="0" WHERE (id=?)'; - $this->executerRequete($sql, array($id)); - } - + public function init_traiterlaface($codeActionFace) { - $codePrestataire = ""; + $codePrestataire = ''; $user = $_SESSION['login']; $username = $_SESSION['numeroBeneficiaire_C']; @@ -623,4 +1578,48 @@ class Beneficiaire extends Modele { $this->executerRequete($sql, array($idLogapiface, $username, $success, $message)); } + + public function supprimerPhoto($id) + { + $sql = 'update beneficiaire set lienPhoto="", faceRegistered="0" WHERE (id=?)'; + $this->executerRequete($sql, array($id)); + } + + public function gethistofacesupprimees($debut, $fin) + { + $sql = 'call sp_histo_suppression_faces(?, ?);'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function gethistoenrollementface($debut, $fin) + { + $sql = 'call sp_histo_enrollement_face(?, ?);'; + + $resultat = $this->executerRequete($sql, array($debut, $fin)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function prestationPossible($idBeneficiaire) + { + $sql = 'select fn_beneficiaire_prestation_possible(?) as prestationPossible'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['prestationPossible']; + } + + public function controlenopieceglobal($numeroPiece) + { + $sql = 'CALL sp_controle_no_piece_global(?);'; + + $resultat = $this->executerRequete($sql, array($numeroPiece)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + } \ No newline at end of file diff --git a/Modele/Client.php b/Modele/Client.php index 33b192f..2de56de 100755 --- a/Modele/Client.php +++ b/Modele/Client.php @@ -8,20 +8,16 @@ class Client extends Modele { $prenomsearch = contruireParamLike($prenomsearch); $telsearch = contruireParamLike($telsearch); - $sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable - FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille) - WHERE (A.codeSociete=? AND nom LIKE ? AND prenoms LIKE ? AND telephonePortable LIKE ?) - order by nom, prenoms'; - + $sql = 'call sp_getClients(?, ?, ?, ?);'; + $clients = $this->executerRequete($sql, array($_SESSION['codeSociete'], $nomsearch, $prenomsearch, $telsearch)); return $clients; } - public function getClientsearch($numeroClient) { - $sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable - FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille) - WHERE (A.codeSociete=?) AND (A.numeroClient=?)'; - + public function getClientsearch($numeroClient) + { + $sql = 'call sp_getClientsearch(?, ?);'; + $clients = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); return $clients; } @@ -35,22 +31,24 @@ class Client extends Modele { return $clients; } - public function getClientVide() { - $sql = 'SELECT A.id, A.codeSociete, numeroClient, nom, prenoms, B.libelle as Ville, telephonePortable - FROM clients A left join ville B on (B.codeSociete=A.codeSociete AND B.codeVille=A.codeVille) - order by nom, prenoms'; - // order by nom, prenoms limit 20'; - + public function getClientVide() + { + + $sql = 'call sp_getClientVide();'; + $clients = $this->executerRequete($sql); return $clients; } public function getClient($numeroClient) { - $sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre, E.libelle as libelleTitre, - A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville, A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile, - A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelleSecteur, A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire, - A.nomMandataire, A.telephoneFixemandataire, A.telephonePortablemandataire, A.emailMandataire, A.dateCre, A.user + $sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre, + E.libelle as libelleTitre, A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville, + A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile, + A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelle as libelleSecteur, B.libelleEng as libelleSecteurEng, + A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire, A.nomMandataire, A.telephoneFixemandataire, + A.telephonePortablemandataire, + A.emailMandataire, A.dateCre, A.user, A.registreCommerce, A.codeLangueClient FROM clients A left join secteuractivite B on (B.codeSecteur=A.codeSecteur) left join pays F on (F.codeSociete=A.codeSociete AND F.codePays=A.codePays) @@ -65,54 +63,44 @@ class Client extends Modele { return $client; } - public function getClientId($id) { - $sql = 'SELECT A.id, A.codeSociete, numeroClient, A.typeClient, D.libelle as libelleTypeClient, A.codeTitre, E.libelle as libelleTitre, - A.nom, A.prenoms, adresseGeo, boitepostale, A.codeVille, C.libelle as Ville, A.codeLocalite, L.libelle as localite, A.codePays, F.libelle as pays, A.telephoneBureau, A.telephonedomicile, - A.telephonePortable, A.fax, A.email, A.sexe, A.dateNaissance, A.codeSecteur, B.libelleSecteur, A.codeGestionnaire, concat(G.nom," ", G.prenoms) as gestionnaire, - A.nomMandataire, A.telephoneFixemandataire, A.telephonePortablemandataire, A.emailMandataire, A.dateCre, A.user - FROM clients A - left join secteuractivite B on (B.codeSecteur=A.codeSecteur) - left join pays F on (F.codeSociete=A.codeSociete AND F.codePays=A.codePays) - left join ville C on (C.codeSociete=A.codeSociete AND C.codeVille=A.codeVille) - left join localite L on (L.codeSociete=A.codeSociete AND L.codeLocalite=A.codeLocalite) - left join typeclient D on (D.codeTypeClient=A.typeClient) - left join titre E on (E.codeTitre=A.codeTitre) - left join gestionnaire G on (G.codeSociete=A.codeSociete AND G.codeGestionnaire=A.codeGestionnaire) - WHERE (A.codeSociete=?) AND (A.id=?)'; - - $client = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); - return $client->fetch(); - /* - if ($client->rowCount() > 0) - return $client->fetch(); - else - throw new Exception("Aucun client ne correspond au id '$id'"); - */ + public function getClientId($id) + { + $sql = 'call sp_get_client_id(?);'; + + $client = $this->executerRequete($sql, array($id)); + return $client->fetch(PDO::FETCH_ASSOC); } public function getNombreClients() { $sql = 'select count(*) as nbClients FROM clients A WHERE (A.codeSociete=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['nbClients']; } public function getIdClient($numeroClient) { $sql = 'SELECT id FROM clients WHERE (codeSociete=?) AND (numeroClient=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['id']; } public function getContexteClientId($id) { - $sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient FROM clients A WHERE (A.codeSociete=?) AND (A.id=?)'; + $sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient, A.codeLangueClient, A.codeLocalite + FROM clients A WHERE (A.codeSociete=?) AND (A.id=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); - $context = $resultat->fetch(); - $_SESSION['idClient_C'] = $context['idClient']; - $_SESSION['numeroClient_C'] = $context['numeroClient']; - $_SESSION['nomClient_C'] = $context['nomClient']; - $_SESSION['idClientAjax'] = $context['idClient']; + + $context = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['nomClient_C'] = $context['nomClient']; + $_SESSION['idClientAjax'] = $context['idClient']; + $_SESSION['codeLangueClient'] = $context['codeLangueClient']; + $_SESSION['codeLocalite'] = $context['codeLocalite']; + + $_SESSION['codeTypeContrat'] = ""; $_SESSION['idPolice_C'] = ""; $_SESSION['numeroPolice_C'] = ""; @@ -121,9 +109,9 @@ class Client extends Modele { $_SESSION['ndDep_C'] = "0"; $_SESSION['ndActif_C'] = "0"; - // $_SESSION['idAdherent_C'] = ""; - // $_SESSION['numeroAdherent_C'] = ""; - // $_SESSION['nomAdherent_C'] = ""; + $_SESSION['idAdherent_C'] = ""; + $_SESSION['numeroAdherent_C'] = ""; + $_SESSION['nomAdherent_C'] = ""; $_SESSION['idBeneficiaire_C'] = ""; $_SESSION['numeroBeneficiaire_C'] = ""; @@ -149,7 +137,7 @@ class Client extends Modele { return "0"; } else { - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['dernierNumeroClient']; } } @@ -163,18 +151,18 @@ class Client extends Modele { public function ajouter($codeSociete, $numeroClient, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo, $boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax, $email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire, - $telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite) + $telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite, $registreCommerce, $codeLangueClient) { $sql = 'INSERT INTO clients (codeSociete, numeroClient, typeClient, codeTitre, nom, prenoms, adresseGeo, boitepostale, codeVille, codePays, telephoneBureau, telephonedomicile, telephonePortable, fax, email, sexe, dateNaissance, codeSecteur, codeGestionnaire, nomMandataire, telephoneFixemandataire, - telephonePortablemandataire, emailMandataire, dateCre, user, codeLocalite) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + telephonePortablemandataire, emailMandataire, dateCre, user, codeLocalite, registreCommerce, codeLangueClient) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; $this->executerRequete($sql, array($codeSociete, $numeroClient, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo, $boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax, $email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire, - $telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite)); + $telephonePortablemandataire, $emailMandataire, $dateCre, $user, $codeLocalite, $registreCommerce, $codeLangueClient)); return $this->dernierId(); } @@ -182,17 +170,18 @@ class Client extends Modele { public function modifier($id, $typeClient, $codeTitre, $nom, $prenoms, $adresseGeo, $boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax, $email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire, - $telephonePortablemandataire, $emailMandataire, $codeLocalite) + $telephonePortablemandataire, $emailMandataire, $codeLocalite, $registreCommerce, $codeLangueClient) { $sql = 'UPDATE clients SET typeClient=?, codeTitre=?, nom=?, prenoms=?, adresseGeo=?, boitepostale=?, codeVille=?, codePays=?, telephoneBureau=?, telephonedomicile=?, telephonePortable=?, fax=?, email=?, sexe=?, dateNaissance=?, codeSecteur=?, codeGestionnaire=?, nomMandataire=?, telephoneFixemandataire=?, - telephonePortablemandataire=?, emailMandataire=?, codeLocalite=? where (id=?)'; + telephonePortablemandataire=?, emailMandataire=?, codeLocalite=? , registreCommerce=? , codeLangueClient=? + where (id=?)'; $this->executerRequete($sql, array($typeClient, $codeTitre, $nom, $prenoms, $adresseGeo, $boitepostale, $codeVille, $codePays, $telephoneBureau, $telephonedomicile, $telephonePortable, $fax, $email, $sexe, $dateNaissance, $codeSecteur, $codeGestionnaire, $nomMandataire, $telephoneFixemandataire, - $telephonePortablemandataire, $emailMandataire, $codeLocalite, $id)); + $telephonePortablemandataire, $emailMandataire, $codeLocalite, $registreCommerce, $codeLangueClient, $id)); } public function supprimer($idClient) { @@ -215,7 +204,87 @@ class Client extends Modele { { $sql = 'SELECT A.id as idClient FROM clients A WHERE (A.id=?)'; $resultat = $this->executerRequete($sql, array($id)); - $context = $resultat->fetch(); + $context = $resultat->fetch(PDO::FETCH_ASSOC); $_SESSION['idClientAjax'] = $context['idClient']; } + + public function getListeClients() + { + $sql = 'call sp_get_liste_clients(?);'; + + $clients = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + return $clients; + } + + public function getListeClientsExport() + { + $sql = 'call sp_get_liste_clients_export(?);'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getClientParent($id) + { + $sql = 'call sp_get_client_parent(?);'; + + $resultat = $this->executerRequete($sql, array($id)); + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function getClientEnfants($id) + { + $sql = 'call sp_get_client_enfants(?);'; + + $resultat = $this->executerRequete($sql, array($id)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getClientFreres($id) + { + $sql = 'call sp_get_client_freres(?);'; + + $resultat = $this->executerRequete($sql, array($id)); + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function supprimer_liaison_client($idClient) + { + $user = $_SESSION['login']; + + $sql = 'call sp_supprimer_liaison_client(?, ?)'; + + $this->executerRequete($sql, array($idClient, $user)); + } + + public function getclientslike($numeroclientsearch, $nomsearch, $idClient) + { + $nomsearch = contruireParamLike($nomsearch); + + $sql = 'call sp_r_clients_parents_like(?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($numeroclientsearch, $nomsearch, $idClient)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function client_lier_a_un_parent($idClient, $idClientP) + { + $user = $_SESSION['login']; + + $sql = 'call sp_lier_client(?, ?, ?)'; + + $this->executerRequete($sql, array($idClientP, $idClient, $user)); + } + + public function getclientsEnfantslike($numeroclientsearch, $nomsearch, $idClient) + { + $nomsearch = contruireParamLike($nomsearch); + + $sql = 'call sp_r_clients_enfants_like(?, ?, ?)'; + + $resultat = $this->executerRequete($sql, array($numeroclientsearch, $nomsearch, $idClient)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Modele/Collegepolice.php b/Modele/Collegepolice.php index 0451a7f..f2aebdd 100644 --- a/Modele/Collegepolice.php +++ b/Modele/Collegepolice.php @@ -28,4 +28,154 @@ class Collegepolice extends Modele { return $totalcollege->fetch(PDO::FETCH_ASSOC); } + public function supprimer($idCollege) + { + $sql = 'select id from adherent where (idCollege=?) limit 1'; + $resultat = $this->executerRequete($sql, array($idCollege)); + + if($resultat->rowCount() == 0) + { + $sql = 'DELETE FROM college WHERE (id=?)'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'DELETE FROM garantiecollege WHERE (idCollege=?)'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'DELETE FROM prestationcollege WHERE (idCollege=?)'; + $this->executerRequete($sql, array($idCollege)); + } + } + + public function archiverGarntie($idCollege) + { + $user = $_SESSION['login']; + + $sql = 'call sp_archiver_garantie(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + } + + public function desarchiverGarntie($idCollege) + { + $user = $_SESSION['login']; + + $sql = 'call sp_de_archiver_garantie(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + } + + public function getPrimeTtcFamille($idCollege) + { + $sql = 'SELECT IFNULL(primeTtcAdherent,"0") AS primeTtc FROM college where (id=?)'; + $resultat = $this->executerRequete($sql, array($idCollege)); + if($resultat->rowCount() > 0) + { + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + return $ligne['primeTtc']; + } + else + { + return 0; + } + } + + public function getListe($idPolice) { + if($_SESSION['codeTypeAvenant_C']=="REN") + { + $sql = 'SELECT id as `code`, libelleCollege as libelle FROM college + where (idPolice=?) order by 2'; + } else + { + $sql = 'SELECT id as `code`, libelleCollege as libelle FROM college + where (idPolice=?) and (garantieArchive="1") order by 2'; + } + + $liste = $this->executerRequete($sql, array($idPolice)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListeToutes($idPolice) { + $sql = 'SELECT id as `code`, libelleCollege as libelle FROM college where (idPolice=?) order by 2'; + $liste = $this->executerRequete($sql, array($idPolice)); + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function getRapportSpCollege($idCollege, $dateReference) + { + $sql = 'call sp_rapport_sp_college(?, ?)'; + + $sppolice = $this->executerRequete($sql, array($idCollege, $dateReference)); + return $sppolice->fetch(PDO::FETCH_ASSOC); + } + + public function refuserderogationmedicament($idCollege) + { + $user = $_SESSION['login']; + + $sql = 'call sp_refuser_derogation_medicament(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + } + + public function accorderderogationmedicament($idCollege) + { + $user = $_SESSION['login']; + + $sql = 'call sp_accorder_derogation_medicament(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + } + + public function archiveradherent($idAherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_archiver_adherent(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAherent, $user)); + } + + public function desarchiveradherent($idAherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_de_archiver_adherent(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idAherent, $user)); + } + + public function archiverbeneficiaire($idBeneficiaire) + { + $user = $_SESSION['login']; + + $sql = 'call sp_archiver_beneficiaire(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $user)); + } + + public function desarchiverbeneficiaire($idBeneficiaire) + { + $user = $_SESSION['login']; + + $sql = 'call sp_de_archiver_beneficiaire(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $user)); + } + + public function fn_get_college_familiale($idPolice) + { + $sql = 'SELECT fn_get_college_familiale(?) AS dernierIdCollege;'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + $dernierIdCollege = $ligne['dernierIdCollege']; + + $_SESSION['dernierIdCollege'] = $dernierIdCollege; + + return $dernierIdCollege; + } + } diff --git a/Modele/Localite.php b/Modele/Localite.php index a581f2d..f7e57ab 100755 --- a/Modele/Localite.php +++ b/Modele/Localite.php @@ -24,16 +24,13 @@ class Localite extends Modele { WHERE (A.codeSociete=?) AND (A.id=?)'; $localite = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); - if ($localite->rowCount() > 0) - return $localite->fetch(); - else - throw new Exception("Aucune localité ne correspond à cet id : '$id'"); + return $localite->fetch(PDO::FETCH_ASSOC); } public function getNombreLocalite() { $sql = 'select count(*) as nbLocalite FROM localite A WHERE (A.codeSociete=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['nbLocalite']; } @@ -61,7 +58,7 @@ class Localite extends Modele { public function getListe($codePays=null, $codeVille=null) { $codePays = contruireParam($codePays); $codeVille = contruireParam($codeVille); - $sql = 'SELECT codeLocalite as code, libelle FROM localite + $sql = 'SELECT codeLocalite as `code`, libelle FROM localite WHERE (codeSociete=? AND codePays=? AND codeVille=?) order by libelle'; $liste = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codePays, $codeVille)); diff --git a/Modele/Naturepiece.php b/Modele/Naturepiece.php index 3f01a5f..fb6fa8d 100755 --- a/Modele/Naturepiece.php +++ b/Modele/Naturepiece.php @@ -1,7 +1,8 @@ executerRequete($sql, array($_SESSION['codeSociete'], $id)); - if ($naturepiece->rowCount() > 0) - return $naturepiece->fetch(); - else - throw new Exception("Aucune naturepiece ne correspond à cet id : '$id'"); + return $naturepiece->fetch(PDO::FETCH_ASSOC); } public function getNombreNaturepiece() { $sql = 'select count(*) as nbNaturepiece FROM naturepiece A WHERE (A.codeSociete=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['nbNaturepiece']; } @@ -52,11 +50,19 @@ class Naturepiece extends Modele { return ($resultat->rowCount() > 0); } - public function getListe() { - $sql = 'SELECT codeNaturePiece as code, libelle FROM naturepiece - WHERE (codeSociete=?) order by ordre, libelle'; + public function getListe() + { + if (est_anglophone()) + { + $sql = 'SELECT codeNaturePiece as `code`, libelleEng as libelle FROM naturepiece WHERE (codeSociete=?) order by ordre, libelle'; + } + else + { + $sql = 'SELECT codeNaturePiece as `code`, libelle FROM naturepiece WHERE (codeSociete=?) order by ordre, libelle'; + } - $liste = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + $liste = $this->executerRequete($sql, array($_SESSION['codeSociete'])); + return $liste->fetchAll(PDO::FETCH_ASSOC); } } \ No newline at end of file diff --git a/Modele/Ouinon.php b/Modele/Ouinon.php index 290e2d5..b4727d6 100755 --- a/Modele/Ouinon.php +++ b/Modele/Ouinon.php @@ -3,9 +3,16 @@ require_once 'Framework/Modele.php'; class Ouinon extends Modele { - public function getListe() { - $sql = 'SELECT "1" as code, "Oui" libelle - union SELECT "0" as code, "Non" libelle'; + public function getListe() + { + if (est_anglophone()) + { + $sql = 'SELECT "1" as `code`, "Yes" libelle union SELECT "0" as `code`, "No" libelle'; + } + else + { + $sql = 'SELECT "1" as `code`, "Oui" libelle union SELECT "0" as `code`, "Non" libelle'; + } $liste = $this->executerRequete($sql); return $liste->fetchAll(PDO::FETCH_ASSOC); diff --git a/Modele/Pays.php b/Modele/Pays.php index 8d68098..3b46a63 100755 --- a/Modele/Pays.php +++ b/Modele/Pays.php @@ -17,16 +17,13 @@ class Pays extends Modele { FROM pays A WHERE (A.codeSociete=?) AND (A.id=?)'; $pays = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); - if ($pays->rowCount() > 0) - return $pays->fetch(); - else - throw new Exception("Aucune pays ne correspond à cet id : '$id'"); + return $pays->fetch(PDO::FETCH_ASSOC); } public function getNombrePays() { $sql = 'select count(*) as nbPays FROM pays A WHERE (A.codeSociete=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['nbPays']; } @@ -53,7 +50,7 @@ class Pays extends Modele { public function getListe($codePaysDefault=null) { $codePaysDefault = contruireParam($codePaysDefault); - $sql = 'SELECT case when codePays = ? then "0" else "1" end as ordre, codePays as code, libelle + $sql = 'SELECT case when codePays = ? then "0" else "1" end as ordre, codePays as `code`, libelle FROM pays WHERE (codeSociete=?) order by 1, libelle'; $liste = $this->executerRequete($sql, array($codePaysDefault, $_SESSION['codeSociete'])); diff --git a/Modele/Police.php b/Modele/Police.php index d371d47..d1bcfdb 100755 --- a/Modele/Police.php +++ b/Modele/Police.php @@ -18,7 +18,7 @@ class Police extends Modele { $_SESSION['nomGcAssureur_C'] = $context['garant']; $_SESSION['numeroPolice_C'] = $context['numeroPolice']; - $_SESSION['codeTypeContrat'] = $context['codeTypeContrat']; + $_SESSION['codeTypeContrat_C'] = $context['codeTypeContrat']; $_SESSION['codeEtape_C'] = $context['codeEtape']; $_SESSION['tauxTaxe_C'] = $context['tauxTaxe']; diff --git a/Modele/Sexe.php b/Modele/Sexe.php index 4e3cae2..87c8fbb 100755 --- a/Modele/Sexe.php +++ b/Modele/Sexe.php @@ -3,10 +3,19 @@ require_once 'Framework/Modele.php'; class Sexe extends Modele { - public function getListe() { - $sql = 'SELECT codeSexe as code, libelle FROM sexe order by 1 DESC'; + public function getListe() + { + if (est_anglophone()) + { + $sql = 'SELECT codeSexe as `code`, libelleEng as libelle FROM sexe order by 1 DESC'; + } + else + { + $sql = 'SELECT codeSexe as `code`, libelle FROM sexe order by 1 DESC'; + } $liste = $this->executerRequete($sql); + return $liste->fetchAll(PDO::FETCH_ASSOC); } } \ No newline at end of file diff --git a/Modele/Situationfamille.php b/Modele/Situationfamille.php index 82cbf1f..58b0573 100755 --- a/Modele/Situationfamille.php +++ b/Modele/Situationfamille.php @@ -3,10 +3,19 @@ require_once 'Framework/Modele.php'; class Situationfamille extends Modele { - public function getListe() { - $sql = 'SELECT codeSituationFamille as code, libelle FROM situationfamille order by ordre'; + public function getListe() + { + if (est_anglophone()) + { + $sql = 'SELECT codeSituationFamille as `code`, libelleEng as libelle FROM situationfamille order by ordre'; + } + else + { + $sql = 'SELECT codeSituationFamille as `code`, libelle FROM situationfamille order by ordre'; + } $liste = $this->executerRequete($sql); + return $liste->fetchAll(PDO::FETCH_ASSOC); } } \ No newline at end of file diff --git a/Modele/Ville.php b/Modele/Ville.php index 9fababd..abdfd0b 100755 --- a/Modele/Ville.php +++ b/Modele/Ville.php @@ -19,16 +19,13 @@ class Ville extends Modele { WHERE (A.codeSociete=?) AND (A.id=?)'; $ville = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); - if ($ville->rowCount() > 0) - return $ville->fetch(); - else - throw new Exception("Aucune ville ne correspond à cet id : '$id'"); + return $ville->fetch(PDO::FETCH_ASSOC); } public function getNombreVille() { $sql = 'select count(*) as nbVille FROM ville A WHERE (A.codeSociete=?)'; $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'])); - $ligne = $resultat->fetch(); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); return $ligne['nbVille']; } @@ -55,7 +52,7 @@ class Ville extends Modele { public function getListe($codePays=null) { $codePays = contruireParam($codePays); - $sql = 'SELECT codeVille as code, libelle FROM ville + $sql = 'SELECT codeVille as `code`, libelle FROM ville WHERE (codeSociete=? AND codePays=?) order by libelle'; $liste = $this->executerRequete($sql, array($_SESSION['codeSociete'], $codePays)); diff --git a/Societes/radiant/Tarifs/Controleur/Consultercollegeindex.php b/Societes/radiant/Tarifs/Controleur/Consultercollegeindex.php new file mode 100644 index 0000000..4e5e3ef --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Consultercollegeindex.php @@ -0,0 +1,24 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + $this->rediriger("Consultercollege"); + } + else + { + $idCollege = $_SESSION['idCollege']; + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm)); + } +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpfc1eng.php b/Societes/radiant/Tarifs/Controleur/Cpfc1eng.php new file mode 100644 index 0000000..bc4fad9 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpfc1eng.php @@ -0,0 +1,265 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice); + + $listeassures = $this->police->getcpfclisteassures($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC1") + { + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true); + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false); + // $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false); + + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Contracting Party’s staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 2 + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured will receive medical services at All health centers, District, Provincial and Referral hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, All pharmacies that have partnership with RADIANT INSURANCE COMPANY. +The insured shall a 10% co-pay in public health and pharmacies."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 3 + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- All medical services that are not related to sickness are not covered; +- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire; +- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed. +- CT Scan and MRI are covered for Inpatient cases +- Optical Frames"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage. +Members of the new insured family will be included in the contract plus 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents. +The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 3 + // $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed. +These agreements have been approved by both parties involved and are effective from"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + + /* + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); + +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpfc1kiny.php b/Societes/radiant/Tarifs/Controleur/Cpfc1kiny.php new file mode 100644 index 0000000..56dcd5b --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpfc1kiny.php @@ -0,0 +1,269 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=8; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC1") + { + $pdf->SetFillColor(135,206,250); // bleu + + $text = convertirc("AMASEZERANO Y’UBWISHINGIZI BWO KWIVUZA BW’UMUNTU KU GITI CYE HAMWE N’ABAGIZE UMURYANGO WE"); + $pdf->MultiCell(0, $ht, $text, 1, 'C',true); + + // MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) + + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Itariki y’amavuko"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("No y’indangamuntu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + /* + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false); + */ + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma y’ukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false); + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati y’imyaka 18 na 65, uwo bashakanye n’abana babo batarengeje imyaka 21 nk’uko bagaragara mu mbonerahamwe iri hasi hamwe n’imisanzu yabo : "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Itariki y’amavuko'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('No y’ubwishingizi'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Amasezerano y’ubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse n’ubundi burwayi busanzwe."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Abafashe ubu bwishingizi bahabwa serivise z’ubuvuzi zitangirwa mu bigo nderabuzima, ibitaro by’uturere n’intara. ibitaro bya gisirikare by’i Kanombe, CHUB, CHUK, n’ibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. +Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company. +Uwishingiwe yishyura buri 10% kuri fagitire y’ibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi. +Nyuma y’itangira ry’aya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nk’umuryango. + +Abagize umuryango w’uwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% by’amafaranga yishyuwe n’uwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka w’amasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo n’imyaka y’amavuko byashyikirijwe RADIANT INSURANCE COMPANY. + +Buri wese ahabwa ikarita y’ubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse n’ibyo yemerewe gukorerwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bw’uwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi n’abagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu y’umwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu z’uburwayi; +- Ubuvuzi n’imiti y’ibibazo byo kubura urubyaro; +- Imbago, inyunganirangingo n’insimburangingo; +- Indorerwamo z’amaso +- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti y’ibibazo by’umuvuduko w’amaraso n’ibindi bikorwa cyangwa ibizamini byihariye bitagendanye n’uburwayi; +- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro +- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho w’ubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho; +- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro n’ibigonderabuzima bya Leta."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RY’AMASEZERANO"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye. + +• Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa."); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bw’uwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe. +Aya masezerano yemejwe n’impande zombi ziyagiranye kandi afite agaciro uhereye kuwa"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + +/* + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpfc2eng.php b/Societes/radiant/Tarifs/Controleur/Cpfc2eng.php new file mode 100644 index 0000000..8f80f5f --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpfc2eng.php @@ -0,0 +1,275 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC2") + { + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true); + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false); + // $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false); + + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Contracting Party’s staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured will receive medical services at all health centers, district and provincial hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, plus some clinics as per the list attached on this contract as well as all pharmacies that have partnership with RADIANT INSURANCE COMPANY. +The insured shall a 10% co-pay in public health facilities&Pharmacies and 15% in private clinics."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','BI', 10); + $text = convertirc("Note: This list should be updated by adding or removing a provider any time in accordance with the agreement between RADIANT INSURANCE COMPANY LTD and the provider. In this event, RADIANT INSURANCE COMPANY LTD shall inform the client through the email address or telephone number provided by the client in this contract."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured shall a 10% co-pay in public health&pharmacies and 15% in private clinics."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- All medical services that are not related to sickness are not covered; +- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire; +- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed. +- CT Scan and MRI are covered for Inpatient cases +- Optical Frame"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage. +Members of the new insured family will be included in the contract plus 75% of the insurance premiums paid by the insured when he or she adds the spouse and 37.5% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents. +The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); +$text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed. +These agreements have been approved by both parties involved and are effective from"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC2 contact"),0,1,'C',false); + } + /* + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpfc2kiny.php b/Societes/radiant/Tarifs/Controleur/Cpfc2kiny.php new file mode 100644 index 0000000..39d8205 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpfc2kiny.php @@ -0,0 +1,274 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $garantiescollegecps = $this->police->getGarantiesAdherentCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=8; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC2") + { + $pdf->SetFillColor(135,206,250); // bleu + + $text = convertirc("AMASEZERANO Y’UBWISHINGIZI BWO KWIVUZA BW’UMUNTU KU GITI CYE HAMWE N’ABAGIZE UMURYANGO WE"); + $pdf->MultiCell(0, $ht, $text, 1, 'C',true); + + // MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) + + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Itariki y’amavuko"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("No y’indangamuntu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + /* + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false); + */ + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma y’ukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false); + + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati y’imyaka 18 na 65, uwo bashakanye n’abana babo batarengeje imyaka 21 nk’uko bagaragara mu mbonerahamwe iri hasi hamwe n’imisanzu yabo : "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Itariki y’amavuko'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('No y’ubwishingizi'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Amasezerano y’ubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse n’ubundi burwayi busanzwe."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Abafashe ubu bwishingizi bahabwa serivise z’ubuvuzi zitangirwa mu bigo nderabuzima, ibitaro by’uturere n’intara. ibitaro bya gisirikare by’i Kanombe, CHUB, CHUK, n’ibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. Bahabwa kandi serivisi zitangirwa mu mavuriro yigenga agaragara ku rutonde ruri ku mugereka w’aya masezerano. +Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','BI', 10); + $text = convertirc("ICYITONDERWA: Amavuriro amwe ashobora kuvanwa cyangwa kwiyongera kuri uru rutonde igihe icyo ari cyo cyose biturutse ku masezerano y’imikoranire RADIANT INSURANCE COMPANY LTD yagiranye n’amavuriro ndetse na Farumasi. Igihe urutonde ruhindutse, uwishingiwe abimenyeshwa binyuze kuri nomero ya telephone cyangwa aderesi imeyili yatanze igihe yafataga ubwishingizi."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Uwishingiwe yishyura buri 10% kuri fagitire y’ibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi na 15% mu mavuriro yigenga. +Nyuma y’itangira ry’aya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nk’umuryango. + +Abagize umuryango w’uwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 75% by’amafaranga yishyuwe n’uwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 37.5% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka w’amasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo n’imyaka y’amavuko byashyikirijwe RADIANT INSURANCE COMPANY."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bw’uwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi n’abagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu y’umwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu z’uburwayi; +- Ubuvuzi n’imiti y’ibibazo byo kubura urubyaro; +- Imbago, inyunganirangingo n’insimburangingo; +- Indorerwamo z’amaso +- Ibijyanye no kuyungurura impyiko (diyalize), n’ibindi bikorwa cyangwa ibizamini byihariye bitagendanye n’uburwayi; +- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro +- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa guhera hashize amezi 10 umuntu afashe ubwishingizi igihe ari ubwa mbere abufashe ndetse n’igihe amasezerano ahise avugururwa ku munsi yarangiriyeho. +- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro n’ibigonderabuzima bya Leta."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RY’AMASEZERANO"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye. + +• Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa."); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bw’uwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe. +Aya masezerano yemejwe n’impande zombi ziyagiranye kandi afite agaciro uhereye kuwa"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + + /* + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpstandard.php b/Societes/radiant/Tarifs/Controleur/Cpstandard.php new file mode 100644 index 0000000..275702e --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpstandard.php @@ -0,0 +1,675 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + // $tableauajustementcps = $this->police->gettableauAjustementCP($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + if($entetecp['codeTypeContrat'] == "G") + { + $pdf->Cell(0,$ht,convertirc("CONTRAT - GROUPE D'ASSURANCE SANTE"),1,1,'C',true); + } + else + { + $pdf->Cell(0,$ht,convertirc("CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true); + } + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(50,$ht,convertirc("No POLICE"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(50,$ht,convertirc("SOUSCRITE PAR"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(50,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("En qualité de CONTRACTANT "),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Le présent contrat est constitué et régi par les CONDITIONS PARTICULIERES, les DISPOSITIONS"),0,1,'C',false); + $pdf->Cell(0,$ht,convertirc("SPECIALES ainsi que par les CONDITIONS GENERALES."),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Il a pour objet la garantie suivante :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("CONDITIONS PARTICULIERES"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat "); + $text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']); + $text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à "); + $text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + foreach ($collegecps as $collegecp) + { + $pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2 : PRISE D’EFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées "); + $text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec "); + $text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture."); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- Ainsi, chaque assuré aura une carte d’assurance maladie qu’il va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via l’application de MEDICOR. Cela va permettre aussi à l’assuré de voir en temps réel où il en est avec sa limite de couverture. "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période d’un mois avant de bénéficier de l’assurance santé ; exception faite des cas d’accident. +Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU CONTRAT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Le présent contrat est souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']." +Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité. +Ainsi, sont prises en charge les prestations médicales suivantes : +- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques. +- Les conditions de prématurité sont couvertes +- L'IRM et d'autres tests spéciaux sont tous couverts +- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande +le remboursement ou la différence à RDIANT INSURANCE COMPANY (applicable pour les options avec ticket modérateur) +- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable +- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant +- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance s’appliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir d’une zone où les équipements indispensables n’existent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé). +- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. L’assuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser l’assureur au moins 3 jours avant afin de lui permettre d’aviser les prestatires désignés par l’assuré (seulement pour ceux qui ont une couverture extraterritoriale). +- Traitement en Inde le cas échéant,sur base d’un rapport médical d’un medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de l’Afrique de l’Est avec l'approbation préalable de RDIANT INSURANCE COMPANY +- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement. +- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger +- La chambre individuelle est couverte +- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte +- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata +- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge +- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement. +- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré. +- La liste de tous les partenaires de RDIANT INSURANCE COMPANY est jointe à cette offre technique +- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec RDIANT INSURANCE COMPANY et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques. +- Délai maximum de remboursement en cas de paiement direct là où il n y a pas de partenariat et après réception de tous les documents requis : 2 jours +- Gestion commune avec l'employeur des cas de fraudes +- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner. +- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement. +- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, RDIANT INSURANCE COMPANY peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste. +Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableau ci-dessous :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['codeProduit']." : ".$tableaupretationcp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleCollege']; + } + + // $pdf->AddPage(); + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['codeProduit']." : ".$garantiescollegecp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleCollege']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de l’echeance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + $text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + // $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties définies ci-dessus sont accordées moyennant des cotisations de :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoireBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total Général"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($entetecp['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total Général"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($entetecp['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT DE LA PRIME"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à l’assuré pour le règlement d'un acompte sur le renouvellement."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes (déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Pour associer l’assuré à l'évolution des consommations, un rapport d’utilisation trimestriel lui sera régulièrement transmis."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Traitement cosmétique et chirurgie esthétique +- Blessures dues à la participation aux jeux et activités dangereuses +- Blessures dues à la participation aux greves et émeutes +- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance +- Traitement prophylactique, les compléments alimentaires +- Cardiopathie ischemique +- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue +- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins) +- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers +- Coût d'appareils auditifs, à moins qu’il résulte d’un accident +- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident +- Frais recouvrables en vertu de la Loi sur l’Indemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes d’indemnisation de l'INSS ou tout autre régime sauf sur demande préalable de l’assuré et moyennant une prime correspondante"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("POUR RDIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("POUR L’ASSURE"),0,1,'R',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false); + + /* + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); +?> diff --git a/Societes/radiant/Tarifs/Controleur/Cpstandardeng.php b/Societes/radiant/Tarifs/Controleur/Cpstandardeng.php new file mode 100644 index 0000000..828410c --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Cpstandardeng.php @@ -0,0 +1,578 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("MEDICOR – HEALTH INSURANCE"),1,1,'C',true); + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No Policy"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("SUBSCRIBER"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->Ln(15); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + foreach ($collegecps as $collegecp) + { + $pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured: +- From the effective date of the contract for persons to be insured who are already in the Contractor's service. +- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage. +- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].". +It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one month’s notice before its expiry. +No obligation to renew the contract is incubent upon the parties. RDIANT INSURANCE COMPANY reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness. + +Thus, the following medical benefits are covered: +-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases. + +-conditions of prematurity are covered + +-MRI and other special tests are all covered + +-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to RDIANT INSURANCE COMPANY (applicable for options with co-payment) + +- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs. +However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization. + +-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student. + +-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized) + +-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage). + +-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of RDIANT INSURANCE COMPANY. + +-The extension in East African countries is covered within the limit of coverage for dependents of the insured. + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. + +-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad + +-The single room is covered + +-Automatic addition of a newborn and/or spouse without additional premium except card fees + +-Automatic addition of a new member with a prorated premium + +-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated + +-pro rata, if no medical service has been paid for him and his dependents + +-The issue of health insurance cards within 7 days of notification and/or proof of payment. + +-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].". + +-The list of all RDIANT INSURANCE COMPANY partners is attached to this technical offer + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. +For expenses paid to a provider who has no partnership with RDIANT INSURANCE COMPANY and which has not been terminated or suspended for fault or bad practice. + +-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days + +-Joint management with the employer of cases of fraud + +-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate. + +-The list of staff and reports of medical consumption will be provided monthly. + +-If the limit of the insured person is exceeded during the insurance period, RDIANT INSURANCE COMPANY may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctor’s degree, surgeon or dental surgeon. + +No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer. + +The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer. + +The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances. + +For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed. + +Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students. + +This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor. + +In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false); + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleCollege']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleCollege']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractor’s service, or dies. +In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods."); + $pdf->MultiCell(0, $ht, $text); + + + // $pdf->AddPage(); + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insured’s membership."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The guarantees defined above will be granted with :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal. +The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year. +To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. "); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Cosmetic treatment and cosmetic surgery +- Injuries due to participation in games and dangerous activities +- Injuries due to participation in strikes and riots +- Fertility treatment, namely treatment costs related to infertility and impotence +- Prophylactic treatment, dietary supplements +-Ischemic heart disease +- Intentional self-harm, suicide or the influence of alcohol or drugs +- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas) +- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers +- Cost of hearing aids, unless resulting from an accident +- Nervous breakdown, psychoneurosis, unless it results from an accident"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art. +In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility. +The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("FOR RDIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false); + +/* + $fichier="Temp/TMP_particuliars_conditions"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
Output($fichierSimple,"F"); + + // 08/11/2025 => conversion image pdf + pdf_to_image($fichierSimple, $uniqid); + +?> diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegedenregistrer.php b/Societes/radiant/Tarifs/Controleur/Creercollegedenregistrer.php new file mode 100644 index 0000000..0bd006f --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegedenregistrer.php @@ -0,0 +1,33 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + $numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Creercolleged"); + } + else + { + $this->college_temp->enregistrer($idCollegeTemp); + $this->rediriger("Fichedevis"); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegedindex.php b/Societes/radiant/Tarifs/Controleur/Creercollegedindex.php new file mode 100644 index 0000000..39158bc --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegedindex.php @@ -0,0 +1,18 @@ +college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp); + + $optionstarif = $this->college_temp->getoptionstarif($idPolice); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'optionstarif' => $optionstarif, + 'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond)); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegedinitcollege.php b/Societes/radiant/Tarifs/Controleur/Creercollegedinitcollege.php new file mode 100644 index 0000000..6a071d4 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegedinitcollege.php @@ -0,0 +1,8 @@ +requete->getSession()->getAttribut('login'); + + $idCollegeTemp = $this->college_temp->initCollege($idPolice, $user); + + $this->rediriger("Creercolleged"); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegeenregistrer.php b/Societes/radiant/Tarifs/Controleur/Creercollegeenregistrer.php new file mode 100644 index 0000000..df62264 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegeenregistrer.php @@ -0,0 +1,32 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Creercollege"); + } + else + { + $this->college_temp->enregistrer($idCollegeTemp); + $this->rediriger("Collegepolice"); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegeindex.php b/Societes/radiant/Tarifs/Controleur/Creercollegeindex.php new file mode 100644 index 0000000..3abfbca --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegeindex.php @@ -0,0 +1,16 @@ +college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond)); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Creercollegeinitcollege.php b/Societes/radiant/Tarifs/Controleur/Creercollegeinitcollege.php new file mode 100644 index 0000000..22aaae4 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Creercollegeinitcollege.php @@ -0,0 +1,8 @@ +requete->getSession()->getAttribut('login'); + + $idCollegeTemp = $this->college_temp->initCollege($idPolice, $user); + + $this->rediriger("Creercollege"); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Devisstandard.php b/Societes/radiant/Tarifs/Controleur/Devisstandard.php new file mode 100644 index 0000000..2c27214 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Devisstandard.php @@ -0,0 +1,694 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + if($entetecp['codeTypeContrat'] == "G") + { + $pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE"),1,1,'C',true); + } + else + { + $pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true); + } + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No DEVIS"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + // $pdf->Cell(0,$ht,convertirc("En qualité de PROSPECT "),0,0,'C',false); + // $pdf->Cell(0,$ht,convertirc("En qualité de CLIENT "),0,0,'C',false); + $pdf->Cell(0,$ht,convertirc("En qualité d'Assuré "),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Le futur contrat aura pour objet la garantie suivante :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("DISPOSITIONS PARTICULIERES"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat "); + $text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']); + $text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à "); + $text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $oldnumeroOptionTarif = "0"; + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $categorie = "0"; + + foreach ($collegecps as $collegecp) + { + $numeroOptionTarif = $collegecp['numeroOptionTarif']; + + if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0") + { + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$oldnumeroOptionTarif),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $pdf->Ln(5); + } + + if($categorie!=$collegecp['numeroOptionTarif']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','', 9); + + $pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + + $nbAdherent += $collegecp['nbAdherent']; + $nbAyantdroit += $collegecp['nbAyantdroit']; + $primeTtcAdherent += $collegecp['primeTtcAdherent']; + $primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire']; + $primeTtcTotal += $collegecp['primeTtcTotal']; + + $oldnumeroOptionTarif = $numeroOptionTarif; + $categorie = $collegecp['numeroOptionTarif']; + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $pdf->Ln(5); + + $text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2 : PRISE D’EFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées "); + $text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec "); + $text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture."); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- Ainsi, chaque assuré aura une carte d’assurance maladie qu’il va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via l’application de MEDICOR. Cela va permettre aussi à l’assuré de voir en temps réel où il en est avec sa limite de couverture. "); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période d’un mois avant de bénéficier de l’assurance santé ; exception faite des cas d’accident. +Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU FUTUR CONTRAT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Le contrat sera souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']." +Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + + $pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité. +Ainsi, sont prises en charge les prestations médicales suivantes : +- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques. +- Les conditions de prématurité sont couvertes +- L'IRM et d'autres tests spéciaux sont tous couverts +- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande +le remboursement ou la différence à BICOR VIE ET CAPITALISATION (applicable pour les options avec ticket modérateur) +- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable +- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant +- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance s’appliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir d’une zone où les équipements indispensables n’existent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé). +- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. L’assuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser l’assureur au moins 3 jours avant afin de lui permettre d’aviser les prestatires désignés par l’assuré (seulement pour ceux qui ont une couverture extraterritoriale). +- Traitement en Inde le cas échéant,sur base d’un rapport médical d’un medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de l’Afrique de l’Est avec l'approbation préalable de BICOR VIE ET CAPITALISATION +- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement. +- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger +- La chambre individuelle est couverte +- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte +- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata +- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge +- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement. +- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré. +- La liste de tous les partenaires de BICOR VIE ET CAPITALISATION est jointe à cette offre technique +- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec BICOR VIE ET CAPITALISATION et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques. +- Délai maximum de remboursement en cas de paiement direct là où il n y a pas de partenariat et après réception de tous les documents requis : 2 jours +- Gestion commune avec l'employeur des cas de fraudes +- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner. +- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement. +- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, BICOR VIE ET CAPITALISATION peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste. +Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableaux ci-dessous :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleComplet']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleComplet']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de l’echeance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + $text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + // $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties définies ci-dessus seront accordées moyennant des cotisations de :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + // $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à l’assuré pour le règlement d'un acompte sur le renouvellement."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes(déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Pour associer l’assuré à l'évolution des consommations, un rapport d’utilisation trimestriel lui sera régulièrement transmis."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Traitement cosmétique et chirurgie esthétique +- Blessures dues à la participation aux jeux et activités dangereuses +- Blessures dues à la participation aux greves et émeutes +- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance +- Traitement prophylactique, les compléments alimentaires +- Cardiopathie ischemique +- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue +- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins) +- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers +- Coût d'appareils auditifs, à moins qu’il résulte d’un accident +- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident +- Frais recouvrables en vertu de la Loi sur l’Indemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes d’indemnisation de l'INSS ou tout autre régime sauf sur demande préalable de l’assuré et moyennant une prime correspondante"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("POUR BICOR VIE ET CAPITALISATION"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("POUR L’ASSURE"),0,1,'R',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false); + + $fichier="Temp/TMP_devis"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur/Devisstandardeng.php b/Societes/radiant/Tarifs/Controleur/Devisstandardeng.php new file mode 100644 index 0000000..9beacd3 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Devisstandardeng.php @@ -0,0 +1,681 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + // $pdf = new FPDF(); + $pdf = new FPDF_Protection(); + $pdf->SetProtection(array('print')); + + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("MEDICOR PROPOSAL – HEALTH INSURANCE"),1,1,'C',true); + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No Quotation"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->Ln(15); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $oldnumeroOptionTarif = "0"; + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $categorie = "0"; + + foreach ($collegecps as $collegecp) + { + $numeroOptionTarif = $collegecp['numeroOptionTarif']; + + if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0") + { + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total : Option ".$oldnumeroOptionTarif),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $pdf->Ln(5); + } + + if($categorie!=$collegecp['numeroOptionTarif']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','', 9); + + $pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + + $nbAdherent += $collegecp['nbAdherent']; + $nbAyantdroit += $collegecp['nbAyantdroit']; + $primeTtcAdherent += $collegecp['primeTtcAdherent']; + $primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire']; + $primeTtcTotal += $collegecp['primeTtcTotal']; + + $oldnumeroOptionTarif = $numeroOptionTarif; + $categorie = $collegecp['numeroOptionTarif']; + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured: +- From the effective date of the contract for persons to be insured who are already in the Contractor's service. +- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage. +- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].". +It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one month’s notice before its expiry. +No obligation to renew the contract is incubent upon the parties. BICOR VIE ET CAPITALISATION reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness. + +Thus, the following medical benefits are covered: +-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases. + +-conditions of prematurity are covered + +-MRI and other special tests are all covered + +-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to BICOR VIE ET CAPITALISATION (applicable for options with co-payment) + +- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs. +However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization. + +-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student. + +-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized) + +-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage). + +-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of BICOR VIE ET CAPITALISATION. + +-The extension in East African countries is covered within the limit of coverage for dependents of the insured. + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. + +-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad + +-The single room is covered + +-Automatic addition of a newborn and/or spouse without additional premium except card fees + +-Automatic addition of a new member with a prorated premium + +-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated + +-pro rata, if no medical service has been paid for him and his dependents + +-The issue of health insurance cards within 7 days of notification and/or proof of payment. + +-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].". + +-The list of all BICOR VIE ET CAPITALISATION partners is attached to this technical offer + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. +For expenses paid to a provider who has no partnership with BICOR VIE ET CAPITALISATION and which has not been terminated or suspended for fault or bad practice. + +-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days + +-Joint management with the employer of cases of fraud + +-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate. + +-The list of staff and reports of medical consumption will be provided monthly. + +-If the limit of the insured person is exceeded during the insurance period, BICOR VIE ET CAPITALISATION may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctor’s degree, surgeon or dental surgeon. + +No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer. + +The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer. + +The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances. + +For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed. + +Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students. + +This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor. + +In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleComplet']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleComplet']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractor’s service, or dies. +In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods."); + $pdf->MultiCell(0, $ht, $text); + + + // $pdf->AddPage(); + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insured’s membership."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The guarantees defined above will be granted with :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal. +The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year. +To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. "); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Cosmetic treatment and cosmetic surgery +- Injuries due to participation in games and dangerous activities +- Injuries due to participation in strikes and riots +- Fertility treatment, namely treatment costs related to infertility and impotence +- Prophylactic treatment, dietary supplements +-Ischemic heart disease +- Intentional self-harm, suicide or the influence of alcohol or drugs +- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas) +- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers +- Cost of hearing aids, unless resulting from an accident +- Nervous breakdown, psychoneurosis, unless it results from an accident"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art. +In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility. +The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("FOR BICOR VIE ET CAPITALISATION"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false); + + $fichier="Temp/TMP_proposal"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur/Editioncarteassure.php b/Societes/radiant/Tarifs/Controleur/Editioncarteassure.php new file mode 100644 index 0000000..4fbfc9b --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Editioncarteassure.php @@ -0,0 +1,130 @@ + rendre la carte personalisable par societeuser +// Fond blanc +$pdf->SetFillColor(255, 255, 255); + +$pdf->Rect(0, 0, 85.6, 54, 'F'); + +// LOGO SOCIÉTÉ en haut à gauche +if (file_exists($logoSocietePath)) { + $logoGarantPath = $logoSocietePath; + $pdf->Image($logoSocietePath, 3, 3, 15); +} + +// LOGO GARANT en haut à droite +//if (file_exists($logoGarantPath)) { +if (is_file($logoGarantPath)) { + $pdf->Image($logoGarantPath, 67, 3, 15); +} + +// EN-TÊTE : "CARTE D'ASSURANCE" +$pdf->SetFont('Arial', 'B', 8); +$pdf->SetTextColor(33, 46, 83); +$pdf->SetXY(0, 5); +// $pdf->Cell(85.6, 4, utf8_decode(_('CARTE SANTÉ')), 0, 1, 'C'); +$pdf->Cell(85.6, 4, mb_convert_encoding(_('CARTE SANTÉ'), "ISO-8859-1", "UTF-8"), 0, 1, 'C'); +$pdf->SetTextColor(0); + +// Informations de contact de la société +$pdf->SetFont('Arial', '', 5); +$pdf->SetXY(0, 9); + +$pdf->MultiCell(85.6, 3, mb_convert_encoding(_('Siège social').': '. $assure['adresseGeoSociete'].' ', "ISO-8859-1", "UTF-8"), 0, 'C'); + +$pdf->SetXY(0, 12); +$pdf->Cell(85.6, 3, mb_convert_encoding(_('Tél.').': '.$assure['telephoneSociete'], "ISO-8859-1", "UTF-8"), 0, 1, 'C'); + +// Ligne séparatrice +$pdf->Line(5, 15, 80, 15); + +// Section "Bénéficiaire" +$pdf->SetFont('Arial', 'BUI', 7); +$pdf->SetXY(5, 17); +$pdf->SetTextColor(33, 46, 83); +$pdf->Cell(30, 4, mb_convert_encoding(_('Bénéficiaire'), "ISO-8859-1", "UTF-8"), 0, 1); +$pdf->SetTextColor(0); + +// Matricule - en gras et rouge +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 21); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->SetTextColor(255, 0, 0); +$pdf->Cell(25, 3, ' : '.$assure['numeroBeneficiaire'], 0, 1); +$pdf->SetTextColor(0); + +// Nom +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 24); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->Cell(30, 3, ' : '.substr(mb_convert_encoding($assure['nomBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1); + +// Prénoms +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 27); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Prénoms'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->Cell(25, 3, ' : '.substr(mb_convert_encoding($assure['prenomsBeneficiaire'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1); + +// Né(e) le - si disponible +if (!empty($assure['dateNaissance'])) { + $pdf->SetFont('Arial', '', 6); + $pdf->SetXY(5, 30); + $pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Né(e) le'), "ISO-8859-1", "UTF-8"), 0, 0); + $pdf->SetFont('Arial', 'B', 6); + $pdf->Cell(25, 3, ' : '.dateLang($assure['dateNaissance'], $_SESSION['lang']), 0, 1); +} + +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 33); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Statut'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->Cell(28, 3, ' : '.substr(mb_convert_encoding($assure['lienparente'], "ISO-8859-1", "UTF-8"), 0, 20), 0, 1); + +// Section "Assuré Principal" +$pdf->SetFont('Arial', 'BUI', 7); +$pdf->SetXY(5, 38); +$pdf->SetTextColor(33, 46, 83); +$pdf->Cell(30, 4, mb_convert_encoding(_('Assuré Principal'), "ISO-8859-1", "UTF-8"), 0, 1); +$pdf->SetTextColor(0); + +// Numéro assuré - en gras et rouge +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 42); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Matricule'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->SetTextColor(255, 0, 0); +$pdf->Cell(25, 3, ' : '.$assure['numeroAdherent'], 0, 1); +$pdf->SetTextColor(0); + +// Nom et Prénoms assuré +$pdf->SetFont('Arial', '', 6); +$pdf->SetXY(5, 45); +$pdf->Cell($colonneAlignement - 5, 3, mb_convert_encoding(_('Nom & prénoms'), "ISO-8859-1", "UTF-8"), 0, 0); +$pdf->SetFont('Arial', 'B', 6); +$pdf->Cell(15, 3, ' : '.substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", "UTF-8"), 0, 15), 0, 1); + +// Photo de l'assuré (positionnée à droite) - taille réduite +$photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; +$photoX = 57; +$photoY = 17; + +// Vérifier si l'URL est accessible +$headers = @get_headers($photoPath); + + +if (!empty($assure['lienPhoto']) && $headers && strpos($headers[0], '200')) { + $pdf->Image($photoPath, $photoX, $photoY, 25, 25); // Réduction de 30x30 à 25x25 +} else { + // Cadre pour la photo si non disponible + $pdf->Rect($photoX, $photoY, 25, 25); + $pdf->SetFont('Arial', '', 4); + $pdf->SetXY($photoX, $photoY + 12); + $pdf->Cell(25, 3, mb_convert_encoding(_('Photo non disponible'), "ISO-8859-1", "UTF-8"), 0, 1, 'C'); +} + +// Nom du souscripteur en bas +$pdf->SetFont('Arial', 'B', 6); +$pdf->SetXY(0, 49); +$pdf->Cell(85.6, 3, mb_convert_encoding($assure['souscripteur'], "ISO-8859-1", "UTF-8"), 0, 1, 'C'); diff --git a/Societes/radiant/Tarifs/Controleur/Modifiercollegedenregistrer.php b/Societes/radiant/Tarifs/Controleur/Modifiercollegedenregistrer.php new file mode 100644 index 0000000..493b0a2 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Modifiercollegedenregistrer.php @@ -0,0 +1,46 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + $numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif"); + $_SESSION['numeroOptionTarif'] = $numeroOptionTarif; + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + $ageMoyen = $this->requete->getParametreFormulaire("ageMoyen","numerique"); + + $delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique"); + + $plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique"); + $plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire, $ageMoyen); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Modifiercolleged"); + } + else + { + $this->college_temp->modifiercollege($idCollegeTemp, $idCollege); + $this->rediriger("Fichedevis"); + } +?> + + + + + + diff --git a/Societes/radiant/Tarifs/Controleur/Modifiercollegedindex.php b/Societes/radiant/Tarifs/Controleur/Modifiercollegedindex.php new file mode 100644 index 0000000..3d30abb --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Modifiercollegedindex.php @@ -0,0 +1,33 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + $this->rediriger("Modifiercolleged"); + } + else + { + $idPolice = $_SESSION['idPolice_d_C']; + + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $optionstarif = $this->college_temp->getoptionstarif($idPolice); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif)); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur/Modifiercollegeenregistrer.php b/Societes/radiant/Tarifs/Controleur/Modifiercollegeenregistrer.php new file mode 100644 index 0000000..7561f7d --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Modifiercollegeenregistrer.php @@ -0,0 +1,37 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + $delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique"); + + $plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique"); + $plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Modifiercollege"); + } + else + { + $this->college_temp->modifiercollege($idCollegeTemp, $idCollege); + $this->rediriger("Collegepolice"); + } +?> diff --git a/Societes/radiant/Tarifs/Controleur/Modifiercollegeindex.php b/Societes/radiant/Tarifs/Controleur/Modifiercollegeindex.php new file mode 100644 index 0000000..dcc4833 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur/Modifiercollegeindex.php @@ -0,0 +1,27 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + $this->rediriger("Modifiercollege"); + } + else + { + $idCollege = $_SESSION['idCollege']; + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'ouinonimposerplafond' => $this->ouinonimposerplafond)); + } +?> diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Consultercollegeindex.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Consultercollegeindex.php new file mode 100644 index 0000000..4e5e3ef --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Consultercollegeindex.php @@ -0,0 +1,24 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + $this->rediriger("Consultercollege"); + } + else + { + $idCollege = $_SESSION['idCollege']; + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm)); + } +?> diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1eng.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1eng.php new file mode 100644 index 0000000..e6ae348 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1eng.php @@ -0,0 +1,253 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + + $listeassures = $this->police->getcpfclisteassures($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC1") + { + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true); + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false); + // $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false); + + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Contracting Party’s staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 2 + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured will receive medical services at All health centers, District, Provincial and Referral hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, All pharmacies that have partnership with RADIANT INSURANCE COMPANY. +The insured shall a 10% co-pay in public health and pharmacies."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 3 + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- All medical services that are not related to sickness are not covered; +- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire; +- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed. +- CT Scan and MRI are covered for Inpatient cases +- Optical Frames"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage. +Members of the new insured family will be included in the contract plus 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents. +The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); // Page 3 + // $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed. +These agreements have been approved by both parties involved and are effective from"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1kiny.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1kiny.php new file mode 100644 index 0000000..82c14d2 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc1kiny.php @@ -0,0 +1,255 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=8; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC1") + { + $pdf->SetFillColor(135,206,250); // bleu + + $text = convertirc("AMASEZERANO Y’UBWISHINGIZI BWO KWIVUZA BW’UMUNTU KU GITI CYE HAMWE N’ABAGIZE UMURYANGO WE"); + $pdf->MultiCell(0, $ht, $text, 1, 'C',true); + + // MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) + + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Itariki y’amavuko"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("No y’indangamuntu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + /* + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false); + */ + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma y’ukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false); + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati y’imyaka 18 na 65, uwo bashakanye n’abana babo batarengeje imyaka 21 nk’uko bagaragara mu mbonerahamwe iri hasi hamwe n’imisanzu yabo : "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Itariki y’amavuko'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('No y’ubwishingizi'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Amasezerano y’ubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse n’ubundi burwayi busanzwe."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Abafashe ubu bwishingizi bahabwa serivise z’ubuvuzi zitangirwa mu bigo nderabuzima, ibitaro by’uturere n’intara. ibitaro bya gisirikare by’i Kanombe, CHUB, CHUK, n’ibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. +Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company. +Uwishingiwe yishyura buri 10% kuri fagitire y’ibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi. +Nyuma y’itangira ry’aya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nk’umuryango. + +Abagize umuryango w’uwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% by’amafaranga yishyuwe n’uwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka w’amasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo n’imyaka y’amavuko byashyikirijwe RADIANT INSURANCE COMPANY. + +Buri wese ahabwa ikarita y’ubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse n’ibyo yemerewe gukorerwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bw’uwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi n’abagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu y’umwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu z’uburwayi; +- Ubuvuzi n’imiti y’ibibazo byo kubura urubyaro; +- Imbago, inyunganirangingo n’insimburangingo; +- Indorerwamo z’amaso +- Ibijyanye no kuyungurura impyiko (diyalize), imiti ya diabete, imiti y’ibibazo by’umuvuduko w’amaraso n’ibindi bikorwa cyangwa ibizamini byihariye bitagendanye n’uburwayi; +- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro +- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa ku mwaka ukurikiyeho w’ubwishingizi kandi mu gihe amasezerano yahise avugururwa ku itariki yagombaga kurangiriraho; +- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro n’ibigonderabuzima bya Leta."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RY’AMASEZERANO"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye. + +• Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa."); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bw’uwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe. +Aya masezerano yemejwe n’impande zombi ziyagiranye kandi afite agaciro uhereye kuwa"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2eng.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2eng.php new file mode 100644 index 0000000..f273d57 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2eng.php @@ -0,0 +1,261 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC2") + { + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("INDIVIDUAL HEALTH INSURANCE CONTRACT"),1,1,'C',true); + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(0,$ht,convertirc("POLICY NUMBER : ".$entetecp['numeroPolice']),0,1,'C',false); + // $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURER :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Name"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Radiant Insurance Company"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Address"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Kigali, KN 2 Avenue, CHIC Building; P.O. BOX: 1861, Kigali-Rwanda"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Tel"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": +250 788 50 08 77/ 2050"),0,1,'L',false); + + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("CONTACT DETAILS OF THE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Names"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Type of Insurance"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": Individual Cover"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("TIN/PASSPORT/NID"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Village/Cell/Sector"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("District"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Signing Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Commencement Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEffet']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Contract Ending Date"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['dateEcheance']),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("PERSONS TO BE INSURED :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Contracting Party’s staff members aged more than 18 years and less than 65 years as of the commencement of the insurance contract, the individual insured person, his/her spouse as well as their dependent children of less than 21 years of age."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("LIST OF PERSONS TO BE INSURED IN THIS CONTRACT :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Names'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Date of Birth'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('Membership Number'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Premiums'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Total'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ANNUAL CEILINGS :"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('Guarantee'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amount'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The health insurance scheme will pay the charges incurred for medical care due to, illness, accident, dental and eye care or maternity."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ACCESS TO HEALTH CARE FACILITIES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured will receive medical services at all health centers, district and provincial hospitals, Kanombe Military Hospital, CHUB, CHUK, and Ndera Hospital, plus some clinics as per the list attached on this contract as well as all pharmacies that have partnership with RADIANT INSURANCE COMPANY. +The insured shall a 10% co-pay in public health facilities&Pharmacies and 15% in private clinics."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','BI', 10); + $text = convertirc("Note: This list should be updated by adding or removing a provider any time in accordance with the agreement between RADIANT INSURANCE COMPANY LTD and the provider. In this event, RADIANT INSURANCE COMPANY LTD shall inform the client through the email address or telephone number provided by the client in this contract."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The insured shall a 10% co-pay in public health&pharmacies and 15% in private clinics."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("V. UNCOVERED GUARANTEES :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- All medical services that are not related to sickness are not covered; +- Maternity cover becomes effective from 10 months of insurance for the 1st year and immediately when the contract is renewed on the date it was due to expire; +- Vaccination, family planning, infertility, crutches and orthosis, kidney transplantation (dialysis) and other special activities or tests not related to normal illness is not guaranteed. +- CT Scan and MRI are covered for Inpatient cases +- Optical Frame"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("A Procedure for incorporating a new dependent :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Addition of a child born to or spouse shall take place not later than thirty (30) days from the date of birth of the child or from the date of marriage. +Members of the new insured family will be included in the contract plus 50% of the insurance premiums paid by the insured when he or she adds the spouse and 25% when he/she adds the child born regardless of the remaining days until the end of the contract year. Members of his family will have the right to medical treatment from the time their names and birthdays are submitted to RADIANT."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("TERMINATION OF THE AGREEMENT :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("The agreement can be terminated if the insured chooses to cancel it and will be refunded the premium paid minus fifteen thousand Rwandan Francs (15,000 Frw) for each card issued, only if it has been done less than 30 days since the first premium payment, meaning they have not yet started using the insurance for themselves or their dependents. +The agreement can be terminated if it is found that the insured has used or attempted to use the insurance for someone not covered by the policy or has knowingly attempted to claim for services not covered by this agreement. In such cases, the premium paid will not be refunded."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("FINAL PROVISIONS :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); +$text = convertirc("RADIANT INSURANCE COMPANY cannot be held responsible for any health consequences of the insured arising from treatments received at the hospital or medications prescribed. +These agreements have been approved by both parties involved and are effective from"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Done at Kigali, on ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("THE SUBSCRIBER"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("THE INSURER"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC2 contact"),0,1,'C',false); + } + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2kiny.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2kiny.php new file mode 100644 index 0000000..b665cf6 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpfc2kiny.php @@ -0,0 +1,261 @@ +police->getEnteteCP($idPolice); + $adherent = $this->police->getAdherentCP($idPolice); + // $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCPFC($idPolice); + $listeassures = $this->police->getcpfclisteassures($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=8; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(37); + + if($adherent['codeProduit']=="FC2") + { + $pdf->SetFillColor(135,206,250); // bleu + + $text = convertirc("AMASEZERANO Y’UBWISHINGIZI BWO KWIVUZA BW’UMUNTU KU GITI CYE HAMWE N’ABAGIZE UMURYANGO WE"); + $pdf->MultiCell(0, $ht, $text, 1, 'C',true); + + // MultiCell(float w, float h, string txt [, mixed border [, string align [, boolean fill]]]) + + // $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',170,20,20); + $pdf->Image($_SESSION['dossierImage'].'/logo_etat.png',10,10,180); + + $pdf->SetFont(''); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("UBWISHINGIZI No"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("AMAZINA YOSE"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['nom'] . " " . $adherent['prenoms']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Itariki y’amavuko"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(30,$ht,convertirc(dateFr($adherent['dateNaissance'])),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("No y’indangamuntu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['numeroPiece']),0,1,'L',false); + + /* + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Ubwenegihugu"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": "),0,1,'L',false); + */ + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Telefone"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['telephonePortable']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Email"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['email']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Umudugudu/Akagari/Umurenge"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + // $pdf->Cell(0,$ht,convertirc(": ".$adherent['adresseGeo']),0,1,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Akarere "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".$adherent['ville'].' / '. $adherent['localite']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Agiranye amasezerano na"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": RADIANT INSURANCE COMPANY"),0,1,'L',false); + + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(50,$ht,convertirc("Italiki amasezerano akorewe"),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(": ".dateFr($adherent['dateSysteme'])),0,1,'L',false); + + $pdf->Ln(7); + + $pdf->Cell(50,$ht,convertirc("Ingingo ya 1: IGIHE AMASEZERANO AMARA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Aya masezerano amara umwaka wuzuye utangira kubarwa nyuma y’ukwezi kuzuye uhereye igihe uwabufashe yishyuriye umusanzu bwa mbere."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(48,$ht,convertirc("Igihe cyo gutangira kwivuza : "),0,0,'L',false); + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc($entetecp['dateEffet']),0,1,'L',false); + + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 2: ABISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Buri muntu mu bagize umunyamuryango ufite hagati y’imyaka 18 na 65, uwo bashakanye n’abana babo batarengeje imyaka 21 nk’uko bagaragara mu mbonerahamwe iri hasi hamwe n’imisanzu yabo : "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(85,$ht,convertirc('Amazina'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Itariki y’amavuko'),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc('No y’ubwishingizi'),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc('Umusanzu'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($listeassures as $assure) + { + $pdf->Cell(85,$ht,convertirc($assure['nomAssure']),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc(dateFr($assure['dateNaissance'])),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc($assure['numeroBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($assure['primeNetteStat']),1,1,'C',false); + } + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(155,$ht,convertirc('Igiteranyo'),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($adherent['primeTtcTotal']),1,1,'C',false); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 3: IBYISHINGIRWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Amasezerano y’ubwishingizi bwo kwivuza akubiyemo serivise zo kwivuza biturutse ku mpamvu zo kubyara, impanuka, kwivuza amaso, amenyo ndetse n’ubundi burwayi busanzwe."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 4: AHO BIVURIZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Abafashe ubu bwishingizi bahabwa serivise z’ubuvuzi zitangirwa mu bigo nderabuzima, ibitaro by’uturere n’intara. ibitaro bya gisirikare by’i Kanombe, CHUB, CHUK, n’ibitaro bya NDERA, bitabaye ngombwa gusaba taransiferi. Bahabwa kandi serivisi zitangirwa mu mavuriro yigenga agaragara ku rutonde ruri ku mugereka w’aya masezerano. +Uwishingiwe ahabwa imiti yandikiwe na muganga kandi muri farumasi zose mu Rwanda zikorana na Radiant Insurance Company."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','BI', 10); + $text = convertirc("ICYITONDERWA: Amavuriro amwe ashobora kuvanwa cyangwa kwiyongera kuri uru rutonde igihe icyo ari cyo cyose biturutse ku masezerano y’imikoranire RADIANT INSURANCE COMPANY LTD yagiranye n’amavuriro ndetse na Farumasi. Igihe urutonde ruhindutse, uwishingiwe abimenyeshwa binyuze kuri nomero ya telephone cyangwa aderesi imeyili yatanze igihe yafataga ubwishingizi."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Uwishingiwe yishyura buri 10% kuri fagitire y’ibyo yakorewe mu mavuriro ya leta cyangwa imiti yahawe muri farumasi na 15% mu mavuriro yigenga. +Nyuma y’itangira ry’aya masezerano, uwafashe ubwishingizi ku giti cye ashobora kongeramo uwo bashakanye mu gihe yashyingiwe cyangwa umwana bibarutse ku bafashe ubwishingizi nk’umuryango. + +Abagize umuryango w’uwishingiwe bashya bazinjizwa muri aya masezerano hongeweho 50% by’amafaranga yishyuwe n’uwafashe ubwishingizi igihe yongeyemo uwo bashakanye na 25% ku mwana wavutse hatitawe ku minsi isigaye ngo umwaka w’amasezerano urangire. Abagize umuryango we bazahita bagira uburenganzira bwo kwivuza kuva igihe amazina yabo n’imyaka y’amavuko byashyikirijwe RADIANT INSURANCE COMPANY. + +Buri wese ahabwa ikarita y’ubwishingizi agomba kwitwaza igihe agiye kwivuza igafasha abamwakira nawe ubwe kumenya amafaranga yo kwivuza asigaranye ndetse n’ibyo yemerewe gukorerwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ICYITONDERWA :"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("Ubu bwishingizi bumara umwaka wuzuye (amezi 12) ushobora kongera kuvugururwa ku bushake bw’uwabufashe, bityo rero, iyo amafaranga yo kwivuza ashize uwafashe ubwishingizi n’abagize umuryango we bongera gukoresha ubwishingizi nyuma yo kongera kwishyura imisanzu y’umwaka ukurikiyeho kandi mu gihe amasezerano ahise avugururwa hatabayeho gukererwa."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("ngingo ya 5: AMAFARANGA YO KWIVUZA KU MWAKA"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(115,$ht,convertirc('IBITEGANYIJWE'),1,0,'C',false); + $pdf->Cell(70,$ht,convertirc('Amafaranga'),1,1,'C',false); + + $pdf->SetFont('Arial','', 10); + foreach ($garantiescollegecps as $garantiescollegecp) + { + $pdf->Cell(115,$ht,convertirc($garantiescollegecp['garantieKin']),1,0,'C',false); + $pdf->Cell(70,$ht,format_N($garantiescollegecp['plafond']),1,1,'C',false); + } + + // $pdf->AddPage(); + $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 6: IBITISHINGIRWA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("- Ibintu byose uwishingiwe yifuza gukorerwa kwa muganga bidaturutse ku mpamvu z’uburwayi; +- Ubuvuzi n’imiti y’ibibazo byo kubura urubyaro; +- Imbago, inyunganirangingo n’insimburangingo; +- Indorerwamo z’amaso +- Ibijyanye no kuyungurura impyiko (diyalize), n’ibindi bikorwa cyangwa ibizamini byihariye bitagendanye n’uburwayi; +- Guca mu byuma kabuhariwe nka MRI na Scanner igihe uwivuza atari mu bitaro +- Ibijyanye na serivisi zigenerwa abagore batwite bitangira kwishingirwa guhera hashize amezi 10 umuntu afashe ubwishingizi igihe ari ubwa mbere abufashe ndetse n’igihe amasezerano ahise avugururwa ku munsi yarangiriyeho. +- Kwikingiza no kuringaniza urubyaro bikorerwa ubuntu mu mavuriro n’ibigonderabuzima bya Leta."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(7); + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 7: IHAGARIKWA RY’AMASEZERANO"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("• Amasezerano ashobora guhagarikwa igihe uwafashe ubwishingizi ahisemo kubusesa agasubizwa umusanzu yishyuye havuyemo ibihumbi cumi na bitanu (15,000 Frw) kuri buri karita yahawe, mu gihe gusa hatarashira iminsi 30 uhereye igihe yishyuriye umusanzu wa mbere, bivuze ko aba ataratangira kwivuza cyangwa kuvuza abo yishingiye. + +• Amasezerano ashobora guhagarikwa igihe bigaragaye ko uwafashe ubwishingizi yavuje cyangwa yagerageje kuvuza umuntu utari mubo yafatiye ubwishingizi cyangwa yashatse gukorerwa nkana ibyo azi neza ko bitishingirwa muri aya masezerano kandi umusanzu yishyuwe ntawusubizwa."); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->AddPage(); + // $pdf->Ln(7); + + $pdf->SetFont('Arial','BU', 15); + $pdf->Cell(50,$ht,convertirc("Ingingo ya 8: INGINGO ZISOZA"),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + $text = convertirc("RADIANT INSURANCE COMPANY ntishobora kuryozwa ingaruka zaba ku buzima bw’uwakoresheje ubu ubwishingizi ziturutse ku buvuzi yakorewe kwa muganga cyangwa imiti yandikiwe. +Aya masezerano yemejwe n’impande zombi ziyagiranye kandi afite agaciro uhereye kuwa"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc(dateFr($adherent['dateSysteme']).'.'),0,1,'L',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("Bikorewe i Kigali, kuwa ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc(" UFASHE UBWISHINGIZI"),0,1,'R',false); + } + else + { + $pdf->Cell(0,$ht,convertirc("Tt is not a FC1 contact"),0,1,'C',false); + } + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandard.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandard.php new file mode 100644 index 0000000..cc6faf3 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandard.php @@ -0,0 +1,662 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + // $tableauajustementcps = $this->police->gettableauAjustementCP($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + if($entetecp['codeTypeContrat'] == "G") + { + $pdf->Cell(0,$ht,convertirc("CONTRAT - GROUPE D'ASSURANCE SANTE"),1,1,'C',true); + } + else + { + $pdf->Cell(0,$ht,convertirc("CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true); + } + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(50,$ht,convertirc("No POLICE"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(50,$ht,convertirc("SOUSCRITE PAR"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(50,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("En qualité de CONTRACTANT "),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Le présent contrat est constitué et régi par les CONDITIONS PARTICULIERES, les DISPOSITIONS"),0,1,'C',false); + $pdf->Cell(0,$ht,convertirc("SPECIALES ainsi que par les CONDITIONS GENERALES."),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Il a pour objet la garantie suivante :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("CONDITIONS PARTICULIERES"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat "); + $text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']); + $text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à "); + $text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + foreach ($collegecps as $collegecp) + { + $pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2 : PRISE D’EFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées "); + $text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec "); + $text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture."); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- Ainsi, chaque assuré aura une carte d’assurance maladie qu’il va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via l’application de MEDICOR. Cela va permettre aussi à l’assuré de voir en temps réel où il en est avec sa limite de couverture. "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période d’un mois avant de bénéficier de l’assurance santé ; exception faite des cas d’accident. +Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU CONTRAT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Le présent contrat est souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']." +Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité. +Ainsi, sont prises en charge les prestations médicales suivantes : +- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques. +- Les conditions de prématurité sont couvertes +- L'IRM et d'autres tests spéciaux sont tous couverts +- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande +le remboursement ou la différence à RDIANT INSURANCE COMPANY (applicable pour les options avec ticket modérateur) +- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable +- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant +- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance s’appliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir d’une zone où les équipements indispensables n’existent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé). +- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. L’assuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser l’assureur au moins 3 jours avant afin de lui permettre d’aviser les prestatires désignés par l’assuré (seulement pour ceux qui ont une couverture extraterritoriale). +- Traitement en Inde le cas échéant,sur base d’un rapport médical d’un medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de l’Afrique de l’Est avec l'approbation préalable de RDIANT INSURANCE COMPANY +- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement. +- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger +- La chambre individuelle est couverte +- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte +- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata +- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge +- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement. +- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré. +- La liste de tous les partenaires de RDIANT INSURANCE COMPANY est jointe à cette offre technique +- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec RDIANT INSURANCE COMPANY et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques. +- Délai maximum de remboursement en cas de paiement direct là où il n y a pas de partenariat et après réception de tous les documents requis : 2 jours +- Gestion commune avec l'employeur des cas de fraudes +- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner. +- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement. +- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, RDIANT INSURANCE COMPANY peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste. +Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableau ci-dessous :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['codeProduit']." : ".$tableaupretationcp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleCollege']; + } + + // $pdf->AddPage(); + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['codeProduit']." : ".$garantiescollegecp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleCollege']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de l’echeance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + $text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + // $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties définies ci-dessus sont accordées moyennant des cotisations de :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoireBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total Général"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($entetecp['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total Général"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($entetecp['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT DE LA PRIME"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à l’assuré pour le règlement d'un acompte sur le renouvellement."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes (déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Pour associer l’assuré à l'évolution des consommations, un rapport d’utilisation trimestriel lui sera régulièrement transmis."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Traitement cosmétique et chirurgie esthétique +- Blessures dues à la participation aux jeux et activités dangereuses +- Blessures dues à la participation aux greves et émeutes +- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance +- Traitement prophylactique, les compléments alimentaires +- Cardiopathie ischemique +- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue +- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins) +- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers +- Coût d'appareils auditifs, à moins qu’il résulte d’un accident +- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident +- Frais recouvrables en vertu de la Loi sur l’Indemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes d’indemnisation de l'INSS ou tout autre régime sauf sur demande préalable de l’assuré et moyennant une prime correspondante"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("POUR RDIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("POUR L’ASSURE"),0,1,'R',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false); + + $fichier="Temp/TMP_conditions_particulieres"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandardeng.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandardeng.php new file mode 100644 index 0000000..45d7d3e --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Cpstandardeng.php @@ -0,0 +1,566 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("MEDICOR – HEALTH INSURANCE"),1,1,'C',true); + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No Policy"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("SUBSCRIBER"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->Ln(15); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + foreach ($collegecps as $collegecp) + { + $pdf->Cell(30,$ht,convertirc($collegecp['codeProduit']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : "),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($entetecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($entetecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($entetecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($entetecp['primeTtcTotal']),1,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured: +- From the effective date of the contract for persons to be insured who are already in the Contractor's service. +- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage. +- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].". +It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one month’s notice before its expiry. +No obligation to renew the contract is incubent upon the parties. RDIANT INSURANCE COMPANY reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness. + +Thus, the following medical benefits are covered: +-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases. + +-conditions of prematurity are covered + +-MRI and other special tests are all covered + +-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to RDIANT INSURANCE COMPANY (applicable for options with co-payment) + +- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs. +However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization. + +-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student. + +-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized) + +-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage). + +-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of RDIANT INSURANCE COMPANY. + +-The extension in East African countries is covered within the limit of coverage for dependents of the insured. + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. + +-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad + +-The single room is covered + +-Automatic addition of a newborn and/or spouse without additional premium except card fees + +-Automatic addition of a new member with a prorated premium + +-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated + +-pro rata, if no medical service has been paid for him and his dependents + +-The issue of health insurance cards within 7 days of notification and/or proof of payment. + +-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].". + +-The list of all RDIANT INSURANCE COMPANY partners is attached to this technical offer + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. +For expenses paid to a provider who has no partnership with RDIANT INSURANCE COMPANY and which has not been terminated or suspended for fault or bad practice. + +-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days + +-Joint management with the employer of cases of fraud + +-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate. + +-The list of staff and reports of medical consumption will be provided monthly. + +-If the limit of the insured person is exceeded during the insurance period, RDIANT INSURANCE COMPANY may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctor’s degree, surgeon or dental surgeon. + +No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer. + +The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer. + +The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances. + +For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed. + +Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students. + +This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor. + +In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false); + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleCollege']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleCollege']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractor’s service, or dies. +In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods."); + $pdf->MultiCell(0, $ht, $text); + + + // $pdf->AddPage(); + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insured’s membership."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The guarantees defined above will be granted with :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleCollege']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['codeProduit']." : ".$collegecp2['libelleCollege']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal. +The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year. +To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. "); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Cosmetic treatment and cosmetic surgery +- Injuries due to participation in games and dangerous activities +- Injuries due to participation in strikes and riots +- Fertility treatment, namely treatment costs related to infertility and impotence +- Prophylactic treatment, dietary supplements +-Ischemic heart disease +- Intentional self-harm, suicide or the influence of alcohol or drugs +- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas) +- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers +- Cost of hearing aids, unless resulting from an accident +- Nervous breakdown, psychoneurosis, unless it results from an accident"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art. +In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility. +The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("FOR RDIANT INSURANCE COMPANY"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false); + + $fichier="Temp/TMP_particuliars_conditions"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedenregistrer.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedenregistrer.php new file mode 100644 index 0000000..0bd006f --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedenregistrer.php @@ -0,0 +1,33 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + $numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Creercolleged"); + } + else + { + $this->college_temp->enregistrer($idCollegeTemp); + $this->rediriger("Fichedevis"); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedindex.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedindex.php new file mode 100644 index 0000000..39158bc --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedindex.php @@ -0,0 +1,18 @@ +college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp); + + $optionstarif = $this->college_temp->getoptionstarif($idPolice); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, 'optionstarif' => $optionstarif, + 'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond)); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedinitcollege.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedinitcollege.php new file mode 100644 index 0000000..6a071d4 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegedinitcollege.php @@ -0,0 +1,8 @@ +requete->getSession()->getAttribut('login'); + + $idCollegeTemp = $this->college_temp->initCollege($idPolice, $user); + + $this->rediriger("Creercolleged"); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeenregistrer.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeenregistrer.php new file mode 100644 index 0000000..df62264 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeenregistrer.php @@ -0,0 +1,32 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Creercollege"); + } + else + { + $this->college_temp->enregistrer($idCollegeTemp); + $this->rediriger("Collegepolice"); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeindex.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeindex.php new file mode 100644 index 0000000..3abfbca --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeindex.php @@ -0,0 +1,16 @@ +college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $tableau_prestations = $this->college_temp->getPrestation($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'tableau_prestations' => $tableau_prestations, 'ouinonimposerplafond' => $this->ouinonimposerplafond)); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeinitcollege.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeinitcollege.php new file mode 100644 index 0000000..22aaae4 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Creercollegeinitcollege.php @@ -0,0 +1,8 @@ +requete->getSession()->getAttribut('login'); + + $idCollegeTemp = $this->college_temp->initCollege($idPolice, $user); + + $this->rediriger("Creercollege"); +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandard.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandard.php new file mode 100644 index 0000000..f144f78 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandard.php @@ -0,0 +1,691 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + if($entetecp['codeTypeContrat'] == "G") + { + $pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE"),1,1,'C',true); + } + else + { + $pdf->Cell(0,$ht,convertirc("PROPOSITION DE CONTRAT - D'ASSURANCE SANTE INDIVIDUEL"),1,1,'C',true); + } + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No DEVIS"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Dont le Siège Social est"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + // $pdf->Cell(0,$ht,convertirc("En qualité de PROSPECT "),0,0,'C',false); + // $pdf->Cell(0,$ht,convertirc("En qualité de CLIENT "),0,0,'C',false); + $pdf->Cell(0,$ht,convertirc("En qualité d'Assuré "),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Auprès de "),0,1,'C',false); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(0,$ht,convertirc("En qualité d'ASSUREUR "),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Le futur contrat aura pour objet la garantie suivante :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("MALADIE - HOSPITALISATION - MATERNITE - OPHTALMOLOGIE - DENTISTERIE"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("DISPOSITIONS PARTICULIERES"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Déclare souscrire aux conditions générales et dispositions spéciales du Contrat "); + $text .= convertirc("d'Assurance Maladie Groupe et celles particulières qui suivent, auprès de ".$_SESSION['nomSociete']); + $text .= convertirc(" en faveur des personnes à assurer, pour les Garanties et moyennant les Cotisations ci-après :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PERSONNES A ASSURER"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les membres du Personnel de l'assuré âgés de plus de 18 ans et de moins de 70 ans à "); + $text .= convertirc("l'entrée dans l'assurance selon la répartition suivante :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Catégorie"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Nb Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Adh"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Dép"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $oldnumeroOptionTarif = "0"; + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $categorie = "0"; + + foreach ($collegecps as $collegecp) + { + $numeroOptionTarif = $collegecp['numeroOptionTarif']; + + if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0") + { + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$oldnumeroOptionTarif),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $pdf->Ln(5); + } + + if($categorie!=$collegecp['numeroOptionTarif']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','', 9); + + $pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + + $nbAdherent += $collegecp['nbAdherent']; + $nbAyantdroit += $collegecp['nbAyantdroit']; + $primeTtcAdherent += $collegecp['primeTtcAdherent']; + $primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire']; + $primeTtcTotal += $collegecp['primeTtcTotal']; + + $oldnumeroOptionTarif = $numeroOptionTarif; + $categorie = $collegecp['numeroOptionTarif']; + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $pdf->Ln(5); + + $text = convertirc("En dehors de cette tranche d'âge la couverture fait l'objet d'un accord spécial entre le souscripteur et l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("A partir de 60 ans, un examen medical est obligatoire pour les assurés individuels."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2 : PRISE D’EFFET ET MODE DE FONCTIONNEMENT DE MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Sous réserve d'acceptation par l'Assureur, les garanties prennent effet pour chaque personne à assurer : "); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Dès la date d'effet du contrat pour les personnes à assurer se trouvant déjà au service du Contractant."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("- Directement après la date de leur admission au Service du Contractant pour les personnes engagées "); + $text .= convertirc("postérieurement à la date d'effet du contrat. Le Departement des Ressources Humaines du Contractant doit être en étroite collaboration avec "); + $text .= convertirc($_SESSION['nomSociete'] . ". Une prime calculée au prorata est payable immédiatement pour toute personne devenue Adhérent pendant la période de couverture."); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- Ainsi, chaque assuré aura une carte d’assurance maladie qu’il va présenter aux prestataires de soins et ceux-ci vont vérifier à partir de ses empreintes digitales son identité et sa limite de couverture via l’application de MEDICOR. Cela va permettre aussi à l’assuré de voir en temps réel où il en est avec sa limite de couverture. "); + $pdf->MultiCell(0, $ht, $text); + $text = convertirc("- NB : Pour les assurés individuels, ils doivent attendre une période d’un mois avant de bénéficier de l’assurance santé ; exception faite des cas d’accident. +Aussi, les assurés individuels doivent attendre une période de 10 mois avant de bénéficier de la couverture maternité. "); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3 : DUREE DU FUTUR CONTRAT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Le contrat sera souscrit pour une durée d'une année à compter du ".$entetecp['dateEffet']." au ".$entetecp['dateEcheance']." +Il sera renouvelable tacitement dans les conditions prévues à l'article 6 des présentes conditions particulières sauf résiliation avec un préavis de un mois avant son échéance."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + + $pdf->Cell(0,$ht,convertirc("Article 4 : DES GARANTIES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. PRESTATIONS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("La garantie maladie offre le paiement des frais pour les soins de santé à la suite de maladie d'accident ou de maternité. +Ainsi, sont prises en charge les prestations médicales suivantes : +- Soins ambulatoires, hospitalisation , maternité (sauf pour les dépendants), ophtalmologie, dentisterie et maladies chroniques. +- Les conditions de prématurité sont couvertes +- L'IRM et d'autres tests spéciaux sont tous couverts +- Paiement indirect : le bénéficiaire paie sa contribution pendant l'obtention du service médical et le prestataire demande +le remboursement ou la différence à BICOR VIE ET CAPITALISATION (applicable pour les options avec ticket modérateur) +- Tous les traitements médicaux et les médicaments doivent prescrits par un médecin diplômé et enregistré et qui a été autorisé par le Ministère de la Santé. Notre régime médical donne accès à des spécialités et à des médicaments génériques. Cependant, les spécialités doivent être prescrites par un médecin spécialiste, sauf en cas d'urgence par autorisation préalable +- Les garanties de couverture concernent le personnel assuré; son conjoint ainsi que leurs enfants à charge jusqu'à 21 ans et prolongé jusqu'à 25 ans si l'enfant est encore étudiant +- Frais d'Ambulance pour les cas d'urgence d'un hôpital à un autre et d'un lieu d'accident à l'hôpital en cas d'accident sur le territoire burundais. Le service ambulance s’appliquera aux assurés malades qui devont être traité dans un hôpital désigné, à partir d’une zone où les équipements indispensables n’existent pas, sans toutefois dépasser 500.000.FBu. durant toute la période de couverture (et dans la limite annuelle du patient hospitalisé). +- Traitements dans tous les hôpitaux partenaires des pays d'Afrique de l'Est. L’assuré ira dans un établissement approprié selon le partenariat de l'assureur. Il devra aviser l’assureur au moins 3 jours avant afin de lui permettre d’aviser les prestatires désignés par l’assuré (seulement pour ceux qui ont une couverture extraterritoriale). +- Traitement en Inde le cas échéant,sur base d’un rapport médical d’un medecin specialiste attestant que les mêmes services ne peuvent pas être offerts dans les pays de l’Afrique de l’Est avec l'approbation préalable de BICOR VIE ET CAPITALISATION +- L'extension dans les pays d'Afrique de l'Est est couverte dans la limite de la couverture pour les personnes à charge de l'assuré. Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement. +- L'hébergement d'un parent pour les enfants de moins de 12 ans à l'hôpital, cela ne s'appliquera qu'à la couverture à l'étranger +- La chambre individuelle est couverte +- Ajout automatique d'un nouveau-né et/ou conjoint sans prime supplémentaire à l'exception des frais de carte +- Ajout automatique d'un nouvel adhérent avec une prime calculée au prorata +- Suppression automatique pour l'agent qui quitte le groupe et remboursement de 75% de la prime non consommée calculée au prorata, si aucun service médical n'a été payé pour lui et les personnes à sa charge +- L'émission de cartes d'assurance maladie dans les 7 jours suivant la notification et/ou preuve de paiement. +- Les cartes d'assurance maladie portent un numéro de téléphone que le patient peut appeler si nécessaire. Il y aura également un gestionnaire de sinistre désigné spécifiquement en charge de l'assuré. +- La liste de tous les partenaires de BICOR VIE ET CAPITALISATION est jointe à cette offre technique +- Le remboursement sera basé sur le tarif le plus cher selon la catégorie dans laquelle vous êtes assuré localement.pour les frais déboursés chez un prestataire qui n'a pas de partenariat avec BICOR VIE ET CAPITALISATION et qui n'a pas été résilié ou suspendu pour faute ou mauvaises pratiques. +- Délai maximum de remboursement en cas de paiement direct là où il n y a pas de partenariat et après réception de tous les documents requis : 2 jours +- Gestion commune avec l'employeur des cas de fraudes +- Les frais funéraires en cas de décès d'un membre assuré ou son bénéficiaire sont payables endeans 24 heures suivant la réception de l'avis de décès à l'Employeur ou à la personne qu'il peut désigner. +- La liste du personnel ainsi que les rapports de consommations médicales seront fournis mensuellement. +- En cas de dépassement des limites de l'assuré au cours de la période d'assurance, BICOR VIE ET CAPITALISATION peut le couvrir sans prime supplémentaire si le taux de sinistralité du groupe est inférieur à 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REMBOURSEMENT DES SOINS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Aucun acte médical, appareil, opération ou hospitalisation, n'est pris en charge s'il n'a été ordonné par une personne titulaire d'un diplôme de médecin, chirurgien ou chirurgien - dentiste. +Aucun acte n'est pris en charge s'il n'est exécuté par une personne qualifiée et dans un établissement officiellement autorisé par le Ministère de la santé qui, sauf cas de force majeure, doit être conventionné par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le système de règlement des factures des prestations est en principe le Tiers payant par lequel le bénéficiaire de l'assurance maladie ne paie que le ticket modérateur convenu et le prestataire des soins se fait payer le solde de sa facture par l'Assureur."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Le payement direct qui consiste à ce que l'assuré paie la totalité de la facture des prestations médicales et se fait rembourser chez l'Assureur n'est utilisé qu'à titre exceptionnel."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("A cet effet, le prestataire ou l'assuré le cas échéant, devra remettre à l'Assureur les notes d'honoraires ou de frais et les ordonnances acquittées, datées et mentionnant les noms et prénoms de l'Assuré qu'elles concernent."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les notes doivent indiquer la nature et la date des soins donnés en distinguant le coût de chacun des actes pratiqués."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les ordonnances doivent porter lisiblement les noms et prénoms de l'assuré et s'accompagner des justificatifs de payement des produits pharmaceutiques."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.ETENDUE DE LA GARANTIE MALADIE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("La garantie englobe la personne assurée elle-même, son conjoint ainsi que leurs enfants légalement à charge de moins de 21 ans ou de moins de 25 ans s'ils sont encore étudiants."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.PRESTATIONS ET TAUX GARANTIS"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Les prestations et les taux garantis sont décrits, selon la catégorie, dans le tableaux ci-dessous :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type de Prestataire"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Taux Garantie(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Ticket Modérateur(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoin']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleComplet']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("PLAFONDS ANNUELS PAR FAMILLE"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantie"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Plafond"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Par Bén."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantie']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleComplet']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. CESSATION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties cessent collectivement le jour de la résiliation du contrat ou de l’echeance de celui-ci et individuellement, le jour où la personne assurée atteint la limite de couverture, quitte le service du Contractant, ou décède."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + $text = convertirc("En cas de fraude avérée, l'Assureur se réserve le droit de radier l'assuré concerné. L'ensemble des garanties offertes à la personne Assurée doivent être annulées à partir de la date où nous avons eu connaissance de la fraude. Les primes payées ne sont pas remboursables et le Membre ne sera plus admissible comme personne assurée pour les périodes futures."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + // $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION DES GARANTIES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties sont suspendues collectivement si les primes ne sont pas payées dans les TRENTE (30) jours à partir de la prise d'effet du contrat et individuellement si les primes ne sont pas payées immédiatement après l'adhésion de l'assuré."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("Les garanties reprendront effet immédiatement après le paiement de la totalité des primes en souffrance au moment de la suspension."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : COTISATIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Les garanties définies ci-dessus seront accordées moyennant des cotisations de :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("P. Base"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("P. Nette"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Carte"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + // $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6 : RENOUVELEMENT ET CLAUSE D'AJUSTEMENT"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Un mois avant l'échéance, un avenant provisionnel de renouvellement sera envoyé à l’assuré pour le règlement d'un acompte sur le renouvellement."); + $pdf->MultiCell(0, $ht, $text); + + $text = convertirc("La prime définie ci-dessus fera l'objet dans les conditions ci-après d'un ajustement en fonction des résultats de Sinistres sur primes nettes(déduction faite des taxes et commissions des intermédiaires) après la clôture de chaque exercice."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Pour associer l’assuré à l'évolution des consommations, un rapport d’utilisation trimestriel lui sera régulièrement transmis."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 7: EXCLUSIONS GENERALES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Traitement cosmétique et chirurgie esthétique +- Blessures dues à la participation aux jeux et activités dangereuses +- Blessures dues à la participation aux greves et émeutes +- Traitement de fécondité à savoir les frais de traitement liés à la stérilité et à l'impuissance +- Traitement prophylactique, les compléments alimentaires +- Cardiopathie ischemique +- Automutilation intentionnelle,suicide ou influence de l'alcool ou de la drogue +- Cancers de la peau,cancers in situ et mélanomes in situ (sauf les melanones malins) +- Les voyages en avion, sauf si le Membre (ayant payé le billet) voyage dans un avion conçu pour transporter des passagers +- Coût d'appareils auditifs, à moins qu’il résulte d’un accident +- Dépression nerveuse, psychonévrose, à moins qu'il ne résulte d'un accident +- Frais recouvrables en vertu de la Loi sur l’Indemnisation des Accidents du Travail ou les services publics de santé, y compris les régimes d’indemnisation de l'INSS ou tout autre régime sauf sur demande préalable de l’assuré et moyennant une prime correspondante"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8 : DISPOSITIONS FINALES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Lors de l'exécution des actes, examens ou traitements des assurés, le professionnel de santé ou l'établissement de soins est seul et unique responsable des complications, incidents ou accidents pouvant survenir dans la pratique de l'art médical."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("En aucun cas, la responsabilité de l'Assureur ne pourra être invoquée pour des faits relevant de la responsabilité du professionnel de santé ou de l'établissement de soins."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Le contrat sera établi en deux (2) exemplaires et prend effet sous réserve des dispositions de l'Article II des CONDITIONS PARTICULIERES, le ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES AUX CONDITIONS PARTICULIERES"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Fait à ".$_SESSION['villeSociete'].", le ".$entetecp['dateJour']),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("POUR BICOR VIE ET CAPITALISATION"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("POUR L’ASSURE"),0,1,'R',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LE PRODUCTEUR"),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("LA DIRECTION"),0,1,'L',false); + + $fichier="Temp/TMP_devis"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandardeng.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandardeng.php new file mode 100644 index 0000000..7169a1e --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Devisstandardeng.php @@ -0,0 +1,678 @@ +police->getEnteteCP($idPolice); + $collegecps = $this->police->getCollegesCP($idPolice); + $collegecp2s = $this->police->getCollegesCP($idPolice); + $garantiescollegecps = $this->police->getGarantiesCollegesCP($idPolice); + $tableaupretationcps = $this->police->gettableauPrestationsCP($idPolice); + + $pdf = new FPDF(); + $pdf->AliasNbPages(); + $pdf->AddPage(); + + $ht=10; + + $pdf->SetMargins(10, 10, 10) ; + + $pdf->SetFont('Arial','B', 15); + + $pdf->SetY(40); + + $pdf->SetFillColor(135,206,250); // bleu + + $pdf->Cell(0,$ht,convertirc("MEDICOR PROPOSAL – HEALTH INSURANCE"),1,1,'C',true); + + $pdf->SetFont(''); + + $pdf->Ln(15); + + $pdf->Cell(45,$ht,convertirc("No Quotation"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['numeroPolice']),0,1,'L',false); + + $pdf->Cell(45,$ht,convertirc("CLIENT"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['nomClient']),0,1,'L',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Cell(45,$ht,convertirc("Headquarter"),0,0,'L',false); + $pdf->Cell(0,$ht,convertirc(": ".$entetecp['adresseGeo']),0,1,'L',false); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("As Insured"),0,0,'C',false); + + $pdf->SetFont('Arial','', 10); + + $pdf->Ln(15); + + $pdf->Cell(0,$ht,convertirc("Near "),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc($entetecp['nomSociete']),0,1,'C',false); + + + $pdf->Ln(15); + + $pdf->SetFont('Arial','', 10); + $pdf->Cell(0,$ht,convertirc("The future contract will cover the following guarantees :"),0,1,'C',false); + + $pdf->Ln(15); + + $pdf->SetFont('Arial','B', 13); + $pdf->Cell(0,$ht,convertirc("DISEASE-HOSPITALIZATION-MATERNITY-OPHTHALOMOLOGY-DENTAL"),0,1,'C',false); + + + $pdf->AddPage(); + $ht=6; + + $pdf->SetFont('Arial','B', 15); + $pdf->Cell(0,$ht,convertirc("PARTICULAR DISPOSITIONS"),0,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc($entetecp['nomClient']),0,1,'L',false); + + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Declares to subscribe to the general terms and conditions and special provisions of the Group Heath Insurance Agreement and the following particulars with ".$entetecp['nomSociete']." for the persons to be insured, for the guarantees and for the following contribution :"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 1 : PEOPLE TO BE ASSURED"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Staff members of the insured person over the age of 18 and under 65 at the time of entry into the insurance according to the following breakdown:"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(30,$ht,convertirc("Category"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb members"),1,0,'C',false); + $pdf->Cell(25,$ht,convertirc("Nb Dep"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Premium member"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Premium Dep"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Tot premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $oldnumeroOptionTarif = "0"; + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $categorie = "0"; + + foreach ($collegecps as $collegecp) + { + $numeroOptionTarif = $collegecp['numeroOptionTarif']; + + if ($oldnumeroOptionTarif<>$numeroOptionTarif && $oldnumeroOptionTarif <> "0") + { + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total : Option ".$oldnumeroOptionTarif),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $nbAdherent = "0"; + $nbAyantdroit = "0"; + $primeTtcAdherent = "0"; + $primeTtcBeneficiaire = "0"; + $primeTtcTotal = "0"; + + $pdf->Ln(5); + } + + if($categorie!=$collegecp['numeroOptionTarif']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($collegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->SetFont('Arial','', 9); + + $pdf->Cell(30,$ht,convertirc("Option ".$collegecp['numeroOptionTarif']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAdherent']),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($collegecp['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($collegecp['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp['primeTtcTotal']),1,1,'C',false); + + $nbAdherent += $collegecp['nbAdherent']; + $nbAyantdroit += $collegecp['nbAyantdroit']; + $primeTtcAdherent += $collegecp['primeTtcAdherent']; + $primeTtcBeneficiaire += $collegecp['primeTtcBeneficiaire']; + $primeTtcTotal += $collegecp['primeTtcTotal']; + + $oldnumeroOptionTarif = $numeroOptionTarif; + $categorie = $collegecp['numeroOptionTarif']; + } + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Totaux : Option ".$numeroOptionTarif),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAdherent),1,0,'C',false); + $pdf->Cell(25,$ht,format_N($nbAyantdroit),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($primeTtcAdherent),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcBeneficiaire),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($primeTtcTotal),1,1,'C',false); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','', 9); + $text = convertirc("Outside this age group the cover is the subject of a special agreement between the subscriber and the Insurer."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("From the age of 60, a medical examination is compulsory for individual insured persons."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 2: TAKING EFFECT AND MODE OF OPERATION OF MEDICOR"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Subject to acceptance by the Insurer, the benefits take effect for each person to be insured: +- From the effective date of the contract for persons to be insured who are already in the Contractor's service. +- Directly after the date of their admission to the Contractor's Department for persons hired after the effective date of the contract. The Contractor's Human Resources Department must be in close collaboration with BICOR LIFE AND CAPITALIZATION. A prorated premium is payable immediately to any person who becomes a Member during the period of coverage. +- Thus, each insured will have a health insurance card that he will present to health care providers and they will verify from his fingerprints his identity and coverage limit via the application of MEDICOR. This will also allow the insured to see in real time where he is with his limit of coverage."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + // $pdf->Ln(5); + $pdf->AddPage(); + + $pdf->Cell(0,$ht,convertirc("Article 3: DURATION OF THE FUTURE CONTRACT"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The contract will be signed for a period of one year from ".$entetecp['dateEffet']." to ".$entetecp['dateEcheance'].". +It will be tacitly renewable under the conditions set out in article 6 of these special conditions, unless terminated with one month’s notice before its expiry. +No obligation to renew the contract is incubent upon the parties. BICOR VIE ET CAPITALISATION reserves the right to refuse or restrict the terms of coverage for all Members or any Member by granting the insured person a notice period of one month in accordance with the conditions set out in article 6 of these special conditions."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 4 : BENEFITS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1.A. ADVANTAGES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The health insurance offers the payment of expenses for health care as a result of accident or maternity sickness. + +Thus, the following medical benefits are covered: +-outpatient, hospitalization, maternity, ophthalmology, dentistry and chronic diseases. + +-conditions of prematurity are covered + +-MRI and other special tests are all covered + +-Indirect payment: the beneficiary pays his contribution while obtaining the medical service and the provider requests refund or difference to BICOR VIE ET CAPITALISATION (applicable for options with co-payment) + +- All medical treatments and medications prescribed by a qualified and registered doctor and which has been authorized by the Ministry of Health. Our medical plan provides access to specialties and generic drugs. +However, specialties must be prescribed by a medical specialist, except in case of emergency by prior authorization. + +-Coverage guarantees concern the insured staff, spouse and their dependent children up to age 21 and extended to 25 if the child is still a student. + +-Ambulance costs for emergency cases from one hospital to another and from an accident site to the hospital in the event of an accident on Burundian territory. The ambulance service will apply to sick insured persons who are to be treated in a designated hospital, from an area where necessary equipment does not exist, but without exceeding Bif 500,000 during the entire coverage period (and within the annual limit of the hospitalized) + +-Treatments in all partner hospitals in East African countries. The insured will go to an appropriate institution according to the partnership of the insurer. He will have to notify the insurer at least 3 days before to allow him to notify the insured persons designated by the insured (only for those who have extraterritorial coverage). + +-Treatments in India if necessary, based on a medical report from a specialist doctor attestating tha the same services can not be offerered in East African countries with the prior approval of BICOR VIE ET CAPITALISATION. + +-The extension in East African countries is covered within the limit of coverage for dependents of the insured. + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. + +-Accommodation of a parent for children under 12 years old in the hospital. This will only apply to coverage abroad + +-The single room is covered + +-Automatic addition of a newborn and/or spouse without additional premium except card fees + +-Automatic addition of a new member with a prorated premium + +-Automatic deletion for the agent leaving the group and refund of 75% of the unutilized premium calculated + +-pro rata, if no medical service has been paid for him and his dependents + +-The issue of health insurance cards within 7 days of notification and/or proof of payment. + +-Health insurance cards carry a telephone number which the patient can call if necessary. There will also be a designated claims manager specifically in charge of ".$entetecp['nomClient'].". + +-The list of all BICOR VIE ET CAPITALISATION partners is attached to this technical offer + +-The refund will be based on the most expensive rate depending on the category in which you are insured locally. +For expenses paid to a provider who has no partnership with BICOR VIE ET CAPITALISATION and which has not been terminated or suspended for fault or bad practice. + +-Maximum repayment period in case of direct payment where there is no partnership and after receipt of all required documents: 2 days + +-Joint management with the employer of cases of fraud + +-Funeral expenses in the event of the death on an insured member or his beneficiary are payable within 24 hours of receipt of the death notice to the employer or to the person he may designate. + +-The list of staff and reports of medical consumption will be provided monthly. + +-If the limit of the insured person is exceeded during the insurance period, BICOR VIE ET CAPITALISATION may cover him without additional premium if the loss ratio of the ".$entetecp['nomClient']." Group is less than 60%."); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. B. REIMBURSEMENT OF CARE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("No medical act, device, operation or hospitalization is supported if it has not been ordered by a person holding a doctor’s degree, surgeon or dental surgeon. + +No act is taken in charge if it is not performed by a qualified person and in an establishment officially authorized by the Ministry of Health which, except in cases of major force, must be agreed by the insurer. + +The system of payment of benefits invoices is in principle the Third party paying by which the beneficiary of the insurance sickness only pays the agreed co-payment and the care provider is paid the balance of his bill by the insurer. + +The direct payment which consists in the fact that the insured person pays the entire bill for the medical services and is reimbursed by the insured is only used in exceptional circumstances. + +For this purpose, the service provider or the insured if applicable, must submit to the insurer the notes of fees or expenses and the orders paid, dated and mentioning the names and forenames of the insured concerned. The notes must indicate the nature and the date of the care given by distinguishing the cost of each of the acts performed. + +Prescriptions must clearly bear the name and surname of the insured and be accompanied by proof of payment of pharmaceutical products."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("4.1. C.EXTENT OF THE DISEASE GUARANTEE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("The coverage includes the insured person himself, his spouse and their legally dependent children under 21 or under 25 if they are still students. + +This coverage is also extended to staff who fall ill while on a work mission or on annual leave recognized by the contractor. + +In the latter case, the reimbursement will be made on the basis of the KIRA Hospital rate for members of the first category or the Reference Public Hospital for members of the other categories after deduction of the co-payment mentioned in the table of benefits and limits."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Cette couverture est également étendue au personnel qui tomberait malade à l'étranger étant en mission de travail ou en congé annuel reconnu par le contractant."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(2); + + $text = convertirc("Dans ce dernier cas, le remboursement se fera sur base du tarif de l'Hôpital privé du BURUNDI pour les adhérents de la première catégorie ou de l'Hôpital Public de référence du BURUNDI pour les adhérents des autres catégories après déduction du ticket modérateur mentionné dans le tableau des prestations et plafonds."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + // $pdf->Ln(2); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("4.1. D.BENEFITS AND GUARANTEED RATE"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $pdf->Ln(2); + + $text = convertirc("Benefits and guaranteed rates are described, by category, in the tables below :"); + + $pdf->MultiCell(0, $ht, $text); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(100,$ht,convertirc("Type of provider"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Rate guarantee(%)"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Co-payment(%)"),1,1,'C',false); + + $categorie = ""; + + foreach ($tableaupretationcps as $tableaupretationcp) + { + if($categorie!=$tableaupretationcp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(180,$ht,convertirc($tableaupretationcp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($tableaupretationcp['reseausoinEng']),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("100"-$tableaupretationcp['tm']),1,0,'C',false); + $pdf->Cell(40,$ht,$tableaupretationcp['tm'],1,1,'C',false); + + $categorie = $tableaupretationcp['libelleComplet']; + } + + $pdf->AddPage(); + // $pdf->Ln(5); + + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(0,$ht,convertirc("LIMITS PER FAMILY OR PER MEMBER"),0,1,'L',false); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Ln(2); + + $pdf->Cell(100,$ht,convertirc("Garantee"),1,0,'C',false); + $pdf->Cell(40,$ht,convertirc("Limit"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Per Ben."),1,1,'C',false); + + $produit = ""; + + foreach ($garantiescollegecps as $garantiescollegecp) + { + if($produit!=$garantiescollegecp['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(160,$ht,convertirc($garantiescollegecp['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + $pdf->Cell(100,$ht,convertirc($garantiescollegecp['garantieEng']),1,0,'C',false); + $pdf->Cell(40,$ht,format_N($garantiescollegecp['plafond']),1,0,'C',false); + + $champApplication = ($garantiescollegecp['champApplication']=="1"); + + if($champApplication == TRUE) + $check = "4"; + else + $check = ""; + + $pdf->SetFont('ZapfDingbats','', 9); + $pdf->Cell(20, $ht, $check,1,1,'C',false); + $pdf->SetFont('Arial','', 9); + + $produit = $garantiescollegecp['libelleComplet']; + } + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.2. TERMINATION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral ceases collectively on the day of termination of the contract or on its due date and individually, on the day the insured person reaches the limit of coverage, leaves the contractor’s service, or dies. +In case of proven fraud, the insurer reserves the right to cancel the insured concerned. All the benefits offered to the insured person must be canceled from the date we became aware of the fraud. Premiums paid are not refundable and the member will no longer be eligible as an insured person for future periods."); + $pdf->MultiCell(0, $ht, $text); + + + // $pdf->AddPage(); + $pdf->Ln(10); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("4.3. SUSPENSION OF GUARANTEES"),0,1,'L',false); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("Collateral is suspended collectively if the premiums are not paid within THIRTY (30) days of the effective date of the policy and individually if the premiums are not paid immediately after the insured’s membership."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $text = convertirc("Guarantees will resume immediately upon payment of all outstanding premiums at the time of suspens."); + $pdf->MultiCell(0, $ht, $text); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 5 : CONTRIBUTIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("The guarantees defined above will be granted with :"); + + $pdf->MultiCell(0, $ht, $text); + + /* + if($entetecp['commission']>"0") + { + $pdf->Cell(30,$ht,convertirc("Type assuré"),1,0,'C',false); + $pdf->Cell(10,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Base"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Commis°"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Acces"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("P. Nette"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Carte"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Prime Ttc"),1,0,'C',false); + $pdf->Cell(30,$ht,convertirc("Prime Tot"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(190,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(30,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNette']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commission']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['accessoire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(30,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeNetteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['commissionBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['taxeBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(30,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(10,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + + } + else + { + */ + $pdf->Cell(50,$ht,convertirc("Insured type"),1,0,'C',false); + $pdf->Cell(20,$ht,convertirc("Nb"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Basic premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Net premium"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Card"),1,0,'C',false); + // $pdf->Cell(30,$ht,convertirc("Premium Ttc"),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc("Tot Premium"),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + + $produit = ""; + + foreach ($collegecp2s as $collegecp2) + { + if($produit!=$collegecp2['libelleComplet']) + { + $pdf->SetFont('Arial','BU', 10); + $pdf->Cell(170,$ht,convertirc($collegecp2['libelleComplet']),1,1,'C',false); + $pdf->SetFont('Arial','', 9); + } + + $pdf->Cell(50,$ht,convertirc(_('Adhérent')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeFamille']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHt']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarte']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcAdherent']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcAdherent_total']),1,1,'C',false); + + $pdf->Cell(50,$ht,convertirc(_('Dépendant')),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAyantdroit']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeHtBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['fraisCarteBeneficiaire']),1,0,'C',false); + // $pdf->Cell(30,$ht,format_N($collegecp2['primeTtcBeneficiaire']),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcBeneficiaire_total']),1,1,'C',false); + + $pdf->SetFont('Arial','B', 9); + + $pdf->Cell(50,$ht,convertirc("Total"),1,0,'C',false); + $pdf->Cell(20,$ht,format_N($collegecp2['nbAssure']),1,0,'C',false); + // $pdf->Cell(120,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,convertirc(""),1,0,'C',false); + $pdf->Cell(50,$ht,format_N($collegecp2['primeTtcTotal']),1,1,'C',false); + + $pdf->SetFont('Arial','', 9); + } + // } + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $pdf->AddPage(); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 6: RENEWAL AND PREMIUM ADJUSTEMENT CLAUSE"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("One month before the expiry, a provisional renewal rider will be sent to the insured for payment of a deposit on the renewal. +The premium defined above will be adjusted in accordance with the results of net premium claims (net of taxes and commissions of intermediaries) after the end of each financial year. +To associate the insured with changes in consumptions, quarterly usage report will be regularly transmitted. "); + $pdf->MultiCell(0, $ht, $text); + + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + $pdf->Cell(0,$ht,convertirc("Article 7: GENERAL EXCLUSIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("- Cosmetic treatment and cosmetic surgery +- Injuries due to participation in games and dangerous activities +- Injuries due to participation in strikes and riots +- Fertility treatment, namely treatment costs related to infertility and impotence +- Prophylactic treatment, dietary supplements +-Ischemic heart disease +- Intentional self-harm, suicide or the influence of alcohol or drugs +- Skin cancers, in situ cancers and melanomas in situ (except malignant melanomas) +- Air travel, unless the Member (having paid for the ticket) travels in an airplane designed to carry passengers +- Cost of hearing aids, unless resulting from an accident +- Nervous breakdown, psychoneurosis, unless it results from an accident"); + $pdf->MultiCell(0, $ht, $text); + + $pdf->Ln(5); + + $pdf->SetFont('Arial','B', 10); + + $pdf->Cell(0,$ht,convertirc("Article 8: FINAL PROVISIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc("When performing the acts, examinations or treatments of the insured, the health professional or the care establishment is the sole and sole responsible for complications, incidents or accidents that may occur in the practice of the medical art. +In no event shall the Insurer's liability be invoked for matters that are the responsibility of the health professional or the health care facility. +The contract will be established in two (2) copies and takes effect subject to the provisions of Article II of the PARTICULAR CONDITIONS, the ".$entetecp['dateEffet']); + $pdf->MultiCell(0, $ht, $text); + + // DEBUT TEXTE LIBRE + if ($entetecp['texteCp']>" ") + { + $pdf->AddPage(); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("ANNEXES TO THE PARTICULAR CONDITIONS"),0,1,'L',false); + + $pdf->Ln(2); + + $pdf->SetFont('Arial','', 9); + + $text = convertirc($entetecp['texteCp']); + + $pdf->MultiCell(0, $ht, $text); + } + // FIN TEXTE LIBRE + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BI', 10); + + $pdf->Cell(0,$ht,convertirc("Done at ".$_SESSION['villeSociete']." ".$entetecp['dateJour']."."),0,1,'C',false); + + $pdf->Ln(10); + + $pdf->SetFont('Arial','BU', 10); + + $pdf->Cell(0,$ht,convertirc("FOR BICOR VIE ET CAPITALISATION"),0,0,'L',false); + + $pdf->Cell(0,$ht,convertirc("FOR INSURED"),0,1,'R',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("UNDERWRITTER"),0,1,'L',false); + + $pdf->Ln(20); + + $pdf->Cell(0,$ht,convertirc("EXECUTIVE MANAGEMENT"),0,1,'L',false); + + $fichier="Temp/TMP_proposal"."_".uniqid().".pdf"; + $pdf->Output($fichier,"F"); + + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedenregistrer.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedenregistrer.php new file mode 100644 index 0000000..493b0a2 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedenregistrer.php @@ -0,0 +1,46 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + $numeroOptionTarif = $this->requete->getParametreFormulaire("numeroOptionTarif"); + $_SESSION['numeroOptionTarif'] = $numeroOptionTarif; + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + $ageMoyen = $this->requete->getParametreFormulaire("ageMoyen","numerique"); + + $delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique"); + + $plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique"); + $plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire, $ageMoyen); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Modifiercolleged"); + } + else + { + $this->college_temp->modifiercollege($idCollegeTemp, $idCollege); + $this->rediriger("Fichedevis"); + } +?> + + + + + + diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedindex.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedindex.php new file mode 100644 index 0000000..3d30abb --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegedindex.php @@ -0,0 +1,33 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + $this->rediriger("Modifiercolleged"); + } + else + { + $idPolice = $_SESSION['idPolice_d_C']; + + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $optionstarif = $this->college_temp->getoptionstarif($idPolice); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'ouinonimposerplafond' => $this->ouinonimposerplafond, 'optionstarif' => $optionstarif)); + } +?> \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeenregistrer.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeenregistrer.php new file mode 100644 index 0000000..7561f7d --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeenregistrer.php @@ -0,0 +1,37 @@ +requete->getParametre("codeProduit"); + $libelleCollege = $this->requete->getParametre("libelleCollege"); + $nbAdherent = $this->requete->getParametreFormulaire("nbAdherent","numerique"); + $nbAyantdroit = $this->requete->getParametreFormulaire("nbAyantdroit","numerique"); + $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); + $surprimeAnt = $this->requete->getParametreFormulaire("surprimeAnt","numerique"); + $rachatTm = $this->requete->getParametre("rachatTm"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxRachatTm = $this->requete->getParametreFormulaire("tauxRachatTm","numerique"); + $tauxPrimeRachatTm = $this->requete->getParametreFormulaire("tauxPrimeRachatTm","numerique"); + $cplFuneraire = $this->requete->getParametreFormulaire("cplFuneraire","numerique"); + $fraisCarte = $this->requete->getParametreFormulaire("fraisCarte","numerique"); + $imposerPlafond = $this->requete->getParametreFormulaire("imposerPlafond"); + + $tauxPrimeFraisFuneraire = $this->requete->getParametreFormulaire("tauxPrimeFraisFuneraire","numerique"); + $delaiCarenceCollege = $this->requete->getParametreFormulaire("delaiCarenceCollege","numerique"); + + $plafondAdherent = $this->requete->getParametreFormulaire("plafondAdherent","numerique"); + $plafondBeneficiaire = $this->requete->getParametreFormulaire("plafondBeneficiaire","numerique"); + + $this->college_temp->recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $tauxPrimeFraisFuneraire); + + if($this->requete->existeParametre("btn_recap")) + { + $this->rediriger("Modifiercollege"); + } + else + { + $this->college_temp->modifiercollege($idCollegeTemp, $idCollege); + $this->rediriger("Collegepolice"); + } +?> diff --git a/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeindex.php b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeindex.php new file mode 100644 index 0000000..dcc4833 --- /dev/null +++ b/Societes/radiant/Tarifs/Controleur_2024_10_31/Modifiercollegeindex.php @@ -0,0 +1,27 @@ +requete->existeParametre("id")) + { + $_SESSION['idCollege']=$this->requete->getParametre("id"); + $user = $_SESSION['login']; + $idCollege = $_SESSION['idCollege']; + + $idCollegeTemp = $this->college_temp->initModifCollege($idCollege, $user); + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + $this->rediriger("Modifiercollege"); + } + else + { + $idCollege = $_SESSION['idCollege']; + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $collegeTemp = $this->college_temp->getCollegeTemp($idCollegeTemp); + $garantiesbase = $this->college_temp->getGarBaseCollege($idCollegeTemp); + $garoptionnelles = $this->college_temp->getGarOptCollege($idCollegeTemp); + $garoptacquises = $this->college_temp->getGarOptCollegeAcq($idCollegeTemp); + + $this->genererVue(array('collegeTemp' => $collegeTemp, 'produit' => $this->produit, + 'garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, + 'garoptacquises' => $garoptacquises, 'rachattm' => $this->rachattm, + 'ouinonimposerplafond' => $this->ouinonimposerplafond)); + } +?> diff --git a/Societes/radiant/Tarifs/Img/logo_carte.png b/Societes/radiant/Tarifs/Img/logo_carte.png new file mode 100644 index 0000000000000000000000000000000000000000..8dc28e13ca2cb88828982f057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?CLptt9{D-9M(19_&}@o~_xTG|Ax7h@C)V3tU) z;+omj<~_`yH6dq|Mv1UkbxK9+s{}vV-&WDLa@t?7)qWTo^Np~ylwlo>pyd1o1BOEs z7ABtH8#kDX{V>y;LXvyLj1?{z|0HqB2Fdpg;5$b zn}HD6OtJ)-ZSawSxAov^kPV#%Ix}G|8WfB!+wfZ1Z$t-}?qOS*zE1>}r5TcsemV+g z+BGb0HCkdmxgmf4*191A9$i^lD{!2@;;`+ZEA>)@Fz*fn1~782u*AuF_cIr$Y( z{`kf2|Es;E!~;Iu%O09V!Pa;Fp(zzBI7wZ1Dq0rp3Woy-g+`0e-^Ggl>Z1knVQ(=K zi>0QJ7_sG~wzVu>6FVumqVFJXk(mK&nYi!=1yCIDU)TSA#1rO&>vC0m9A-GDZJt`` z39y-5Q&Y`cr3woj=Y zFfJA>H3dJ_-zg{mISV-8f#zrb?{5$Ox;LwTlEeIuvtL#z13}S$Yoj#4WdB>!xcZ-e o@Bc6S-&4f{{l82_heXUN1J*~-W(uwGy8yPPn%;f1ifzb$0f)cZp8x;= literal 0 HcmV?d00001 diff --git a/Societes/radiant/Tarifs/Modele/College_temp.php b/Societes/radiant/Tarifs/Modele/College_temp.php new file mode 100644 index 0000000..7af2cbb --- /dev/null +++ b/Societes/radiant/Tarifs/Modele/College_temp.php @@ -0,0 +1,682 @@ +executerRequete($sql, array($idCollegeTemp, $codeGarantie)); + } + + public function getCollegeTemp($idCollegeTemp) + { + $sql = 'call sp_afficher_college_temp(?)'; + + $collegeTemp = $this->executerRequete($sql, array($idCollegeTemp)); + + return $collegeTemp->fetch(); + } + + public function getCollegeTempPolice($idPolice, $user) + { + $sql = 'select * from college_temp where (idPolice=?) and (user=?)'; + + $collegeTemp = $this->executerRequete($sql, array($idPolice, $user)); + return $collegeTemp->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getCollegeTempPoliceRen($idPolice, $user) + { + $sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege'; + + $collegeTemp = $this->executerRequete($sql, array($idPolice, $user)); + return $collegeTemp->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarCollege($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarAddCollege($idCollegeTemp) + { + $sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A + join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie) + where (A.idCollegeTemp=?) order by A.ordre'; + + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarBaseCollege($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarOptCollege($idCollegeTemp) + { + $sql = 'CALL sp_get_gar_opt_college(?);'; + + $resultat = $this->executerRequete($sql, array($idCollegeTemp)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarOptCollegeAcq($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getPrestation($idCollegeTemp) + { + $sql = 'select A.*, B.libelle as reseausoin from prestation_temp A + join reseausoins B on (B.codeReseau=A.codeReseau) + where (A.idCollegeTemp=?) order by A.tmBase, A.tm'; + + $prestations = $this->executerRequete($sql, array($idCollegeTemp)); + return $prestations; + } + + public function supprimer($idCollegeTemp) { + $sql = 'DELETE FROM college_temp WHERE (id=?)'; + $this->executerRequete($sql, array($idCollegeTemp)); + + $sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)'; + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function supprimergarantie($idGarantie) { + $sql = 'DELETE FROM garantie_temp WHERE (id=?)'; + $this->executerRequete($sql, array($idGarantie)); + } + + public function initCollege($idPolice, $user) + { + $codeSociete = $_SESSION['codeSociete']; + + if (est_anglophone()) + { + $sql = 'CALL sp_init_college_eng(?, ?, ?);'; + } + else + { + $sql = 'CALL sp_init_college(?, ?, ?);'; + } + + $this->executerRequete($sql, array($idPolice, $codeSociete, $user)); + + $resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + $idCollegeTemp = $ligne['idCollegeTemp']; + + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + return $idCollegeTemp; + } + + + public function initModifCollege($idCollege, $user) + { + $this->viderCollegTemp($user); + + $sql = 'CALL sp_init_modifier_college(?, ?);'; + + $this->executerRequete($sql, array($idCollege, $user)); + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + $idCollegeTemp = $ligne['idCollegeTemp']; + + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + return $idCollegeTemp; + } + + public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille, + $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond, $tauxPrimeFraisFuneraire) + { + $sql = 'call sp_recapituller_college_temp_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + // $sql = 'call sp_recapituller_college_temp_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $tauxPrimeFraisFuneraire)); + } + + public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille, + $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm) + { + $sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)); + } + + public function enregistrer($idCollegeTemp) + { + $sql = 'insert into college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille, + primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt, + taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal, + user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire, + commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, + fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, + tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege) + + select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille, + primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt, + taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal, + user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire, + commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, + fraisCarteBeneficiaire, primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, + tauxPrimeRachatTm, imposerPlafond, tauxPrimeFraisFuneraire, delaiCarenceCollege + from college_temp where id=?'; + + $this->executerRequete($sql, array($idCollegeTemp)); + + $idCollege = $this->dernierId(); + + $this->ajouterGarantieCollege($idCollege, $idCollegeTemp); + + $this->ajouterTableauPrestation($idCollege, $idCollegeTemp); + + $user = $_SESSION['login']; + + $this->viderCollegTemp($user); + + } + + public function modifiercollege($idCollegeTemp, $idCollege) + { + $user = $_SESSION['login']; + $sql = 'call sp_modifier_college(?, ?, ?)'; + $this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user)); + } + + + public function ajouterGarantieCollege($idCollege, $idCollegeTemp) + { + $sql = 'delete from garantiecollege where idCollege=?'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'insert into garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle, + additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication, + tauxPrime, capital) + select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle, + additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication, + tauxPrime, capital + from garantie_temp where idCollegeTemp=?'; + + $this->executerRequete($sql, array($idCollege, $idCollegeTemp)); + } + + public function ajouterTableauPrestation($idCollege, $idCollegeTemp) + { + $sql = 'delete from prestationcollege where idCollege=?'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'insert into prestationcollege ( + codeSociete, + idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + `user`, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm + ) + + select + codeSociete, + ? as idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + `user`, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm + from prestation_temp where idCollegeTemp=?'; + + $this->executerRequete($sql, array($idCollege, $idCollegeTemp)); + } + + public function initGarantieCollege($idCollegeTemp) + { + $sql = 'insert into garantie_temp + ( + codeSociete, + idCollegeTemp, + idPolice, + numeroPolice, + codeGarantie, + garantie, + garantieEng, + optionnelle, + additionnelle, + tauxPlafond, + forfaitPlafond, + user, + plafond, + ordre, + plafondLettre, + champApplication + ) + select + A.codeSociete, + B.id as idCollegeTemp, + B.idPolice, + B.numeroPolice, + A.codeGarantie, + A.libelle as garantie, + A.libelleEng as garantieEng, + A.optionnelle, + A.additionnelle, + A.tauxPlafond, + A.forfaitPlafond, + B.user, + ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond, + A.ordre, A.plafondLettre, + A.champApplication + from garantie A + join college_temp B on (B.codeSociete=A.codeSociete) + Where (B.id=?) and optionnelle!="1"'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function initPrestationCollege($idCollegeTemp) + { + $user = $_SESSION['login']; + $codeProduitBase = $_SESSION['codeProduitBase']; + + $sql = 'call sp_init_prestation_college(?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user)); + } + + public function initModifGarantieCollege($idCollegeTemp) + { + $sql = 'insert into garantie_temp + ( + codeSociete, + idCollege, + idCollegeTemp, + idPolice, + numeroPolice, + codeGarantie, + garantie, + garantieEng, + optionnelle, + additionnelle, + tauxPlafond, + forfaitPlafond, + primeOption, + user, + plafond, + ordre, + plafondLettre, + primeFamille, + champApplication + ) + select + A.codeSociete, + A.idCollege, + B.id as idCollegeTemp, + B.idPolice, + B.numeroPolice, + A.codeGarantie, + A.garantie, + A.garantieEng, + A.optionnelle, + A.additionnelle, + A.tauxPlafond, + A.forfaitPlafond, + A.primeOption, + B.user, + A.plafond, + A.ordre, A.plafondLettre, + A.primeFamille, + A.champApplication + from garantiecollege A + join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege) + Where (B.id=?)'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function initModifPrestation($idCollegeTemp) + { + $sql = 'insert into prestation_temp ( + codeSociete, + idCollegeTemp, + idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + user, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm, + tauxPrimeRachatTm + ) + select + A.codeSociete, + B.id as idCollegeTemp, + B.idCollege, + B.idPolice, + B.numeroPolice, + A.codeProduit, + A.codeReseau, + A.tm, + B.user, + now() as dateSysteme, + A.tmBase, + B.rachatTm, + B.tauxRachatTm, + B.tauxPrimeRachatTm + from prestationcollege A + join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege) + Where (B.id=?)'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function majtauxplafond($idGarantie, $tauxPlafond) + { + $sql = 'update garantie_temp set tauxPlafond=? where (id=?)'; + $this->executerRequete($sql, array($tauxPlafond, $idGarantie)); + + $sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)'; + $this->executerRequete($sql, array($idGarantie)); + } + + public function imposerplafond($idGarantie, $plafond) + { + $sql = 'update garantie_temp set plafond=? where (id=?)'; + $this->executerRequete($sql, array($plafond, $idGarantie)); + } + + public function majtm($idPrestation, $tm) + { + $sql = 'update prestation_temp set tm=? where (id=?)'; + $this->executerRequete($sql, array($tm, $idPrestation)); + } + + public function majtmprestatairenplus($idPrestation, $tm) + { + $sql = 'update prestationcollegeplus set tm=? where (id=?)'; + $this->executerRequete($sql, array($tm, $idPrestation)); + } + + public function retirerprestatairenplus($idPrestation) + { + $sql = 'delete from prestationcollegeplus where (id=?)'; + $this->executerRequete($sql, array($idPrestation)); + } + + public function ajouterunprestataireenplus($codePrestataire) + { + $idCollege = $_SESSION['idCollege']; + $user = $_SESSION['login']; + + $sql = 'call sp_ajouterprestataireenplus(?, ?, ?)'; + $this->executerRequete($sql, array($idCollege, $codePrestataire, $user)); + } + + public function ajouterunprestataireenmoins($codePrestataire) + { + $idCollege = $_SESSION['idCollege']; + $user = $_SESSION['login']; + + $sql = 'call sp_ajouterprestataireenmoins(?, ?, ?)'; + $this->executerRequete($sql, array($idCollege, $codePrestataire, $user)); + } + + public function retirerprestatairenmoins($idPrestation) + { + $sql = 'delete from prestationcollegemoins where (id=?)'; + $this->executerRequete($sql, array($idPrestation)); + } + + // ajouterunprestatairetm + public function ajouterunprestatairetm($codePrestataire) + { + $idCollege = $_SESSION['idCollege']; + $user = $_SESSION['login']; + + $sql = 'call sp_ajouterprestatairetm(?, ?, ?)'; + $this->executerRequete($sql, array($idCollege, $codePrestataire, $user)); + } + + public function retirerprestatairetm($idPrestation) + { + $sql = 'delete from prestationcollegetm where (id=?)'; + $this->executerRequete($sql, array($idPrestation)); + } + + public function majtmprestatairetm($idPrestation, $tm) + { + $sql = 'update prestationcollegetm set tm=? where (id=?)'; + $this->executerRequete($sql, array($tm, $idPrestation)); + } + + public function majPrimeOpt($idGarantie, $primeOption) + { + $sql = 'call sp_maj_prime_opt(?, ?)'; + + $this->executerRequete($sql, array($idGarantie, $primeOption)); + } + + public function majPlafondOpt($idGarantie, $plafondOption) + { + $sql = 'call sp_maj_plafond_opt(?, ?)'; + + $this->executerRequete($sql, array($idGarantie, $plafondOption)); + } + + public function majlibgar($idGarantie, $libellegarantie) + { + $sql = 'update garantie_temp set garantie=? where (id=?)'; + $this->executerRequete($sql, array($libellegarantie, $idGarantie)); + } + + public function viderCollegTemp($user) + { + $sql = 'DELETE FROM college_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + + $sql = 'DELETE FROM garantie_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + + $sql = 'DELETE FROM prestation_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + } + + public function init_changement_college($idAdherent) + { + $user = $_SESSION['login']; + $sql = 'call sp_init_changement_college(?, ?)'; + + $college_temp = $this->executerRequete($sql, array($idAdherent, $user)); + return $college_temp->fetch(); + } + + public function changer_college_temp($idAdherent, $idCollege) + { + $user = $_SESSION['login']; + $sql = 'call sp_changer_college_temp(?, ?, ?)'; + + $college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user)); + return $college_temp->fetch(); + } + + public function changer_college($idAdherent) + { + $user = $_SESSION['login']; + $sql = 'call sp_changer_college(?, ?)'; + $this->executerRequete($sql, array($idAdherent, $user)); + } + + public function getCollegesPolice() + { + $user = $_SESSION['login']; + $sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege'; + $college = $this->executerRequete($sql, array($user)); + return $college; + } + + public function getTotaldcollege($idPolice) { + $user = $_SESSION['login']; + $sql = 'call sp_totalcollege_temp(?, ?)'; + $totalcollege = $this->executerRequete($sql, array($idPolice, $user)); + return $totalcollege->fetch(PDO::FETCH_ASSOC); + } + + public function selectioncollegetemp($idCollegeTemp, $choix) { + $sql = 'update college_temp set choix=? WHERE (id=?)'; + $this->executerRequete($sql, array($choix, $idCollegeTemp)); + } + + public function majplafondadd($idGarantie, $plafond) + { + $sql = 'update garantieaddition_temp set plafond=? where (id=?)'; + $this->executerRequete($sql, array($plafond, $idGarantie)); + } + + public function majprimeadd($idGarantie, $primeOption) + { + $sql = 'update garantieaddition_temp set primeOption=? where (id=?)'; + $this->executerRequete($sql, array($primeOption, $idGarantie)); + } + + public function recapituler_maj_limite_college($idCollegeTemp) + { + $user = $_SESSION['login']; + $sql = 'call sp_recapituller_maj_limite_college(?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $user)); + } + + public function modifierlimitecollegetemp($idCollegeTemp) + { + $user = $_SESSION['login']; + $sql = 'call sp_modifier_limite_college_temp(?)'; + $this->executerRequete($sql, array($idCollegeTemp, $user)); + } + + public function getCollegepoliceId($idCollege) { + $sql = 'SELECT A.id AS idCollege, A.*, B.libelle as produit + from college A + join produit B on (B.codeSociete=A.codeSociete) AND (B.codeProduit=A.codeProduit) + where A.id=?'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetch(); + } + + public function getprestatairehorsreseau($idCollege) { + $sql = 'call sp_getprestatairehorsreseau(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + public function getprestataireenplus($idCollege) { + $sql = 'call sp_getprestataireenplus(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + // Prestataires en moins + public function getprestatairereseau($idCollege) { + $sql = 'call sp_getprestatairereseau(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + public function getprestataireenmoins($idCollege) { + $sql = 'call sp_getprestataireenmoins(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + public function getListeCollege($idPolice) { + $sql = 'SELECT id as code, CONCAT(codeProduit, " : ", libelleCollege) as libelle FROM college + where (idPolice=?) order by 2'; + $liste = $this->executerRequete($sql, array($idPolice)); + return $liste; + // return $liste->fetch(PDO::FETCH_ASSOC); + } + + // Prestataires dérogation TM + public function getprestatairereseautm($idCollege) { + $sql = 'call sp_getprestatairereseau_tm(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + public function getprestatairetm($idCollege) { + $sql = 'call sp_getprestataire_tm(?);'; + + $college = $this->executerRequete($sql, array($idCollege)); + return $college->fetchAll(PDO::FETCH_ASSOC); + } + + + public function majchampapplicationplafond($idGarantie, $choix) + { + $sql = 'update garantie_temp set champApplication=? where (id=?)'; + $this->executerRequete($sql, array($choix, $idGarantie)); + } + + public function changecategorie($codeProduit) + { + $codeSociete = $_SESSION['codeSociete']; + // $user = $_SESSION['login']; + $idCollegeTemp = $_SESSION['idCollegeTemp']; + + $sql = 'CALL sp_modifier_categorie_college_temp(?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($idCollegeTemp, $codeSociete, $codeProduit)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + + public function maj_libelle_college($idCollegeTemp, $nouvLibelleCollege) + { + $sql = 'CALL sp_maj_libelle_college(?, ?);'; + + $this->executerRequete($sql, array($idCollegeTemp, $nouvLibelleCollege)); + } + +} diff --git a/Societes/radiant/Tarifs/Modele/College_temp_d.php b/Societes/radiant/Tarifs/Modele/College_temp_d.php new file mode 100644 index 0000000..5497021 --- /dev/null +++ b/Societes/radiant/Tarifs/Modele/College_temp_d.php @@ -0,0 +1,528 @@ +executerRequete($sql, array($idCollegeTemp, $codeGarantie)); + } + + public function getCollegeTemp($idCollegeTemp) + { + $sql = 'call sp_afficher_college_temp(?)'; + + $collegeTemp = $this->executerRequete($sql, array($idCollegeTemp)); + + return $collegeTemp->fetch(); + } + + public function getCollegeTempPolice($idPolice, $user) + { + $sql = 'select * from college_temp where (idPolice=?) and (user=?)'; + + $collegeTemp = $this->executerRequete($sql, array($idPolice, $user)); + return $collegeTemp->fetchAll(PDO::FETCH_ASSOC); + } + + + public function getCollegeTempPoliceRen($idPolice, $user) + { + $sql = 'select * from college_ren_temp where (idPolice=?) and (user=?) order by codeProduit, libelleCollege'; + + $collegeTemp = $this->executerRequete($sql, array($idPolice, $user)); + return $collegeTemp->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarCollege($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarAddCollege($idCollegeTemp) + { + $sql = 'select A.*, B.plafond as plafondOld, B.plafond+A.plafond as plafondNew from garantieaddition_temp A + join garantie_temp B on (B.user=A.user) and (B.idCollegeTemp=A.idCollegeTemp) and (B.codeGarantie=A.codeGarantie) + where (A.idCollegeTemp=?) order by A.ordre'; + + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarBaseCollege($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle!="1") order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getGarOptCollege($idCollegeTemp) + { + $sql = 'CALL sp_get_gar_opt_college(?);'; + + $resultat = $this->executerRequete($sql, array($idCollegeTemp)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarOptCollegeAcq($idCollegeTemp) + { + $sql = 'select * from garantie_temp where (idCollegeTemp=?) and (optionnelle="1") order by ordre'; + $garanties = $this->executerRequete($sql, array($idCollegeTemp)); + return $garanties; + } + + public function getPrestation($idCollegeTemp) + { + $sql = 'select A.*, B.libelle as reseausoin from prestation_temp A + join reseausoins B on (B.codeReseau=A.codeReseau) + where (A.idCollegeTemp=?) order by A.tmBase, A.tm'; + + $prestations = $this->executerRequete($sql, array($idCollegeTemp)); + return $prestations; + } + + public function supprimer($idCollegeTemp) { + $sql = 'DELETE FROM college_temp WHERE (id=?)'; + $this->executerRequete($sql, array($idCollegeTemp)); + + $sql = 'DELETE FROM garantie_temp WHERE (idCollegeTemp=?)'; + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function supprimergarantie($idGarantie) { + $sql = 'DELETE FROM garantie_temp WHERE (id=?)'; + $this->executerRequete($sql, array($idGarantie)); + } + + public function initCollege($idPolice, $user) + { + $codeSociete = $_SESSION['codeSociete']; + $numeroOptionTarif = $_SESSION['numeroOptionTarif']; + + if (est_anglophone()) + { + $sql = 'CALL sp_init_college_d_eng(?, ?, ?, ?);'; + } + else + { + $sql = 'CALL sp_init_college_d(?, ?, ?, ?);'; + } + + $resultat = $this->executerRequete($sql, array($idPolice, $codeSociete, $numeroOptionTarif, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + $idCollegeTemp = $ligne['idCollegeTemp']; + + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + return $idCollegeTemp; + } + + public function initModifCollege($idCollege, $user) + { + $sql = 'CALL sp_init_modifier_college_d(?, ?);'; + + $this->executerRequete($sql, array($idCollege, $user)); + + $resultat = $this->executerRequete($sql, array($idCollege, $user)); + + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + $idCollegeTemp = $ligne['idCollegeTemp']; + + $_SESSION['idCollegeTemp'] = $idCollegeTemp; + + return $idCollegeTemp; + + } + + public function recapituler($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille, + $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, $imposerPlafond, + $numeroOptionTarif, $tauxPrimeFraisFuneraire) + { + // $sql = 'call sp_recapituller_college_temp_d_bicor(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + $sql = 'call sp_recapituller_college_temp_d_radiant(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm, $fraisCarte, + $imposerPlafond, $numeroOptionTarif, $tauxPrimeFraisFuneraire)); + } + + public function maj($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, $primeFamille, + $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm) + { + $sql = 'call sp_maj_college_temp(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduit, $libelleCollege, $nbAdherent, $nbAyantdroit, + $primeFamille, $surprimeAnt, $rachatTm, $cplFuneraire, $tauxRachatTm, $tauxPrimeRachatTm)); + } + + public function enregistrer($idCollegeTemp) + { + $sql = 'insert into d_college (codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille, + primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt, + taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal, + user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire, + commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire, + primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond, + idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege) + + select codeSociete, idPolice, numeroPolice, codeProduit, libelleCollege, nbAdherent, nbAyantdroit, primeFamille, + primeBeneficiaire, surprimeOption, surprimeTm, surprimeAnt, commission, commissionAutre, primeNette, primeNetteStat, primeHt, + taxe, fraisCarte, primeTtc, primeTtcAdherent, rachatTm, cplFuneraire, primeCplFuneraire, primeTtcTotal, + user, deduireComm, surprimeOptionBeneficiaire, surprimeTmBeneficiaire, surprimeAntBeneficiaire, commissionBeneficiaire, + commissionAutreBeneficiaire, primeNetteBeneficiaire, primeNetteStatBeneficiaire, primeHtBeneficiaire, taxeBeneficiaire, fraisCarteBeneficiaire, + primeTtcBeneficiaire, cplFuneraireBeneficiaire, primeCplFuneraireBeneficiaire, tauxRachatTm, tauxPrimeRachatTm, imposerPlafond, + idOptionTarif, numeroOptionTarif, tauxPrimeFraisFuneraire, delaiCarenceCollege + from college_temp where id=?'; + + $this->executerRequete($sql, array($idCollegeTemp)); + + $idCollege = $this->dernierId(); + + $this->ajouterGarantieCollege($idCollege, $idCollegeTemp); + + $this->ajouterTableauPrestation($idCollege, $idCollegeTemp); + + $user = $_SESSION['login']; + + $this->viderCollegTemp($user); + } + + public function modifiercollege($idCollegeTemp, $idCollege) + { + $user = $_SESSION['login']; + $sql = 'call sp_modifier_college_d(?, ?, ?)'; + $this->executerRequete($sql, array($idCollegeTemp, $idCollege, $user)); + } + + public function ajouterGarantieCollege($idCollege, $idCollegeTemp) + { + $sql = 'delete from d_garantiecollege where idCollege=?'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'insert into d_garantiecollege (codeSociete, idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle, + additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication, + tauxPrime, capital) + + select codeSociete, ? as idCollege, idPolice, numeroPolice, codeGarantie, garantie, garantieEng, optionnelle, + additionnelle, tauxPlafond, forfaitPlafond, primeOption, user, plafond, plafondLettre, primeFamille, ordre, champApplication, + tauxPrime, capital + from garantie_temp where idCollegeTemp=?'; + + $this->executerRequete($sql, array($idCollege, $idCollegeTemp)); + } + + public function ajouterTableauPrestation($idCollege, $idCollegeTemp) + { + $sql = 'delete from d_prestationcollege where idCollege=?'; + $this->executerRequete($sql, array($idCollege)); + + $sql = 'insert into d_prestationcollege ( + codeSociete, + idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + `user`, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm + ) + + select + codeSociete, + ? as idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + `user`, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm + from prestation_temp where idCollegeTemp=?'; + + $this->executerRequete($sql, array($idCollege, $idCollegeTemp)); + } + + public function initGarantieCollege($idCollegeTemp) + { + $sql = 'insert into garantie_temp + ( + codeSociete, + idCollegeTemp, + idPolice, + numeroPolice, + codeGarantie, + garantie, + garantieEng, + optionnelle, + additionnelle, + tauxPlafond, + forfaitPlafond, + user, + plafond, + ordre, + plafondLettre, + champApplication + ) + select + A.codeSociete, + B.id as idCollegeTemp, + B.idPolice, + B.numeroPolice, + A.codeGarantie, + A.libelle as garantie, + A.libelleEng as garantieEng, + A.optionnelle, + A.additionnelle, + A.tauxPlafond, + A.forfaitPlafond, + B.user, + ROUND((B.primeFamille*A.tauxPlafond),0)+A.forfaitPlafond as plafond, + A.ordre, A.plafondLettre, + A.champApplication + from garantie A + join college_temp B on (B.codeSociete=A.codeSociete) + Where (B.id=?) and optionnelle!="1"'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function initPrestationCollege($idCollegeTemp) + { + $user = $_SESSION['login']; + $codeProduitBase = $_SESSION['codeProduitBase']; + + $sql = 'call sp_init_prestation_college(?, ?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $codeProduitBase, $user)); + } + + public function initModifGarantieCollege($idCollegeTemp) + { + $sql = 'insert into garantie_temp + ( + codeSociete, + idCollege, + idCollegeTemp, + idPolice, + numeroPolice, + codeGarantie, + garantie, + garantieEng, + optionnelle, + additionnelle, + tauxPlafond, + forfaitPlafond, + primeOption, + user, + plafond, + ordre, + plafondLettre, + primeFamille, + champApplication + ) + select + A.codeSociete, + A.idCollege, + B.id as idCollegeTemp, + B.idPolice, + B.numeroPolice, + A.codeGarantie, + A.garantie, + A.garantieEng, + A.optionnelle, + A.additionnelle, + A.tauxPlafond, + A.forfaitPlafond, + A.primeOption, + B.user, + A.plafond, + A.ordre, A.plafondLettre, + A.primeFamille, + A.champApplication + from d_garantiecollege A + join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege) + Where (B.id=?)'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function initModifPrestation($idCollegeTemp) + { + $sql = 'insert into prestation_temp ( + codeSociete, + idCollegeTemp, + idCollege, + idPolice, + numeroPolice, + codeProduit, + codeReseau, + tm, + user, + dateSysteme, + tmBase, + rachatTm, + tauxRachatTm, + tauxPrimeRachatTm + ) + select + A.codeSociete, + B.id as idCollegeTemp, + B.idCollege, + B.idPolice, + B.numeroPolice, + A.codeProduit, + A.codeReseau, + A.tm, + B.user, + now() as dateSysteme, + A.tmBase, + B.rachatTm, + B.tauxRachatTm, + B.tauxPrimeRachatTm + from d_prestationcollege A + join college_temp B on (B.codeSociete=A.codeSociete) and (B.idCollege=A.idCollege) + Where (B.id=?)'; + + $this->executerRequete($sql, array($idCollegeTemp)); + } + + public function majtauxplafond($idGarantie, $tauxPlafond) + { + $sql = 'update garantie_temp set tauxPlafond=? where (id=?)'; + $this->executerRequete($sql, array($tauxPlafond, $idGarantie)); + + $sql = 'update garantie_temp set plafond= ROUND((primeFamille*tauxPlafond),0)+forfaitPlafond where (id=?)'; + $this->executerRequete($sql, array($idGarantie)); + } + + public function imposerplafond($idGarantie, $plafond) + { + $sql = 'update garantie_temp set plafond=? where (id=?)'; + $this->executerRequete($sql, array($plafond, $idGarantie)); + } + + public function majtm($idPrestation, $tm) + { + $sql = 'update prestation_temp set tm=? where (id=?)'; + $this->executerRequete($sql, array($tm, $idPrestation)); + } + + public function majPrimeOpt($idGarantie, $primeOption) + { + $sql = 'call sp_maj_prime_opt(?, ?)'; + + $this->executerRequete($sql, array($idGarantie, $primeOption)); + } + + public function majPlafondOpt($idGarantie, $plafondOption) + { + $sql = 'call sp_maj_plafond_opt(?, ?)'; + + $this->executerRequete($sql, array($idGarantie, $plafondOption)); + } + + public function majlibgar($idGarantie, $libellegarantie) + { + $sql = 'update garantie_temp set garantie=? where (id=?)'; + $this->executerRequete($sql, array($libellegarantie, $idGarantie)); + } + + public function viderCollegTemp($user) + { + $sql = 'DELETE FROM college_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + + $sql = 'DELETE FROM garantie_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + + $sql = 'DELETE FROM prestation_temp WHERE (user=?)'; + $this->executerRequete($sql, array($user)); + } + + public function changer_college_temp($idAdherent, $idCollege) + { + $user = $_SESSION['login']; + $sql = 'call sp_changer_college_temp_d(?, ?, ?)'; + + $college_temp = $this->executerRequete($sql, array($idAdherent, $idCollege, $user)); + return $college_temp->fetch(); + } + + public function getCollegesPolice() + { + $user = $_SESSION['login']; + $sql = 'SELECT * FROM college_temp WHERE (user=?) order by libelleCollege'; + $college = $this->executerRequete($sql, array($user)); + return $college; + } + + public function getTotaldcollege($idPolice) { + $user = $_SESSION['login']; + $sql = 'call sp_totalcollege_temp_d(?, ?)'; + $totalcollege = $this->executerRequete($sql, array($idPolice, $user)); + return $totalcollege->fetch(PDO::FETCH_ASSOC); + } + + public function selectioncollegetemp($idCollegeTemp, $choix) { + $sql = 'update college_temp set choix=? WHERE (id=?)'; + $this->executerRequete($sql, array($choix, $idCollegeTemp)); + } + + public function majplafondadd($idGarantie, $plafond) + { + $sql = 'update garantieaddition_temp set plafond=? where (id=?)'; + $this->executerRequete($sql, array($plafond, $idGarantie)); + } + + public function majprimeadd($idGarantie, $primeOption) + { + $sql = 'update garantieaddition_temp set primeOption=? where (id=?)'; + $this->executerRequete($sql, array($primeOption, $idGarantie)); + } + + public function recapituler_maj_limite_college($idCollegeTemp) + { + $user = $_SESSION['login']; + $sql = 'call sp_recapituller_maj_limite_college(?, ?)'; + + $this->executerRequete($sql, array($idCollegeTemp, $user)); + } + + public function modifierlimitecollegetemp($idCollegeTemp) + { + $user = $_SESSION['login']; + $sql = 'call sp_modifier_limite_college_temp(?)'; + $this->executerRequete($sql, array($idCollegeTemp, $user)); + } + + public function getoptionstarif($idPolice) { + $sql = 'SELECT numeroOptionTarif as code, libelleOptionTarif as libelle from d_optionstarif where (idPolice=?) order by 1'; + $liste = $this->executerRequete($sql, array($idPolice)); + // return $liste; + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function nouvelleoptiontarif() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_d_C']; + + $sql = 'call sp_d_nouvelle_option_tarif(?, ?)'; + + $this->executerRequete($sql, array($idPolice, $user)); + } +} diff --git a/Societes/radiant/Tarifs/Modele/Police.php b/Societes/radiant/Tarifs/Modele/Police.php new file mode 100644 index 0000000..2b24813 --- /dev/null +++ b/Societes/radiant/Tarifs/Modele/Police.php @@ -0,0 +1,686 @@ +executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); + return $polices; + } + + public function getPolicesId($id) { + $sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroDevis, + B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement, + D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille, + IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive, A.gestionConfiee + FROM police A + left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat) + left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant) + left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice) + left join rachattm TM on (TM.codeRachatTm=A.rachatTm) + WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id'; + + $polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + return $polices; + } + + public function getPolice($numeroPolice) + { + $sql = 'call sp_getPoliceNo(?, ?);'; + + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice)); + + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucune police ne correspond au numéo '$numeroPolice'"); + } + + public function getPoliceId($id) + { + $sql = 'call sp_getPoliceId(?, ?);'; + + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + + return $police->fetch(PDO::FETCH_ASSOC); + /* + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucune police ne correspond au ie '$id'"); + */ + } + + public function getPoliceIdSimple($id) { + $sql = 'SELECT A.* FROM police A WHERE (A.codeSociete=?) AND (A.id=?)'; + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucune police ne correspond au ie '$id'"); + } + + + public function getTextecp($id) { + $sql = 'select texteCp from police where (id=?)'; + $textecp = $this->executerRequete($sql, array($id)); + return $textecp->fetch(); + } + + public function enregistrertexteCp($texteCp, $idPolice) { + $sql = 'update police set texteCp=? where (id=?)'; + $this->executerRequete($sql, array($texteCp, $idPolice)); + } + + public function getNombrePolices($numeroClient) + { + $sql = 'select count(*) as nbPolices FROM polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); + $ligne = $resultat->fetch(); + return $ligne['nbPolices']; + } + + public function getNombrePolicesId($id) + { + $sql = 'select count(*) as nbPolices FROM police A WHERE (A.codeSociete=?) AND (A.id=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $ligne = $resultat->fetch(); + return $ligne['nbPolices']; + } + + public function getContextePoliceId($id) + { + $sql = 'SELECT + A.idClient, + A.numeroClient, + A.id AS idPolice, + A.numeroPolice, + IFNULL(B.tauxTaxe,"0") AS tauxTaxe, + A.codeEtape, + IFNULL(A.tauxCommission,"0") AS tauxCommission, + IFNULL(A.tauxCommissionAutre,"0") AS tauxCommissionAutre, + IFNULL(A.primeFamille,"0") AS primeFamille, + IFNULL(A.primeBeneficiaire,"0") AS primeBeneficiaire, + rachatTm, + TM.libelle AS rachattm, + garantieArchive, + collegeArchive, + A.codeTypeAvenant, + ADDDATE(A.dateEcheance, +1) AS DateRenouvellement, + A.dateEffet, + A.dateFin, + A.dateEcheance, + dateAvenant, + A.deduireComm, + A.codeEtatPolice, + A.gestionConfiee, + A.codeTypeContrat, + fn_id_entetecontrat_police_en_cours(A.id) AS idEntetecontratPolice, + fn_dernier_avenant_incorporation(A.id) AS dernierIdAvenant, + fn_derniere_date_avenant_incorporation(A.id) AS dernierDateAvenant, + fn_get_college_familiale(A.id) dernierIdCollege + FROM police A + LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat) + left join rachattm TM on (TM.codeRachatTm=A.rachatTm) + WHERE (A.codeSociete=?) AND (A.id=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + + $context = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['idPolice_C'] = $context['idPolice']; + $_SESSION['numeroPolice_C'] = $context['numeroPolice']; + $_SESSION['codeTypeContrat'] = $context['codeTypeContrat']; + $_SESSION['codeEtape_C'] = $context['codeEtape']; + $_SESSION['tauxTaxe_C'] = $context['tauxTaxe']; + $_SESSION['tauxCommission_C'] = $context['tauxCommission']; + $_SESSION['tauxCommissionAutre_C'] = $context['tauxCommissionAutre']; + $_SESSION['deduireComm_C'] = $context['deduireComm']; + $_SESSION['codeTypeAvenant_C'] = $context['codeTypeAvenant']; + $_SESSION['codeEtatPolice_C'] = $context['codeEtatPolice']; + + $_SESSION['dateEffet_C'] = $context['dateEffet']; + $_SESSION['dateFin_C'] = $context['dateFin']; + $_SESSION['dateEcheance_C'] = $context['dateEcheance']; + + $_SESSION['DateRenouvellement_C'] = $context['DateRenouvellement']; + + $_SESSION['dateAvenant_C'] = $context['dateAvenant']; + + $_SESSION['idPoliceAjax'] = $_SESSION['idPolice_C']; + + $_SESSION['primeFamille_C'] = $context['primeFamille']; + $_SESSION['primeBeneficiaire_C'] = $context['primeBeneficiaire']; + + $_SESSION['rachatTm_C'] = $context['rachatTm']; + + // $_SESSION['garantieArchive_C'] = $context['garantieArchive']; + $_SESSION['collegeArchive_C'] = $context['collegeArchive']; + + $_SESSION['idEntetecontratPolice'] = $context['idEntetecontratPolice']; + + $_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant']; + $_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant']; + $_SESSION['dernierIdCollege'] = $context['dernierIdCollege']; + + $_SESSION['idAdherent_C'] = ""; + $_SESSION['numeroAdherent_C'] = ""; + $_SESSION['nomAdherent_C'] = ""; + + $_SESSION['idBeneficiaire_C'] = ""; + $_SESSION['numeroBeneficiaire_C'] = ""; + $_SESSION['nomBeneficiaire_C'] = ""; + $_SESSION['lienPhoto_C'] = ""; + + $_SESSION['beneficiaire_C'] = ""; + $_SESSION['adherent_C'] = ""; + $_SESSION['enVigueur_C'] = ""; + + $_SESSION['decede_C'] = "0"; + $_SESSION['dateDeces_C'] = ""; + $_SESSION['fraisFuneraireDemande_C'] = "0"; + $_SESSION['fraisFunerairePaye_C'] = "0"; + + // nb famille et de dépendants + $sql = 'select + ifnull(sum(case when codeLienParente="A" then "1" else "0" end), "0") as ndAdh, + ifnull(SUM(case when codeLienParente="A" then "0" else "1" end), "0") as ndDep, + ifnull(SUM(case when codeEtatBeneficiaire="V" then "1" else "0" end), "0") as ndActif + from beneficiaire where (codeSociete=?) AND (idPolice=?) and (supprime!="1")'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $effectif = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['ndAdh_C'] = $effectif['ndAdh']; + $_SESSION['ndDep_C'] = $effectif['ndDep']; + $_SESSION['ndActif_C'] = $effectif['ndActif']; + } + + public function getDenierNumeroPolice($annee) + { + $sql = 'select dernierNumeroPolice from numerotationpolice WHERE (codeSociete=? AND annee=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee)); + + if ($resultat->rowCount() == 0) + { + $sql = 'insert into numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)'; + $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0")); + return "1"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['dernierNumeroPolice']+1; + } + } + + public function setDenierNumeroPolice($annee,$dernierNumeroPolice) + { + $sql = 'update numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)'; + $this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee)); + } + + public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat, + $dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, + $codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, + $primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial, + $tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent) + { + + $sql = 'INSERT INTO police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete, + codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant, + codeApporteur, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission, + primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, codeCommercial, + tauxCommissionAutre, speciale, limiteConsommation, tauxRistourne, remplacementAdherent) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat, + $dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, + $codeGestionnaire, $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, + $primeFamille, $primeBeneficiaire, $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $codeCommercial, + $tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent)); + + $dernierId=$this->dernierId(); + + $sql = 'insert into avenant (codeSociete, idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, user, dateSysteme) + select codeSociete, id as idPolice, numeroPolice, codeTypeAvenant, numeroAvenant, dateEffet, dateCre, userCre as `user`, dateSysteme + from police where (id=?)'; + + $this->executerRequete($sql, array($dernierId)); + + $sql = 'call sp_creer_contrat(?, ?)'; + $this->executerRequete($sql, array($dernierId, $userCre)); + + return $dernierId; + + } + + public function modifier($id, $tauxCommission, $primeFamille, $primeBeneficiaire, $codeApporteur, $codeCommercial, + $tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent) + { + $user = $_SESSION['login']; + + $sql = 'call sp_modifier_police(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($id, $tauxCommission, $codeApporteur, $codeCommercial, + $tauxCommissionAutre, $speciale, $limiteConsommation, $tauxRistourne, $remplacementAdherent, $user)); + } + + public function initresiliation($idPolice) + { + $dateAvenant = $_SESSION['dateAvenant_C']; + $motifavenant = $_SESSION['motifavenant_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_init_resiliation(?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant)); + } + + public function initretrait($idPolice) + { + $dateAvenant = $_SESSION['dateAvenant_C']; + $motifavenant = $_SESSION['motifavenant_C']; + $user = $_SESSION['login']; + $idSaisie = $_SESSION['idSaisie']; + /* + $sql = 'call sp_init_retrait(?, ?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant, $idSaisie)); + */ + $sql = 'call sp_init_retrait(?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $motifavenant)); + } + + public function initrerenouvellement($idPolice) + { + $dateAvenant = $_SESSION['dateAvenant_C']; + $dateEcheanceRen = $_SESSION['dateEcheanceRen_C']; + $user = $_SESSION['login']; + + $sql = 'call sp_init_renouvellement(?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $dateAvenant, $user, $dateEcheanceRen)); + } + + public function initLimiteAdditionnelle($idPolice, $dateAvenant) + { + $user = $_SESSION['login']; + + $sql = 'call sp_init_limite_additionnelle(?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $dateAvenant, $user)); + } + + public function getAvenantTemp() { + $user = $_SESSION['login']; + $sql = 'SELECT * FROM avenant_temp WHERE (`user`=?) order by id desc'; + $resultat = $this->executerRequete($sql, array($user)); + return $resultat->fetch(); + } + + public function getEmissionTemp() { + $user = $_SESSION['login']; + $sql = 'SELECT * FROM emission_temp WHERE (`user`=?)'; + $resultat = $this->executerRequete($sql, array($user)); + return $resultat->fetch(); + } + + public function creeravenant($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant) + { + $user = $_SESSION['login']; + $sql = 'call sp_creer_avenant(?, ?, ?, ?, ?)'; + $this->executerRequete($sql, array($idPolice, $codeTypeAvenant, $motifavenant, $dateAvenant, $user)); + } + + public function enregistrerresiliation() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_avenant_resiliation(?, ?)'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function enregistrerretrait() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_avenant_retrait(?, ?)'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function enregistrerrenouvellement() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_avenant_renouvellement(?, ?)'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function getIdPolice($numeroPolice) { + $sql = 'SELECT id FROM police WHERE (codeSociete=?) AND (numeroPolice=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice)); + $ligne = $resultat->fetch(); + return $ligne['id']; + } + + public function existeligne($numeroPolice) { + $sql = 'select id FROM police WHERE (codeSociete=?) and (numeroPolice=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice)); + return ($resultat->rowCount() > 0); + } + + public function formaterNumeroPolice($annee,$numeroPolice) { + $numeroPolice = "00000".$numeroPolice; + $numeroPolice = substr($numeroPolice, -6); + $numeroPolice = $annee.$numeroPolice; + return $numeroPolice; + } + + public function supprimer($idPolice) { + $sql = 'select id from college where (idPolice=?) limit 1'; + $resultat = $this->executerRequete($sql, array($idPolice)); + + if($resultat->rowCount() == 0) + { + $sql = 'DELETE FROM police WHERE (id=?)'; + $this->executerRequete($sql, array($idPolice)); + + $sql = 'DELETE FROM contrat WHERE (idPolice=?)'; + $this->executerRequete($sql, array($idPolice)); + + return true; + } + else + { + return false; + } + } + + public function getExisteQuittance($idPolice) { + $sql = 'select id from emission where (idPolice=?) limit 1'; + $resultat = $this->executerRequete($sql, array($idPolice)); + + if($resultat->rowCount() == 0) + { + return "0"; + } + else + { + return "Q"; + } + } + + public function archivergarantie($id) { + $sql = 'UPDATE police SET garantieArchive="1" where (id=?)'; + $this->executerRequete($sql, array($id)); + } + + public function archivercollege($id) { + $sql = 'UPDATE police SET collegeArchive="1" where (id=?)'; + $this->executerRequete($sql, array($id)); + } + + public function getContexteAjaxPolice($id) + { + $sql = 'SELECT A.id as idPolice FROM police A WHERE (A.id=?)'; + $resultat = $this->executerRequete($sql, array($id)); + $context = $resultat->fetch(); + $_SESSION['idPoliceAjax'] = $context['idPolice']; + $_SESSION['idPolice_C'] = $_SESSION['idPoliceAjax']; + } + + public function getEnteteCP($idPolice) + { + $sql = 'call sp_entete_cp(?);'; + + $entete = $this->executerRequete($sql, array($idPolice)); + return $entete->fetch(PDO::FETCH_ASSOC); + } + + public function getCollegesCP($idPolice) + { + $sql = 'call sp_collesges_police(?);'; + + $colleges = $this->executerRequete($sql, array($idPolice)); + return $colleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarantiesCollegesCP($idPolice) + { + $sql = 'call sp_garanties_colleges_police(?);'; + + $garantiescolleges = $this->executerRequete($sql, array($idPolice)); + return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function gettableauPrestationsCP($idPolice) + { + $sql = 'call sp_tableau_prestation_police(?);'; + + $colleges = $this->executerRequete($sql, array($idPolice)); + return $colleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function getRapportSpPolice($idPolice, $dateReference) + { + $user = $_SESSION['login']; + + $sql = 'call sp_rapport_sp_police(?, ?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user)); + return $sppolice->fetch(PDO::FETCH_ASSOC); + } + + public function getConsommationPolice($idPolice, $dateReference) + { + $sql = 'call sp_consommation_police(?, ?);'; + + $consommationpolice = $this->executerRequete($sql, array($idPolice, $dateReference)); + return $consommationpolice->fetch(PDO::FETCH_ASSOC); + } + + public function getExisteConsommationPolice($idPolice) + { + $dj = date("Y-m-d"); + $sql = 'call sp_consommation_police(?, ?);'; + + $resultat = $this->executerRequete($sql, array($idPolice, $dj)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + $consommationpolice = $ligne['consommation']; + + if($consommationpolice>"0") + { + return "C"; + } + else + { + return "0"; + } + } + + public function gettableauAjustementCP() + { + $sql = 'call sp_tableau_ajustement();'; + + $tableauajustementcps = $this->executerRequete($sql); + return $tableauajustementcps->fetchAll(PDO::FETCH_ASSOC); + } + + public function getClientsearchPol($numeroPolice) + { + $sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (numeroPolice=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice)); + + if ($resultat->rowCount() == 0) + { + return "0"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['idPolice']; + } + } + + public function getClientsearchPolId($idPolice) + { + $sql = 'select id as idPolice from police WHERE (codeSociete=?) AND (id=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$idPolice)); + + if ($resultat->rowCount() == 0) + { + return "0"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['idPolice']; + } + } + + public function recapituler_maj_limite_police() + { + $user = $_SESSION['login']; + $sql = 'call sp_recapituller_maj_limite_police(?)'; + + $this->executerRequete($sql, array($user)); + } + + public function enregistrerlimiteadditionnelle() + { + $user = $_SESSION['login']; + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_avenant_limite_additionnelle(?, ?)'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function getContexteClientId($idPolice) { + $sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient, A.codeLangueClient + FROM clients A join police B on (B.idClient=A.id) WHERE (B.id=?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $context = $resultat->fetch(); + $_SESSION['idClient_C'] = $context['idClient']; + $_SESSION['numeroClient_C'] = $context['numeroClient']; + $_SESSION['nomClient_C'] = $context['nomClient']; + $_SESSION['idClientAjax'] = $context['idClient']; + $_SESSION['codeLangueClient'] = $context['codeLangueClient']; + } + + // Polices non renouvellées + + public function etatpolnonren() + { + $dj = date("Y-m-d"); + + $sql = 'call sp_polices_non_renouvellees(?);'; + + $resultat = $this->executerRequete($sql, array($dj)); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + } + + public function activergc($idPolice) + { + $user = $_SESSION['login']; + $sql = 'call sp_activergc(?, ?);'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function desactivergc($idPolice) + { + $user = $_SESSION['login']; + $sql = 'call sp_desactivergc(?, ?);'; + $this->executerRequete($sql, array($idPolice, $user)); + } + + public function getRapportSpPoliceEntete($idPolice, $dateReference) + { + $sql = 'call sp_rapport_sp_police_entete(?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference)); + + return $sppolice->fetch(PDO::FETCH_ASSOC); + } + + public function getRapportSpPolicePol($idPolice, $dateReference) + { + $user = $_SESSION['login']; + + $sql = 'call sp_rapport_sp_police_pol(?, ?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user)); + + return $sppolice->fetch(PDO::FETCH_ASSOC); + } + + public function getRapportSpPoliceCat($idPolice, $dateReference) + { + $user = $_SESSION['login']; + + $sql = 'call sp_rapport_sp_police_cat(?, ?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user)); + + return $sppolice->fetchAll(PDO::FETCH_ASSOC); + } + + public function getRapportSpPoliceCol($idPolice, $dateReference) + { + $user = $_SESSION['login']; + + $sql = 'call sp_rapport_sp_police_col(?, ?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference, $user)); + + return $sppolice->fetchAll(PDO::FETCH_ASSOC); + } + + public function getsyntheseconsopolice() + { + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'call sp_synthese_consommation_police(?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice)); + + return $sppolice->fetchAll(PDO::FETCH_ASSOC); + } + + public function getderniereavenantincorporation($idPolice) + { + $sql = 'call sp_get_derniere_avenant_incorporation(?);'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $context = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['dernierIdAvenant'] = $context['dernierIdAvenant']; + $_SESSION['dernierDateAvenant'] = $context['dernierDateAvenant']; + } + + public function getcollegefamiliale($idPolice) + { + $sql = 'call sp_get_college_familiale(?);'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $context = $resultat->fetch(PDO::FETCH_ASSOC); + + $_SESSION['dernierIdCollege'] = $context['dernierIdCollege']; + + return $context; + } +} \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Modele/Police_d.php b/Societes/radiant/Tarifs/Modele/Police_d.php new file mode 100644 index 0000000..144b153 --- /dev/null +++ b/Societes/radiant/Tarifs/Modele/Police_d.php @@ -0,0 +1,348 @@ +executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); + return $polices; + } + + public function getPolicesId($id) { + $sql = 'SELECT A.id, A.codeSociete, A.idClient, A.numeroClient, numeroPolice, numeroPoliceSociete, numeroContrat, + B.libelle As typeAvenant, dateEffet, dateFin, dateEcheance, numeroAvenant, dateAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement, + D.libelle as etatPolice, A.codeFractionnement, T.libelle As typeContrat, IFNULL(A.primeFamille,"0") as primeFamille, + IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, rachatTm, TM.libelle as rachattm, garantieArchive, collegeArchive + FROM d_police A + left join typecontrat T on (T.codeTypeContrat=A.codeTypeContrat) + left join typeavenant B on (B.codeTypeAvenant=A.codeTypeAvenant) + left join etatpolice D on (D.codeEtatPolice=A.codeEtatPolice) + left join rachattm TM on (TM.codeRachatTm=A.rachatTm) + WHERE (A.codeSociete=?) AND (A.idClient=?) order by A.id'; + + $polices = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + return $polices; + } + + public function getPolice($numeroPolice) + { + $sql = 'call sp_d_getPoliceNo(?, ?);'; + + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice)); + + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucun devis ne correspond au numéo '$numeroPolice'"); + } + + public function getPoliceId($id) + { + $sql = 'call sp_d_getPoliceId(?, ?);'; + + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucun devis ne correspond au ie '$id'"); + } + + public function getPoliceIdSimple($id) { + $sql = 'SELECT A.* FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)'; + $police = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + if ($police->rowCount() > 0) + return $police->fetch(); + else + throw new Exception("Aucun devis ne correspond au ie '$id'"); + } + + public function getNombrePolices($numeroClient) + { + $sql = 'select count(*) as nbPolices FROM d_polices A WHERE (A.codeSociete=?) AND (A.numeroClient=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroClient)); + $ligne = $resultat->fetch(); + return $ligne['nbPolices']; + } + + public function getNombrePolicesId($id) + { + $sql = 'select count(*) as nbPolices FROM d_police A WHERE (A.codeSociete=?) AND (A.id=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $ligne = $resultat->fetch(); + return $ligne['nbPolices']; + } + + public function getContextePoliceId($id) { + $sql = 'SELECT A.idClient, A.numeroClient, A.id AS idPolice, A.numeroPolice, A.transforme, A.numeroContrat, + IFNULL(B.tauxTaxe,"0") AS tauxTaxe, A.codeEtape, IFNULL(A.tauxCommission,"0") AS tauxCommission, + IFNULL(A.primeFamille,"0") as primeFamille, IFNULL(A.primeBeneficiaire,"0") as primeBeneficiaire, rachatTm, + TM.libelle as rachattm, garantieArchive, collegeArchive, A.codeTypeAvenant, ADDDATE(A.dateEcheance, +1) as DateRenouvellement, + A.dateEffet, A.dateFin, A.dateEcheance, dateAvenant, A.deduireComm, A.codeEtatPolice + FROM d_police A + LEFT JOIN typecontrat B ON (B.codeTypeContrat=A.codeTypeContrat) + left join rachattm TM on (TM.codeRachatTm=A.rachatTm) + WHERE (A.codeSociete=?) AND (A.id=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $id)); + $context = $resultat->fetch(); + + $_SESSION['idClient_d_C'] = $context['idClient']; + $_SESSION['numeroClient_d_C'] = $context['numeroClient']; + $_SESSION['idPolice_d_C'] = $context['idPolice']; + $_SESSION['numeroPolice_d_C'] = $context['numeroPolice']; + $_SESSION['codeEtape_d_C'] = $context['codeEtape']; + $_SESSION['tauxTaxe_d_C'] = $context['tauxTaxe']; + $_SESSION['tauxCommission_d_C'] = $context['tauxCommission']; + $_SESSION['deduireComm_d_C'] = $context['deduireComm']; + + $_SESSION['dateEffet_d_C'] = $context['dateEffet']; + $_SESSION['dateFin_d_C'] = $context['dateFin']; + $_SESSION['dateEcheance_d_C'] = $context['dateEcheance']; + + $_SESSION['dateAvenant_d_C'] = $context['dateAvenant']; + + $_SESSION['idPolice_d_Ajax'] = $_SESSION['idPolice_d_C']; + + $_SESSION['rachatTm_d_C'] = $context['rachatTm']; + + $_SESSION['collegeArchive_d_C'] = $context['collegeArchive']; + } + + public function getDenierNumeroPolice($annee) + { + $sql = 'select dernierNumeroPolice from d_numerotationpolice WHERE (codeSociete=? AND annee=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee)); + + if ($resultat->rowCount() == 0) + { + $sql = 'insert into d_numerotationpolice (codeSociete, annee, dernierNumeroPolice) values (?,?,?)'; + $this->executerRequete($sql, array($_SESSION['codeSociete'],$annee,"0")); + return "1"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['dernierNumeroPolice']+1; + } + } + + public function setDenierNumeroPolice($annee,$dernierNumeroPolice) + { + $sql = 'update d_numerotationpolice set dernierNumeroPolice=? WHERE (codeSociete=? AND annee=?)'; + $this->executerRequete($sql, array($dernierNumeroPolice, $_SESSION['codeSociete'], $annee)); + } + + public function ajouter($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat, + $dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire, + $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire, + $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne) + { + + $sql = 'INSERT INTO d_police (codeSociete, idClient, numeroClient, numeroPolice, numeroPoliceSociete, + codeTypeContrat, dateEffet, dateFin, dateEcheance, numeroAvenant, codeTypeAvenant, dateAvenant, + codeApporteur, codeCommercial, codeGestionnaire, dateCre, userCre, codeEtatPolice, codeFractionnement, codePeriodicite, tauxCommission, tauxCommissionAutre, + primeFamille, primeBeneficiaire, rachatTm, deduireComm, taciteReconduction, tauxRachatTm, tauxRistourne) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; + + $this->executerRequete($sql, array($codeSociete, $idClient, $numeroClient, $numeroPolice, $numeroPoliceSociete, $codeTypeContrat, + $dateEffet, $dateFin, $dateEcheance, $numeroAvenant, $codeTypeAvenant, $dateAvenant, $codeApporteur, $codeCommercial, $codeGestionnaire, + $dateCre, $userCre, $codeEtatPolice, $codeFractionnement, $codePeriodicite, $tauxCommission, $tauxCommissionAutre, $primeFamille, $primeBeneficiaire, + $rachatTm, $deduireComm, $taciteReconduction, $tauxRachatTm, $tauxRistourne)); + + $dernierId=$this->dernierId(); + + $sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user) + select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)'; + + $this->executerRequete($sql, array($dernierId)); + + return $dernierId; + + } + + public function modifier($id, $codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite, + $rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne) + { + $sql = 'UPDATE d_police SET + codeTypeContrat =?, + codeApporteur =?, + tauxCommission =?, + codePeriodicite =?, + rachatTm =?, + tauxRachatTm =?, + dateEffet =?, + dateEcheance =?, + codeCommercial =?, + tauxCommissionAutre =?, + tauxRistourne =? + where (id=?)'; + + $this->executerRequete($sql, array($codeTypeContrat, $codeApporteur, $tauxCommission, $codePeriodicite, + $rachatTm, $tauxRachatTm, $dateEffet, $dateEcheance, $codeCommercial, $tauxCommissionAutre, $tauxRistourne, $id)); + } + + public function getIdPolice($numeroPolice) { + $sql = 'SELECT id FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'], $numeroPolice)); + $ligne = $resultat->fetch(); + return $ligne['id']; + } + + public function existeligne($numeroPolice) { + $sql = 'select id FROM d_police WHERE (codeSociete=?) and (numeroPolice=?)'; + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice)); + return ($resultat->rowCount() > 0); + } + + public function formaterNumeroPolice($annee,$numeroPolice) { + $numeroPolice = "00000".$numeroPolice; + $numeroPolice = substr($numeroPolice, -6); + $numeroPolice = "D".$annee.$numeroPolice; + return $numeroPolice; + } + + public function supprimer($idPolice) { + $sql = 'select id from d_college where (idPolice=?) limit 1'; + $resultat = $this->executerRequete($sql, array($idPolice)); + + if($resultat->rowCount() == 0) + { + $sql = 'DELETE FROM d_police WHERE (id=?)'; + $this->executerRequete($sql, array($idPolice)); + return true; + } + else + { + return false; + } + } + + public function archivergarantie($id) { + $sql = 'UPDATE d_police SET garantieArchive="1" where (id=?)'; + $this->executerRequete($sql, array($id)); + } + + public function archivercollege($id) { + $sql = 'UPDATE d_police SET collegeArchive="1" where (id=?)'; + $this->executerRequete($sql, array($id)); + } + + public function getContexteAjaxPolice($id) + { + $sql = 'SELECT A.id as idPolice FROM d_police A WHERE (A.id=?)'; + $resultat = $this->executerRequete($sql, array($id)); + $context = $resultat->fetch(); + $_SESSION['idPolice_d_Ajax'] = $context['idPolice']; + } + + public function getCollegesCP($idPolice) + { + $sql = 'call sp_collesges_d_police(?);'; + + $colleges = $this->executerRequete($sql, array($idPolice)); + return $colleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function getGarantiesCollegesCP($idPolice) + { + $sql = 'call sp_garanties_colleges_d_police(?);'; + + $garantiescolleges = $this->executerRequete($sql, array($idPolice)); + return $garantiescolleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function gettableauPrestationsCP($idPolice) + { + $sql = 'call sp_tableau_prestation_d_police(?);'; + + $colleges = $this->executerRequete($sql, array($idPolice)); + return $colleges->fetchAll(PDO::FETCH_ASSOC); + } + + public function getClientsearchPol($numeroPolice) + { + $sql = 'select id as idPolice FROM d_police WHERE (codeSociete=?) AND (numeroPolice=?)'; + + $resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$numeroPolice)); + + if ($resultat->rowCount() == 0) + { + return "0"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['idPolice']; + } + } + + public function transformer($idDevis, $numeroOptionTarif) + { + $user = $_SESSION['login']; + + $sql = 'call sp_transformer_devis(?, ?, ?);'; + + $resultat = $this->executerRequete($sql, array($idDevis, $user, $numeroOptionTarif)); + + if ($resultat->rowCount() == 0) + { + return "0"; + } else + { + $ligne = $resultat->fetch(); + return $ligne['idPolice']; + } + } + + public function getContexteClientId($idPolice) { + $sql = 'SELECT A.id as idClient, A.numeroClient, concat(A.nom," ",A.prenoms) as nomClient + FROM d_clients A join d_police B on (B.idClient=A.id) WHERE (B.id=?)'; + + $resultat = $this->executerRequete($sql, array($idPolice)); + + $context = $resultat->fetch(); + $_SESSION['idClient_d_C'] = $context['idClient']; + $_SESSION['numeroClient_d_C'] = $context['numeroClient']; + $_SESSION['nomClient_d_C'] = $context['nomClient']; + $_SESSION['idClient_d_Ajax'] = $context['idClient']; + } + + public function getEnteteCP($idPolice) + { + $sql = 'call sp_entete_devis(?);'; + + $entete = $this->executerRequete($sql, array($idPolice)); + return $entete->fetch(PDO::FETCH_ASSOC); + } + + public function nouvelleoptiontarif($idPolice) + { + $sql = 'insert into d_optionstarif (idPolice, numeroOptionTarif, libelleOptionTarif, user) + select id as idPolice, "1" numeroOptionTarif, "Option 1" libelleOptionTarif, userCre from d_police where (id=?)'; + + $this->executerRequete($sql, array($dernierId)); + + return $dernierId; + + } + + public function getTextecp($id) { + $sql = 'select texteCp from d_police where (id=?)'; + $textecp = $this->executerRequete($sql, array($id)); + return $textecp->fetch(); + } + + public function enregistrertexteCp($texteCp, $idPolice) { + $sql = 'update d_police set texteCp=? where (id=?)'; + $this->executerRequete($sql, array($texteCp, $idPolice)); + } +} \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Modele/Tarif.php b/Societes/radiant/Tarifs/Modele/Tarif.php new file mode 100644 index 0000000..8e8b415 --- /dev/null +++ b/Societes/radiant/Tarifs/Modele/Tarif.php @@ -0,0 +1,158 @@ +executerRequete($sql, array($_SESSION['codeSociete'], $primeNette, $fraisCarte, $tauxCommission, $tauxCommissionAutre, $tauxTaxe)); + return $prime->fetch(PDO::FETCH_ASSOC); + } + + /* + public function calculerPrimeBen() + { + // dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc + + $idAdherent = $_SESSION['idAdherent_C']; + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille, + IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?'; + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + $beneficiaire = $resultat->fetch(); + + $codeLienParente = $beneficiaire['codeLienParente']; + $sexe = $beneficiaire['sexe']; + $dateNaissance = $beneficiaire['dateNaissance']; + $dateEntree = $beneficiaire['dateEntree']; + + $primeFamille = $beneficiaire['primeFamille']; + $primeBeneficiaire = $beneficiaire['primeBeneficiaire']; + + $age = age($dateNaissance , $dateEntree); + + // Pour Rdaiant + $codeEtape = $_SESSION['codeEtape_C']; + if($codeEtape=='1') + { + $accessoire = 15000; + } + else + { + $accessoire = 12000; + } + + if($codeLienParente=='A') + { + $primeBase = $primeFamille; + } + else + { + $primeBase = $primeBeneficiaire; + } + + $surprimeMaladie = 0; + $surprimeAge = 0; + $primeNette = $primeBase + $surprimeMaladie + $surprimeAge; + $commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100); + $commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100); + $primeHt = $primeNette + $commission; + $taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100); + $fraisCarte = $accessoire; + $primeTtc = $primeHt+$taxe+$fraisCarte; + + $sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)'; + $this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire)); + + $sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission, + IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe, + IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc + from beneficiaire WHERE (idAdherent=?)'; + $resultat = $this->executerRequete($sql, array($idAdherent)); + $primeAdherent = $resultat->fetch(); + + $sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)'; + $this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'], + $primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent)); + } + */ + + /* + public function calculerPrimeCol() + { + // dateSortie, primeNette, commission, primeHt, taxe, fraisCarte, primeTtc + + $idAdherent = $_SESSION['idAdherent_C']; + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $sql = 'SELECT codeProduit, codeLienParente, sexe, dateNaissance, dateEntree, IFNULL(primeFamille,"0") as primeFamille, + IFNULL(primeBeneficiaire,"0") as primeBeneficiaire FROM beneficiaire WHERE id=?'; + $resultat = $this->executerRequete($sql, array($idBeneficiaire)); + $beneficiaire = $resultat->fetch(); + + $codeLienParente = $beneficiaire['codeLienParente']; + $sexe = $beneficiaire['sexe']; + $dateNaissance = $beneficiaire['dateNaissance']; + $dateEntree = $beneficiaire['dateEntree']; + + $primeFamille = $beneficiaire['primeFamille']; + $primeBeneficiaire = $beneficiaire['primeBeneficiaire']; + + $age = age($dateNaissance , $dateEntree); + + + // Pour Rdaiant + $codeEtape = $_SESSION['codeEtape_C']; + if($codeEtape=='1') + { + $accessoire = 15000; + } + else + { + $accessoire = 12000; + } + + if($codeLienParente=='A') + { + $primeBase = $primeFamille; + } + else + { + $primeBase = $primeBeneficiaire; + } + + + $surprimeMaladie = 0; + $surprimeAge = 0; + $primeNette = $primeBase + $surprimeMaladie + $surprimeAge; + $commission = round(($primeNette*$_SESSION['tauxCommission_C'])/100); + $commissionAutre = round(($primeNette*$_SESSION['tauxCommission_C'])/100); + $primeHt = $primeNette + $commission; + $taxe = round(($primeHt*$_SESSION['tauxTaxe_C'])/100); + $fraisCarte = $accessoire; + $primeTtc = $primeHt+$taxe+$fraisCarte; + + $sql = 'update beneficiaire set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)'; + $this->executerRequete($sql, array($primeNette, $commission, $primeHt, $taxe, $fraisCarte, $primeTtc, $idBeneficiaire)); + + $sql = 'select IFNULL(sum(primeNette),"0") as primeNette, IFNULL(sum(commission),"0") as commission, + IFNULL(sum(primeHt),"0") as primeHt, IFNULL(sum(taxe),"0") as taxe, + IFNULL(sum(fraisCarte),"0") as fraisCarte, IFNULL(sum(primeTtc),"0") as primeTtc + from beneficiaire WHERE (idAdherent=?)'; + $resultat = $this->executerRequete($sql, array($idAdherent)); + $primeAdherent = $resultat->fetch(); + + $sql = 'update adherent set primeNette=?, commission=?, primeHt=?, taxe=?, fraisCarte=?, primeTtc=? WHERE (id=?)'; + $this->executerRequete($sql, array($primeAdherent['primeNette'], $primeAdherent['commission'],$primeAdherent['primeHt'], + $primeAdherent['taxe'], $primeAdherent['fraisCarte'] , $primeAdherent['primeTtc'], $idAdherent)); + } + */ +} \ No newline at end of file diff --git a/Societes/radiant/Tarifs/Vue/Consultercollege.php b/Societes/radiant/Tarifs/Vue/Consultercollege.php new file mode 100644 index 0000000..f26a5c1 --- /dev/null +++ b/Societes/radiant/Tarifs/Vue/Consultercollege.php @@ -0,0 +1,415 @@ +titre = "INTER-SANTE - Consultation collège"; +?> + + + + + + + /> + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
Surpr. Div.
+
+ +
+
+
+
+ + + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = $this->nettoyer($garantiebase['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garantiebase['garantieEng']); + } + ?> + + + + + + + + + + + + + + +
nettoyer($garantiebase['tauxPlafond']) ?> nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + +
nettoyer($garoptacquise['primeOption'])) ?>nettoyer($garoptacquise['plafond'])) ?>
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($collegeTemp['primeTtcAdherent']))?> nettoyer($collegeTemp['primeTtcBeneficiaire']))?> nettoyer($collegeTemp['primeTtcAdherent_total']))?> nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> nettoyer($collegeTemp['primeTtc_total']))?>
nettoyer($collegeTemp['primeNetteStat']))?> nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?>
nettoyer($collegeTemp['primeFamille']))?> nettoyer($collegeTemp['primeBeneficiaire']))?> nettoyer($collegeTemp['primeFamilleAdherent_total']))?> nettoyer($collegeTemp['primeBeneficiaire_total']))?> nettoyer($collegeTemp['primeFamille_total']))?>
nettoyer($collegeTemp['primeCplFuneraire']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> nettoyer($collegeTemp['primeCplFuneraire_total']))?>
nettoyer($collegeTemp['surprimeOption']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeOption_total']))?>
nettoyer($collegeTemp['surprimeTm']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> nettoyer($collegeTemp['surprimeTmAdherent_total']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeTm_total']))?>
nettoyer($collegeTemp['surprimeAnt']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> nettoyer($collegeTemp['surprimeAntAdherent_total']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeAnt_total']))?>
nettoyer($collegeTemp['primeNette']))?> nettoyer($collegeTemp['primeNetteBeneficiaire']))?> nettoyer($collegeTemp['primeNetteAdherent_total']))?> nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> nettoyer($collegeTemp['primeNette_total']))?>
nettoyer($collegeTemp['commission']))?> nettoyer($collegeTemp['commissionBeneficiaire']))?> nettoyer($collegeTemp['commissionAdherent_total']))?> nettoyer($collegeTemp['commissionBeneficiaire_total']))?> nettoyer($collegeTemp['commission_total']))?>
nettoyer($collegeTemp['commissionAutre']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> nettoyer($collegeTemp['commissionAutreAdherent_total']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> nettoyer($collegeTemp['commissionAutre_total']))?>
nettoyer($collegeTemp['primeHt']))?> nettoyer($collegeTemp['primeHtBeneficiaire']))?> nettoyer($collegeTemp['primeHtAdherent_total']))?> nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> nettoyer($collegeTemp['primeHt_total']))?>
nettoyer($collegeTemp['taxe']))?> nettoyer($collegeTemp['taxeBeneficiaire']))?> nettoyer($collegeTemp['taxeAdherent_total']))?> nettoyer($collegeTemp['taxeBeneficiaire_total']))?> nettoyer($collegeTemp['taxe_total']))?>
nettoyer($collegeTemp['fraisCarte']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> nettoyer($collegeTemp['fraisCarteAdherent_total']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> nettoyer($collegeTemp['fraisCarte_total']))?>
+
+ + +
+

+
+ + + + + + + diff --git a/Societes/radiant/Tarifs/Vue/Creercollege.php b/Societes/radiant/Tarifs/Vue/Creercollege.php new file mode 100644 index 0000000..bf7a9f7 --- /dev/null +++ b/Societes/radiant/Tarifs/Vue/Creercollege.php @@ -0,0 +1,603 @@ +titre = "INTER-SANTE - Ajout Collège"; + $_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']); +?> + +
+ + + + /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+
+ + + + +
+
Surpr. Div. + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = $this->nettoyer($garantiebase['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garantiebase['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
nettoyer($garantiebase['plafond'])) ?> + + + + nettoyer($garantiebase['plafond'])) ?>
+
+ +
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+ +
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + +
+
+
+ + +
+
+ + + + + + + + + + + + nettoyer($garantiebase['id']); + ?> + + + + + + + + + + + + + + + +
nettoyer($garantiebase['garantie']) ?> nettoyer($garantiebase['tauxPlafond']) ?> nettoyer($garantiebase['plafond'])) ?>
+
+ +
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+ +
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
" >
nettoyer($collegeTemp['primeTtcAdherent']))?> nettoyer($collegeTemp['primeTtcBeneficiaire']))?> nettoyer($collegeTemp['primeTtcAdherent_total']))?> nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> nettoyer($collegeTemp['primeTtc_total']))?>
Prime Nette Statisque nettoyer($collegeTemp['primeNetteStat']))?> nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?>
nettoyer($collegeTemp['primeFamille']))?> nettoyer($collegeTemp['primeBeneficiaire']))?> nettoyer($collegeTemp['primeFamilleAdherent_total']))?> nettoyer($collegeTemp['primeBeneficiaire_total']))?> nettoyer($collegeTemp['primeFamille_total']))?>
nettoyer($collegeTemp['primeCplFuneraire']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> nettoyer($collegeTemp['primeCplFuneraire_total']))?>
nettoyer($collegeTemp['surprimeOption']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeOption_total']))?>
nettoyer($collegeTemp['surprimeTm']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> nettoyer($collegeTemp['surprimeTmAdherent_total']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeTm_total']))?>
nettoyer($collegeTemp['surprimeAnt']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> nettoyer($collegeTemp['surprimeAntAdherent_total']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeAnt_total']))?>
nettoyer($collegeTemp['primeNette']))?> nettoyer($collegeTemp['primeNetteBeneficiaire']))?> nettoyer($collegeTemp['primeNetteAdherent_total']))?> nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> nettoyer($collegeTemp['primeNette_total']))?>
nettoyer($collegeTemp['commission']))?> nettoyer($collegeTemp['commissionBeneficiaire']))?> nettoyer($collegeTemp['commissionAdherent_total']))?> nettoyer($collegeTemp['commissionBeneficiaire_total']))?> nettoyer($collegeTemp['commission_total']))?>
nettoyer($collegeTemp['commissionAutre']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> nettoyer($collegeTemp['commissionAutreAdherent_total']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> nettoyer($collegeTemp['commissionAutre_total']))?>
nettoyer($collegeTemp['primeHt']))?> nettoyer($collegeTemp['primeHtBeneficiaire']))?> nettoyer($collegeTemp['primeHtAdherent_total']))?> nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> nettoyer($collegeTemp['primeHt_total']))?>
nettoyer($collegeTemp['taxe']))?> nettoyer($collegeTemp['taxeBeneficiaire']))?> nettoyer($collegeTemp['taxeAdherent_total']))?> nettoyer($collegeTemp['taxeBeneficiaire_total']))?> nettoyer($collegeTemp['taxe_total']))?>
nettoyer($collegeTemp['fraisCarte']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> nettoyer($collegeTemp['fraisCarteAdherent_total']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> nettoyer($collegeTemp['fraisCarte_total']))?>
+ + +
+

+
+ +
+ + diff --git a/Societes/radiant/Tarifs/Vue/Creercolleged.php b/Societes/radiant/Tarifs/Vue/Creercolleged.php new file mode 100644 index 0000000..53ec23a --- /dev/null +++ b/Societes/radiant/Tarifs/Vue/Creercolleged.php @@ -0,0 +1,631 @@ +titre = "INTER-SANTE - Ajout Collège au Devis"; + $_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']); + + $controlPlafondAdherent = $_SESSION['controlPlafondAdherent']; + $controlPlafondBeneficiaire = $_SESSION['controlPlafondBeneficiaire']; + + // var_dump($optionstarif); + // exit(); +?> + +
+ +
+ +
+ + + + /> + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Option + + + + + + + + + + + + + +
+
+ + + + +
+
Surpr. Div. + +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + nettoyer($garantiebase['id']); + ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
nettoyer($garantiebase['garantie']) ?>nettoyer($garantiebase['plafond'])) ?> + + + + nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + +
+
+
+
+ + +
+
+
+ + + + + + + + + + + + nettoyer($garantiebase['id']); + ?> + + + + + + + + + + + + + + +
nettoyer($garantiebase['garantie']) ?> nettoyer($garantiebase['tauxPlafond']) ?> nettoyer($garantiebase['plafond'])) ?>
+
+
+ + +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + +
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
" >
nettoyer($collegeTemp['primeTtcAdherent']))?> nettoyer($collegeTemp['primeTtcBeneficiaire']))?> nettoyer($collegeTemp['primeTtcAdherent_total']))?> nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> nettoyer($collegeTemp['primeTtc_total']))?>
nettoyer($collegeTemp['primeNetteStat']))?> nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?>
nettoyer($collegeTemp['primeFamille']))?> nettoyer($collegeTemp['primeBeneficiaire']))?> nettoyer($collegeTemp['primeFamilleAdherent_total']))?> nettoyer($collegeTemp['primeBeneficiaire_total']))?> nettoyer($collegeTemp['primeFamille_total']))?>
nettoyer($collegeTemp['primeCplFuneraire']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> nettoyer($collegeTemp['primeCplFuneraire_total']))?>
nettoyer($collegeTemp['surprimeOption']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeOption_total']))?>
nettoyer($collegeTemp['surprimeTm']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> nettoyer($collegeTemp['surprimeTmAdherent_total']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeTm_total']))?>
nettoyer($collegeTemp['surprimeAnt']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> nettoyer($collegeTemp['surprimeAntAdherent_total']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeAnt_total']))?>
nettoyer($collegeTemp['primeNette']))?> nettoyer($collegeTemp['primeNetteBeneficiaire']))?> nettoyer($collegeTemp['primeNetteAdherent_total']))?> nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> nettoyer($collegeTemp['primeNette_total']))?>
nettoyer($collegeTemp['commission']))?> nettoyer($collegeTemp['commissionBeneficiaire']))?> nettoyer($collegeTemp['commissionAdherent_total']))?> nettoyer($collegeTemp['commissionBeneficiaire_total']))?> nettoyer($collegeTemp['commission_total']))?>
nettoyer($collegeTemp['commissionAutre']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> nettoyer($collegeTemp['commissionAutreAdherent_total']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> nettoyer($collegeTemp['commissionAutre_total']))?>
nettoyer($collegeTemp['primeHt']))?> nettoyer($collegeTemp['primeHtBeneficiaire']))?> nettoyer($collegeTemp['primeHtAdherent_total']))?> nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> nettoyer($collegeTemp['primeHt_total']))?>
nettoyer($collegeTemp['taxe']))?> nettoyer($collegeTemp['taxeBeneficiaire']))?> nettoyer($collegeTemp['taxeAdherent_total']))?> nettoyer($collegeTemp['taxeBeneficiaire_total']))?> nettoyer($collegeTemp['taxe_total']))?>
nettoyer($collegeTemp['fraisCarte']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> nettoyer($collegeTemp['fraisCarteAdherent_total']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> nettoyer($collegeTemp['fraisCarte_total']))?>
+
+ + +
+

+
+ + +
+ + + diff --git a/Societes/radiant/Tarifs/Vue/Modifiercollege.php b/Societes/radiant/Tarifs/Vue/Modifiercollege.php new file mode 100644 index 0000000..731bf1f --- /dev/null +++ b/Societes/radiant/Tarifs/Vue/Modifiercollege.php @@ -0,0 +1,671 @@ +titre = "INTER-SANTE - Modification collège"; + $_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']); +?> + +
+ + + + /> + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + +
+
+ + + + +
+
Surpr. Div. + +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = $this->nettoyer($garantiebase['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garantiebase['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
nettoyer($garantiebase['plafond'])) ?> + + + + nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + + +
+
+
+
+ + +
+
+
+ + + + + + + + + + + + nettoyer($garantiebase['id']); + ?> + + + + + + + + + + + + + + +
nettoyer($garantiebase['garantie']) ?> nettoyer($garantiebase['tauxPlafond']) ?> nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + + +
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
" >
nettoyer($collegeTemp['primeTtcAdherent']))?> nettoyer($collegeTemp['primeTtcBeneficiaire']))?> nettoyer($collegeTemp['primeTtcAdherent_total']))?> nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> nettoyer($collegeTemp['primeTtc_total']))?>
nettoyer($collegeTemp['primeNetteStat']))?> nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?>
nettoyer($collegeTemp['primeFamille']))?> nettoyer($collegeTemp['primeBeneficiaire']))?> nettoyer($collegeTemp['primeFamilleAdherent_total']))?> nettoyer($collegeTemp['primeBeneficiaire_total']))?> nettoyer($collegeTemp['primeFamille_total']))?>
nettoyer($collegeTemp['primeCplFuneraire']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> nettoyer($collegeTemp['primeCplFuneraire_total']))?>
nettoyer($collegeTemp['surprimeOption']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeOption_total']))?>
nettoyer($collegeTemp['surprimeTm']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> nettoyer($collegeTemp['surprimeTmAdherent_total']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeTm_total']))?>
nettoyer($collegeTemp['surprimeAnt']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> nettoyer($collegeTemp['surprimeAntAdherent_total']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeAnt_total']))?>
nettoyer($collegeTemp['primeNette']))?> nettoyer($collegeTemp['primeNetteBeneficiaire']))?> nettoyer($collegeTemp['primeNetteAdherent_total']))?> nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> nettoyer($collegeTemp['primeNette_total']))?>
nettoyer($collegeTemp['commission']))?> nettoyer($collegeTemp['commissionBeneficiaire']))?> nettoyer($collegeTemp['commissionAdherent_total']))?> nettoyer($collegeTemp['commissionBeneficiaire_total']))?> nettoyer($collegeTemp['commission_total']))?>
nettoyer($collegeTemp['commissionAutre']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> nettoyer($collegeTemp['commissionAutreAdherent_total']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> nettoyer($collegeTemp['commissionAutre_total']))?>
nettoyer($collegeTemp['primeHt']))?> nettoyer($collegeTemp['primeHtBeneficiaire']))?> nettoyer($collegeTemp['primeHtAdherent_total']))?> nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> nettoyer($collegeTemp['primeHt_total']))?>
nettoyer($collegeTemp['taxe']))?> nettoyer($collegeTemp['taxeBeneficiaire']))?> nettoyer($collegeTemp['taxeAdherent_total']))?> nettoyer($collegeTemp['taxeBeneficiaire_total']))?> nettoyer($collegeTemp['taxe_total']))?>
nettoyer($collegeTemp['fraisCarte']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> nettoyer($collegeTemp['fraisCarteAdherent_total']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> nettoyer($collegeTemp['fraisCarte_total']))?>
+
+ + +
+

+
+ +
+ + + + + + diff --git a/Societes/radiant/Tarifs/Vue/Modifiercolleged.php b/Societes/radiant/Tarifs/Vue/Modifiercolleged.php new file mode 100644 index 0000000..a03342f --- /dev/null +++ b/Societes/radiant/Tarifs/Vue/Modifiercolleged.php @@ -0,0 +1,641 @@ +titre = "INTER-SANTE - Modification collège du devis"; + $_SESSION['imposerPlafond'] = $this->nettoyer($collegeTemp['imposerPlafond']); + $_SESSION['numeroOptionTarif'] = $this->nettoyer($collegeTemp['numeroOptionTarif']); +?> + +
+ +
+ +
+ + + + /> + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Option + + + + + + + + + + + + + +
+
+ + + + +
+
Surpr. Div. + +
+
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = $this->nettoyer($garantiebase['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garantiebase['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + +
+ +
nettoyer($garantiebase['plafond'])) ?> + + + + nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + + +
+
+
+
+ + +
+
+
+ + + + + + + + + + + + nettoyer($garantiebase['id']); + ?> + + + + + + + + + + + + + + +
nettoyer($garantiebase['garantie']) ?> nettoyer($garantiebase['tauxPlafond']) ?> nettoyer($garantiebase['plafond'])) ?>
+
+
+ +
+
+ + + + + + + + + + nettoyer($garoptionnelle['codeGarantie']); + $idCol=$this->nettoyer($garoptionnelle['idCollegeTemp']); + $garantie = $this->nettoyer($garoptionnelle['libelle']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptionnelle['libelleEng']); + } + ?> + + + + + + + + + + +
=>
+
+
+ +
+
+ + + + + + + + + + + + + + + nettoyer($garoptacquise['id']); + $gar_add=$this->nettoyer($garoptacquise['additionnelle']); + $gar = $this->nettoyer($garoptacquise['codeGarantie']) ; + + $garantie = $this->nettoyer($garoptacquise['garantie']); + if (est_anglophone()) + { + $garantie = $this->nettoyer($garoptacquise['garantieEng']); + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<=
+ + nettoyer($garoptacquise['primeOption'])) ?> + + nettoyer($garoptacquise['plafond'])) ?> + + +
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
" >
nettoyer($collegeTemp['primeTtcAdherent']))?> nettoyer($collegeTemp['primeTtcBeneficiaire']))?> nettoyer($collegeTemp['primeTtcAdherent_total']))?> nettoyer($collegeTemp['primeTtcBeneficiaire_total']))?> nettoyer($collegeTemp['primeTtc_total']))?>
nettoyer($collegeTemp['primeNetteStat']))?> nettoyer($collegeTemp['primeNetteStatBeneficiaire']))?>
nettoyer($collegeTemp['primeFamille']))?> nettoyer($collegeTemp['primeBeneficiaire']))?> nettoyer($collegeTemp['primeFamilleAdherent_total']))?> nettoyer($collegeTemp['primeBeneficiaire_total']))?> nettoyer($collegeTemp['primeFamille_total']))?>
nettoyer($collegeTemp['primeCplFuneraire']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire']))?> nettoyer($collegeTemp['primeCplFuneraireAdherent_total']))?> nettoyer($collegeTemp['primeCplFuneraireBeneficiaire_total']))?> nettoyer($collegeTemp['primeCplFuneraire_total']))?>
nettoyer($collegeTemp['surprimeOption']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire']))?> nettoyer($collegeTemp['surprimeOptionAdherent_total']))?> nettoyer($collegeTemp['surprimeOptionBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeOption_total']))?>
nettoyer($collegeTemp['surprimeTm']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire']))?> nettoyer($collegeTemp['surprimeTmAdherent_total']))?> nettoyer($collegeTemp['surprimeTmBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeTm_total']))?>
nettoyer($collegeTemp['surprimeAnt']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire']))?> nettoyer($collegeTemp['surprimeAntAdherent_total']))?> nettoyer($collegeTemp['surprimeAntBeneficiaire_total']))?> nettoyer($collegeTemp['surprimeAnt_total']))?>
nettoyer($collegeTemp['primeNette']))?> nettoyer($collegeTemp['primeNetteBeneficiaire']))?> nettoyer($collegeTemp['primeNetteAdherent_total']))?> nettoyer($collegeTemp['primeNetteBeneficiaire_total']))?> nettoyer($collegeTemp['primeNette_total']))?>
nettoyer($collegeTemp['commission']))?> nettoyer($collegeTemp['commissionBeneficiaire']))?> nettoyer($collegeTemp['commissionAdherent_total']))?> nettoyer($collegeTemp['commissionBeneficiaire_total']))?> nettoyer($collegeTemp['commission_total']))?>
nettoyer($collegeTemp['commissionAutre']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire']))?> nettoyer($collegeTemp['commissionAutreAdherent_total']))?> nettoyer($collegeTemp['commissionAutreBeneficiaire_total']))?> nettoyer($collegeTemp['commissionAutre_total']))?>
nettoyer($collegeTemp['primeHt']))?> nettoyer($collegeTemp['primeHtBeneficiaire']))?> nettoyer($collegeTemp['primeHtAdherent_total']))?> nettoyer($collegeTemp['primeHtBeneficiaire_total']))?> nettoyer($collegeTemp['primeHt_total']))?>
nettoyer($collegeTemp['taxe']))?> nettoyer($collegeTemp['taxeBeneficiaire']))?> nettoyer($collegeTemp['taxeAdherent_total']))?> nettoyer($collegeTemp['taxeBeneficiaire_total']))?> nettoyer($collegeTemp['taxe_total']))?>
nettoyer($collegeTemp['fraisCarte']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire']))?> nettoyer($collegeTemp['fraisCarteAdherent_total']))?> nettoyer($collegeTemp['fraisCarteBeneficiaire_total']))?> nettoyer($collegeTemp['fraisCarte_total']))?>
+
+ + +
+

+
+ +
+ + + \ No newline at end of file diff --git a/Vue/Ajaxproraterprime/index.php b/Vue/Ajaxproraterprime/index.php new file mode 100644 index 0000000..db1b2bc --- /dev/null +++ b/Vue/Ajaxproraterprime/index.php @@ -0,0 +1,93 @@ +
+
+
+ + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nettoyer($adherent_temp['primeFamille_an'])) ?>nettoyer($adherent_temp['primeFamille'])) ?>
nettoyer($adherent_temp['primeCplFuneraire_an'])) ?>nettoyer($adherent_temp['primeCplFuneraire'])) ?>
nettoyer($adherent_temp['surprimeOption_an'])) ?>nettoyer($adherent_temp['surprimeOption'])) ?>
nettoyer($adherent_temp['surprimeTm_an'])) ?>nettoyer($adherent_temp['surprimeTm'])) ?>
nettoyer($adherent_temp['surprimeAnt_an'])) ?>nettoyer($adherent_temp['surprimeAnt'])) ?>
nettoyer($adherent_temp['commission_an'])) ?>nettoyer($adherent_temp['commission'])) ?>
nettoyer($adherent_temp['commissionAutre_an'])) ?>nettoyer($adherent_temp['commissionAutre'])) ?>
nettoyer($adherent_temp['accessoire_an'])) ?>nettoyer($adherent_temp['accessoire'])) ?>
nettoyer($adherent_temp['taxe_an'])) ?>nettoyer($adherent_temp['taxe'])) ?>
nettoyer($adherent_temp['fraisCarte_an'])) ?>nettoyer($adherent_temp['fraisCarte'])) ?>
nettoyer($adherent_temp['primeTtc_an'])) ?>nettoyer($adherent_temp['primeTtc'])) ?>
nettoyer($adherent_temp['primeNetteStat_an'])) ?>nettoyer($adherent_temp['primeNetteStat'])) ?>
+
+
+
\ No newline at end of file diff --git a/Vue/Creeradherent/index.php b/Vue/Creeradherent/index.php new file mode 100644 index 0000000..52f2f31 --- /dev/null +++ b/Vue/Creeradherent/index.php @@ -0,0 +1,211 @@ +titre = "INTER-SANTE - Ajout Adhérent"; + $dateAvenant = $_SESSION['dateAvenant_C']; +?> + +
+ +
+
+ +
+
+

+ + : + +
+
+ +
+ + + +
+
+
+ +
+
+
+
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+
+
+ +
+ + +
+
+ +
+ + +
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+
+
+ + +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ + +
+
+ +
+ + +
+
+ +
+ +
+ + +
+
+
+ + +
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+ +
+
+
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+
+
+
+ +
+
+
+ + + + +
\ No newline at end of file diff --git a/Vue/Fichepolice/index.php b/Vue/Fichepolice/index.php index 3ae6100..606ae18 100644 --- a/Vue/Fichepolice/index.php +++ b/Vue/Fichepolice/index.php @@ -20,7 +20,11 @@ - + + + + +

diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 8c2371b..fb85850 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -600,7 +600,7 @@ $activeChildId = $menuData['child']; - +