Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 523 Rev 541
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('Informe de Auto-evaluación: ' . 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);
-
 
412
        $comments = '';
411
        $sections = json_decode($companySelfEvaluationTest->content, true);
Línea 413... Línea 412...
413
        $labels = ['Total', 'Logrado'];
412
        $labels = ['Total', 'Logrado'];
414
 
413
 
Línea 440... Línea 439...
440
            $valueSection = floatval($sections[$i]['value']);
439
            $valueSection = floatval($sections[$i]['value']);
441
            $valueFormSections = $valueFormSections + $valueSection;
440
            $valueFormSections = $valueFormSections + $valueSection;
Línea 442... Línea 441...
442
 
441
 
443
            for ($j = 0; $j < count($sections[$i]['questions']); $j++) {
442
            for ($j = 0; $j < count($sections[$i]['questions']); $j++) {
444
                $totalQuestion = $totalQuestion + $this->getPtosAnswer($sections[$i]['questions'][$j]);
-
 
445
                if(isset($sections[$i]['questions'][$j]['comment'])){
-
 
446
                    $comments = $comments.' '.$sections[$i]['questions'][$j]['comment'];
-
 
447
                }
443
                $totalQuestion = $totalQuestion + $this->getPtosAnswer($sections[$i]['questions'][$j]);
Línea 448... Línea 444...
448
            }
444
            }
449
 
445
 
Línea 481... Línea 477...
481
        $pdf->SetFont('Arial','B', 10);
477
        $pdf->SetFont('Arial','B', 10);
482
        $pdf->Cell(190,10, utf8_decode('Comentarios finales'),0,0,'C');
478
        $pdf->Cell(190,10, utf8_decode('Comentarios finales'),0,0,'C');
483
        $pdf->setY($pdf->getY() + 10);
479
        $pdf->setY($pdf->getY() + 10);
Línea 484... Línea 480...
484
        
480
        
485
        $pdf->SetFont('Arial','', 8);
481
        $pdf->SetFont('Arial','', 8);
486
        $pdf->MultiCell(180,  8, $comments);
482
        $pdf->MultiCell(180,  8, utf8_decode($companySelfEvaluationTest->comments));
Línea 487... Línea 483...
487
        $pdf->setY(60);
483
        $pdf->setY(60);
488
 
484