Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7169 Rev 7170
Línea 286... Línea 286...
286
                        
286
                        
287
                        
287
                        
Línea -... Línea 288...
-
 
288
                        $performanceEvaluationTest = $performanceEvaluationTestMapper->fetchOne($record->relational_id);
-
 
289
                        if($performanceEvaluationTest) {
288
                        $performanceEvaluationTest = $performanceEvaluationTestMapper->fetchOne($record->relational_id);
290
                            
289
                        if($performanceEvaluationTest) {
291
      
290
                            
-
 
291
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
-
 
292
                            if($performanceEvaluationForm) {
-
 
293
                                $jobDescription = $jobDescriptionMapper->fetchOne($performanceEvaluationForm->job_description_id);
-
 
294
                                if($jobDescription) {
292
                            
295
                            
293
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
296
                            
294
                            if($performanceEvaluationForm) {
297
                                    if($performanceEvaluationTest->supervisor_id) {
295
                                if($performanceEvaluationTest->supervisor_id) {
298
                                        $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
-
 
299
                                    } else {
-
 
300
                                        $supervisor = '';
-
 
301
                                    }
-
 
302
                                    
-
 
303
                                    if($performanceEvaluationTest->employee_id) {
-
 
304
                                        $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
296
                                    $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
305
                                    } else {
-
 
306
                                        $employee = '';
-
 
307
                                    }
-
 
308
                                    
-
 
Línea -... Línea 297...
-
 
297
                                } else {
-
 
298
                                    $supervisor = '';
-
 
299
                                }
-
 
300
                                    
-
 
301
                                if($performanceEvaluationTest->employee_id) {
-
 
302
                                    $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
-
 
303
                                } else {
309
                                    
304
                                    $employee = '';
-
 
305
                                }
-
 
306
                                
-
 
307
                                print_r($companyUsers); exit;
Línea -... Línea 308...
-
 
308
                                
-
 
309
                                $hasLink = false;
-
 
310
                                if(!empty($companyUsers[$currentUser->id])) {
-
 
311
                                    $hasLink = true;
-
 
312
                                    
-
 
313
                                }
-
 
314
                                
310
                                    
315
                                switch ($performanceEvaluationTest->type) 
-
 
316
                                {
-
 
317
                                    case PerformanceEvaluationTest::TYPE_SUPERVISOR : 
-
 
318
                                    case PerformanceEvaluationTest::TYPE_BOTH  : 
-
 
319
                                        if($performanceEvaluationTest->supervisor_id != $currentUser->id) {
311
                                    
320
                                            $hasLink = false;
-
 
321
                                        }
-
 
322
                                        break;
-
 
323
                                        
-
 
324
                                    case  PerformanceEvaluationTest::TYPE_EMPLOYEE  :
-
 
325
                                        if($performanceEvaluationTest->employee_id != $currentUser->id) {
312
                                    
326
                                            $hasLink = false;
-
 
327
                                        }
313
                                   
328
                                        break;
-
 
329
                                        
-
 
330
                                    default : 
Línea 314... Línea 331...
314
                                    
331
                                        $hasLink = false;
Línea 315... Línea 332...
315
                                    $hasLink = false;
332
                                        break;
316
                                    if(!empty($companyUsers[$currentUser->id])) {
333
                                }
Línea 388... Línea 405...
388
                                        'backgroundColor'   => $backgroundColor,
405
                                        'backgroundColor'   => $backgroundColor,
389
                                        'textColor'         => $textColor,
406
                                        'textColor'         => $textColor,
390
                                        'allDay'            => true,
407
                                        'allDay'            => true,
391
                                        'type'              => 'task',
408
                                        'type'              => 'task',
392
                                    ]);
409
                                    ]);
393
                                }
-
 
-
 
410
                               
394
                            }
411
                            }
Línea 395... Línea 412...
395
                            
412