diff --git a/Societes/envoyx/Tarifs/Controleur/Consultercollegeindex.php b/Societes/envoyx/Tarifs/Controleur/Consultercollegeindex.php new file mode 100644 index 0000000..4e5e3ef --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Cpfc1eng.php b/Societes/envoyx/Tarifs/Controleur/Cpfc1eng.php new file mode 100644 index 0000000..bc4fad9 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Cpfc1kiny.php b/Societes/envoyx/Tarifs/Controleur/Cpfc1kiny.php new file mode 100644 index 0000000..56dcd5b --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Cpfc2eng.php b/Societes/envoyx/Tarifs/Controleur/Cpfc2eng.php new file mode 100644 index 0000000..8f80f5f --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Cpfc2kiny.php b/Societes/envoyx/Tarifs/Controleur/Cpfc2kiny.php new file mode 100644 index 0000000..39d8205 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Cpstandard.php b/Societes/envoyx/Tarifs/Controleur/Cpstandard.php new file mode 100644 index 0000000..1a8aa3c --- /dev/null +++ b/Societes/envoyx/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 RADIANT 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/envoyx/Tarifs/Controleur/Cpstandardeng.php b/Societes/envoyx/Tarifs/Controleur/Cpstandardeng.php new file mode 100644 index 0000000..828410c --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegedenregistrer.php b/Societes/envoyx/Tarifs/Controleur/Creercollegedenregistrer.php new file mode 100644 index 0000000..0bd006f --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegedindex.php b/Societes/envoyx/Tarifs/Controleur/Creercollegedindex.php new file mode 100644 index 0000000..39158bc --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegedinitcollege.php b/Societes/envoyx/Tarifs/Controleur/Creercollegedinitcollege.php new file mode 100644 index 0000000..6a071d4 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegeenregistrer.php b/Societes/envoyx/Tarifs/Controleur/Creercollegeenregistrer.php new file mode 100644 index 0000000..df62264 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegeindex.php b/Societes/envoyx/Tarifs/Controleur/Creercollegeindex.php new file mode 100644 index 0000000..3abfbca --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Creercollegeinitcollege.php b/Societes/envoyx/Tarifs/Controleur/Creercollegeinitcollege.php new file mode 100644 index 0000000..22aaae4 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Devisstandard.php b/Societes/envoyx/Tarifs/Controleur/Devisstandard.php new file mode 100644 index 0000000..2c27214 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Devisstandardeng.php b/Societes/envoyx/Tarifs/Controleur/Devisstandardeng.php new file mode 100644 index 0000000..9beacd3 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Editioncarteassure.php b/Societes/envoyx/Tarifs/Controleur/Editioncarteassure.php new file mode 100644 index 0000000..4fbfc9b --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Modifiercollegedenregistrer.php b/Societes/envoyx/Tarifs/Controleur/Modifiercollegedenregistrer.php new file mode 100644 index 0000000..493b0a2 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Modifiercollegedindex.php b/Societes/envoyx/Tarifs/Controleur/Modifiercollegedindex.php new file mode 100644 index 0000000..3d30abb --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Modifiercollegeenregistrer.php b/Societes/envoyx/Tarifs/Controleur/Modifiercollegeenregistrer.php new file mode 100644 index 0000000..7561f7d --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Controleur/Modifiercollegeindex.php b/Societes/envoyx/Tarifs/Controleur/Modifiercollegeindex.php new file mode 100644 index 0000000..dcc4833 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Img/logo_carte.png b/Societes/envoyx/Tarifs/Img/logo_carte.png new file mode 100644 index 0000000..8dc28e1 Binary files /dev/null and b/Societes/envoyx/Tarifs/Img/logo_carte.png differ diff --git a/Societes/envoyx/Tarifs/Img/logo_societe.png b/Societes/envoyx/Tarifs/Img/logo_societe.png new file mode 100644 index 0000000..410780f Binary files /dev/null and b/Societes/envoyx/Tarifs/Img/logo_societe.png differ diff --git a/Societes/envoyx/Tarifs/Modele/College_temp.php b/Societes/envoyx/Tarifs/Modele/College_temp.php new file mode 100644 index 0000000..7af2cbb --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Modele/College_temp_d.php b/Societes/envoyx/Tarifs/Modele/College_temp_d.php new file mode 100644 index 0000000..5497021 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Modele/Police.php b/Societes/envoyx/Tarifs/Modele/Police.php new file mode 100644 index 0000000..2b24813 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Modele/Police_d.php b/Societes/envoyx/Tarifs/Modele/Police_d.php new file mode 100644 index 0000000..144b153 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Modele/Tarif.php b/Societes/envoyx/Tarifs/Modele/Tarif.php new file mode 100644 index 0000000..8e8b415 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Vue/Consultercollege.php b/Societes/envoyx/Tarifs/Vue/Consultercollege.php new file mode 100644 index 0000000..306f346 --- /dev/null +++ b/Societes/envoyx/Tarifs/Vue/Consultercollege.php @@ -0,0 +1,392 @@ +titre = "INTER-SANTE - Consultation collège"; +?> + + + + + + + /> + + + + + + +
+

+ +
+
+

+ : +

+
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = est_anglophone() ? $this->nettoyer($garantiebase['garantieEng']) : $this->nettoyer($garantiebase['garantie']); + ?> + + + + + + + + +
nettoyer($garantiebase['tauxPlafond']) ?>nettoyer($garantiebase['plafond'])) ?> +
+ disabled> +
+
+
+
+
+ + +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garoptacquise['id']); + $garantie = est_anglophone() ? $this->nettoyer($garoptacquise['garantieEng']) : $this->nettoyer($garoptacquise['garantie']); + ?> + + + + + + + + +
+
+ disabled> +
+
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/Societes/envoyx/Tarifs/Vue/Creercollege.php b/Societes/envoyx/Tarifs/Vue/Creercollege.php new file mode 100644 index 0000000..bf7a9f7 --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Vue/Creercolleged.php b/Societes/envoyx/Tarifs/Vue/Creercolleged.php new file mode 100644 index 0000000..53ec23a --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Vue/Modifiercollege.php b/Societes/envoyx/Tarifs/Vue/Modifiercollege.php new file mode 100644 index 0000000..731bf1f --- /dev/null +++ b/Societes/envoyx/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/envoyx/Tarifs/Vue/Modifiercolleged.php b/Societes/envoyx/Tarifs/Vue/Modifiercolleged.php new file mode 100644 index 0000000..a03342f --- /dev/null +++ b/Societes/envoyx/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/Societes/envoyx/images/logo_etat.png b/Societes/envoyx/images/logo_etat.png new file mode 100755 index 0000000..1b557d8 Binary files /dev/null and b/Societes/envoyx/images/logo_etat.png differ diff --git a/Societes/envoyx/images/logo_etat_new.png b/Societes/envoyx/images/logo_etat_new.png new file mode 100755 index 0000000..94eea54 Binary files /dev/null and b/Societes/envoyx/images/logo_etat_new.png differ diff --git a/Societes/fideliasn/Tarifs/Controleur/Consultercollegeindex.php b/Societes/fideliasn/Tarifs/Controleur/Consultercollegeindex.php new file mode 100644 index 0000000..4e5e3ef --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Cpfc1eng.php b/Societes/fideliasn/Tarifs/Controleur/Cpfc1eng.php new file mode 100644 index 0000000..bc4fad9 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Cpfc1kiny.php b/Societes/fideliasn/Tarifs/Controleur/Cpfc1kiny.php new file mode 100644 index 0000000..56dcd5b --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Cpfc2eng.php b/Societes/fideliasn/Tarifs/Controleur/Cpfc2eng.php new file mode 100644 index 0000000..8f80f5f --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Cpfc2kiny.php b/Societes/fideliasn/Tarifs/Controleur/Cpfc2kiny.php new file mode 100644 index 0000000..39d8205 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Cpstandard.php b/Societes/fideliasn/Tarifs/Controleur/Cpstandard.php new file mode 100644 index 0000000..1a8aa3c --- /dev/null +++ b/Societes/fideliasn/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 RADIANT 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/fideliasn/Tarifs/Controleur/Cpstandardeng.php b/Societes/fideliasn/Tarifs/Controleur/Cpstandardeng.php new file mode 100644 index 0000000..828410c --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegedenregistrer.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegedenregistrer.php new file mode 100644 index 0000000..0bd006f --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegedindex.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegedindex.php new file mode 100644 index 0000000..39158bc --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegedinitcollege.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegedinitcollege.php new file mode 100644 index 0000000..6a071d4 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegeenregistrer.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegeenregistrer.php new file mode 100644 index 0000000..df62264 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegeindex.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegeindex.php new file mode 100644 index 0000000..3abfbca --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Creercollegeinitcollege.php b/Societes/fideliasn/Tarifs/Controleur/Creercollegeinitcollege.php new file mode 100644 index 0000000..22aaae4 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Devisstandard.php b/Societes/fideliasn/Tarifs/Controleur/Devisstandard.php new file mode 100644 index 0000000..2c27214 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Devisstandardeng.php b/Societes/fideliasn/Tarifs/Controleur/Devisstandardeng.php new file mode 100644 index 0000000..9beacd3 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Editioncarteassure.php b/Societes/fideliasn/Tarifs/Controleur/Editioncarteassure.php new file mode 100644 index 0000000..4fbfc9b --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Modifiercollegedenregistrer.php b/Societes/fideliasn/Tarifs/Controleur/Modifiercollegedenregistrer.php new file mode 100644 index 0000000..493b0a2 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Modifiercollegedindex.php b/Societes/fideliasn/Tarifs/Controleur/Modifiercollegedindex.php new file mode 100644 index 0000000..3d30abb --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Modifiercollegeenregistrer.php b/Societes/fideliasn/Tarifs/Controleur/Modifiercollegeenregistrer.php new file mode 100644 index 0000000..7561f7d --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Controleur/Modifiercollegeindex.php b/Societes/fideliasn/Tarifs/Controleur/Modifiercollegeindex.php new file mode 100644 index 0000000..dcc4833 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Img/logo_carte.png b/Societes/fideliasn/Tarifs/Img/logo_carte.png new file mode 100644 index 0000000..8dc28e1 Binary files /dev/null and b/Societes/fideliasn/Tarifs/Img/logo_carte.png differ diff --git a/Societes/fideliasn/Tarifs/Img/logo_societe.png b/Societes/fideliasn/Tarifs/Img/logo_societe.png new file mode 100644 index 0000000..410780f Binary files /dev/null and b/Societes/fideliasn/Tarifs/Img/logo_societe.png differ diff --git a/Societes/fideliasn/Tarifs/Modele/College_temp.php b/Societes/fideliasn/Tarifs/Modele/College_temp.php new file mode 100644 index 0000000..7af2cbb --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Modele/College_temp_d.php b/Societes/fideliasn/Tarifs/Modele/College_temp_d.php new file mode 100644 index 0000000..5497021 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Modele/Police.php b/Societes/fideliasn/Tarifs/Modele/Police.php new file mode 100644 index 0000000..2b24813 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Modele/Police_d.php b/Societes/fideliasn/Tarifs/Modele/Police_d.php new file mode 100644 index 0000000..144b153 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Modele/Tarif.php b/Societes/fideliasn/Tarifs/Modele/Tarif.php new file mode 100644 index 0000000..8e8b415 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Vue/Consultercollege.php b/Societes/fideliasn/Tarifs/Vue/Consultercollege.php new file mode 100644 index 0000000..306f346 --- /dev/null +++ b/Societes/fideliasn/Tarifs/Vue/Consultercollege.php @@ -0,0 +1,392 @@ +titre = "INTER-SANTE - Consultation collège"; +?> + + + + + + + /> + + + + + + +
+

+ +
+
+

+ : +

+
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = est_anglophone() ? $this->nettoyer($garantiebase['garantieEng']) : $this->nettoyer($garantiebase['garantie']); + ?> + + + + + + + + +
nettoyer($garantiebase['tauxPlafond']) ?>nettoyer($garantiebase['plafond'])) ?> +
+ disabled> +
+
+
+
+
+ + +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garoptacquise['id']); + $garantie = est_anglophone() ? $this->nettoyer($garoptacquise['garantieEng']) : $this->nettoyer($garoptacquise['garantie']); + ?> + + + + + + + + +
+
+ disabled> +
+
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/Societes/fideliasn/Tarifs/Vue/Creercollege.php b/Societes/fideliasn/Tarifs/Vue/Creercollege.php new file mode 100644 index 0000000..bf7a9f7 --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Vue/Creercolleged.php b/Societes/fideliasn/Tarifs/Vue/Creercolleged.php new file mode 100644 index 0000000..53ec23a --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Vue/Modifiercollege.php b/Societes/fideliasn/Tarifs/Vue/Modifiercollege.php new file mode 100644 index 0000000..731bf1f --- /dev/null +++ b/Societes/fideliasn/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/fideliasn/Tarifs/Vue/Modifiercolleged.php b/Societes/fideliasn/Tarifs/Vue/Modifiercolleged.php new file mode 100644 index 0000000..a03342f --- /dev/null +++ b/Societes/fideliasn/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/Societes/fideliasn/images/logo_etat.png b/Societes/fideliasn/images/logo_etat.png new file mode 100755 index 0000000..1b557d8 Binary files /dev/null and b/Societes/fideliasn/images/logo_etat.png differ diff --git a/Societes/fideliasn/images/logo_etat_new.png b/Societes/fideliasn/images/logo_etat_new.png new file mode 100755 index 0000000..94eea54 Binary files /dev/null and b/Societes/fideliasn/images/logo_etat_new.png differ diff --git a/Societes/generaliacm/Tarifs/Controleur/Consultercollegeindex.php b/Societes/generaliacm/Tarifs/Controleur/Consultercollegeindex.php new file mode 100644 index 0000000..4e5e3ef --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Cpfc1eng.php b/Societes/generaliacm/Tarifs/Controleur/Cpfc1eng.php new file mode 100644 index 0000000..bc4fad9 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Cpfc1kiny.php b/Societes/generaliacm/Tarifs/Controleur/Cpfc1kiny.php new file mode 100644 index 0000000..56dcd5b --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Cpfc2eng.php b/Societes/generaliacm/Tarifs/Controleur/Cpfc2eng.php new file mode 100644 index 0000000..8f80f5f --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Cpfc2kiny.php b/Societes/generaliacm/Tarifs/Controleur/Cpfc2kiny.php new file mode 100644 index 0000000..39d8205 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Cpstandard.php b/Societes/generaliacm/Tarifs/Controleur/Cpstandard.php new file mode 100644 index 0000000..1a8aa3c --- /dev/null +++ b/Societes/generaliacm/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 RADIANT 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/generaliacm/Tarifs/Controleur/Cpstandardeng.php b/Societes/generaliacm/Tarifs/Controleur/Cpstandardeng.php new file mode 100644 index 0000000..828410c --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegedenregistrer.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegedenregistrer.php new file mode 100644 index 0000000..0bd006f --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegedindex.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegedindex.php new file mode 100644 index 0000000..39158bc --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegedinitcollege.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegedinitcollege.php new file mode 100644 index 0000000..6a071d4 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegeenregistrer.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegeenregistrer.php new file mode 100644 index 0000000..df62264 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegeindex.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegeindex.php new file mode 100644 index 0000000..3abfbca --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Creercollegeinitcollege.php b/Societes/generaliacm/Tarifs/Controleur/Creercollegeinitcollege.php new file mode 100644 index 0000000..22aaae4 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Devisstandard.php b/Societes/generaliacm/Tarifs/Controleur/Devisstandard.php new file mode 100644 index 0000000..2c27214 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Devisstandardeng.php b/Societes/generaliacm/Tarifs/Controleur/Devisstandardeng.php new file mode 100644 index 0000000..9beacd3 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Editioncarteassure.php b/Societes/generaliacm/Tarifs/Controleur/Editioncarteassure.php new file mode 100644 index 0000000..4fbfc9b --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Modifiercollegedenregistrer.php b/Societes/generaliacm/Tarifs/Controleur/Modifiercollegedenregistrer.php new file mode 100644 index 0000000..493b0a2 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Modifiercollegedindex.php b/Societes/generaliacm/Tarifs/Controleur/Modifiercollegedindex.php new file mode 100644 index 0000000..3d30abb --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Modifiercollegeenregistrer.php b/Societes/generaliacm/Tarifs/Controleur/Modifiercollegeenregistrer.php new file mode 100644 index 0000000..7561f7d --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Controleur/Modifiercollegeindex.php b/Societes/generaliacm/Tarifs/Controleur/Modifiercollegeindex.php new file mode 100644 index 0000000..dcc4833 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Img/logo_carte.png b/Societes/generaliacm/Tarifs/Img/logo_carte.png new file mode 100644 index 0000000..8dc28e1 Binary files /dev/null and b/Societes/generaliacm/Tarifs/Img/logo_carte.png differ diff --git a/Societes/generaliacm/Tarifs/Img/logo_societe.png b/Societes/generaliacm/Tarifs/Img/logo_societe.png new file mode 100644 index 0000000..410780f Binary files /dev/null and b/Societes/generaliacm/Tarifs/Img/logo_societe.png differ diff --git a/Societes/generaliacm/Tarifs/Modele/College_temp.php b/Societes/generaliacm/Tarifs/Modele/College_temp.php new file mode 100644 index 0000000..7af2cbb --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Modele/College_temp_d.php b/Societes/generaliacm/Tarifs/Modele/College_temp_d.php new file mode 100644 index 0000000..5497021 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Modele/Police.php b/Societes/generaliacm/Tarifs/Modele/Police.php new file mode 100644 index 0000000..2b24813 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Modele/Police_d.php b/Societes/generaliacm/Tarifs/Modele/Police_d.php new file mode 100644 index 0000000..144b153 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Modele/Tarif.php b/Societes/generaliacm/Tarifs/Modele/Tarif.php new file mode 100644 index 0000000..8e8b415 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Vue/Consultercollege.php b/Societes/generaliacm/Tarifs/Vue/Consultercollege.php new file mode 100644 index 0000000..306f346 --- /dev/null +++ b/Societes/generaliacm/Tarifs/Vue/Consultercollege.php @@ -0,0 +1,392 @@ +titre = "INTER-SANTE - Consultation collège"; +?> + + + + + + + /> + + + + + + +
+

+ +
+
+

+ : +

+
+ +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garantiebase['id']); + $garantie = est_anglophone() ? $this->nettoyer($garantiebase['garantieEng']) : $this->nettoyer($garantiebase['garantie']); + ?> + + + + + + + + +
nettoyer($garantiebase['tauxPlafond']) ?>nettoyer($garantiebase['plafond'])) ?> +
+ disabled> +
+
+
+
+
+ + +
+
+
+
+
+
+ + + + + + + + + + + nettoyer($garoptacquise['id']); + $garantie = est_anglophone() ? $this->nettoyer($garoptacquise['garantieEng']) : $this->nettoyer($garoptacquise['garantie']); + ?> + + + + + + + + +
+
+ disabled> +
+
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/Societes/generaliacm/Tarifs/Vue/Creercollege.php b/Societes/generaliacm/Tarifs/Vue/Creercollege.php new file mode 100644 index 0000000..bf7a9f7 --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Vue/Creercolleged.php b/Societes/generaliacm/Tarifs/Vue/Creercolleged.php new file mode 100644 index 0000000..53ec23a --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Vue/Modifiercollege.php b/Societes/generaliacm/Tarifs/Vue/Modifiercollege.php new file mode 100644 index 0000000..731bf1f --- /dev/null +++ b/Societes/generaliacm/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/generaliacm/Tarifs/Vue/Modifiercolleged.php b/Societes/generaliacm/Tarifs/Vue/Modifiercolleged.php new file mode 100644 index 0000000..a03342f --- /dev/null +++ b/Societes/generaliacm/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/Societes/generaliacm/images/logo_etat.png b/Societes/generaliacm/images/logo_etat.png new file mode 100755 index 0000000..1b557d8 Binary files /dev/null and b/Societes/generaliacm/images/logo_etat.png differ diff --git a/Societes/generaliacm/images/logo_etat_new.png b/Societes/generaliacm/images/logo_etat_new.png new file mode 100755 index 0000000..94eea54 Binary files /dev/null and b/Societes/generaliacm/images/logo_etat_new.png differ diff --git a/Societes/radiant/Ged/2025-12-29_69528f26edaf0.xlsx b/Societes/radiant/Ged/2025-12-29_69528f26edaf0.xlsx deleted file mode 100755 index 1a29e27..0000000 Binary files a/Societes/radiant/Ged/2025-12-29_69528f26edaf0.xlsx and /dev/null differ diff --git a/Societes/radiant/Ged/2025-12-29_69528f4021a0c.xlsx b/Societes/radiant/Ged/2025-12-29_69528f4021a0c.xlsx deleted file mode 100755 index ef50de2..0000000 Binary files a/Societes/radiant/Ged/2025-12-29_69528f4021a0c.xlsx and /dev/null differ diff --git a/Societes/radiant/Ged/2025-12-29_69529734a7312.xlsx b/Societes/radiant/Ged/2025-12-29_69529734a7312.xlsx deleted file mode 100755 index ef50de2..0000000 Binary files a/Societes/radiant/Ged/2025-12-29_69529734a7312.xlsx and /dev/null differ diff --git a/Societes/radiant/Ged/2025-12-29_69529795dd18e.xlsx b/Societes/radiant/Ged/2025-12-29_69529795dd18e.xlsx deleted file mode 100755 index ef50de2..0000000 Binary files a/Societes/radiant/Ged/2025-12-29_69529795dd18e.xlsx and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b2da58df7a.pdf b/Societes/radiant/Ged/2026-01-05_695b2da58df7a.pdf deleted file mode 100755 index 923efaa..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b2da58df7a.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b354a0917d.pdf b/Societes/radiant/Ged/2026-01-05_695b354a0917d.pdf deleted file mode 100755 index 7a08f2d..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b354a0917d.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b35611b58a.PDF b/Societes/radiant/Ged/2026-01-05_695b35611b58a.PDF deleted file mode 100755 index f93db76..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b35611b58a.PDF and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b922fd0bf2.pdf b/Societes/radiant/Ged/2026-01-05_695b922fd0bf2.pdf deleted file mode 100755 index 57449eb..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b922fd0bf2.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b96047f94a.pdf b/Societes/radiant/Ged/2026-01-05_695b96047f94a.pdf deleted file mode 100755 index 7a08f2d..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b96047f94a.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-05_695b9a535d8b7.pdf b/Societes/radiant/Ged/2026-01-05_695b9a535d8b7.pdf deleted file mode 100755 index 91ef71c..0000000 Binary files a/Societes/radiant/Ged/2026-01-05_695b9a535d8b7.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-06_695d180640a40.pdf b/Societes/radiant/Ged/2026-01-06_695d180640a40.pdf deleted file mode 100644 index c59e8b6..0000000 Binary files a/Societes/radiant/Ged/2026-01-06_695d180640a40.pdf and /dev/null differ diff --git a/Societes/radiant/Ged/2026-01-06_695d1ea9a9356.pdf b/Societes/radiant/Ged/2026-01-06_695d1ea9a9356.pdf deleted file mode 100644 index 91ef71c..0000000 Binary files a/Societes/radiant/Ged/2026-01-06_695d1ea9a9356.pdf and /dev/null differ