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
1230a659
Commit
1230a659
authored
Jan 06, 2025
by
Paulo Parente
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atualização Módulo Programas TransfereGov - Separação de visualização e edição de programas
parent
99472f98
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
596 additions
and
228 deletions
+596
-228
.env
.env
+1
-1
.env copy
.env copy
+1
-1
ProgramaController.php
app/Http/Controllers/Mod_transferegov/ProgramaController.php
+13
-7
Programa.php
app/Mod_transferegov/Programa.php
+2
-0
ViewProgramasCidades.php
app/Mod_transferegov/ViewProgramasCidades.php
+7
-3
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+3
-2
app.js
public/js/app.js
+334
-155
ListarProgramas.vue
...assets/js/components/mod_transferegov/ListarProgramas.vue
+78
-50
card_programa.blade.php
resources/views/modulo_transferegov/card_programa.blade.php
+1
-0
editar_programa.blade.php
...urces/views/modulo_transferegov/editar_programa.blade.php
+5
-3
listar_programas.blade.php
...rces/views/modulo_transferegov/listar_programas.blade.php
+3
-3
registrar_programa.blade.php
...es/views/modulo_transferegov/registrar_programa.blade.php
+1
-1
show_programa.blade.php
resources/views/modulo_transferegov/show_programa.blade.php
+143
-0
web.php
routes/web.php
+4
-2
No files found.
.env
View file @
1230a659
APP_NAME="Sistema de Gerenciamento do Cidades - SE"
APP_NAME="Sistema de Gerenciamento do Cidades - SE"
APP_ENV=
production
APP_ENV=
local
APP_KEY=base64:JwQP7STcY2peIVdTKZVUKw2zgAUdGRWf8OLkSFMcSBQ=
APP_KEY=base64:JwQP7STcY2peIVdTKZVUKw2zgAUdGRWf8OLkSFMcSBQ=
APP_DEBUG=true
APP_DEBUG=true
APP_URL=https://sistema.cidades.gov.br
APP_URL=https://sistema.cidades.gov.br
...
...
.env copy
View file @
1230a659
...
@@ -2,7 +2,7 @@ APP_NAME=Laravel
...
@@ -2,7 +2,7 @@ APP_NAME=Laravel
APP_ENV=local
APP_ENV=local
APP_KEY=base64:JwQP7STcY2peIVdTKZVUKw2zgAUdGRWf8OLkSFMcSBQ=
APP_KEY=base64:JwQP7STcY2peIVdTKZVUKw2zgAUdGRWf8OLkSFMcSBQ=
APP_DEBUG=true
APP_DEBUG=true
APP_URL=http://localhost
APP_URL=http
s
://localhost
LOG_CHANNEL=stack
LOG_CHANNEL=stack
...
...
app/Http/Controllers/Mod_transferegov/ProgramaController.php
View file @
1230a659
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
App\Mod_transferegov\Programa
;
use
App\Mod_transferegov\Programa
;
use
App\Mod_transferegov\ViewListaProgramas
;
use
App\Mod_transferegov\ViewListaProgramas
;
use
App\Mod_transferegov\ViewProgramasCidades
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Redirect
;
use
Illuminate\Support\Facades\Redirect
;
...
@@ -82,9 +83,14 @@ class ProgramaController extends Controller
...
@@ -82,9 +83,14 @@ class ProgramaController extends Controller
}
}
public
function
show
()
public
function
show
(
$cod_programa
)
{
{
if
(
auth
()
->
check
()){
$programaCidades
=
ViewProgramasCidades
::
with
(
'secretaria'
)
->
where
(
'cod_programa'
,
$cod_programa
)
->
first
();
return
view
(
'modulo_transferegov.show_programa'
,
compact
(
'programaCidades'
));
}
else
{
return
redirect
(
'/login'
);
}
}
}
public
function
edit
(
$cod_programa
)
public
function
edit
(
$cod_programa
)
...
@@ -137,11 +143,11 @@ class ProgramaController extends Controller
...
@@ -137,11 +143,11 @@ class ProgramaController extends Controller
public
function
listarProgramas
()
public
function
listarProgramas
()
{
{
if
(
auth
()
->
check
()){
//
if (auth()->check()){
return
view
(
"modulo_transferegov.listar_programas"
);
//
return view("modulo_transferegov.listar_programas");
}
else
{
//
}else{
return
redirect
(
'/login'
);
//
return redirect('/login');
}
//
}
}
}
}
}
app/Mod_transferegov/Programa.php
View file @
1230a659
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
namespace
App\Mod_transferegov
;
namespace
App\Mod_transferegov
;
use
App\Mod_saci\mod_pac\Eixo
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Relations\BelongsTo
;
use
Illuminate\Database\Eloquent\Relations\HasOne
;
use
Illuminate\Database\Eloquent\Relations\HasOne
;
class
Programa
extends
Model
class
Programa
extends
Model
...
...
app/Mod_transferegov/
Programa
s.php
→
app/Mod_transferegov/
ViewProgramasCidade
s.php
View file @
1230a659
...
@@ -3,17 +3,21 @@
...
@@ -3,17 +3,21 @@
namespace
App\Mod_transferegov
;
namespace
App\Mod_transferegov
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Relations\BelongsTo
;
use
Illuminate\Database\Eloquent\Relations\HasOne
;
use
Illuminate\Database\Eloquent\Relations\HasOne
;
class
Programa
s
extends
Model
class
ViewProgramasCidade
s
extends
Model
{
{
protected
$connection
=
'pgsql_corp'
;
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_paineis.view_
lista_programas_2024
'
;
protected
$table
=
'mcid_paineis.view_
programas_cidades
'
;
public
$timestamps
=
false
;
// tabela possui coluna de data de criação/atualização
public
$timestamps
=
false
;
// tabela possui coluna de data de criação/atualização
public
$incrementing
=
false
;
public
$incrementing
=
false
;
public
function
secretaria
()
:
BelongsTo
{
return
$this
->
belongsTo
(
Secretarias
::
class
,
'id_secretaria'
,
'id'
);
}
}
}
app/Providers/AppServiceProvider.php
View file @
1230a659
...
@@ -25,8 +25,9 @@ class AppServiceProvider extends ServiceProvider
...
@@ -25,8 +25,9 @@ class AppServiceProvider extends ServiceProvider
*/
*/
public
function
boot
()
public
function
boot
()
{
{
if
(
$this
->
app
->
environment
(
'production'
)){
// URL::forceScheme('https');
URL
::
forceScheme
(
'https'
);
}
Validator
::
extend
(
'usuariobloqueado'
,
function
(
$attribute
,
$value
,
$parameters
,
$validator
)
{
Validator
::
extend
(
'usuariobloqueado'
,
function
(
$attribute
,
$value
,
$parameters
,
$validator
)
{
...
...
public/js/app.js
View file @
1230a659
This diff is collapsed.
Click to expand it.
resources/assets/js/components/mod_transferegov/ListarProgramas.vue
View file @
1230a659
This diff is collapsed.
Click to expand it.
resources/views/modulo_transferegov/card_programa.blade.php
View file @
1230a659
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
@if (!$programaTransferegov->cod_programa_cidades)
@if (!$programaTransferegov->cod_programa_cidades)
<a
class=
"br-button primary mr-3"
type=
"button"
href=
"{{ route('transferegov.criar', [$programaTransferegov->cod_programa])}}"
>
Registrar
</a>
<a
class=
"br-button primary mr-3"
type=
"button"
href=
"{{ route('transferegov.criar', [$programaTransferegov->cod_programa])}}"
>
Registrar
</a>
@else
@else
<a
class=
"br-button primary mr-3"
type=
"button"
href=
"{{ route('transferegov.editar', [$programaTransferegov->cod_programa])}}"
>
Visualizar
</a>
<a
class=
"br-button primary mr-3"
type=
"button"
href=
"{{ route('transferegov.editar', [$programaTransferegov->cod_programa])}}"
>
Editar
</a>
<a
class=
"br-button primary mr-3"
type=
"button"
href=
"{{ route('transferegov.editar', [$programaTransferegov->cod_programa])}}"
>
Editar
</a>
@endif
@endif
@endif
@endif
...
...
resources/views/modulo_transferegov/editar_programa.blade.php
View file @
1230a659
...
@@ -6,15 +6,17 @@
...
@@ -6,15 +6,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Programas TransfereGov'"
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telatual
=
"'Cadastrar Programa'"
>
:
telanterior01
=
"'Consultar Programas'"
:
link1
=
"'
{
{url('/transferegov/programas/listar')}
}
'"
>
</
historico
-
navegacao
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
">
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
">
<cabecalho-relatorios :titulo="
'
TransfereGov - Programas 2024
'
"
<cabecalho-relatorios :titulo="
'
Programas TransfereGov
'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
:barracompartilhar="
false
">
</cabecalho-relatorios>
</cabecalho-relatorios>
...
...
resources/views/modulo_transferegov/listar_programas.blade.php
View file @
1230a659
...
@@ -6,15 +6,15 @@
...
@@ -6,15 +6,15 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
>
:
telatual
=
"'TransfereGov - Programas 2024'"
>
</
historico
-
navegacao
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<cabecalho-relatorios :titulo="
'TransfereGov - Programas 2024'
"
<cabecalho-relatorios :titulo="
'Programas TransfereGov'
"
:subtitulo1="
'Consultar Programas'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
:barracompartilhar="
false
">
</cabecalho-relatorios>
</cabecalho-relatorios>
...
...
resources/views/modulo_transferegov/registrar_programa.blade.php
View file @
1230a659
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
">
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
">
<cabecalho-relatorios :titulo="
'
TransfereGov - Programas 2024
'
"
<cabecalho-relatorios :titulo="
'
Programas TransfereGov
'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
:barracompartilhar="
false
">
</cabecalho-relatorios>
</cabecalho-relatorios>
...
...
resources/views/modulo_transferegov/show_programa.blade.php
0 → 100644
View file @
1230a659
@
extends
(
'layouts.app'
)
@
section
(
'scriptscss'
)
<
link
rel
=
"stylesheet"
type
=
"text/css"
href
=
"{{ asset('css/relatorio_executivo.css') }}"
media
=
"screen"
>
@
endsection
@
section
(
'content'
)
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'Consultar Programas'"
:
link1
=
"'
{
{url('/transferegov/programas/listar')}
}
'"
>
</
historico
-
navegacao
>
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
">
<cabecalho-relatorios :titulo="
'Programas TransfereGov'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
<div class="">
<div class="
row
mt
-
3
">
<div class="
d
-
flex
">
<!-- coluna 1 -->
<div class="
column
col
-
3
">
<div class="
row
mt
-
3
">
<div class="
column
col
-
12
">
<label>Nome do Programa</label>
<p>{{
$programaCidades->nom_programa
}}</p>
</div>
</div>
<div class="
row
mt
-
3
">
<div class="
column
col
-
12
">
<div class="
row
">
<div class="
column
col
">
<label>Número do Programa</label>
<p>{{
$programaCidades->cod_programa
}}</p>
</div>
<div class="
column
col
">
<label>Ação Orçamentária</label>
<p>{{
$programaCidades->num_acao_orcamentaria
}}</p>
</div>
</div>
</div>
</div>
<div class="
row
mt
-
3
">
<div class="
column
col
-
12
">
<div class="
row
">
<div class="
column
col
">
<label>Ano</label>
<p>{{
$programaCidades->num_ano_disponiblizacao
}}</p>
</div>
<div class="
column
col
">
<label>Situação</label>
<p>{{
$programaCidades->dsc_sit_programa
}}</p>
</div>
</div>
</div>
</div>
</div>
<span class="
br
-
divider
vertical
mx
-
3
"></span>
<!-- coluna 2 -->
<div class="
column
col
-
9
">
<div class="
row
mt
-
3
">
<div class="
column
col
-
4
">
<label>Ações</label>
<p>
{
{$programaCidades->cod_acao}
}
</p>
</div>
<div class="
column
col
-
4
">
<label for="
rp
">Resultado Primário</label>
<p>
{
{$programaCidades->txt_rp}
}
</p>
</div>
<div class="
column
col
-
4
">
<label>Novo PAC</label>
<p>{{$programaCidades->bln_novo_pac ? 'Sim':'Não'}}</p>
</div>
</div>
<div class="
row
mt
-
3
">
<div class="
column
col
-
12
">
<label for="
secretaria
">Secretaria</label>
<p>
{
{$programaCidades->secretaria->txt_nome_secretaria}
}
</p>
</div>
</div>
<div class="
row
mt
-
3
">
<div class="
column
col
-
6
">
<label for="
eixo
">Eixo</label>
<p>{{$programaCidades->txt_eixo ?
$programaCidades->txt_eixo
: 'Não se aplica'}}</p>
</div>
<div class="
column
col
-
6
">
<label for="
subeixo
">Sub-eixo</label>
<p>{{$programaCidades->txt_subeixo ?
$programaCidades->txt_subeixo
: 'Não se aplica'}}</p>
</div>
</div>
<div class="
row
mt
-
3
">
<div class="
column
col
-
6
">
<label>Modalidade</label>
<p>{{$programaCidades->txt_modalidade ?
$programaCidades->txt_modalidade
: 'Não se aplica'}}</p>
</div>
<div class="
column
col
-
6
">
<label>Grupo Modalidade</label>
<p>{{$programaCidades->txt_grupo_modalidade ?
$programaCidades->txt_grupo_modalidade
: 'Não se aplica'}}</p>
</div>
</div>
</div>
</div>
</div>
<div class="
row
">
<div class="
column
">
<div class="
p
-
3
text
-
right
">
<a class="
br
-
button
primary
mr
-
3
" href="
{{
route
(
'transferegov.editar'
,
$programaCidades
->
cod_programa
)}}
">Editar
</a>
<button class="
br
-
button
danger
mr
-
3
" type="
button
"
onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
</div>
</div>
</div>
</div>
</div>
@endsection
\ No newline at end of file
routes/web.php
View file @
1230a659
...
@@ -600,12 +600,14 @@ Route::post('/briefing/destaques/salvar', 'Mod_briefing\DestaquesController@stor
...
@@ -600,12 +600,14 @@ Route::post('/briefing/destaques/salvar', 'Mod_briefing\DestaquesController@stor
//----------------Módulo TransfereGov - Programas 2024--------------//
//----------------Módulo TransfereGov - Programas 2024--------------//
Route
::
get
(
'/transferegov/programas/listar'
,
'Mod_transferegov\ProgramaController@
listarProgramas
'
)
->
name
(
'transferegov.listarProgramas'
);
Route
::
get
(
'/transferegov/programas/listar'
,
'Mod_transferegov\ProgramaController@
index
'
)
->
name
(
'transferegov.listarProgramas'
);
Route
::
get
(
'/transferegov/programas/{cod_programa}/create'
,
'Mod_transferegov\ProgramaController@create'
)
->
name
(
'transferegov.criar'
);
Route
::
get
(
'/transferegov/programas/{cod_programa}/create'
,
'Mod_transferegov\ProgramaController@create'
)
->
name
(
'transferegov.criar'
);
Route
::
post
(
'/transferegov/programas/salvar'
,
'Mod_transferegov\ProgramaController@store'
)
->
name
(
'transferegov.salvar'
);
Route
::
post
(
'/transferegov/programas/salvar'
,
'Mod_transferegov\ProgramaController@store'
)
->
name
(
'transferegov.salvar'
);
Route
::
get
(
'/transferegov/programas/{cod_programa}/editar'
,
'Mod_transferegov\ProgramaController@edit'
)
->
name
(
'transferegov.editar'
);
Route
::
get
(
'/transferegov/programas/{cod_programa}/editar'
,
'Mod_transferegov\ProgramaController@edit'
)
->
name
(
'transferegov.editar'
);
Route
::
get
(
'/transferegov/programas/{cod_programa}/show'
,
'Mod_transferegov\ProgramaController@show'
)
->
name
(
'transferegov.show'
);
Route
::
post
(
'/transferegov/programas/{id}/atualizar'
,
'Mod_transferegov\ProgramaController@update'
)
->
name
(
'transferegov.atualizar'
);
Route
::
post
(
'/transferegov/programas/{id}/atualizar'
,
'Mod_transferegov\ProgramaController@update'
)
->
name
(
'transferegov.atualizar'
);
Route
::
get
(
'/carga/arquivo/dbgestores/'
,
'Mod_carteira_investimento\DbGestoresController@downloadDbGestores'
);
Route
::
get
(
'/carga/arquivo/dbgestores/'
,
'Mod_carteira_investimento\DbGestoresController@downloadDbGestores'
);
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