Your IP : 216.73.216.65


Current Path : /home/ataenra/www/ATA/INTRANET/GenPDF/1Simulation/TypeProjet/
Upload File :
Current File : /home/ataenra/www/ATA/INTRANET/GenPDF/1Simulation/TypeProjet/Simul_PAC_BALTH.php

<?php
 

$pdf->AddPage();
     
$pdf->setSourceFile('./ATA/INTRANET/GenPDF/1Simulation/Required/Bases/Resultat_BALTH.pdf');
 
$tplIdx = $pdf->importPage(1);
$pdf->useTemplate($tplIdx, 0, 0, 210);


//Numero Simulation
$pdf->SetFont('Helvetica','B','24');
$pdf->SetXY(58, 81.3);
$pdf->Cell(0,8,''.$R->ID.'',0,1,'L',false);

//Numero Simulation
$pdf->SetFont('Helvetica','B','10');
$pdf->SetXY(130, 63.8);
$pdf->Cell(0,6,''.$R->nom.'',0,1,'L',false);
$pdf->SetXY(180, 63.8);
$pdf->Cell(0,6,''.$R->prenom.'',0,1,'L',false);
$pdf->SetXY(135, 69);
$pdf->Cell(0,6,''.$R->rueC.'',0,1,'L',false);
$pdf->SetXY(140, 74.4);
$pdf->Cell(0,6,''.$R->CodePC.'',0,1,'L',false);
$pdf->SetXY(175, 74.4);
$pdf->Cell(0,6,''.$R->VilleC.'',0,1,'L',false);

$pdf->SetFont('Helvetica','','10');
$pdf->SetXY(138, 79.6);
$pdf->Cell(0,6,''.$R->Proptype.' de '.$R->hab.'',0,1,'L',false);


//Primes 
if($R->PrimeATA == "Oui"){
$pdf->SetFont('Helvetica','B','10');
$pdf->SetXY(180, 100.5);
//Profil Ma Prime Rénov
$pdf->Cell(0,6,''.$R->CouleurPrimeRenov.'',0,1,'L',false);
$pdf->SetXY(171.2, 106.9);
//Profil CEE 
$pdf->Cell(0,6,''.$R->MPR.' euros',0,1,'L',false);
$pdf->SetXY(162, 113.3);

$pdf->Cell(0,6,''.$R->ProfilCee.'',0,1,'L',false);
$pdf->SetXY(171.2, 119.6);
//Montant Eligible 
$pdf->Cell(0,6,''.$R->MCEE.' euros',0,1,'L',false);
}
//Situation existante
$pdf->SetFont('Helvetica','','8');
$pdf->SetXY(137, 143.8);
$pdf->Cell(0,6,''.$R->Deperditions.' Watts',0,1,'L',false);
$pdf->SetXY(173, 143.8);
$pdf->Cell(0,6,''.$Emetteurs.'',0,1,'L',false);
$pdf->SetXY(146.5, 148);
$pdf->Cell(0,6,''.$Ctype.'',0,1,'L',false);
$pdf->SetXY(139.2, 152.2);
$pdf->Cell(0,6,''.$ecstype.'',0,1,'L',false);


//Projet
$pdf->SetXY(141, 164.9);
$pdf->Cell(0,6,''.$R2->typepac.'',0,1,'L',false);
$pdf->SetXY(178, 164.9);
$pdf->Cell(0,6,''.$EcsNew.'',0,1,'L',false);
$pdf->SetXY(146, 169.1);
$pdf->Cell(0,6,''.$R->PuissancePacF.' Kw',0,1,'L',false);
$pdf->SetXY(182, 169.2);
$pdf->Cell(0,6,''.$R->PTauxcouv.' %',0,1,'L',false);

//Modifier section Enedis a décalé vers la droite 

$pdf->SetXY(146, 173.5);
$pdf->Cell(0,6,''.$R->messagelec.'',0,1,'L',false);
$pdf->SetXY(182, 173.5);
$pdf->Cell(0,6,''.$R->messagenedis.'',0,1,'L',false);


//Consommations
$pdf->SetFont('Helvetica','B','10');
$pdf->SetXY(153, 191);
$pdf->Cell(0,6,''.$R->ConsoTEx.' kwh',0,1,'L',false);
$pdf->SetXY(171, 196.2);
$pdf->Cell(0,6,''.$R->ConsoPac.' kwh',0,1,'L',false);
if($R->EcsNew=="Oui"||$R->EcsNew=="RaccoB"||$R->EcsNew=="RaccoBN"){
$pdf->SetXY(162, 201.4);
$pdf->Cell(0,6,''.$R->ConsoPacEcs.' kwh',0,1,'L',false); 
}else{
$pdf->SetXY(162, 201.4);
$pdf->Cell(0,6,'0 kwh',0,1,'L',false);//Ajouter selon info
}

$pdf->SetXY(157.2, 206.7);
$pdf->Cell(0,6,''.$R->EcoPac.' euros',0,1,'L',false);


//Prix
$pdf->SetXY(152.5, 227);
$pdf->Cell(0,6,''.$R->PrixVentePac.' euros',0,1,'L',false);
if($R->PrimeATA =="Oui"){
$pdf->SetXY(156.5, 232);
$Primes = $R->MPR+$R->MCEE;
$pdf->Cell(0,6,''.$Primes.' euros',0,1,'L',false);


$pdf->SetFont('Helvetica','','12');
$pdf->SetXY(173, 240.5);
$RAC = $R->PrixVentePac-$Primes;
$pdf->Cell(0,6,''.$RAC.' euros',0,1,'L',false);}else{
$pdf->SetFont('Helvetica','','12');
$pdf->SetXY(173, 240.5);
$RAC = $R->PrixVentePac;
$pdf->Cell(0,6,''.$RAC.' euros',0,1,'L',false);
}

//Image Pac

if($R2->Marque == "Airwell"){
if($R2->typepac == "ECS"){
$pdf->Image('./ATA/INTRANET/Formulaires/img/tdf.png',27,212,60);
}}

$pdf->SetXY(39, 142);
$pdf->Image('./ATA/INTRANET/Formulaires/PAC_AE/IMG/'.$R2->id.'.png',10,103,80);




$pdf->Output('F', './ATA/FICHIERS/'.$ID.'/Simulation/Simulation'.$ID.'TH.pdf'); 
//$pdf->Output("I", 'test');
?>