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
5cbbf11d
Commit
5cbbf11d
authored
Jan 18, 2024
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inclusao form cadastrar debentures e reidis
parent
8fdde79f
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
448 additions
and
93 deletions
+448
-93
ApiController.php
app/Http/Controllers/ApiController.php
+10
-0
DemandaController.php
app/Http/Controllers/Mod_codem/DemandaController.php
+3
-1
DebenturesController.php
...Controllers/Mod_debentures_reidi/DebenturesController.php
+65
-0
ReidisController.php
...ttp/Controllers/Mod_debentures_reidi/ReidisController.php
+54
-0
Municipio.php
app/Mod_saci/mod_ibge/Municipio.php
+10
-8
Regiao.php
app/Mod_saci/mod_ibge/Regiao.php
+10
-8
Uf.php
app/Mod_saci/mod_ibge/Uf.php
+14
-12
database.php
config/database.php
+1
-1
favicon.ico
favicon.ico
+0
-0
app.js
public/js/app.js
+85
-27
FiltroDemandas.vue
resources/assets/js/components/mod_codem/FiltroDemandas.vue
+25
-5
ProjetoDebentures.vue
.../js/components/mod_debentures_reidi/ProjetoDebentures.vue
+17
-9
ProjetoReidis.vue
...sets/js/components/mod_debentures_reidi/ProjetoReidis.vue
+19
-10
nav_sistema.blade.php
resources/views/layouts/nav/nav_sistema.blade.php
+25
-8
minhas_demandas.blade.php
resources/views/modulo_codem/minhas_demandas.blade.php
+3
-3
Cadastrar_projeto.blade.php
...o_debentures_reidi/debentures/Cadastrar_projeto.blade.php
+50
-0
Cadastrar_projeto.blade.php
...modulo_debentures_reidi/reidi/Cadastrar_projeto.blade.php
+50
-0
api.php
routes/api.php
+3
-0
web.php
routes/web.php
+4
-1
No files found.
app/Http/Controllers/ApiController.php
View file @
5cbbf11d
...
...
@@ -226,6 +226,16 @@ class ApiController extends Controller
return
Secretaria
::
orderBy
(
'txt_nome_secretaria'
)
->
get
();
}
public
function
listaDepartamentos
()
{
return
Departamento
::
orderBy
(
'txt_nome_departamento'
)
->
get
();
}
public
function
listaSetores
()
{
return
Setor
::
orderBy
(
'txt_nome_setor'
)
->
get
();
}
public
function
listaDepartamentoSecretarias
(
$secretaria
)
{
return
Departamento
::
where
(
'secretaria_id'
,
$secretaria
)
->
orderBy
(
'txt_nome_departamento'
)
->
get
();
...
...
app/Http/Controllers/Mod_codem/DemandaController.php
View file @
5cbbf11d
...
...
@@ -256,7 +256,7 @@ class DemandaController extends Controller
public
function
pesquisarDemanda
(
Request
$request
)
{
//
return
$request->all();
// $request->all();
$where
=
[];
...
...
@@ -280,6 +280,8 @@ class DemandaController extends Controller
$where
[]
=
[
'setor_id'
,
$request
->
setor
];
}
if
(
$request
->
tema
)
{
$where
[]
=
[
'tema_id'
,
$request
->
tema
];
}
...
...
app/Http/Controllers/Mod_debentures_reidi/DebenturesController.php
View file @
5cbbf11d
...
...
@@ -9,6 +9,7 @@ use App\Mod_debentures_reidi\ProjetosDebentures;
use
App\Mod_debentures_reidi\RlcUfProjetosDebentures
;
use
App\Mod_debentures_reidi\ViewProjetosDebentures
;
use
App\Mod_debentures_reidi\ViewUfProjetosDebentures
;
use
App\Mod_saci\mod_ibge\Uf
;
use
App\User
;
use
DB
;
...
...
@@ -184,4 +185,68 @@ class DebenturesController extends Controller
return
back
();
}
}
public
function
cadastrarProjeto
(
Request
$request
)
{
return
view
(
'modulo_debentures_reidi.debentures.Cadastrar_projeto'
);
}
public
function
salvarProjeto
(
Request
$request
)
{
$request
->
all
();
DB
::
beginTransaction
();
$projeto
=
new
ProjetosDebentures
;
$projeto
->
cod_carta_consulta
=
$request
->
cod_carta_consulta
;
$projeto
->
uf_id
=
$request
->
estado
;
$estado
=
Uf
::
find
(
$request
->
estado
);
$projeto
->
sg_uf
=
$estado
->
sg_uf
;
$projeto
->
txt_titular_projeto
=
$request
->
titular_projeto
;
$projeto
->
txt_nome_projeto
=
$request
->
txt_nome_projeto
;
$projeto
->
setor_projeto_id
=
$request
->
setor_projeto
;
$projeto
->
vlr_investimento_projeto
=
$request
->
vlr_investimento_projeto
;
if
(
$request
->
bln_contabilizar_valores
==
'0'
)
{
$projeto
->
bln_contabilizar_valores
=
false
;
}
else
{
$projeto
->
bln_contabilizar_valores
=
true
;
}
$projeto
->
num_ano_portaria
=
$request
->
portaria
;
$projeto
->
dte_portaria
=
$request
->
data_portaria
;
$projeto
->
vlr_aprovado_emissao
=
$request
->
vlr_aprovado_emissao
;
$projeto
->
vlr_captado
=
$request
->
vlr_captado
;
$projeto
->
user_id
=
Auth
::
user
()
->
id
;
$salvoSucesso
=
$projeto
->
save
();
$estadoProjeto
=
new
RlcUfProjetosDebentures
;
$estadoProjeto
->
uf_id
=
$request
->
estado
;
$estadoProjeto
->
projeto_debenture_id
=
$projeto
->
id
;
$salvoProjeto
=
$estadoProjeto
->
save
();
if
(
$salvoSucesso
&&
$salvoProjeto
)
{
DB
::
commit
();
flash
()
->
sucesso
(
"Sucesso"
,
"Dados do projeto salvos com sucesso!"
);
return
redirect
(
"/debentures_reidi/projeto/debentures/"
.
$projeto
->
id
);
}
else
{
DB
::
rollBack
();
flash
()
->
erro
(
"Erro"
,
"Não foi possível salvar os dados do projeto."
);
return
back
();
}
}
}
app/Http/Controllers/Mod_debentures_reidi/ReidisController.php
View file @
5cbbf11d
...
...
@@ -11,6 +11,7 @@ use App\Mod_debentures_reidi\RlcUfProjetosReidis;
use
App\Mod_debentures_reidi\ViewProjetosdebenturesReidi
;
use
App\Mod_debentures_reidi\ViewProjetosReidis
;
use
App\Mod_debentures_reidi\ViewUfProjetosReidis
;
use
App\Mod_saci\mod_ibge\Uf
;
use
App\User
;
use
DB
;
...
...
@@ -174,4 +175,57 @@ class ReidisController extends Controller
return
back
();
}
}
public
function
cadastrarProjeto
(
Request
$request
)
{
return
view
(
'modulo_debentures_reidi.reidi.Cadastrar_projeto'
);
}
public
function
salvarProjeto
(
Request
$request
)
{
DB
::
beginTransaction
();
//return $request->all();
$projeto
=
new
ProjetosReidis
;
$projeto
->
cod_carta_consulta
=
$request
->
cod_carta_consulta
;
$projeto
->
uf_id
=
$request
->
estado
;
$estado
=
Uf
::
find
(
$request
->
estado
);
$projeto
->
sg_uf
=
$estado
->
sg_uf
;
$projeto
->
txt_titular_projeto
=
$request
->
titular_projeto
;
$projeto
->
txt_nome_projeto
=
$request
->
txt_nome_projeto
;
$projeto
->
setor_projeto_id
=
$request
->
setor_projeto
;
//return $request->all();
$projeto
->
vlr_projeto_sem_reidi
=
$request
->
vlr_projeto_sem_reidi
;
$projeto
->
vlr_projeto_com_reidi
=
$request
->
vlr_projeto_com_reidi
;
$projeto
->
vlr_investimento_projeto
=
$request
->
vlr_investimento_projeto
;
$projeto
->
vlr_estimado_beneficio
=
$request
->
vlr_estimado_beneficio
;
$projeto
->
num_ano_portaria
=
$request
->
portaria
;
$projeto
->
dte_portaria
=
$request
->
data_portaria
;
$projeto
->
user_id
=
Auth
::
user
()
->
id
;
$salvoSucesso
=
$projeto
->
save
();
$estadoProjeto
=
new
RlcUfProjetosReidis
;
$estadoProjeto
->
uf_id
=
$request
->
estado
;
$estadoProjeto
->
projeto_reidi_id
=
$projeto
->
id
;
$salvoProjeto
=
$estadoProjeto
->
save
();
if
(
$salvoSucesso
&&
$salvoProjeto
)
{
DB
::
commit
();
flash
()
->
sucesso
(
"Sucesso"
,
"Dados do projeto atualizados com sucesso!"
);
return
redirect
(
"/debentures_reidi/projeto/reidis/"
.
$projeto
->
id
);
}
else
{
DB
::
rollBack
();
flash
()
->
erro
(
"Erro"
,
"Não foi possível atualizar os dados do projeto."
);
return
back
();
}
}
}
app/Mod_saci/mod_ibge/Municipio.php
View file @
5cbbf11d
<?php
namespace
App\Mod_ibge
;
namespace
App\Mod_
saci\mod_
ibge
;
use
Illuminate\Database\Eloquent\Model
;
class
Municipio
extends
Model
{
protected
$table
=
'tab_municipios'
;
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'ibge.tab_municipios'
;
protected
$primaryKey
=
'id_municipio'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
uf
()
{
return
$this
->
belongsTo
(
Uf
::
class
,
'id_uf'
,
'id_uf'
);
//possui muitos
}
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
uf
()
{
return
$this
->
belongsTo
(
Uf
::
class
,
'id_uf'
,
'id_uf'
);
//possui muitos
}
}
app/Mod_saci/mod_ibge/Regiao.php
View file @
5cbbf11d
<?php
namespace
App\Mod_ibge
;
namespace
App\Mod_
saci\mod_
ibge
;
use
Illuminate\Database\Eloquent\Model
;
class
Regiao
extends
Model
{
protected
$table
=
'tab_regiao'
;
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'ibge.tab_regiao'
;
protected
$primaryKey
=
'id_regiao'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
ufs
()
{
return
$this
->
hasMany
(
Uf
::
class
,
'id_uf'
,
'id_uf'
);
//possui muitos
}
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
ufs
()
{
return
$this
->
hasMany
(
Uf
::
class
,
'id_uf'
,
'id_uf'
);
//possui muitos
}
}
app/Mod_saci/mod_ibge/Uf.php
View file @
5cbbf11d
<?php
namespace
App\Mod_ibge
;
namespace
App\Mod_
saci\mod_
ibge
;
use
Illuminate\Database\Eloquent\Model
;
class
Uf
extends
Model
{
protected
$table
=
'tab_uf'
;
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'ibge.tab_uf'
;
protected
$primaryKey
=
'id_uf'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
municipios
()
{
return
$this
->
hasMany
(
Municipio
::
class
);
//possui muitos
}
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
public
function
regiao
()
{
return
$this
->
belongsTo
(
Regia
o
::
class
);
//possui muitos
}
public
function
municipios
()
{
return
$this
->
hasMany
(
Municipi
o
::
class
);
//possui muitos
}
public
function
regiao
()
{
return
$this
->
belongsTo
(
Regiao
::
class
);
//possui muitos
}
}
config/database.php
View file @
5cbbf11d
...
...
@@ -75,7 +75,7 @@ return [
'password'
=>
env
(
'DB_PASSWORD_CORP'
,
''
),
'charset'
=>
'utf8'
,
'prefix'
=>
''
,
'schema'
=>
[
'
mcid_codem'
,
'mcid_sistema_se'
,
'mcid_propostas'
,
'pac'
,
'pendencias_caixa'
,
'sistema'
],
'schema'
=>
[
'
ibge'
,
'mcid_codem'
,
'mcid_sistema_se'
,
'mcid_propostas'
,
'pac'
,
'pendencias_caixa'
,
'sistema'
],
'sslmode'
=>
'prefer'
,
],
...
...
favicon.ico
0 → 100644
View file @
5cbbf11d
4.19 KB
public/js/app.js
View file @
5cbbf11d
This diff is collapsed.
Click to expand it.
resources/assets/js/components/mod_codem/FiltroDemandas.vue
View file @
5cbbf11d
...
...
@@ -199,8 +199,8 @@
subTema
:
''
,
subTemas
:
''
,
textoEscolhaTema
:
'Filtre o Tema'
,
textoEscolhaDepartamento
:
"Escolha um
a secretaria
:"
,
textoEscolhaSetor
:
"Escolha uma se
cretaria
:"
,
textoEscolhaDepartamento
:
"Escolha um
departamento
:"
,
textoEscolhaSetor
:
"Escolha uma se
tor
:"
,
prioridade
:
''
,
prioridades
:
''
,
tipoInteressado
:
''
,
...
...
@@ -268,7 +268,7 @@
}
else
{
this
.
buscando
=
false
;
this
.
departamento
=
''
;
this
.
textoEscolhaDepartamento
=
"Filtre a
Secretaria
"
this
.
textoEscolhaDepartamento
=
"Filtre a
Departamento
"
}
},
onChangeDepartamento
()
{
...
...
@@ -288,7 +288,7 @@
}
else
{
this
.
buscando
=
false
;
this
.
setor
=
''
;
this
.
textoEscolhaSetor
=
"Filtre um
Departamento
"
this
.
textoEscolhaSetor
=
"Filtre um
Setor
"
}
},
onChangeTema
(){
...
...
@@ -340,13 +340,33 @@
//retorna as secretarias
axios
.
get
(
this
.
url
+
'/api/sistema/secretarias/'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/sistema/secretarias/'
).
then
(
resposta
=>
{
this
.
textoEscolhaDepartamento
=
"Escolha uma secretaria:"
;
this
.
textoEscolhaSetor
=
"Escolha uma secretaria:"
;
this
.
buscando
=
false
;
this
.
secretarias
=
resposta
.
data
;
this
.
onChangeSecretaria
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
});
axios
.
get
(
this
.
url
+
'/api/sistema/departamentos/'
).
then
(
resposta
=>
{
this
.
textoEscolhaDepartamento
=
"Escolha uma departamento:"
;
this
.
buscando
=
false
;
this
.
departamentos
=
resposta
.
data
;
this
.
onChangeSecretaria
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
});
axios
.
get
(
this
.
url
+
'/api/sistema/setores/'
).
then
(
resposta
=>
{
this
.
textoEscolhaSetor
=
"Escolha um Setor:"
;
this
.
buscando
=
false
;
this
.
setores
=
resposta
.
data
;
this
.
onChangeSecretaria
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
});
...
...
resources/assets/js/components/mod_debentures_reidi/ProjetoDebentures.vue
View file @
5cbbf11d
...
...
@@ -8,7 +8,7 @@
class=
"form-control"
name=
"cod_carta_consulta"
v-model=
"cod_carta_consulta"
:disabled=
"this.dados.txt_cod_carta_consulta"
>
>
</div>
<div
class=
"column col-xs-12 col-md-2"
>
<label
for=
"uf"
>
UF
</label>
...
...
@@ -18,7 +18,8 @@
name=
"estado"
@
change=
"onChangeEstado"
v-model=
"estado"
:disabled=
"this.dados.sg_uf && this.dados.uf_id"
>
:disabled=
"this.estado"
required
>
<option
value=
""
>
Escolha um Estado:
</option>
<option
v-for=
"estado in estados"
v-text=
"estado.txt_sigla_uf"
:value=
"estado.id"
:key=
"estado.id"
></option>
</select>
...
...
@@ -31,7 +32,8 @@
class=
"form-select br-select"
name=
"setor_projeto"
v-model=
"setor_projeto"
:disabled=
"this.dados.setor_projeto_id"
>
:disabled=
"this.dados"
required
>
<option
value=
""
>
Escolha um setor projeto:
</option>
<option
v-for=
"setor_projeto in setor_projetos"
v-text=
"setor_projeto.txt_setor_projeto"
:value=
"setor_projeto.id"
:key=
"setor_projeto.id"
></option>
</select>
...
...
@@ -45,7 +47,8 @@
class=
"form-control"
name=
"titular_projeto"
v-model=
"titular_projeto"
:disabled=
"this.dados.txt_titular_projeto"
>
:disabled=
"this.dados"
required
>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -56,7 +59,7 @@
name=
"txt_nome_projeto"
v-model=
"nome_projeto"
rows=
"7"
:disabled=
"this.dados
.txt_nome_projeto
"
:disabled=
"this.dados"
required
>
</textarea>
</div>
...
...
@@ -68,7 +71,8 @@
type=
"text"
class=
"form-control"
name=
"portaria"
v-model=
"portaria"
v-model=
"portaria"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-6 br-input"
>
...
...
@@ -78,7 +82,8 @@
class=
"form-control"
name=
"data_portaria"
v-model=
"data_portaria"
:disabled=
"this.dados.dte_portaria"
>
:disabled=
"this.dados"
required
>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -88,7 +93,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_investimento_projeto"
v-model=
"vlr_investimento_projeto"
>
v-model=
"vlr_investimento_projeto"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-3 br-input"
>
<label
for=
"vlr_aprovado_emissao"
class=
"control-label"
>
Valor Aprovado Emissão
</label>
...
...
@@ -96,7 +102,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_aprovado_emissao"
v-model=
"vlr_aprovado_emissao"
>
v-model=
"vlr_aprovado_emissao"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-3 br-input"
>
<label
for=
"vlr_captado"
class=
"control-label"
>
Valor Captado
</label>
...
...
@@ -113,6 +120,7 @@
class=
"form-select br-select"
name=
"bln_contabilizar_valores"
v-model=
"bln_contabilizar_valores"
required
>
<option
value=
""
>
Escolha uma opção:
</option>
<option
value=
"1"
>
Sim
</option>
...
...
resources/assets/js/components/mod_debentures_reidi/ProjetoReidis.vue
View file @
5cbbf11d
...
...
@@ -8,7 +8,7 @@
class=
"form-control"
name=
"cod_carta_consulta"
v-model=
"cod_carta_consulta"
:disabled=
"this.dados.txt_cod_carta_consulta"
>
>
</div>
<div
class=
"column col-xs-12 col-md-2"
>
<label
for=
"uf"
>
UF
</label>
...
...
@@ -18,7 +18,8 @@
name=
"estado"
@
change=
"onChangeEstado"
v-model=
"estado"
:disabled=
"this.dados.sg_uf && this.dados.uf_id"
>
required
:disabled=
"this.dados"
>
<option
value=
""
>
Escolha um Estado:
</option>
<option
v-for=
"estado in estados"
v-text=
"estado.txt_sigla_uf"
:value=
"estado.id"
:key=
"estado.id"
></option>
</select>
...
...
@@ -31,7 +32,8 @@
class=
"form-select br-select"
name=
"setor_projeto"
v-model=
"setor_projeto"
:disabled=
"this.dados.setor_projeto_id"
>
:disabled=
"this.dados"
required
>
<option
value=
""
>
Escolha um setor projeto:
</option>
<option
v-for=
"setor_projeto in setor_projetos"
v-text=
"setor_projeto.txt_setor_projeto"
:value=
"setor_projeto.id"
:key=
"setor_projeto.id"
></option>
</select>
...
...
@@ -45,7 +47,8 @@
class=
"form-control"
name=
"titular_projeto"
v-model=
"titular_projeto"
:disabled=
"this.dados.txt_titular_projeto"
>
:disabled=
"this.dados"
required
>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -56,7 +59,7 @@
name=
"txt_nome_projeto"
v-model=
"nome_projeto"
rows=
"7"
:disabled=
"this.dados
.txt_nome_projeto
"
:disabled=
"this.dados"
required
>
</textarea>
</div>
...
...
@@ -69,6 +72,7 @@
class=
"form-control"
name=
"portaria"
v-model=
"portaria"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-6 br-input"
>
...
...
@@ -78,7 +82,8 @@
class=
"form-control"
name=
"data_portaria"
v-model=
"data_portaria"
:disabled=
"this.dados.dte_portaria"
>
:disabled=
"this.dados"
required
>
</div>
</div>
<div
class=
"row"
>
...
...
@@ -88,7 +93,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_investimento_projeto"
v-model=
"vlr_investimento_projeto"
>
v-model=
"vlr_investimento_projeto"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-3 br-input"
>
<label
for=
"vlr_projeto_sem_reidi"
class=
"control-label"
>
Valor do projeto sem reidi
</label>
...
...
@@ -96,7 +102,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_projeto_sem_reidi"
v-model=
"vlr_projeto_sem_reidi"
>
v-model=
"vlr_projeto_sem_reidi"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-3 br-input"
>
<label
for=
"vlr_projeto_com_reidi"
class=
"control-label"
>
Valor do projeto com reidi
</label>
...
...
@@ -104,7 +111,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_projeto_com_reidi"
v-model=
"vlr_projeto_com_reidi"
>
v-model=
"vlr_projeto_com_reidi"
required
>
</div>
<div
class=
"col col-xs-12 col-sm-3 br-input"
>
<label
for=
"vlr_estimado_beneficio"
class=
"control-label"
>
Valor estimado do beneficio
</label>
...
...
@@ -112,7 +120,8 @@
type=
"text"
class=
"form-control"
name=
"vlr_estimado_beneficio"
v-model=
"vlr_estimado_beneficio"
>
v-model=
"vlr_estimado_beneficio"
required
>
</div>
</div>
...
...
resources/views/layouts/nav/nav_sistema.blade.php
View file @
5cbbf11d
...
...
@@ -46,16 +46,33 @@
<!-- inicio menu Documentos-->
<div
class=
"menu-folder"
><a
class=
"menu-item"
href=
"javascript: void(0)"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-text fa-lg"
></i></span><span
class=
"content"
>
d
ebentures e Reidi
</span></a>
<i
class=
"bi bi-journal-text fa-lg"
></i></span><span
class=
"content"
>
D
ebentures e Reidi
</span></a>
<ul>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/debentures/consultar') }}"
title=
"Consultar Projeto Debentures"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Consultar Projeto Debentures
</span></a>
</li>
<li><a
class=
"menu-item"
href=
"#"
title=
"Dados Abertos"
><span
class=
"icon"
>
<i
class=
"bi bi-database-fill-down fa-lg"
></i></i></span><span
class=
"content"
>
Debentures
</span></a>
<ul>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/debentures/cadastrar') }}"
title=
"Cadastrar Projeto Debentures"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Cadastrar Projeto Debentures
</span></a>
</li>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/debentures/consultar') }}"
title=
"Consultar Projeto Debentures"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Consultar Projeto Debentures
</span></a>
</li>
</ul>
</li>
<li><a
class=
"menu-item"
href=
"#"
title=
"Dados Abertos"
><span
class=
"icon"
>
<i
class=
"bi bi-database-fill-down fa-lg"
></i></i></span><span
class=
"content"
>
Reidis
</span></a>
<ul>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/reidis/consultar') }}"
title=
"Consultar Projeto Reidis"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Consultar Projeto Reidis
</span></a>
</li>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/reidis/cadastrar') }}"
title=
"Cadastrar Projeto Reidis"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Cadastrar Projeto Reidis
</span></a>
</li>
</ul>
</li>
<li><a
class=
"menu-item"
href=
"{{ url('/debentures_reidi/projetos/reidis/consultar') }}"
title=
"Consultar Projeto Reidis"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Consultar Projeto Reidis
</span></a>
</li>
...
...
resources/views/modulo_codem/minhas_demandas.blade.php
View file @
5cbbf11d
...
...
@@ -20,7 +20,7 @@
:barracompartilhar="
false
">
</cabecalho-relatorios>
@if(
$demandasUsuario
)
@if(
count(
$demandasUsuario
)>0
)
<div class="
titulo
">
<h5>Minhas Solicitações</h5>
</div><!-- titulo-->
...
...
@@ -89,7 +89,7 @@
</div>
@endif
@if(
$demandasUsuarioDemandado
)
@if(
count(
$demandasUsuarioDemandado
)>0
)
<div class="
titulo
">
<h5>Demandas a responder</h5>
</div><!-- titulo-->
...
...
@@ -214,7 +214,7 @@
@endif
@if(
$demandasSetorUsuario
)
@if(
count(
$demandasSetorUsuario
)>0
)
<div class="
titulo
">
<h5>Solicitações do Setor</h5>
</div><!-- titulo-->
...
...
resources/views/modulo_debentures_reidi/debentures/Cadastrar_projeto.blade.php
0 → 100644
View file @
5cbbf11d
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Debentures e Reidi'"
:
telanterior02
=
"'Debentures'"
:
telatual
=
"'Cadastrar Projeto'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
" >
<cabecalho-relatorios
titulo="
Cadastrar
Projeto
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
<form role="
form
" method="
POST
" action='{{ url("
debentures_reidi
/
projeto
/
debentures
/
salvar
") }}'>
@csrf
<projeto-debentures
:url="
'{{ url('
/
') }}'
"
></projeto-debentures>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
submit
">Salvar
</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_debentures_reidi/reidi/Cadastrar_projeto.blade.php
0 → 100644
View file @
5cbbf11d
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Debentures e Reidi'"
:
telanterior02
=
"'Cadastraar Reidi'"
:
telatual
=
"'Cadastrar Projeto'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
" >
<cabecalho-relatorios
titulo="
Cadastrar
Projeto
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
<form role="
form
" method="
POST
" action='{{ url("
debentures_reidi
/
projeto
/
reidis
/
salvar
") }}'>
@csrf
<projeto-reidis
:url="
'{{ url('
/
') }}'
"
></projeto-reidis>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
submit
">AtualSAlvarizar
</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
routes/api.php
View file @
5cbbf11d
...
...
@@ -138,6 +138,9 @@ Route::get('/modalidade_demanda', 'ApiController@listaModalidadeDemanda');
Route
::
get
(
'/tema/subTema/{subtema}'
,
'ApiController@buscaIdTema'
);
Route
::
get
(
'/situacao_demanda'
,
'ApiController@listaSituacaoDemanda'
);
Route
::
get
(
'/sistema/secretarias'
,
'ApiController@listaSecretarias'
);
Route
::
get
(
'/sistema/departamentos'
,
'ApiController@listaDepartamentos'
);
Route
::
get
(
'/sistema/setores'
,
'ApiController@listaSetores'
);
Route
::
get
(
'/sistema/departamento/secretaria/{secretaria}'
,
'ApiController@listaDepartamentoSecretarias'
);
Route
::
get
(
'/sistema/setor/departamento/{departamento}'
,
'ApiController@listaSetoresDepartamento'
);
Route
::
get
(
'/sistema/usuario/setor/{setor}'
,
'ApiController@listaUsuariosSetor'
);
...
...
routes/web.php
View file @
5cbbf11d
...
...
@@ -348,6 +348,8 @@ Route::get('/codem/demanda/observacao/excluir/{observacao}', 'Mod_codem\Observac
//módulo debentures e reidi
Route
::
get
(
'/debentures_reidi/projetos/debentures/cadastrar'
,
'Mod_debentures_reidi\DebenturesController@cadastrarProjeto'
);
Route
::
post
(
'/debentures_reidi/projeto/debentures/salvar'
,
'Mod_debentures_reidi\DebenturesController@salvarProjeto'
);
Route
::
get
(
'/debentures_reidi/projetos/debentures/consultar'
,
'Mod_debentures_reidi\DebenturesController@consultarProjeto'
);
Route
::
post
(
'/debentures_reidi/projetos/debentures/pesquisar'
,
'Mod_debentures_reidi\DebenturesController@pesquisarProjeto'
);
Route
::
get
(
'/debentures_reidi/projeto/debentures/{projeto}'
,
'Mod_debentures_reidi\DebenturesController@dadosProjeto'
);
...
...
@@ -356,7 +358,8 @@ Route::get('/debentures_reidi/projeto/debentures/excluir/{ufProjetoId}', 'Mod_de
Route
::
post
(
'/debentures_reidi/estado/debentures/add'
,
'Mod_debentures_reidi\DebenturesController@addEstado'
);
Route
::
get
(
'/debentures_reidi/projetos/reidis/cadastrar'
,
'Mod_debentures_reidi\ReidisController@cadastrarProjeto'
);
Route
::
post
(
'/debentures_reidi/projeto/reidis/salvar'
,
'Mod_debentures_reidi\ReidisController@salvarProjeto'
);
Route
::
get
(
'/debentures_reidi/projetos/reidis/consultar'
,
'Mod_debentures_reidi\ReidisController@consultarProjeto'
);
Route
::
post
(
'/debentures_reidi/projetos/reidis/pesquisar'
,
'Mod_debentures_reidi\ReidisController@pesquisarProjeto'
);
Route
::
get
(
'/debentures_reidi/projeto/reidis/{projeto}'
,
'Mod_debentures_reidi\ReidisController@dadosProjeto'
);
...
...
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