Skip to content

Commit

Permalink
[FEAT] Subindo implementações e ajustes de serviços
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo.batista committed Jun 5, 2017
1 parent 7b17b71 commit ec37e73
Show file tree
Hide file tree
Showing 55 changed files with 883 additions and 189 deletions.
13 changes: 7 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions controlador_ws.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,22 @@ public function __invoke($request, $response, $next)
$rn = new MdWsSeiProcedimentoRN();
return $response->withJSON($rn->atribuirProcesso($api));
});
$this->get('/verifica/acesso/{protocolo}', function($request, $response, $args){
/** @var $request Slim\Http\Request */
$rn = new MdWsSeiProcedimentoRN();
$dto = new ProtocoloDTO();
$dto->setDblIdProtocolo($request->getAttribute('route')->getArgument('protocolo'));
return $response->withJSON($rn->verificaAcesso($dto));
});
$this->post('/identificacao/acesso', function($request, $response, $args){
/** @var $request Slim\Http\Request */
$usuarioDTO = new UsuarioDTO();
$usuarioDTO->setStrSenha($request->getParam('senha'));
$protocoloDTO = new ProtocoloDTO();
$protocoloDTO->setDblIdProtocolo($request->getParam('protocolo'));
$rn = new MdWsSeiProcedimentoRN();
return $response->withJSON($rn->identificacaoAcesso($usuarioDTO, $protocoloDTO));
});

})->add( new TokenValidationMiddleware());

Expand Down
22 changes: 22 additions & 0 deletions dto/MdWsSeiAtividadeDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?

class MdWsSeiAtividadeDTO extends AtividadeDTO{

public function montar(){
parent::montar();

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
'ProtocoloFormatadoPesquisaProtocolo',
'protocolo_formatado_pesquisa',
'protocolo');

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM,
'IdGrupoAcompanhamentoProcedimento',
'id_grupo_acompanhamento',
'acompanhamento');


$this->configurarFK('IdProtocolo', 'acompanhamento', 'id_protocolo');
}

}
22 changes: 22 additions & 0 deletions dto/MdWsSeiPesquisarPendenciaDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?

class MdWsSeiPesquisarPendenciaDTO extends PesquisaPendenciaDTO{

public function montar(){
parent::montar();

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
'ProtocoloFormatadoPesquisaProtocolo',
'protocolo_formatado_pesquisa',
'protocolo');

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM,
'IdGrupoAcompanhamentoProcedimento',
'id_grupo_acompanhamento',
'acompanhamento');


$this->configurarFK('IdProtocolo', 'acompanhamento', 'id_protocolo');
}

}
Loading

0 comments on commit ec37e73

Please sign in to comment.