protected function _show(Intervention $entity)
 {
     $trustee = $entity->getDoor()->getTrustee();
     $this->setX(120);
     $this->setFont('Arial', 'B', 11);
     $this->cell(0, 5, $trustee->getName(), 0, 2);
     $this->setX(120);
     $this->setFont('Arial', '', 11);
     $this->multiCell(0, 5, $trustee->getAddress());
     $this->ln(10);
     $this->cellTitle($this->_getTitle());
     $this->cellIntro('Nous vous transmettons le rapport d\'intervention du ' . $entity->getLastDate()->format('d/m/Y') . ' qui fait suite à votre demande par ' . $entity->getAskMethod() . ' :');
     $this->ln(10);
     $this->cellH1($entity->getDoor()->getSite() . '');
     $this->cellH2($entity->getDoor()->getType() . ' - ' . $entity->getDoor()->getLocation());
 }
예제 #2
0
 private function _line(Intervention $entity)
 {
     $types = array('fixing' => 'Dépannage', 'maintenance' => 'Entretien', 'work' => 'Travaux');
     $dayTrans = array('dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi');
     $datas[0] = $dayTrans[$entity->getClose()->format('w')] . chr(10) . $entity->getClose()->format('d/m/Y');
     $datas[1] = $entity->getDoor()->getTrustee();
     $datas[2] = $entity->getDoor()->getSite()->getAddress() . '';
     $datas[3] = $types[$entity->getType()];
     $datas[4] = $entity->getContract() == 'Hors contrat' ? 'HC' : $entity->getDynContract();
     $datas[5] = $entity->getReason();
     $datas[6] = 'Rapport :' . chr(10) . $entity->getReport();
     if ($entity->getRest()) {
         $datas[6] .= chr(10) . chr(10) . 'Reste à faire :' . chr(10) . $entity->getRest();
     }
     $this->row($datas, 5, 1, false);
 }