Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7174 Rev 7197
Línea 1619... Línea 1619...
1619
 
1619
 
1620
                            $recruitmentSelectionCandidate = $recruitmentSelectionCandidateMapper->fetchOne($recruitmentSelectionInterview->candidate_id);
1620
                            $recruitmentSelectionCandidate = $recruitmentSelectionCandidateMapper->fetchOne($recruitmentSelectionInterview->candidate_id);
1621
                            if ($recruitmentSelectionVacancy && $recruitmentSelectionCandidate) {
1621
                            if ($recruitmentSelectionVacancy && $recruitmentSelectionCandidate) {
1622
                                $jobDescription = $jobDescriptionMapper->fetchOne($recruitmentSelectionVacancy->job_description_id);
1622
                                $jobDescription = $jobDescriptionMapper->fetchOne($recruitmentSelectionVacancy->job_description_id);
-
 
1623
                                if ($jobDescription) {
1623
                                if ($jobDescription) {
1624
                                    $url = '';
Línea 1624... Línea 1625...
1624
                                    $hasLink = !empty($companyUsers[$recruitmentSelectionInterview->company_id]);
1625
                                    $hasLink = !empty($companyUsers[$recruitmentSelectionInterview->company_id]);
Línea 1625... Línea 1626...
1625
 
1626
 
Línea 1639... Línea 1640...
1639
                                            'relational' => $recruitmentSelectionInterview->uuid,
1640
                                            'relational' => $recruitmentSelectionInterview->uuid,
1640
                                            'type' => CalendarEvent::TYPE_RECRUITMENT_SELECTION_INTERVIEW
1641
                                            'type' => CalendarEvent::TYPE_RECRUITMENT_SELECTION_INTERVIEW
1641
                                        ]);
1642
                                        ]);
Línea 1642... Línea -...
1642
 
-
 
1643
 
-
 
1644
                                        $agenda = '<a href="' . $href . '" class="goto-backend"><br>';
-
 
1645
                                    } else {
-
 
1646
                                        $agenda = '';
-
 
1647
                                    }
-
 
1648
 
-
 
1649
                                    $agenda .= " LABEL_RECRUITMENT_SELECTION_JOB_DESCRIPTION : " . $jobDescription->name . "<br>";
-
 
1650
                                    switch ($recruitmentSelectionInterview->type) {
-
 
1651
                                        case RecruitmentSelectionInterview::TYPE_BOSS:
-
 
1652
                                            $agenda .= " LABEL_RECRUITMENT_SELECTION_TYPE : LABEL_RECRUITMENT_SELECTION_TYPE_BOSS_INTERVIEW <br>";
-
 
1653
                                            break;
-
 
1654
 
-
 
1655
                                        case RecruitmentSelectionInterview::TYPE_HUMAN_RESOURCE:
1643
 
1656
                                            $agenda .= " LABEL_RECRUITMENT_SELECTION_TYPE : LABEL_RECRUITMENT_SELECTION_TYPE_HUMAN_RESOURCE <br>";
1644
 
1657
                                            break;
1645
                                        $url = $href;
1658
                                    }
-
 
1659
 
-
 
1660
                                    $agenda .= " LABEL_RECRUITMENT_SELECTION_CANDIDATE : " . trim($recruitmentSelectionCandidate->first_name . ' ' . $recruitmentSelectionCandidate->last_name) . " <br>";
-
 
1661
 
-
 
1662
 
1646
                                    }
1663
 
-
 
1664
                                    $dtStart = \DateTime::createFromFormat('Y-m-d', $recruitmentSelectionInterview->last_date);
-
 
1665
                                    $agenda .= " LABEL_PERFORMANCE_EVALUATION_LAST_DATE : " . $dtStart->format('Y-m-d') . "<br>";
-
 
1666
 
-
 
1667
                                    if ($hasLink) {
-
 
Línea 1668... Línea 1647...
1668
                                        $agenda .= "</a><br>";
1647
                                    
1669
                                    }
1648
                                    $dtStart = \DateTime::createFromFormat('Y-m-d', $recruitmentSelectionInterview->last_date);
1670
 
1649
 
1671
 
-
 
1672
 
1650
 
1673
 
1651
 
1674
                                    array_push($events, [
1652
 
1675
                                        'id'                => $recruitmentSelectionInterview->uuid,
1653
                                    array_push($events, [
1676
                                        'title'             => $recruitmentSelectionVacancy->name,
1654
                                        'id'                => $recruitmentSelectionInterview->uuid,
1677
                                        'agenda'            => $agenda,
1655
                                        'title'             => $recruitmentSelectionVacancy->name,
1678
                                        'start'             => $dtStart->format('Y-m-d'),
1656
                                        'start'             => $dtStart->format('d/m/Y'),
Línea 1701... Línea 1679...
1701
 
1679
 
1702
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
1680
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
1703
                            if ($performanceEvaluationForm) {
1681
                            if ($performanceEvaluationForm) {
1704
                                $jobDescription = $jobDescriptionMapper->fetchOne($performanceEvaluationForm->job_description_id);
1682
                                $jobDescription = $jobDescriptionMapper->fetchOne($performanceEvaluationForm->job_description_id);
1705
                                if ($jobDescription) {
-
 
-
 
1683
                                if ($jobDescription) {
-
 
1684
                                    $url = '';
Línea 1706... Línea 1685...
1706
 
1685
                                    $hasLink = !empty($companyUsers[$performanceEvaluationTest->company_id]);
1707
 
1686
 
1708
                                    if ($performanceEvaluationTest->supervisor_id) {
1687
                                    if ($performanceEvaluationTest->supervisor_id) {
1709
                                        $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
1688
                                        $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
Línea 1715... Línea 1694...
1715
                                        $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
1694
                                        $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
1716
                                    } else {
1695
                                    } else {
1717
                                        $employee = '';
1696
                                        $employee = '';
1718
                                    }
1697
                                    }
Línea 1719... Línea -...
1719
 
-
 
-
 
1698
 
Línea 1720... Línea 1699...
1720
                                    $hasLink = !empty($companyUsers[$performanceEvaluationTest->company_id]);
1699
                                   
Línea 1721... Línea 1700...
1721
 
1700
 
1722
                                    if ($hasLink) {
1701
                                    if ($hasLink) {
Línea 1735... Línea 1714...
1735
                                            'relational' => $performanceEvaluationTest->uuid,
1714
                                            'relational' => $performanceEvaluationTest->uuid,
1736
                                            'type' => CalendarEvent::TYPE_PERFORMANCE_EVALUATION
1715
                                            'type' => CalendarEvent::TYPE_PERFORMANCE_EVALUATION
1737
                                        ]);
1716
                                        ]);
Línea 1738... Línea -...
1738
 
-
 
1739
 
-
 
1740
                                        $agenda = '<a href="' . $href . '" class="goto-backend"><br>';
-
 
1741
                                    } else {
-
 
1742
                                        $agenda = '';
-
 
1743
                                    }
-
 
1744
 
-
 
1745
                                    $agenda .= " LABEL_PERFORMANCE_EVALUATION_FORM_NAME : " . $performanceEvaluationForm->name . "<br>";
-
 
1746
                                    $agenda .= " LABEL_PERFORMANCE_EVALUATION_JOB_DESCRIPTION : " . $jobDescription->name . "<br>";
-
 
1747
 
-
 
1748
                                    switch ($performanceEvaluationTest->type) {
-
 
1749
                                        case PerformanceEvaluationTest::TYPE_BOTH:
1717
 
1750
                                            $agenda .= " LABEL_PERFORMANCE_EVALUATION_TYPE : LABEL_PERFORMANCE_EVALUATION_TYPE_BOTH <br>";
-
 
1751
                                            break;
-
 
1752
 
-
 
1753
                                        case PerformanceEvaluationTest::TYPE_SUPERVISOR:
-
 
1754
                                            $agenda .= " LABEL_PERFORMANCE_EVALUATION_TYPE : LABEL_PERFORMANCE_EVALUATION_TYPE_SUPERVISOR <br>";
-
 
1755
                                            break;
-
 
1756
 
-
 
1757
                                        case PerformanceEvaluationTest::TYPE_EMPLOYEE:
-
 
1758
                                            $agenda .= " LABEL_PERFORMANCE_EVALUATION_TYPE : LABEL_PERFORMANCE_EVALUATION_TYPE_EMPLOYEE <br>";
-
 
1759
                                            break;
-
 
1760
                                    }
-
 
1761
 
-
 
1762
                                    if ($supervisor) {
-
 
1763
                                        $agenda .= " LABEL_PERFORMANCE_EVALUATION_SUPERVISOR : " . trim($supervisor->first_name . ' ' . $supervisor->last_name) . " <br>";
-
 
1764
                                    }
-
 
1765
                                    if ($employee) {
1718
 
Línea 1766... Línea 1719...
1766
                                        $agenda .= " LABEL_PERFORMANCE_EVALUATION_EMPLOYEE : " . trim($employee->first_name . ' ' . $employee->last_name) . " <br>";
1719
                                        $url = $href ;
1767
                                    }
-
 
1768
 
-
 
1769
                                    $dtStart = \DateTime::createFromFormat('Y-m-d', $performanceEvaluationTest->last_date);
-
 
1770
                                    $agenda .= " LABEL_PERFORMANCE_EVALUATION_LAST_DATE : " . $dtStart->format('Y-m-d') . "<br>";
-
 
1771
 
-
 
1772
                                    if ($hasLink) {
-
 
1773
                                        $agenda .= "</a><br>";
-
 
1774
                                    }
-
 
Línea 1775... Línea 1720...
1775
 
1720
                                    }
1776
 
1721
 
1777
 
1722
                                    $dtStart = \DateTime::createFromFormat('Y-m-d', $performanceEvaluationTest->last_date);
1778
 
-
 
1779
                                    array_push($events, [
1723
 
1780
                                        'id'                => $performanceEvaluationTest->uuid,
1724
                                    array_push($events, [
1781
                                        'title'             =>  $performanceEvaluationForm->name,
1725
                                        'id'                => $performanceEvaluationTest->uuid,
1782
                                        'agenda'            => $agenda,
1726
                                        'title'             =>  $performanceEvaluationForm->name,
1783
                                        'start'             => $dtStart->format('Y-m-d'),
1727
                                        'start'             => $dtStart->format('d/m/Y'),
1784
                                        'url'               => '',
1728
                                        'url'               => '',