Exemplo n.º 1
0
 /**
  * 
  * // case 1 = Tipo do questionario diagnostico.
  */
 public function initTipo()
 {
     $this->execution->finishExecution($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $this->devolutive->getArqPath(), null, $this->devolutive->getIsRA());
     $this->eligibility->doAutoavaliacaoEligibility($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId());
     $result = $this->devolutive->makePdfDevolutiveAllBlocks($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $this->devolutive->getDirName(), $this->devolutive->getPublicDir(), $this->devolutive->getArqName(), $this->devolutive->getIsRA());
     return $result;
 }
Exemplo n.º 2
0
 /**
  * 
  * // case 2 = Tipo do questionario autoavaliacao.
  */
 public function initTipo()
 {
     // case 2 = Tipo do questionario autoavaliacao.
     $result = false;
     $arrScore = $this->devolutive->makeScoreRAA($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId());
     if ($arrScore) {
         //grava dados em Execution
         $this->execution->finishExecution($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $this->devolutive->getArqPath(), $arrScore[2], $this->devolutive->getIsRA());
         //faz geracao do pdf
         $result = $this->devolutive->makePdfDevolutiveAutoAvaliacao($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $this->devolutive->getDirName(), $this->devolutive->getPublicDir(), $this->devolutive->getArqName(), $this->devolutive->getIsRA());
     }
     //end if
     return $result;
 }
Exemplo n.º 3
0
 /**
  * Devolutiva PSMN
  * 
  * DevolutiveCalcId 3 => Tipo de questionario PSMN
  *  
  * Tipo 3 foi baseado no questionario autoavaliacao (tipo 2).
  */
 public function initTipo()
 {
     $result = false;
     //cria diretorio no filesystem, para gravar pdf
     $this->makepdf->preparaFileSystemParaDevolutiva();
     //regra desnecessaria para geracao devolutiva de PSMN
     //$arrScore = $this->devolutive->makeScoreRAA( $this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId() );
     //if ( $arrScore ) {
     //grava dados em Execution
     $this->execution->finishExecution($this->devolutive->getQuestionnaireId(), $this->devolutive->getUserId(), $this->devolutive->getArqPath(), null, $this->devolutive->getIsRA());
     //faz geracao do pdf
     $result = true;
     $result = $this->makePdfDevolutivePSMN();
     return $result;
 }