Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 523 Rev 524
Línea 363... Línea 363...
363
                    'data' => 'ERROR_METHOD_NOT_ALLOWED'
363
                    'data' => 'ERROR_METHOD_NOT_ALLOWED'
364
                ];
364
                ];
Línea 365... Línea 365...
365
 
365
 
366
                return new JsonModel($data);
366
                return new JsonModel($data);
367
            }
367
            }
368
            
368
 
369
        } else {
369
        } else {
370
            $data = [
370
            $data = [
371
                'success' => false,
371
                'success' => false,
372
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
372
                'data' => 'ERROR_METHOD_NOT_ALLOWED'
Línea 390... Línea 390...
390
        // Set Data
390
        // Set Data
391
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
391
        $headerFormName = utf8_decode($companySelfEvaluationForm->name);
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)));
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 = '';
-
 
395
        $labels = ['Total', 'Logrado'];
Línea 395... Línea 396...
395
 
396
 
396
 
397
 
Línea 426... Línea 427...
426
                if(isset($sections[$i]['questions'][$j]['comment'])){
427
                if(isset($sections[$i]['questions'][$j]['comment'])){
427
                    $comments += $sections[$i]['questions'][$j]['comment'].'\n';
428
                    $comments += $sections[$i]['questions'][$j]['comment'].'\n';
428
                }
429
                }
429
            }
430
            }
Línea 430... Línea -...
430
 
-
 
431
            $labels = ['Total', 'Logrado'];
431
 
432
            $values = [$valueSection, $totalQuestion];
432
            $values = [$valueSection, $totalQuestion];
Línea 433... Línea 433...
433
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
433
            $valueFormQuestions = $valueFormQuestions + $totalQuestion;
Línea 451... Línea 451...
451
        $pdf->SetFont('Arial', 'B', 10);
451
        $pdf->SetFont('Arial', 'B', 10);
452
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
452
        $pdf->Cell(190, 10, utf8_decode('Desempeño General'), 0, 0, 'C');
453
        $pdf->setY($pdf->getY() + 10);
453
        $pdf->setY($pdf->getY() + 10);
Línea 454... Línea -...
454
 
-
 
455
 
454
 
Línea 456... Línea 455...
456
        $labels = ['Total', 'Logrado'];
455
 
457
        $values = [$valueFormSections, $valueFormQuestions];
456
        $values = [$valueFormSections, $valueFormQuestions];
458
 
457
 
459
        $filenameGeneral = $_SERVER['DOCUMENT_ROOT'] . '/../public/pdf/tmp/' . uniqid() . '.png';
458
        $filenameGeneral = $_SERVER['DOCUMENT_ROOT'] . '/../public/pdf/tmp/' . uniqid() . '.png';
Línea 460... Línea 459...
460
        //$pdf->barChart($labels, $values, $title, $filenameGeneral);
459
        //$pdf->barChart($labels, $values, '', $filenameGeneral);
461
        //$pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);
460
        //$pdf->Image($filenameGeneral, 60, $pdf->getY(), 90);