コード例 #1
0
 public function reportAction()
 {
     $this->view->fase = $this->fase;
     $modelReport = new Model_EnterpriseReport();
     $V = array('report' => $modelReport->getEnterpriseReportByEnterpriseIdKey($this->enterpriseKey), 'enterprise' => $this->enterpriseRow, 'president' => $this->enterpriseRow->getPresidentRow(), 'scores' => $this->Appraiser->getEnterpriseScoreAppraisersData($this->enterpriseRow->getId(), null, $this->fase));
     $this->view->assign($V);
 }
コード例 #2
0
 public function getArrayReport()
 {
     $modelReport = new Model_EnterpriseReport();
     $AppraiserModel = new Model_Appraiser();
     $V = array('report' => $modelReport->getEnterpriseReportByEnterpriseIdKey($this->enterpriseKey->IdKey), 'enterprise' => $this->enterpriseRow, 'president' => $this->enterpriseRow->getPresidentRow(), 'scores' => $this->Appraiser->getEnterpriseScoreAppraisersData($this->enterpriseRow->getId(), null, 2));
     //var_dump($this->Appraiser->getEnterpriseScoreAppraisersData($this->enterpriseRow->getId(), null, 2));die;
     $data['enterprise_id'] = $this->enterpriseRow->getId();
     $data['user_id'] = $this->userAuth->getUserId();
     $data['programa_id'] = $this->programId;
     $data['tipo'] = 1;
     if ($this->nacional == 2) {
         $data['tipo'] = 2;
     }
     $data['status'] = "IIII";
     $objAppraiser = $AppraiserModel->setCheckerToEnterpriseVerificador($data);
     return $V;
 }
コード例 #3
0
 public function internalReportAction()
 {
     $enterpriseKey = $this->_getParam('enterprise-id-key');
     $competitionId = $this->_getParam('competition-id', null);
     $nacional = $this->_getParam('nacional', null);
     $this->view->fase = $nacional;
     $enterpriseRow = $this->Enterprise->getEnterpriseByIdKey($enterpriseKey);
     $commentQuestions = $this->Appraiser->getQuestions();
     $evaluationQuestions = DbTable_QuestionChecker::getInstance()->fetchAll('QuestionTypeId = 7', 'Designation');
     $this->evaluationRow = $this->Appraiser->getCheckerEvaluation($enterpriseRow->getId(), $competitionId ? $competitionId : $this->programId, $nacional);
     $modelReport = new Model_EnterpriseReport();
     $scores = $this->Appraiser->getEnterpriseScoreAppraisersData($enterpriseRow->getId(), $competitionId, $nacional);
     $checkerId = (isset($scores) and $scores->getCheckerId() != null) ? $scores->getCheckerId() : 0;
     $commentAnswers = $this->Appraiser->getApeEvaluationVerificadorComment($enterpriseRow->getId(), $checkerId);
     $View = array('report' => $modelReport->getEnterpriseReportByEnterpriseIdKey($enterpriseKey, $competitionId), 'enterprise' => $enterpriseRow, 'president' => $enterpriseRow->getPresidentRow(), 'questoes' => $commentQuestions, 'questionsAvaliacao' => $evaluationQuestions, 'evaluationRow' => $this->evaluationRow, 'respostas' => $this->evaluationRow ? $this->evaluationRow->getAnswers() : null, 'commentAnswers' => $commentAnswers->count() > 0 ? $commentAnswers : null, 'scores' => $scores);
     $this->view->assign($View);
 }
コード例 #4
0
 public function reportAction()
 {
     $modelReport = new Model_EnterpriseReport();
     $View = array('report' => $modelReport->getEnterpriseReportByEnterpriseIdKey($this->enterpriseKey), 'enterprise' => $this->enterpriseRow, 'president' => $this->enterpriseRow->getPresidentRow());
     $this->view->assign($View);
 }