Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
420ef2b1
Commit
420ef2b1
authored
Jan 26, 2024
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inclusao modulo sistema apis
parent
5cbbf11d
Changes
45
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
2517 additions
and
155 deletions
+2517
-155
ApiController.php
app/Http/Controllers/ApiController.php
+66
-1
HomeApisController.php
app/Http/Controllers/Mod_apis/HomeApisController.php
+37
-0
ProjetosDebenturesController.php
...ttp/Controllers/Mod_apis/ProjetosDebenturesController.php
+131
-0
DemandaController.php
app/Http/Controllers/Mod_codem/DemandaController.php
+1
-3
RedirecionarUsuario.php
app/Http/Middleware/RedirecionarUsuario.php
+37
-43
AcompanhamentoDebentures.php
app/Mod_apis/AcompanhamentoDebentures.php
+22
-0
Concessionarias.php
app/Mod_apis/Concessionarias.php
+26
-0
EmissaoDebentures.php
app/Mod_apis/EmissaoDebentures.php
+17
-0
ModalidadeProjeto.php
app/Mod_apis/ModalidadeProjeto.php
+17
-0
ProcessosSei.php
app/Mod_apis/ProcessosSei.php
+17
-0
ProjetosDebentures.php
app/Mod_apis/ProjetosDebentures.php
+17
-0
RlcCondicoesEmissao.php
app/Mod_apis/RlcCondicoesEmissao.php
+17
-0
RlcGrupoControladorDebentures.php
app/Mod_apis/RlcGrupoControladorDebentures.php
+21
-0
RlcMunicipiosBeneficiadosDebentures.php
app/Mod_apis/RlcMunicipiosBeneficiadosDebentures.php
+17
-0
RlcTitularDebentures.php
app/Mod_apis/RlcTitularDebentures.php
+21
-0
SituacaoConjur.php
app/Mod_apis/SituacaoConjur.php
+17
-0
SituacaoEmissao.php
app/Mod_apis/SituacaoEmissao.php
+17
-0
SituacaoEnquadramento.php
app/Mod_apis/SituacaoEnquadramento.php
+17
-0
SituacaoEnvioPublicacao.php
app/Mod_apis/SituacaoEnvioPublicacao.php
+17
-0
SituacaoPublicacaoPortaria.php
app/Mod_apis/SituacaoPublicacaoPortaria.php
+17
-0
StatusAnalise.php
app/Mod_apis/StatusAnalise.php
+17
-0
StatusEnquadramento.php
app/Mod_apis/StatusEnquadramento.php
+17
-0
StatusExecucao.php
app/Mod_apis/StatusExecucao.php
+17
-0
ViewEmissaoDebentures.php
app/Mod_apis/ViewEmissaoDebentures.php
+17
-0
ViewMunicipiosBeneficiadosDebentures.php
app/Mod_apis/ViewMunicipiosBeneficiadosDebentures.php
+17
-0
ViewProjetosDebentures.php
app/Mod_apis/ViewProjetosDebentures.php
+17
-0
User.php
app/User.php
+31
-21
app.js
public/js/app.js
+831
-1
app.js
resources/assets/js/app.js
+6
-0
FiltroProjetosDebentures.vue
...ssets/js/components/mod_apis/FiltroProjetosDebentures.vue
+253
-0
app.blade.php
resources/views/layouts/app.blade.php
+5
-3
nav_apis.blade.php
resources/views/layouts/nav/nav_apis.blade.php
+16
-0
nav_sistema.blade.php
resources/views/layouts/nav/nav_sistema.blade.php
+13
-6
Lista_projetos.blade.php
resources/views/modulo_apis/Lista_projetos.blade.php
+143
-0
consultar_projetos.blade.php
resources/views/modulo_apis/consultar_projetos.blade.php
+46
-0
dados_projeto.blade.php
resources/views/modulo_apis/dados_projeto.blade.php
+398
-0
home_apis.blade.php
resources/views/modulo_apis/home_apis.blade.php
+36
-0
ListaPropostasResultado.blade.php
...dulo_propostas/proposta/ListaPropostasResultado.blade.php
+1
-2
ListaPropostasSelecionadas.blade - Copia.php
...tas/proposta/ListaPropostasSelecionadas.blade - Copia.php
+62
-71
ListaPropostasSelecionadas.blade.php
...o_propostas/proposta/ListaPropostasSelecionadas.blade.php
+1
-1
DadosSelecaoPropostas.blade.php
..._propostas/proposta/admin/DadosSelecaoPropostas.blade.php
+1
-1
ListaPropostasSelecionadas.blade.php
...ostas/proposta/admin/ListaPropostasSelecionadas.blade.php
+1
-1
ListaPropostasTransferegov.blade.php
...ostas/proposta/admin/ListaPropostasTransferegov.blade.php
+1
-1
api.php
routes/api.php
+12
-0
web.php
routes/web.php
+9
-0
No files found.
app/Http/Controllers/ApiController.php
View file @
420ef2b1
...
...
@@ -23,6 +23,15 @@ use App\IndicadoresHabitacionais\Municipio;
use
App\IndicadoresHabitacionais\Uf
;
use
App\IndicadoresHabitacionais\BrasilComRm
;
use
App\IndicadoresHabitacionais\ViewIndicadoresSaneamento
;
use
App\Mod_apis\ModalidadeProjeto
;
use
App\Mod_apis\SituacaoConjur
;
use
App\Mod_apis\SituacaoEmissao
;
use
App\Mod_apis\SituacaoEnquadramento
;
use
App\Mod_apis\SituacaoEnvioPublicacao
;
use
App\Mod_apis\SituacaoPublicacaoPortaria
;
use
App\Mod_apis\StatusAnalise
;
use
App\Mod_apis\StatusEnquadramento
;
use
App\Mod_apis\StatusExecucao
;
use
App\Mod_bndes\Andamento
as
Mod_bndesAndamento
;
use
App\Mod_bndes\RlcAndamentoSituacaoObra
;
use
App\Mod_bndes\SituacaoContrato
as
Mod_bndesSituacaoContrato
;
...
...
@@ -647,4 +656,60 @@ class ApiController extends Controller
return
SetorProjeto
::
orderBy
(
'txt_setor_projeto'
)
->
get
();
}
}
/// MÓDULO APIS
public
function
buscarModalidadeProjetos
()
{
return
ModalidadeProjeto
::
orderBy
(
'txt_modalidade_projeto'
)
->
get
();
}
public
function
buscarSituacaoConjur
()
{
return
SituacaoConjur
::
orderBy
(
'txt_situacao_conjur'
)
->
get
();
}
public
function
buscarSituacaoEmissao
()
{
return
SituacaoEmissao
::
orderBy
(
'txt_situacao_emissao'
)
->
get
();
}
public
function
buscarSituacaoEnquadramento
()
{
return
SituacaoEnquadramento
::
orderBy
(
'txt_situacao_enquadramento'
)
->
get
();
}
public
function
buscarSituacaoEnvioPublicacao
()
{
return
SituacaoEnvioPublicacao
::
orderBy
(
'txt_situacao_envio_publicacao_sns'
)
->
get
();
}
public
function
buscarSituacaoPublicacao
()
{
return
SituacaoPublicacaoPortaria
::
orderBy
(
'txt_situacao_publicacao_portaria'
)
->
get
();
}
public
function
buscarStatusAnalises
()
{
return
StatusAnalise
::
orderBy
(
'txt_status_analise'
)
->
get
();
}
public
function
buscarStatusEnquadramentos
()
{
return
StatusEnquadramento
::
orderBy
(
'txt_status_enquadramento'
)
->
get
();
}
public
function
buscarStatusExecucao
()
{
return
StatusExecucao
::
orderBy
(
'txt_status_execucao'
)
->
get
();
}
}
\ No newline at end of file
app/Http/Controllers/Mod_apis/HomeApisController.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Http\Controllers\Mod_apis
;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Support\Facades\Auth
;
class
HomeApisController
extends
Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public
function
__construct
()
{
$this
->
middleware
(
'auth'
);
$this
->
middleware
(
'redirecionar'
);
// $this->middleware('moduloUsuario');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public
function
index
()
{
return
view
(
'modulo_apis.home_apis'
);
}
}
app/Http/Controllers/Mod_apis/ProjetosDebenturesController.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Http\Controllers\Mod_apis
;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
App\Mod_apis\AcompanhamentoDebentures
;
use
App\Mod_apis\ProjetosDebentures
;
use
App\Mod_apis\RlcCondicoesEmissao
;
use
App\Mod_apis\RlcGrupoControladorDebentures
;
use
App\Mod_apis\RlcTitularDebentures
;
use
App\Mod_apis\ViewEmissaoDebentures
;
use
App\Mod_apis\ViewMunicipiosBeneficiadosDebentures
;
use
App\Mod_apis\ViewProjetosDebentures
;
use
Illuminate\Support\Facades\Auth
;
class
ProjetosDebenturesController
extends
Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public
function
__construct
()
{
$this
->
middleware
(
'auth'
);
$this
->
middleware
(
'redirecionar'
);
// $this->middleware('moduloUsuario');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public
function
consultarProjetos
()
{
return
view
(
'modulo_apis.consultar_projetos'
);
}
public
function
pesquisarProjetos
(
Request
$request
)
{
$where
=
[];
if
(
$request
->
situacao_envio_publicacao
)
{
$where
[]
=
[
'situacao_envio_publicacao_id'
,
$request
->
situacao_envio_publicacao
];
}
if
(
$request
->
situacao_publicacao
)
{
$where
[]
=
[
'situacao_publicacao_portaria_id'
,
$request
->
situacao_publicacao
];
}
if
(
$request
->
modalidade_projeto
)
{
$where
[]
=
[
'modalidade_projeto_id'
,
$request
->
modalidade_projeto
];
}
if
(
$request
->
situacao_conjur
)
{
$where
[]
=
[
'situacao_conjur_id'
,
$request
->
situacao_conjur
];
}
if
(
$request
->
situacao_emissao
)
{
$where
[]
=
[
'situacao_emissao_id'
,
$request
->
situacao_emissao
];
}
if
(
$request
->
situacao_enquadramento
)
{
$where
[]
=
[
'situacao_enquadramento_id'
,
$request
->
situacao_enquadramento
];
}
if
(
$request
->
status_analise
)
{
$where
[]
=
[
'status_analise_id'
,
$request
->
status_analise
];
}
if
(
$request
->
status_execucao
)
{
$where
[]
=
[
'status_execucao_id'
,
$request
->
status_execucao
];
}
if
(
$request
->
status_enquadramento
)
{
$where
[]
=
[
'status_enquadramento_id'
,
$request
->
status_enquadramento
];
}
$projetosDebentures
=
ViewProjetosDebentures
::
where
(
$where
)
->
get
();
if
(
count
(
$projetosDebentures
)
==
0
)
{
flash
()
->
erro
(
"Erro"
,
"Não existe projeto para os parametros selecionados."
);
return
back
();
}
return
view
(
'modulo_apis.Lista_projetos'
,
compact
(
'projetosDebentures'
));
}
public
function
showProjeto
(
$projetosDebenturesId
)
{
$projetoDebenture
=
ViewProjetosDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
first
();
$grupoControlador
=
RlcGrupoControladorDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
orderBy
(
'bln_atual'
,
'DESC'
)
->
get
();
$grupoControlador
->
load
(
'concessionaria'
);
$titularProjeto
=
RlcTitularDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
orderBy
(
'bln_atual'
,
'DESC'
)
->
get
();
$titularProjeto
->
load
(
'concessionaria'
);
$municipiosBeneficiados
=
ViewMunicipiosBeneficiadosDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
get
();
$emissaoDebentures
=
ViewEmissaoDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
first
();
if
(
!
empty
(
$emissaoDebentures
))
{
$condicoesEmissao
=
RlcCondicoesEmissao
::
where
(
'emissao_debenture_id'
,
$emissaoDebentures
->
emissao_debenture_id
)
->
get
();
}
else
{
$condicoesEmissao
=
null
;
}
$acompanhamento
=
AcompanhamentoDebentures
::
where
(
'projeto_debenture_id'
,
$projetosDebenturesId
)
->
orderby
(
'created_at'
,
'DESC'
)
->
get
();
$acompanhamento
->
load
(
'usuario'
);
return
view
(
'modulo_apis.dados_projeto'
,
compact
(
'projetoDebenture'
,
'grupoControlador'
,
'titularProjeto'
,
'municipiosBeneficiados'
,
'emissaoDebentures'
,
'condicoesEmissao'
,
'acompanhamento'
));
}
}
app/Http/Controllers/Mod_codem/DemandaController.php
View file @
420ef2b1
...
...
@@ -256,7 +256,7 @@ class DemandaController extends Controller
public
function
pesquisarDemanda
(
Request
$request
)
{
// $request->all();
//
return
$request->all();
$where
=
[];
...
...
@@ -280,8 +280,6 @@ class DemandaController extends Controller
$where
[]
=
[
'setor_id'
,
$request
->
setor
];
}
if
(
$request
->
tema
)
{
$where
[]
=
[
'tema_id'
,
$request
->
tema
];
}
...
...
app/Http/Middleware/RedirecionarUsuario.php
View file @
420ef2b1
...
...
@@ -17,8 +17,8 @@ class RedirecionarUsuario
* @return mixed
*/
public
function
handle
(
$request
,
Closure
$next
)
{
/*
{
/*
$manutencao = false;
if($manutencao){
Auth::logout();
...
...
@@ -26,63 +26,57 @@ class RedirecionarUsuario
}
*/
$usuario
=
Auth
::
user
();
$modulo
=
ModuloSistema
::
select
(
'bln_ativo'
)
->
where
(
'id'
,
$usuario
->
modulo_sistema_id
)
->
firstOrFail
();
$sistemaAtivo
=
$modulo
->
bln_ativo
;
$usuario
=
Auth
::
user
();
$modulo
=
ModuloSistema
::
select
(
'bln_ativo'
)
->
where
(
'id'
,
$usuario
->
modulo_sistema_id
)
->
firstOrFail
();
$sistemaAtivo
=
$modulo
->
bln_ativo
;
if
(
$sistemaAtivo
){
if
(
$usuario
->
status_usuario_id
==
2
){
return
redirect
(
'/usuario/primeiro_acesso'
);
if
(
$sistemaAtivo
)
{
if
(
$usuario
->
status_usuario_id
==
2
)
{
}
elseif
(
!
$usuario
->
bln_aceite_termo
){
return
redirect
(
'/usuario/primeiro_acesso'
);
}
elseif
(
!
$usuario
->
bln_aceite_termo
)
{
return
redirect
(
'/usuario/termo_responsabilidade'
);
}
else
{
if
(
$usuario
->
status_usuario_id
>=
3
)
{
flash
()
->
erro
(
"Erro"
,
"Usuário sem permissão ativa para acessar o Sistema"
);
}
else
{
if
(
$usuario
->
status_usuario_id
>=
3
)
{
flash
()
->
erro
(
"Erro"
,
"Usuário sem permissão ativa para acessar o Sistema"
);
Auth
::
logout
();
return
redirect
(
'/login'
);
}
else
{
if
(
$usuario
->
modulo_sistema_id
==
1
)
{
if
(
$usuario
->
bln_ativo
)
{
}
else
{
if
(
$usuario
->
modulo_sistema_id
==
1
)
{
if
(
$usuario
->
bln_ativo
)
{
return
$next
(
$request
);
}
else
{
return
redirect
(
'/admin/usuario/'
.
$usuario
->
id
);
}
else
{
return
redirect
(
'/admin/usuario/'
.
$usuario
->
id
);
}
}
elseif
(
$usuario
->
modulo_sistema_id
==
2
){
}
elseif
(
$usuario
->
modulo_sistema_id
==
2
)
{
return
redirect
(
'/home_ente_publico'
);
}
elseif
(
$usuario
->
modulo_sistema_id
==
3
)
{
}
elseif
(
$usuario
->
modulo_sistema_id
==
3
)
{
return
redirect
(
'/home_saci'
);
}
elseif
(
$usuario
->
modulo_sistema_id
==
4
)
{
}
elseif
(
$usuario
->
modulo_sistema_id
==
4
)
{
return
redirect
(
'/home_formularios'
);
}
elseif
(
$usuario
->
modulo_sistema_id
==
5
)
{
}
elseif
(
$usuario
->
modulo_sistema_id
==
5
)
{
return
redirect
(
'/home_bndes'
);
}
else
{
flash
()
->
erro
(
"Erro"
,
"Não existe usuário com esses dados."
);
Auth
::
logout
();
return
redirect
(
'/'
);
}
}
elseif
(
$usuario
->
modulo_sistema_id
==
6
)
{
Auth
::
logout
();
return
redirect
(
'/login'
);
//return redirect('/home');
}
else
{
flash
()
->
erro
(
"Erro"
,
"Não existe usuário com esses dados."
);
Auth
::
logout
();
return
redirect
(
'/login'
);
}
}
}
}
else
{
}
else
{
flash
()
->
erro
(
"Fora do Ar"
,
"Sistema em manutenção"
);
Auth
::
logout
();
return
redirect
(
'/'
);
}
flash
()
->
erro
(
"Fora do Ar"
,
"Sistema em manutenção"
);
Auth
::
logout
();
return
redirect
(
'/'
);
}
}
}
}
\ No newline at end of file
app/Mod_apis/AcompanhamentoDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
App\User
;
use
Illuminate\Database\Eloquent\Model
;
class
AcompanhamentoDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.tab_acompanhamento_debentures'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
public
function
usuario
()
{
return
$this
->
belongsTo
(
User
::
class
,
'user_id'
);
//possui muitos
}
}
app/Mod_apis/Concessionarias.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
Concessionarias
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.tab_concessionaria'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
gruposControladores
()
{
return
$this
->
hasMany
(
RlcGrupoControladorDebentures
::
class
,
'id'
,
'concessionaria_id'
);
//possui muitos
}
public
function
titularesProjeto
()
{
return
$this
->
hasMany
(
RlcTitularDebentures
::
class
,
'id'
,
'concessionaria_id'
);
//possui muitos
}
}
\ No newline at end of file
app/Mod_apis/EmissaoDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
EmissaoDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.tab_emissao_debentures'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ModalidadeProjeto.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ModalidadeProjeto
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_modalidade_projeto'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ProcessosSei.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ProcessosSei
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.tab_processos_sei'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ProjetosDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ProjetosDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.tab_projetos_debentures'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/RlcCondicoesEmissao.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
RlcCondicoesEmissao
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.rlc_condicoes_emissao'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/RlcGrupoControladorDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
RlcGrupoControladorDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.rlc_grupo_controlador_debentures'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
public
function
concessionaria
()
{
return
$this
->
belongsTo
(
Concessionarias
::
class
,
'concessionaria_id'
);
//possui muitos
}
}
\ No newline at end of file
app/Mod_apis/RlcMunicipiosBeneficiadosDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
RlcMunicipiosBeneficiadosDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.rlc_municipios_beneficiados_debentures'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/RlcTitularDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
RlcTitularDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.rlc_titular_debentures'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
public
function
concessionaria
()
{
return
$this
->
belongsTo
(
Concessionarias
::
class
,
'concessionaria_id'
);
//possui muitos
}
}
\ No newline at end of file
app/Mod_apis/SituacaoConjur.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
SituacaoConjur
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_situacao_conjur'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/SituacaoEmissao.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
SituacaoEmissao
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_situacao_emissao'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/SituacaoEnquadramento.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
SituacaoEnquadramento
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_situacao_enquadramento'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/SituacaoEnvioPublicacao.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
SituacaoEnvioPublicacao
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_situacao_envio_publicacao_sns'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/SituacaoPublicacaoPortaria.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
SituacaoPublicacaoPortaria
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_situacao_publicacao_portaria'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/StatusAnalise.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
StatusAnalise
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_status_analise'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/StatusEnquadramento.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
StatusEnquadramento
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_status_enquadramento'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/StatusExecucao.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
StatusExecucao
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.opc_status_execucao'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ViewEmissaoDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ViewEmissaoDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.view_emissao_debentures'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ViewMunicipiosBeneficiadosDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ViewMunicipiosBeneficiadosDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.view_municipios_beneficiados_debentures'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/Mod_apis/ViewProjetosDebentures.php
0 → 100644
View file @
420ef2b1
<?php
namespace
App\Mod_apis
;
use
Illuminate\Database\Eloquent\Model
;
class
ViewProjetosDebentures
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_sistema_apis.view_projetos_debentures'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
}
\ No newline at end of file
app/User.php
View file @
420ef2b1
...
...
@@ -2,6 +2,7 @@
namespace
App
;
use
App\Mod_apis\AcompanhamentoDebentures
;
use
App\Propostas\Propostas
;
use
App\ModuloSistema
;
use
App\Propostas\SelecaoPropostas
;
...
...
@@ -15,11 +16,11 @@ class User extends Authenticatable
{
use
Notifiable
;
protected
$connection
=
'pgsql_corp'
;
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'users'
;
/**
* The attributes that are mass assignable.
...
...
@@ -27,10 +28,10 @@ class User extends Authenticatable
* @var array
*/
protected
$fillable
=
[
'name'
,
'email'
,
'password'
,
'tipo_usuario_id'
,
'modulo_sistema_id'
,
'txt_cpf_usuario'
,
'ente_publico_id'
'name'
,
'email'
,
'password'
,
'tipo_usuario_id'
,
'modulo_sistema_id'
,
'txt_cpf_usuario'
,
'ente_publico_id'
];
/**
* The attributes that should be hidden for arrays.
*
...
...
@@ -40,44 +41,53 @@ class User extends Authenticatable
'password'
,
'remember_token'
,
];
public
function
isEntePublico
()
{
if
((
$this
->
tipo_usuario_id
==
8
)
||
(
$this
->
tipo_usuario_id
==
9
)
)
{
public
function
isEntePublico
()
{
if
((
$this
->
tipo_usuario_id
==
8
)
||
(
$this
->
tipo_usuario_id
==
9
))
{
return
true
;
}
else
{
}
else
{
return
false
;
}
}
}
public
function
entePublico
()
{
return
$this
->
belongsTo
(
EntePublico
::
class
);
//possui muitos
return
$this
->
belongsTo
(
EntePublico
::
class
);
//possui muitos
}
public
function
tipoUsuario
(){
return
$this
->
belongsTo
(
TipoUsuario
::
class
,
'tipo_usuario_id'
);
public
function
tipoUsuario
()
{
return
$this
->
belongsTo
(
TipoUsuario
::
class
,
'tipo_usuario_id'
);
}
public
function
statusUsuario
(){
public
function
statusUsuario
()
{
return
$this
->
belongsTo
(
StatusUsuario
::
class
);
}
public
function
propostas
(){
public
function
propostas
()
{
return
$this
->
hasMany
(
Propostas
::
class
);
}
public
function
moduloSistema
(){
return
$this
->
hasMany
(
ModuloSistema
::
class
,
'id'
,
'modulo_sistema_id'
);
public
function
moduloSistema
()
{
return
$this
->
hasMany
(
ModuloSistema
::
class
,
'id'
,
'modulo_sistema_id'
);
}
public
function
selecaoPropostas
(){
public
function
selecaoPropostas
()
{
return
$this
->
hasMany
(
SelecaoPropostas
::
class
);
}
public
function
setor
(){
public
function
setor
()
{
return
$this
->
belongsTo
(
Setor
::
class
);
}
public
function
acompanhamentosDebentures
()
{
return
$this
->
hasMany
(
AcompanhamentoDebentures
::
class
);
}
}
public/js/app.js
View file @
420ef2b1
This diff is collapsed.
Click to expand it.
resources/assets/js/app.js
View file @
420ef2b1
...
...
@@ -251,6 +251,12 @@ Vue.component(
require
(
"./components/mod_debentures_reidi/AddEstado.vue"
)
);
/**APIS */
Vue
.
component
(
"filtro-projetos-debentures"
,
require
(
"./components/mod_apis/FiltroProjetosDebentures.vue"
)
);
const
app
=
new
Vue
({
el
:
"#app"
,
...
...
resources/assets/js/components/mod_apis/FiltroProjetosDebentures.vue
0 → 100644
View file @
420ef2b1
This diff is collapsed.
Click to expand it.
resources/views/layouts/app.blade.php
View file @
420ef2b1
...
...
@@ -231,14 +231,16 @@
@else
@if(Auth::user()->status_usuario_id == 1)
@if(Auth::user()->modulo_sistema_id
==
2)
@if(Auth::user()->modulo_sistema_id
==
2)
@if(Auth::user()->bln_aceite_termo)
@include('layouts.nav.nav_selecao_proposta')
@endif
@elseif(Auth::user()->modulo_sistema_id
==
3)
@elseif(Auth::user()->modulo_sistema_id
==
3)
@include('layouts.nav.nav_saci')
@elseif(Auth::user()->modulo_sistema_id
==
5)
@elseif(Auth::user()->modulo_sistema_id
==
5)
@include('layouts.nav.nav_bndes')
@elseif(Auth::user()->modulo_sistema_id == 6)
@include('layouts.nav.nav_apis')
@else
@include('layouts.nav.nav_sistema')
...
...
resources/views/layouts/nav/nav_apis.blade.php
0 → 100644
View file @
420ef2b1
<!-- inicio menu Seleção de Propostas-->
<div
class=
"menu-folder"
><a
class=
"menu-item"
href=
"javascript: void(0)"
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Debentures
</span></a>
<ul>
<li
disabled
><a
class=
"menu-item"
href=
"{{ url('/apis/debentures/cadastrar') }}"
title=
"Cadastrar Debentures"
disabled
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Cadastrar Debentures
</span></a>
</li>
<li><a
class=
"menu-item"
href=
"{{ url('/apis/debentures/consultar') }}"
title=
"Consultar Debentures"
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Consultar Debentures
</span></a>
</li>
</ul>
</div>
\ No newline at end of file
resources/views/layouts/nav/nav_sistema.blade.php
View file @
420ef2b1
...
...
@@ -70,12 +70,6 @@
</li>
</ul>
</li>
</ul>
</div>
...
...
@@ -259,4 +253,17 @@
</ul>
</div>
<!-- inicio menu sistema apis-->
<div
class=
"menu-folder"
><a
class=
"menu-item"
href=
"javascript: void(0)"
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Debentures
</span></a>
<ul>
<li
disabled
><a
class=
"menu-item"
href=
"{{ url('/apis/debentures/cadastrar') }}"
title=
"Cadastrar Debentures"
disabled
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Cadastrar Debentures
</span></a>
</li>
<li><a
class=
"menu-item"
href=
"{{ url('/apis/debentures/consultar') }}"
title=
"Consultar Debentures"
><span
class=
"icon"
>
<i
class=
"fas fa-regular fa-home"
></i></span><span
class=
"content"
>
Consultar Debentures
</span></a>
</li>
</ul>
</div>
@endcan
\ No newline at end of file
resources/views/modulo_apis/Lista_projetos.blade.php
0 → 100644
View file @
420ef2b1
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Debentures'"
:
telanterior01
=
"'Consultar projetos debentures'"
:
telatual
=
"'Lista debentures'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<cabecalho-relatorios
:titulo="
'Lista debentures'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
@if(count(
$projetosDebentures
) > 0)
<div class="
table
-
responsive
-
sm
">
<table class="
table
table
-
hover
">
<thead>
<tr class="
text
-
center
" >
<th>Carta Consulta </th>
<th>Projeto de Investimento</th>
<th>Portaria</th>
<th>Valor Investimento</th>
<th>Data de Cadastramento</th>
<th>Status Análise</th>
<th>Situacao Enquadramento</th>
<th>Situação CONJUR</th>
<th>Situação Publicação</th>
<th>Situação Emissão</th>
<th>Status Execução</th>
<th class="
text
-
center
">Ação</th>
</tr>
</thead>
<tbody>
@foreach(
$projetosDebentures
as
$dados
)
<tr class="
text
-
center
align
-
middle
" >
<td class="
text
-
center
align
-
middle
">
{
{$dados->cod_carta_consulta}
}
</td>
<td>
{
{$dados->dsc_projeto_investimento}
}
</td>
<td>
{
{$dados->txt_normativo_enquadramento}
}
</td>
<td class="
text
-
center
align
-
middle
">{{number_format( (
$dados->vlr_investimento_projeto
), 2, ',' , '.')}}</td>
<td class="
text
-
center
align
-
middle
">
{
{date('d/m/Y',strtotime($dados->dte_cadastramento))}
}
</td>
@if(
$dados->status_analise_id
== 2 ||
$dados->status_analise_id
== 4)
<td class="
text
-
center
align
-
middle
bg
-
warning
" >
@elseif(
$dados->status_analise_id
== 3 ||
$dados->status_analise_id
== 6)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@elseif(
$dados->status_analise_id
== 5)
<td class="
text
-
center
align
-
middle
bg
-
success
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_status_analise}
}
</td>
@if(
$dados->situacao_enquadramento_id
== 2 ||
$dados->situacao_enquadramento_id
== 4)
<td class="
text
-
center
align
-
middle
bg
-
warning
" >
@elseif(
$dados->situacao_enquadramento_id
== 3 ||
$dados->situacao_enquadramento_id
== 6)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@elseif(
$dados->situacao_enquadramento_id
== 5)
<td class="
text
-
center
align
-
middle
bg
-
success
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_situacao_enquadramento}
}
</td>
@if(
$dados->situacao_conjur_id
== 3 ||
$dados->situacao_conjur_id
== 4)
<td class="
text
-
center
align
-
middle
bg
-
warning
" >
@elseif(
$dados->situacao_conjur_id
== 2)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_situacao_conjur}
}
</td>
@if(
$dados->situacao_publicacao_portaria_id
== 2)
<td class="
text
-
center
align
-
middle
bg
-
warning
" >
@elseif(
$dados->situacao_publicacao_portaria_id
== 4)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_situacao_publicacao_portaria}
}
</td>
@if(
$dados->situacao_emissao_id
== 2 ||
$dados->situacao_emissao_id
== 3)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_situacao_emissao}
}
</td>
@if(
$dados->status_execucao_id
== 3)
<td class="
text
-
center
align
-
middle
text
-
white
bg
-
danger
" >
@elseif(
$dados->status_execucao_id
== 1)
<td class="
text
-
center
align
-
middle
bg
-
success
" >
@else
<td class="
text
-
center
align
-
middle
" >
@endif
{
{$dados->txt_status_execucao}
}
</td>
<td class="
p
-
3
text
-
right
">
<button type="
button
" class="
br
-
button
circle
secondary
small
mr
-
3
" aria-label="
Ícone
ilustrativo
"
onclick='window.location.href="
{{
url
(
"apis/debentures/
$dados->projeto_debenture_id
"
)}}
"'>
<i class="
fas
fa
-
eye
" aria-hidden="
true
"></i>
</button>
</td>
</tr>
@endforeach
</tbody><!-- fechar tbody-->
</table><!-- fechar table-->
</div> <!-- table-responsive-sm -->
@endif
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
button
" name="
imprimir
" value="
Imprimir
" onclick="
window
.
print
();
">Imprimir
</button>
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
</div>
</div>
@endsection
\ No newline at end of file
resources/views/modulo_apis/consultar_projetos.blade.php
0 → 100644
View file @
420ef2b1
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Debentures'"
:
telatual
=
"'Consultar projetos debentures'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<cabecalho-relatorios
:titulo="
'Consultar projetos debentures'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
<form role="
form
" method="
POST
" action='{{ url("
apis
/
debentures
/
pesquisar
") }}'>
@csrf
<filtro-projetos-debentures
:url="
'{{ url('
/
') }}'
">
</filtro-projetos-debentures>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
submit
" name="
Salvar
Edição
">Pesquisar
</button>
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
</div>
</form>
</div>
@endsection
\ No newline at end of file
resources/views/modulo_apis/dados_projeto.blade.php
0 → 100644
View file @
420ef2b1
This diff is collapsed.
Click to expand it.
resources/views/modulo_apis/home_apis.blade.php
0 → 100644
View file @
420ef2b1
@
extends
(
'layouts.app'
)
@
section
(
'scriptscss'
)
@
endsection
@
section
(
'content'
)
<
div
class
="
titulo
">
<h3>Contratos</h3>
</div>
<div class="
panel
-
body
">
<div class="
row
">
<div class="
column
col
-
xs
-
12
col
-
sm
-
6
col
-
md
-
3
text
-
center
">
<h4>
<a href='{{ url("
saci
/
propostas
/
cadastro
") }}'>
<img src='{{ URL::asset("
/
img
/
icones
/
questionarios
.
png
")}}' class="
img
-
thumbnail
img
-
responsive
" >
</a>
<p>Novo Contrato PAC</p>
</h4>
</div>
<div class="
column
col
-
xs
-
12
col
-
sm
-
6
col
-
md
-
3
text
-
center
">
</div>
<div class="
column
col
-
xs
-
12
col
-
sm
-
6
col
-
md
-
3
text
-
center
">
</div>
<div class="
column
col
-
xs
-
12
col
-
sm
-
6
col
-
md
-
3
text
-
center
">
</div>
</div>
</div>
@endsection
resources/views/modulo_propostas/proposta/ListaPropostasResultado.blade.php
View file @
420ef2b1
...
...
@@ -68,8 +68,7 @@
<tbody>
@foreach(
$listaResultado
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
<td>
{
{$dados->proposta_id}
}
</td>
...
...
resources/views/modulo_propostas/proposta/ListaPropostasSelecionadas.blade - Copia.php
View file @
420ef2b1
@
extends
(
'layouts.app'
)
@
section
(
'scriptscss'
)
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"
{
{URL::asset('css/custom.css')}
}
"
media
=
"screen"
/>
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"{{ asset('css/relatorio_executivo.css') }}"
media
=
"screen"
>
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"
{
{URL::asset('css/custom.css')}
}
"
media
=
"screen"
/>
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"{{ asset('css/relatorio_executivo.css') }}"
media
=
"screen"
>
@
endsection
...
...
@@ -12,89 +12,80 @@
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Propostas'"
:
telatual
=
"'Consultar Resultados'"
>
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Propostas'"
:
telatual
=
"'Consultar Resultados'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
" id="
main
-
content
" style="
min
-
height
:
100
%
width
100
%
">
<div class="
form
-
group
">
<cabecalho-relatorios
:titulo="
'Propopstas selecionadas'
"
barracompartilhar="
false
">
</cabecalho-relatorios>
<span class="
br
-
divider
my
-
3
"></span>
<p>
Abaixo estão listadas as propostas selecionadas. O proponente da proposta deve ficar atento
à`data de cadastro da Proposta de Trabalho no Transferegov.
</p>
<div class="
table
-
responsive
-
sm
">
<table class="
table
table
-
hover
">
<thead>
<tr class="
text
-
center
" >
<th>#</th>
<th>UF</th>
<th>Município</th>
<th>Protocolo</th>
<th>CNPJ</th>
<th>Ente Público</th>
<th>Etapa/Programa</th>
<th>Açäo</th>
<th>Data Resultado</th>
<th>Valor Repasse</th>
<th>Valor Final - Transferegov*</th>
</tr>
</thead>
<tbody>
@foreach(
$listaResultado
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
<td>
{
{$dados->txt_protocolo}
}
</td>
<td>
{
{$dados->ente_publico_id}
}
</td>
<td>
{
{$dados->txt_ente_publico}
}
</td>
<td>
{
{$dados->num_etapa}
}
ª Etapa
{
{$dados->txt_modalidade_participacao}
}
</td>
<td>
{
{$dados->acao_programa_id}
}
</td>
<td>
{
{date('d/m/Y',strtotime($dados->dte_resultado))}
}
</td>
<td class="
text
-
center
">{{number_format( (
$dados->vlr_repasse
), 2, ',' , '.')}}</td>
<td class="
text
-
center
">{{number_format( (
$dados->vlr_final_transferegov
), 2, ',' , '.')}}</td>
</tr>
@endforeach
</tbody><!-- fechar tbody-->
</table><!-- fechar table-->
</div> <!-- table-responsive-sm -->
</div>
<div class="
form
-
group
">
<cabecalho-relatorios :titulo="
'Propopstas selecionadas'
" barracompartilhar="
false
">
</cabecalho-relatorios>
<span class="
br
-
divider
my
-
3
"></span>
<p>
Abaixo estão listadas as propostas selecionadas. O proponente da proposta deve ficar atento
à`data de cadastro da Proposta de Trabalho no Transferegov.
</p>
<div class="
table
-
responsive
-
sm
">
<table class="
table
table
-
hover
">
<thead>
<tr class="
text
-
center
">
<th>#</th>
<th>UF</th>
<th>Município</th>
<th>Protocolo</th>
<th>CNPJ</th>
<th>Ente Público</th>
<th>Etapa/Programa</th>
<th>Açäo</th>
<th>Data Resultado</th>
<th>Valor Repasse</th>
<th>Valor Final - Transferegov*</th>
</tr>
</thead>
<tbody>
@foreach(
$listaResultado
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
<td>
{
{$dados->txt_protocolo}
}
</td>
<td>
{
{$dados->ente_publico_id}
}
</td>
<td>
{
{$dados->txt_ente_publico}
}
</td>
<td>
{
{$dados->num_etapa}
}
ª Etapa
{
{$dados->txt_modalidade_participacao}
}
</td>
<td>
{
{$dados->acao_programa_id}
}
</td>
<td>
{
{date('d/m/Y',strtotime($dados->dte_resultado))}
}
</td>
<td class="
text
-
center
">{{number_format( (
$dados->vlr_repasse
), 2, ',' , '.')}}</td>
<td class="
text
-
center
">{{number_format( (
$dados->vlr_final_transferegov
), 2, ',' , '.')}}</td>
</tr>
@endforeach
</tbody><!-- fechar tbody-->
</table><!-- fechar table-->
</div> <!-- table-responsive-sm -->
</div>
<span class="
br
-
divider
lg
my
-
3
"></span>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
button
" name="
imprimir
" value="
Imprimir
" onclick="
window
.
print
();
">Imprimir
<button class="
br
-
button
primary
mr
-
3
" type="
button
" name="
imprimir
" value="
Imprimir
"
onclick="
window
.
print
();
">Imprimir
</button>
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
</div>
</div>
</div>
@endsection
</div>
@endsection
\ No newline at end of file
resources/views/modulo_propostas/proposta/ListaPropostasSelecionadas.blade.php
View file @
420ef2b1
...
...
@@ -60,7 +60,7 @@
<tbody>
@foreach(
$propostas
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->proposta_id}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
...
...
resources/views/modulo_propostas/proposta/admin/DadosSelecaoPropostas.blade.php
View file @
420ef2b1
...
...
@@ -88,7 +88,7 @@
@foreach(
$propostas
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->proposta_id}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
...
...
resources/views/modulo_propostas/proposta/admin/ListaPropostasSelecionadas.blade.php
View file @
420ef2b1
...
...
@@ -58,7 +58,7 @@
@foreach(
$propostas
as
$dados
)
<tr class="
text
-
center
">
<td>
{
{$loop->index+1}
}
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->proposta_id}
}
</td>
<td>
{
{$dados->sg_uf}
}
</td>
<td>
{
{$dados->ds_municipio}
}
</td>
...
...
resources/views/modulo_propostas/proposta/admin/ListaPropostasTransferegov.blade.php
View file @
420ef2b1
...
...
@@ -74,7 +74,7 @@
@else
<tr class="
text
-
center
">
@endif
<td>
{
{$loop->index+1}
}
<td>
{
{$loop->index+1}
}
</td>
<td>
{
{$dados->id_sistema}
}
</td>
@if(
$validaCnpj
!= 'Sim')
<td>
{
{$dados->uf_sistema}
}
</td>
...
...
routes/api.php
View file @
420ef2b1
...
...
@@ -162,3 +162,15 @@ Route::get('/rps/situacaoPropostasAjustadas', 'ApiController@listaSituacaoPropos
Route
::
get
(
'/debentures/ufs'
,
'ApiController@buscarEstadosDebentures'
);
Route
::
get
(
'/reidis/ufs'
,
'ApiController@buscarEstadosReidis'
);
Route
::
get
(
'/debentures/setor_projeto'
,
'ApiController@buscarSetorProjetoDebentures'
);
//debentures
Route
::
get
(
'/apis/modalidade_projetos'
,
'ApiController@buscarModalidadeProjetos'
);
Route
::
get
(
'/apis/situacao_conjur'
,
'ApiController@buscarSituacaoConjur'
);
Route
::
get
(
'/apis/situacao_emissao'
,
'ApiController@buscarSituacaoEmissao'
);
Route
::
get
(
'/apis/situacao_enquadramento'
,
'ApiController@buscarSituacaoEnquadramento'
);
Route
::
get
(
'/apis/situacao_envio_publicacao'
,
'ApiController@buscarSituacaoEnvioPublicacao'
);
Route
::
get
(
'/apis/situacao_publicacao'
,
'ApiController@buscarSituacaoPublicacao'
);
Route
::
get
(
'/apis/status_analises'
,
'ApiController@buscarStatusAnalises'
);
Route
::
get
(
'/apis/status_enquadramentos'
,
'ApiController@buscarStatusEnquadramentos'
);
Route
::
get
(
'/apis/status_execucao'
,
'ApiController@buscarStatusExecucao'
);
\ No newline at end of file
routes/web.php
View file @
420ef2b1
...
...
@@ -366,3 +366,12 @@ Route::get('/debentures_reidi/projeto/reidis/{projeto}', 'Mod_debentures_reidi\R
Route
::
post
(
'/debentures_reidi/projeto/reidis/update'
,
'Mod_debentures_reidi\ReidisController@updateProjeto'
);
Route
::
get
(
'/debentures_reidi/projeto/reidis/excluir/{ufProjetoId}'
,
'Mod_debentures_reidi\ReidisController@excluirEstado'
);
Route
::
post
(
'/debentures_reidi/estado/reidis/add'
,
'Mod_debentures_reidi\ReidisController@addEstado'
);
//////módulo APIS
Route
::
get
(
'/home_apis'
,
'Mod_apis\HomeApisController@index'
);
Route
::
get
(
'/apis/debentures/consultar'
,
'Mod_apis\ProjetosDebenturesController@consultarProjetos'
);
Route
::
post
(
'/apis/debentures/pesquisar'
,
'Mod_apis\ProjetosDebenturesController@pesquisarProjetos'
);
Route
::
get
(
'/apis/debentures/{projeto_debenture}'
,
'Mod_apis\ProjetosDebenturesController@showProjeto'
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment