コード例 #1
0
 public function pareceristaAction()
 {
     $this->_helper->layout->disableLayout();
     $this->_helper->ViewRenderer->setNoRender(true);
     $post = Zend_Registry::get('post');
     $NomesDAO = new Nomes();
     $retorno = $NomesDAO->buscarPareceristas($post->idOrgao);
     foreach ($retorno as $value) {
         $pareceristas[] = array('id' => $value->id, 'nome' => utf8_encode($value->Nome));
     }
     echo json_encode($pareceristas);
 }
コード例 #2
0
 public function consolidacaopareceristaAction()
 {
     $OrgaosDAO = new Orgaos();
     $NomesDAO = new Nomes();
     $AreaDAO = new Area();
     $SegmentoDAO = new Segmento();
     $this->view->Orgaos = $OrgaosDAO->buscar(array('Status = ?' => 0, 'Vinculo = ?' => 1));
     $this->view->Pareceristas = $NomesDAO->buscarPareceristas();
     $this->view->Areas = $AreaDAO->buscar();
     $this->view->Segmento = $SegmentoDAO->buscar(array('stEstado = ?' => 1));
 }