示例#1
0
 /**
  * carrega dados/array list de:
  * 
  * - questionario
  * - blocos de questionario
  * - contato da empresa
  * - criterios do questionario
  * 
  */
 protected function arrayListTodosDadosParaGeracaoDevolutiva()
 {
     /** PARTE 1 * */
     //bloco 1 do questionario
     $blockId_1 = $this->devolutive->getBlockIdNegocios();
     //bloco 2 do questionario
     $blockId_2 = $this->devolutive->getBlockIdEmpreendedorismo();
     //recupera todos os dados do usuario Empresa
     list($arrEnterprise, $arrContact, $arrIssues) = $this->devolutive->getEnterpriseData($this->devolutive->getUserId());
     // bloco 1
     //recupera dados completos do questionario, blocos, questoes, criterios e respostas
     list($arrDevolutiveGov, $arrBlocksGov, $arrCriteriaGov, $arrQuestionnaire) = $this->getArrayQuestionsAndAlternatives($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $blockId_1);
     //getArrayDevolutiveRAA
     // bloco 2
     //recupera dados completos do questionario, blocos, questoes, criterios e respostas
     list($arrDevolutiveGes, $arrBlocksGes, $arrCriteriaGes, $arrQuestionnaire) = $this->getArrayQuestionsAndAlternatives($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $blockId_2);
     //define calculo do grafico de radar com base no IdBloco informado
     //list($arrRadarDataGes, $arrTabulationGes, $arrPunctuationGes)
     //= $this->questionnaire->getRadarData($this->devolutive->getQuestionnaireId(), $gestaoBlockId, $this->devolutive->getUserId());
     /**
               //Porcentagem de acertos por criterio
               //nao utilizado no PSMN
               //$strPathRadar = $this->devolutive->makeRadarPlot($arrCriteriaGes, $arrRadarDataGes, $arrTabulationGes, $arrPunctuationGes, $this->devolutive->getDirName());
     
               //nao utilizado no PSMN
               //calcula scores de autoavaliacao -> PSMN nao usa
               $arrScores = $this->makeScoreRAA($questionnaireId, $userId);
               $scorePart1 = $arrScores[0];
               $scorePart2 = $arrScores[1];
              * */
     $this->devolutive->setArrEnterprise($arrEnterprise);
     $this->devolutive->setArrContact($arrContact);
     $this->devolutive->setArrIssues($arrIssues);
     $this->devolutive->setArrDevolutiveGov($arrDevolutiveGov);
     $this->devolutive->setArrBlocksGov($arrBlocksGov);
     $this->devolutive->setArrCriteriaGov($arrCriteriaGov);
     $this->devolutive->setArrQuestionnaire($arrQuestionnaire);
     $this->devolutive->setArrDevolutiveGes($arrDevolutiveGes);
     $this->devolutive->setArrBlocksGes($arrBlocksGes);
     $this->devolutive->setArrCriteriaGes($arrCriteriaGes);
 }