Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 555 | Rev 558 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 555 Rev 557
Línea 387... Línea 387...
387
     */
387
     */
388
    public function renderPDF($companySelfEvaluationForm, $companySelfEvaluationTest, $userMapper) {
388
    public function renderPDF($companySelfEvaluationForm, $companySelfEvaluationTest, $userMapper) {
Línea 389... Línea 389...
389
 
389
 
390
        // Set Data
390
        // Set Data
391
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
391
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
392
        $headerUserName = utf8_decode('LABEL_SELF_EVALUATION_INFORM' . trim($userMapper->first_name . ' ' . $userMapper->last_name) . ' al ' . date("m-d-Y H:i:s", strtotime($companySelfEvaluationTest->added_on)));
392
        $headerUserName = utf8_decode('Informe de Auto-evaluación: ' . trim($userMapper->first_name . ' ' . $userMapper->last_name) . ' al ' . date("m-d-Y H:i:s", strtotime($companySelfEvaluationTest->added_on)));
393
        $sections = json_decode($companySelfEvaluationTest->content, true);
393
        $sections = json_decode($companySelfEvaluationTest->content, true);
394
        $comments = '';
394
        $comments = '';
Línea 395... Línea 395...
395
        $labels = ['LABEL_TOTAL', 'LABEL_SUCCES'];
395
        $labels = ['Total', 'Logrado'];
396
 
396
 
Línea 447... Línea 447...
447
 
447
 
448
        $pdf->AddPage();
448
        $pdf->AddPage();
Línea 449... Línea 449...
449
        $pdf->pageHeader($headerFormName, $headerUserName);
449
        $pdf->pageHeader($headerFormName, $headerUserName);
450
 
450
 
451
        $pdf->SetFont('Arial', 'B', 10);
451
        $pdf->SetFont('Arial', 'B', 10);
Línea 452... Línea 452...
452
        $pdf->Cell(190, 10, utf8_decode('LABEL_OVERAL_PERFORMANCE'), 0, 0, 'C');
452
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
Línea 459... Línea 459...
459
        $pdf->barChart($labels, $values, '', $filenameGeneral);
459
        $pdf->barChart($labels, $values, '', $filenameGeneral);
460
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
460
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
461
        $pdf->setY($pdf->getY() + 60);
461
        $pdf->setY($pdf->getY() + 60);
Línea 462... Línea 462...
462
 
462
 
463
        $pdf->SetFont('Arial','B', 10);
463
        $pdf->SetFont('Arial','B', 10);
464
        $pdf->Cell(190,10, utf8_decode('LABEL_FINAL_COMMENT'),0,0,'C');
464
        $pdf->Cell(190,10, utf8_decode('Comentarios finales'),0,0,'C');
Línea 465... Línea 465...
465
        $pdf->setY($pdf->getY() + 10);
465
        $pdf->setY($pdf->getY() + 10);
466
        
466
        
467
        $pdf->SetFont('Arial','', 8);
467
        $pdf->SetFont('Arial','', 8);