Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 517 Rev 518
Línea 405... Línea 405...
405
     */
405
     */
406
    public function renderPDF($companySelfEvaluationForm, $companySelfEvaluationTest, $userMapper) {
406
    public function renderPDF($companySelfEvaluationForm, $companySelfEvaluationTest, $userMapper) {
Línea 407... Línea 407...
407
 
407
 
408
        // Set Data
408
        // Set Data
409
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
409
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
410
        $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)));
410
        $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)));
411
        $sections = json_decode($companySelfEvaluationTest->content, true);
411
        $sections = json_decode($companySelfEvaluationTest->content, true);
412
        $comments = '';
412
        $comments = '';
Línea 413... Línea 413...
413
        $labels = ['LABEL_TOTAL', 'LABEL_SUCCES'];
413
        $labels = ['Total', 'Logrado'];
414
 
414
 
Línea 465... Línea 465...
465
 
465
 
466
        $pdf->AddPage();
466
        $pdf->AddPage();
Línea 467... Línea 467...
467
        $pdf->pageHeader($headerFormName, $headerUserName);
467
        $pdf->pageHeader($headerFormName, $headerUserName);
468
 
468
 
469
        $pdf->SetFont('Arial', 'B', 10);
469
        $pdf->SetFont('Arial', 'B', 10);
Línea 470... Línea 470...
470
        $pdf->Cell(190, 10, 'LABEL_OVERAL_PERFORMANCE', 0, 0, 'C');
470
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
Línea 477... Línea 477...
477
        $pdf->barChart($labels, $values, '', $filenameGeneral);
477
        $pdf->barChart($labels, $values, '', $filenameGeneral);
478
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
478
        $pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
479
        $pdf->setY($pdf->getY() + 60);
479
        $pdf->setY($pdf->getY() + 60);
Línea 480... Línea 480...
480
 
480
 
481
        $pdf->SetFont('Arial','B', 10);
481
        $pdf->SetFont('Arial','B', 10);
482
        $pdf->Cell(190,10,'LABEL_FINAL_COMMENT',0,0,'C');
482
        $pdf->Cell(190,10, utf8_decode('Comentarios finales'),0,0,'C');
Línea 483... Línea 483...
483
        $pdf->setY($pdf->getY() + 10);
483
        $pdf->setY($pdf->getY() + 10);
484
        
484
        
485
        $pdf->SetFont('Arial','', 8);
485
        $pdf->SetFont('Arial','', 8);