Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1206 Rev 1207
Línea 221... Línea 221...
221
 
221
 
Línea 222... Línea 222...
222
                        $behavior = $behaviorMapper->fetchOne($rows->behavior_id);
222
                        $behavior = $behaviorMapper->fetchOne($rows->behavior_id);
223
 
223
 
224
                        if ($behavior) {
224
                        if ($behavior) {
225
                            array_push($behaviors, [
225
                            array_push($behaviors, [
226
                                'behavior_id' => $record->id,
226
                                'behavior_id' => $behavior->id,
227
                                'competency_id' => $record->uuid,
227
                                'competency_id' => $record->uuid,
228
                                'description' => $behavior->description,
228
                                'description' => $behavior->description,
229
                                'level' => 0
229
                                'level' => 0
Línea 585... Línea 585...
585
                if (isset($competencyTypesUUID[$record->competency_type_id])) {
585
                if (isset($competencyTypesUUID[$record->competency_type_id])) {
Línea 586... Línea 586...
586
 
586
 
587
 
587
 
-
 
588
                    $behaviorCompetencies = $behaviorCompetencyMapper->fetchByCompetencyId($record->id);
Línea 588... Línea 589...
588
                    $behaviorCompetencies = $behaviorCompetencyMapper->fetchByCompetencyId($record->id);
589
                    $behaviors = [];
Línea 589... Línea 590...
589
                    $behaviors = [];
590
                    $behaviors_selected = [];
590
 
591
 
591
                    foreach ($behaviorCompetencies as $rows) {
592
                    foreach ($behaviorCompetencies as $rows) {
592
 
593
 
593
                        $behavior = $behaviorMapper->fetchOne($rows->behavior_id);
594
                        $behavior = $behaviorMapper->fetchOne($rows->behavior_id);
594
                        if ($behavior) {
595
                        if ($behavior) {
595
                            array_push($behaviors, [
596
                            array_push($behaviors, [
596
                                'behavior_id' => $record->id,
597
                                'behavior_id' => $behavior->id,
597
                                'competency_id' => $record->uuid,
598
                                'competency_id' => $record->uuid,
598
                                'description' => $behavior->description,
599
                                'description' => $behavior->description,
Línea 599... Línea 600...
599
                                'level' => 0
600
                                'level' => 0
600
                            ]);
601
                            ]);
-
 
602
                        }
-
 
603
                    }
Línea -... Línea 604...
-
 
604
 
-
 
605
                    $jobDescriptionCompetency = $jobDescriptionCompetencyMapper->fetchOneByJobDescriptionIdAndCompetencyId($jobDescription->id, $record->id);
-
 
606
                    if ($jobDescriptionCompetency) {
-
 
607
                        
-
 
608
                        foreach ($behaviorCompetencies as $rows) {
-
 
609
 
-
 
610
                        $behavior = $behaviorMapper->fetchOne($rows->behavior_id);
-
 
611
                        if ($behavior) {
-
 
612
                            
-
 
613
                            $jobDescriptionBehaviorCompetency = $jobDescriptionBehaviorCompetency->fetchOneByBehavior($jobDescription->id, $record->id,$rows->behavior_id);
-
 
614
                    if ($jobDescriptionBehaviorCompetency) {
-
 
615
                            array_push($behaviors_selected, [
-
 
616
                                'behavior_id' => $behavior->id,
-
 
617
                                'competency_id' => $record->uuid,
601
                        }
618
                                'description' => $behavior->description,
602
                    }
619
                                'level' =>  $jobDescriptionBehaviorCompetency->level
603
 
620
                            ]);
604
                    $jobDescriptionCompetency = $jobDescriptionCompetencyMapper->fetchOneByJobDescriptionIdAndCompetencyId($jobDescription->id, $record->id);
621
                    }
605
                    if ($jobDescriptionCompetency) {
622
                        }
606
 
623
                    }
607
                        array_push($data['competencies_selected'], [
624
                        array_push($data['competencies_selected'], [
Línea 608... Línea 625...
608
                            'competency_type_id' => $competencyTypesUUID[$record->competency_type_id],
625
                            'competency_type_id' => $competencyTypesUUID[$record->competency_type_id],
609
                            'competency_id' => $record->uuid,
626
                            'competency_id' => $record->uuid,
Línea 647... Línea 664...
647
 
664
 
Línea 648... Línea 665...
648
            foreach ($records as $record) {
665
            foreach ($records as $record) {
Línea 649... Línea 666...
649
 
666
 
650
                if (isset($jobsDescriptionUUID[$record->job_description_id_low_level])) {
667
                if (isset($jobsDescriptionUUID[$record->job_description_id_low_level])) {
651
 
-
 
652
                       $jobDescriptionSub = $jobDescriptionMapper->fetchOne($record->job_description_id_low_level);
-
 
653
        if ($jobDescriptionSub) {
-
 
654
 
-
 
655
                    array_push($data['subordinates_selected'], [
-
 
Línea -... Línea 668...
-
 
668
 
-
 
669
                    $jobDescriptionSub = $jobDescriptionMapper->fetchOne($record->job_description_id_low_level);
-
 
670
                    if ($jobDescriptionSub) {
-
 
671
 
656
                        'job_description_id' => $jobDescriptionSub->uuid,
672
                        array_push($data['subordinates_selected'], [
657
                        'name' => $jobDescriptionSub->name
673
                            'job_description_id' => $jobDescriptionSub->uuid,
658
                    ]);
674
                            'name' => $jobDescriptionSub->name
Línea 659... Línea 675...
659
 
675
                        ]);
660
                }
676
                    }