Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
89b67a98
Commit
89b67a98
authored
Aug 05, 2023
by
unknown
Browse files
Adição e configuração do novo tipo de Edital PIACEX
parent
83009ce6
Changes
9
Hide whitespace changes
Inline
Side-by-side
app/Evento.php
View file @
89b67a98
...
...
@@ -34,8 +34,8 @@ class Evento extends Model
'fim_recurso'
=>
[
'required'
,
'date'
],
'resultado_final'
=>
[
'required'
,
'date'
],
'resultado_preliminar'
=>
[
'required'
,
'date'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
...
...
@@ -67,8 +67,8 @@ class Evento extends Model
'inicio_recurso'
=>
[
'required'
,
'date'
,
'after_or_equal:resultado_preliminar'
],
'fim_recurso'
=>
[
'required'
,
'date'
,
'after:inicio_recurso'
],
'resultado_final'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
,
'after:resultado_final'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
,
'after:resultado_final'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'pdfEdital'
=>
[(
'pdfEditalPreenchido'
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
...
...
@@ -106,8 +106,8 @@ class Evento extends Model
'inicio_recurso'
=>
[
'required'
,
'date'
,
'after_or_equal:resultado_preliminar'
],
'fim_recurso'
=>
[
'required'
,
'date'
,
'after:inicio_recurso'
],
'resultado_final'
=>
[
'required'
,
'date'
,
'after:fim_recurso'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
,
'after:resultado_final'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX'
,
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
,
'after:resultado_final'
],
'dt_fimRelatorioParcial'
=>
[
'exclude_if:tipo,PIBEX
,PIACEX
'
,
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'modeloDocumento.*'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
...
...
app/Http/Controllers/AvaliadorController.php
View file @
89b67a98
...
...
@@ -92,6 +92,8 @@ class AvaliadorController extends Controller
$trabalhos
=
$aval
->
trabalhos
->
where
(
'evento_id'
,
$request
->
evento_id
);
}
else
{
// aki
dd
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
first
());
foreach
(
$aval
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
as
$trab
){
if
(
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
wherePivot
(
'avaliador_id'
,
$aval
->
id
)
->
wherePivot
(
'acesso'
,
2
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
first
()
||
$aval
->
trabalhos
()
->
where
(
"trabalho_id"
,
$trab
->
id
)
->
wherePivot
(
'avaliador_id'
,
$aval
->
id
)
->
wherePivot
(
'acesso'
,
3
)
->
orderBy
(
'created_at'
,
'DESC'
)
->
first
()
||
...
...
app/Http/Controllers/EventoController.php
View file @
89b67a98
...
...
@@ -181,7 +181,8 @@ class EventoController extends Controller
$evento
[
'fim_recurso'
]
=
$request
->
fim_recurso
;
$evento
[
'resultado_preliminar'
]
=
$request
->
resultado_preliminar
;
$evento
[
'resultado_final'
]
=
$request
->
resultado_final
;
if
(
$request
->
tipo
!=
"PIBEX"
){
if
(
$request
->
tipo
!=
"PIBEX"
||
$request
->
tipo
!=
"PIACEX"
){
$evento
[
'dt_inicioRelatorioParcial'
]
=
$request
->
dt_inicioRelatorioParcial
;
$evento
[
'dt_fimRelatorioParcial'
]
=
$request
->
dt_fimRelatorioParcial
;
}
...
...
app/Http/Controllers/TrabalhoController.php
View file @
89b67a98
...
...
@@ -1347,7 +1347,7 @@ class TrabalhoController extends Controller
DB
::
beginTransaction
();
if
(
$evento
->
tipo
==
"PIBEX"
){
if
(
$evento
->
tipo
==
"PIBEX"
||
$evento
->
tipo
==
"PIACEX"
){
$trabalho
=
Auth
::
user
()
->
proponentes
->
trabalhos
()
->
create
(
$request
->
except
([
'anexoProjeto'
,
'anexoDecisaoCONSU'
,
'modalidade'
,
'anexo_docExtra'
,
'anexo_SIPAC'
...
...
@@ -1413,7 +1413,7 @@ class TrabalhoController extends Controller
}
if
(
$evento
->
tipo
!=
"CONTINUO"
){
if
(
$evento
->
tipo
!=
"PIBEX"
)
{
if
(
$evento
->
tipo
!=
"PIBEX"
&&
$evento
->
tipo
!=
"PIACEX"
)
{
$data
[
'media_do_curso'
]
=
$request
->
media_do_curso
[
$part
];
}
$data
[
'nomePlanoTrabalho'
]
=
$request
->
nomePlanoTrabalho
[
$part
];
...
...
@@ -1547,7 +1547,7 @@ class TrabalhoController extends Controller
}
}
catch
(
\
Throwable
$th
)
{
DB
::
rollback
();
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
$th
->
getMessage
()
]);
return
redirect
(
route
(
'proponente.projetos'
))
->
with
Errors
([
'mensagem'
=>
'Não foi possível realizar a submissão do Projeto!'
]);
}
...
...
app/Http/Requests/StoreTrabalho.php
View file @
89b67a98
...
...
@@ -103,7 +103,7 @@ class StoreTrabalho extends FormRequest
}
if
(
$evento
->
tipo
!=
"PIBEX"
&&
$evento
->
tipo
!=
"CONTINUO"
)
{
if
(
$evento
->
tipo
!=
"PIBEX"
&&
$evento
->
tipo
!=
"CONTINUO"
&&
$evento
->
tipo
!=
"PIACEX"
)
{
//dd($this->preenchimentoFormFlag);
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
...
...
resources/views/evento/criarEvento.blade.php
View file @
89b67a98
...
...
@@ -34,6 +34,7 @@
<
option
@
if
(
old
(
'tipo'
)
==
'PIBIC-AF'
)
selected
@
endif
value
=
"PIBIC-AF"
>
PIBIC
-
AF
</
option
>
<
option
@
if
(
old
(
'tipo'
)
==
'PIBITI'
)
selected
@
endif
value
=
"PIBITI"
>
PIBITI
</
option
>
<
option
@
if
(
old
(
'tipo'
)
==
'PIBEX'
)
selected
@
endif
value
=
"PIBEX"
>
PIBEX
</
option
>
<
option
@
if
(
old
(
'tipo'
)
==
'PIACEX'
)
selected
@
endif
value
=
"PIACEX"
>
PIACEX
</
option
>
<
option
@
if
(
old
(
'tipo'
)
==
'CONTINUO'
)
selected
@
endif
value
=
"CONTINUO"
>
Fluxo
Contínuo
</
option
>
</
select
>
...
...
@@ -896,8 +897,8 @@
}
//retirada das datas dos relatórios parciais para o PIBEX
if
(
tipo
.
value
===
'PIBEX'
){
//retirada das datas dos relatórios parciais para o PIBEX
e PIACEX
if
(
tipo
.
value
===
'PIBEX'
||
tipo
.
value
===
'PIACEX'
){
document
.
getElementById
(
'div-inicio-relat-parcial'
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
'div-fim-relat-parcial'
)
.
style
.
display
=
"none"
;
...
...
resources/views/evento/editarEvento.blade.php
View file @
89b67a98
...
...
@@ -47,6 +47,7 @@
<
option
value
=
"PIBIC-AF"
{{
$evento
->
tipo
==
"PIBIC-AF"
?
'selected'
:
''
}}
>
PIBIC
-
AF
</
option
>
<
option
value
=
"PIBITI"
{{
$evento
->
tipo
==
"PIBITI"
?
'selected'
:
''
}}
>
PIBITI
</
option
>
<
option
value
=
"PIBEX"
{{
$evento
->
tipo
==
"PIBEX"
?
'selected'
:
''
}}
>
PIBEX
</
option
>
<
option
value
=
"PIACEX"
{{
$evento
->
tipo
==
"PIACEX"
?
'selected'
:
''
}}
>
PIACEX
</
option
>
<
option
value
=
"CONTINUO"
{{
$evento
->
tipo
==
"CONTINUO"
?
'selected'
:
''
}}
>
Fluxo
Contínuo
</
option
>
</
select
>
@
error
(
'tipo'
)
...
...
@@ -1016,8 +1017,8 @@
})
}
//retirada das datas dos relatórios parciais para o PIBEX
if
(
tipo
.
value
===
'PIBEX'
){
//retirada das datas dos relatórios parciais para o PIBEX
e PIACEX
if
(
tipo
.
value
===
'PIBEX'
||
tipo
.
value
===
'PIACEX'
){
document
.
getElementById
(
'div-inicio-relat-parcial'
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
'div-fim-relat-parcial'
)
.
style
.
display
=
"none"
;
...
...
resources/views/evento/formulario/anexos.blade.php
View file @
89b67a98
...
...
@@ -35,7 +35,7 @@
</div>
@if($edital->tipo != "PIBEX")
@if($edital->tipo != "PIBEX"
&&
$edital->tipo != "PIACEX"
)
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<label
for=
"anexoLatterCoordenador"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Lattes do Coordenador: ') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
/>
...
...
@@ -47,7 +47,7 @@
</div>
@endif
@if($edital->tipo != "PIBEX")
@if($edital->tipo != "PIBEX"
&&
$edital->tipo != "PIACEX"
)
<div
class=
"form-group col-md-6"
>
<label
for=
"anexoPlanilhaPontuacao"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Planilha de Pontuação: ') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoPlanilhaPontuacao"
placeholder=
"anexoPlanilhaPontuacao"
accept=
".xlsx, .xls, .ods"
/>
...
...
@@ -82,7 +82,7 @@
</div>
@endif
@if($edital->tipo != "PIBEX")
@if($edital->tipo != "PIBEX"
&&
$edital->tipo != "PIACEX"
)
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
<label
for=
"nomeTrabalho"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Grupo de Pesquisa: ') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"file"
class=
"input-group-text"
name=
"anexoGrupoPesquisa"
placeholder=
"Anexo do Grupo de Pesquisa"
accept=
"application/pdf"
/>
...
...
@@ -94,7 +94,7 @@
</div>
@endif
@if($edital->tipo != "PIBEX")
@if($edital->tipo != "PIBEX"
&&
$edital->tipo != "PIACEX"
)
<div
class=
"form-group col-md-6"
>
<label
for=
"botao"
class=
"col-form-label font-tam @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
style=
"font-weight: bold"
>
{{ __('Possui autorizações especiais?') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
...
...
resources/views/evento/formulario/proponente.blade.php
View file @
89b67a98
...
...
@@ -34,7 +34,7 @@
@enderror
</div>
@if($edital->tipo != "PIBEX"
&&
$edital->tipo !='CONTINUO')
@if($edital->tipo != "PIBEX"
&&
$edital->tipo !='CONTINUO'
&&
$edital->tipo != "PIACEX"
)
<div
class=
"col-md-2"
>
<br>
<label
for=
"lattes"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Grupo de Pesquisa: ') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
...
...
@@ -51,7 +51,7 @@
</div>
@endif
@if($edital->tipo != "PIBEX"
&&
$edital->tipo !='CONTINUO')
@if($edital->tipo != "PIBEX"
&&
$edital->tipo !='CONTINUO'
&&
$edital->tipo != "PIACEX"
)
<div
class=
"col-md-3"
>
<br>
<label
for=
"lattes"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Valor da Planilha de Pontuação: ') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
...
...
@@ -117,7 +117,7 @@
</div>
@endif
@if($edital->tipo != "CONTINUO"
&&
$edital->tipo != "PIBEX")
@if($edital->tipo != "CONTINUO"
&&
$edital->tipo != "PIBEX"
&&
$edital->tipo != "PIACEX"
)
<div
class=
"col-md-2"
>
<br>
<label
for=
"conflitosInteresse"
class=
"col-form-label font-tam"
...
...
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