Línea 21... |
Línea 21... |
21 |
use LeadersLinked\Mapper\QueryMapper;
|
21 |
use LeadersLinked\Mapper\QueryMapper;
|
22 |
use LeadersLinked\Model\CompanyPerformanceEvaluationForm;
|
22 |
use LeadersLinked\Model\CompanyPerformanceEvaluationForm;
|
23 |
use LeadersLinked\Mapper\CompanyPerformanceEvaluationFormMapper;
|
23 |
use LeadersLinked\Mapper\CompanyPerformanceEvaluationFormMapper;
|
24 |
use LeadersLinked\Model\CompanyPerformanceEvaluationTest;
|
24 |
use LeadersLinked\Model\CompanyPerformanceEvaluationTest;
|
25 |
use Laminas\Db\Sql\Select;
|
25 |
use Laminas\Db\Sql\Select;
|
26 |
use LeadersLinked\Mapper\CompanyPerformanceEvaluationFormUserMapper;
|
- |
|
27 |
use LeadersLinked\Form\PerformanceEvaluation\PerformanceEvaluationTestForm;
|
26 |
use LeadersLinked\Form\PerformanceEvaluation\PerformanceEvaluationTestForm;
|
28 |
use LeadersLinked\Mapper\CompetencyMapper;
|
27 |
use LeadersLinked\Mapper\CompetencyMapper;
|
29 |
use LeadersLinked\Mapper\JobDescriptionMapper;
|
28 |
use LeadersLinked\Mapper\JobDescriptionMapper;
|
30 |
use LeadersLinked\Mapper\JobDescriptionCompetencyMapper;
|
29 |
use LeadersLinked\Mapper\JobDescriptionCompetencyMapper;
|
31 |
use LeadersLinked\Mapper\CompetencyTypeMapper;
|
30 |
use LeadersLinked\Mapper\CompetencyTypeMapper;
|
Línea 36... |
Línea 35... |
36 |
use LeadersLinked\Model\JobDescriptionSubordinate;
|
35 |
use LeadersLinked\Model\JobDescriptionSubordinate;
|
37 |
use LeadersLinked\Mapper\BehaviorCompetencyMapper;
|
36 |
use LeadersLinked\Mapper\BehaviorCompetencyMapper;
|
38 |
use LeadersLinked\Model\BehaviorCompetency;
|
37 |
use LeadersLinked\Model\BehaviorCompetency;
|
39 |
use LeadersLinked\Mapper\BehaviorMapper;
|
38 |
use LeadersLinked\Mapper\BehaviorMapper;
|
40 |
use LeadersLinked\Library\Functions;
|
39 |
use LeadersLinked\Library\Functions;
|
- |
|
40 |
use LeadersLinked\Model\CompanyPerformanceEvaluationTestUser;
|
- |
|
41 |
use LeadersLinked\Mapper\CompetencyBehaviorMapper;
|
Línea 41... |
Línea 42... |
41 |
|
42 |
|
Línea 42... |
Línea 43... |
42 |
class PerformanceEvaluationController extends AbstractActionController {
|
43 |
class PerformanceEvaluationController extends AbstractActionController {
|
43 |
|
44 |
|
Línea 120... |
Línea 121... |
120 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
121 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
Línea 121... |
Línea 122... |
121 |
|
122 |
|
122 |
$select = $queryMapper->getSql()->select();
|
123 |
$select = $queryMapper->getSql()->select();
|
123 |
$select->columns(['uuid', 'name', 'description', 'text', 'job_description_id']);
|
124 |
$select->columns(['uuid', 'name', 'description', 'text', 'job_description_id']);
|
124 |
$select->from(['f' => CompanyPerformanceEvaluationFormMapper::_TABLE]);
|
125 |
$select->from(['f' => CompanyPerformanceEvaluationFormMapper::_TABLE]);
|
125 |
$select->join(['fu' => CompanyPerformanceEvaluationFormUserMapper::_TABLE], 'f.id = fu.form_id', []);
|
126 |
$select->join(['fu' => CompanyPerformanceEvaluationTestUser::_TABLE], 'f.id = fu.form_id', []);
|
126 |
$select->join(['t' => CompanyPerformanceEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status'], Select::JOIN_LEFT_OUTER);
|
127 |
$select->join(['t' => CompanyPerformanceEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status'], Select::JOIN_LEFT_OUTER);
|
127 |
$select->where->equalTo('f.status', CompanyPerformanceEvaluationForm::STATUS_ACTIVE);
|
128 |
$select->where->equalTo('f.status', CompanyPerformanceEvaluationForm::STATUS_ACTIVE);
|
Línea 264... |
Línea 265... |
264 |
//Competencies
|
265 |
//Competencies
|
Línea 265... |
Línea 266... |
265 |
|
266 |
|
266 |
$jobDescriptionCompetencyMapper = JobDescriptionCompetencyMapper::getInstance($this->adapter);
|
267 |
$jobDescriptionCompetencyMapper = JobDescriptionCompetencyMapper::getInstance($this->adapter);
|
267 |
$competencyMapper = CompetencyMapper::getInstance($this->adapter);
|
268 |
$competencyMapper = CompetencyMapper::getInstance($this->adapter);
|
268 |
$competenceTypeMapper = CompetencyTypeMapper::getInstance($this->adapter);
|
269 |
$competenceTypeMapper = CompetencyTypeMapper::getInstance($this->adapter);
|
269 |
$behaviorCompetencyMapper = BehaviorCompetencyMapper::getInstance($this->adapter);
|
270 |
$competencyBehaviorMapper = CompetencyBehaviorMapper::getInstance($this->adapter);
|
270 |
$jobDescriptionBehaviorCompetencyMapper = JobDescriptionBehaviorCompetencyMapper::getInstance($this->adapter);
|
271 |
$jobDescriptionBehaviorCompetencyMapper = JobDescriptionBehaviorCompetencyMapper::getInstance($this->adapter);
|
Línea 271... |
Línea 272... |
271 |
$behaviorMapper = BehaviorMapper::getInstance($this->adapter);
|
272 |
$behaviorMapper = BehaviorMapper::getInstance($this->adapter);
|
Línea 280... |
Línea 281... |
280 |
$competency = $competencyMapper->fetchOne($record->competency_id);
|
281 |
$competency = $competencyMapper->fetchOne($record->competency_id);
|
281 |
$competenceType = $competenceTypeMapper->fetchOne($competency->competency_type_id);
|
282 |
$competenceType = $competenceTypeMapper->fetchOne($competency->competency_type_id);
|
Línea 282... |
Línea 283... |
282 |
|
283 |
|
Línea 283... |
Línea 284... |
283 |
if($competency && $competenceType){
|
284 |
if($competency && $competenceType){
|
284 |
|
285 |
|
Línea 285... |
Línea 286... |
285 |
$behaviorCompetencies = $behaviorCompetencyMapper->fetchByCompetencyId($competency->id);
|
286 |
$behaviorCompetencies = $competencyBehaviorMapper->fetchAllByCompetencyId($competency->id);
|
Línea 286... |
Línea 287... |
286 |
$behaviors = [];
|
287 |
$behaviors = [];
|