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
db1182cb
Commit
db1182cb
authored
Oct 21, 2024
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atualização mod plancidades
parent
9d7804de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
ApiController.php
app/Http/Controllers/ApiController.php
+15
-6
No files found.
app/Http/Controllers/ApiController.php
View file @
db1182cb
...
...
@@ -132,7 +132,10 @@ use App\Mod_resultado_primario\ProgramasRps;
use
App\Mod_resultado_primario\SituacoesOficios
;
use
App\Mod_resultado_primario\ViewOficiosEmendas
;
use
App\Mod_saci\mod_ibge\Municipio
as
Mod_ibgeMunicipio
;
use
App\Mod_transferegov\Acoes
;
use
App\Mod_transferegov\Eixos
;
use
App\Mod_transferegov\Rps
;
use
App\Mod_transferegov\Secretarias
;
use
App\Mod_transferegov\Subeixos
;
use
App\Mod_transferegov\Subeixos2
;
use
App\Propostas\ViewSysRelatorioGeralDiscricionarioSistema
;
...
...
@@ -1180,31 +1183,37 @@ class ApiController extends Controller
//Programas TransfereGov
public
function
BuscarEixosTransferegov
()
{
return
Eixos
::
orderBy
(
'txt_eixo'
)
->
get
();
$where
=
[
7
,
10
];
return
Eixos
::
whereIn
(
'cod_eixo'
,
$where
)
->
orderBy
(
'txt_eixo'
)
->
get
();
}
public
function
BuscarSubeixosTransferegov
(
$eixoId
)
{
return
Subeixos
::
where
(
'
i
d_eixo'
,
$eixoId
)
->
orderBy
(
'txt_subeixo'
)
->
get
();
return
Subeixos
::
where
(
'
co
d_eixo'
,
$eixoId
)
->
orderBy
(
'txt_subeixo'
)
->
get
();
}
public
function
BuscarSubeixos2Transferegov
(
$subeixoId
)
{
return
Subeixos2
::
where
(
'
id_subeixo'
,
$subeixoId
)
->
orderBy
(
'txt_subeixo
2'
)
->
get
();
return
Subeixos2
::
where
(
'
cod_subeixo'
,
$subeixoId
)
->
orderBy
(
'txt_subeixo_nivel_
2'
)
->
get
();
}
public
function
BuscarSecretariasTransferegov
()
{
return
AppSecretaria
::
orderBy
(
'txt_secretaria'
)
->
get
();
$where
=
[];
$where
[]
=
[
'cargo_id'
,
9
];
//buscar apenas secretarias nacionais
return
Secretarias
::
where
(
$where
)
->
orderBy
(
'txt_nome_secretaria'
)
->
get
();
}
public
function
BuscarRpsTransferegov
()
{
return
Rps
::
orderBy
(
'txt_rp'
)
->
get
();
return
Rps
::
orderBy
(
'txt_rp'
)
->
orderBy
(
'txt_rp'
)
->
get
();
}
public
function
BuscarAcoes
()
{
return
Acoes
::
get
();
Acoes
::
orderBy
(
'cod_acao_governo'
)
->
get
();
}
}
\ 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