Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7171 Rev 7172
Línea 290... Línea 290...
290
                            
290
                            
291
      
291
      
-
 
292
                            
-
 
293
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
292
                            
294
                            if($performanceEvaluationForm) {
293
                            $performanceEvaluationForm = $performanceEvaluationFormMapper->fetchOne($performanceEvaluationTest->form_id);
295
                                $jobDescription = $jobDescriptionMapper->fetchOne($performanceEvaluationForm->job_description_id);
294
                            if($performanceEvaluationForm) {
296
                                if($jobDescription) {
295
                                if($performanceEvaluationTest->supervisor_id) {
297
                                    if($performanceEvaluationTest->supervisor_id) {
296
                                    $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
298
                                        $supervisor = $userMapper->fetchOne($performanceEvaluationTest->supervisor_id);
297
                                } else {
299
                                    } else {
298
                                    $supervisor = '';
300
                                        $supervisor = '';
299
                                }
301
                                    }
300
                                    
302
                                        
301
                                if($performanceEvaluationTest->employee_id) {
303
                                    if($performanceEvaluationTest->employee_id) {
302
                                    $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
304
                                        $employee = $userMapper->fetchOne($performanceEvaluationTest->employee_id);
303
                                } else {
-
 
304
                                    $employee = '';
-
 
305
                                }
-
 
306
                                
-
 
307
              
-
 
Línea 308... Línea -...
308
                                $hasLink = false;
-
 
309
                                if(!empty($companyUsers[$performanceEvaluationTest->company_id])) {
305
                                    } else {
310
                                    $hasLink = true;
-
 
311
                                    
306
                                        $employee = '';
312
                                }
-
 
313
                                
307
                                    }
314
                                switch ($performanceEvaluationTest->type) 
-
 
315
                                {
308
                                    
316
                                    case PerformanceEvaluationTest::TYPE_SUPERVISOR : 
-
 
317
                                    case PerformanceEvaluationTest::TYPE_BOTH  : 
-
 
Línea -... Línea 309...
-
 
309
                  
-
 
310
                                    $hasLink = false;
-
 
311
                                    if(!empty($companyUsers[$performanceEvaluationTest->company_id])) {
-
 
312
                                        $hasLink = true;
-
 
313
                                        
-
 
314
                                    }
-
 
315
                                    
-
 
316
                                    switch ($performanceEvaluationTest->type) 
-
 
317
                                    {
-
 
318
                                        case PerformanceEvaluationTest::TYPE_SUPERVISOR : 
-
 
319
                                        case PerformanceEvaluationTest::TYPE_BOTH  : 
318
                                        if($performanceEvaluationTest->supervisor_id != $currentUser->id) {
320
                                            if($performanceEvaluationTest->supervisor_id != $currentUser->id) {
319
                                            $hasLink = false;
321
                                                $hasLink = false;
-
 
322
                                            }
-
 
323
                                            break;
-
 
324
                                            
-
 
325
                                        case  PerformanceEvaluationTest::TYPE_EMPLOYEE  :
-
 
326
                                            if($performanceEvaluationTest->employee_id != $currentUser->id) {
320
                                        }
327
                                                $hasLink = false;
321
                                        break;
-
 
322
                                        
328
                                            }
323
                                    case  PerformanceEvaluationTest::TYPE_EMPLOYEE  :
-
 
324
                                        if($performanceEvaluationTest->employee_id != $currentUser->id) {
-
 
325
                                            $hasLink = false;
-
 
326
                                        }
-
 
327
                                        break;
329
                                            break;
Línea 328... Línea 330...
328
                                        
330
                                            
Línea 404... Línea 406...
404
                                        'backgroundColor'   => $backgroundColor,
406
                                        'backgroundColor'   => $backgroundColor,
405
                                        'textColor'         => $textColor,
407
                                        'textColor'         => $textColor,
406
                                        'allDay'            => true,
408
                                        'allDay'            => true,
407
                                        'type'              => 'task',
409
                                        'type'              => 'task',
408
                                    ]);
410
                                    ]);
409
                               
-
 
-
 
411
                                }
410
                            }
412
                            }
Línea 411... Línea 413...
411
                            
413