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
5bfcb052
Commit
5bfcb052
authored
May 15, 2023
by
unknown
Browse files
Projetos de fluxo continuo não eram submetidos
parent
91af7454
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
5bfcb052
...
@@ -1295,16 +1295,20 @@ class TrabalhoController extends Controller
...
@@ -1295,16 +1295,20 @@ class TrabalhoController extends Controller
$data
[
'curso'
]
=
$request
->
outrocurso
[
$part
];
$data
[
'curso'
]
=
$request
->
outrocurso
[
$part
];
}
}
if
(
$evento
->
tipo
!=
"PIBEX"
)
{
if
(
$evento
->
tipo
!=
"CONTINUO"
){
$data
[
'media_do_curso'
]
=
$request
->
media_do_curso
[
$part
];
if
(
$evento
->
tipo
!=
"PIBEX"
)
{
$data
[
'media_do_curso'
]
=
$request
->
media_do_curso
[
$part
];
}
$data
[
'nomePlanoTrabalho'
]
=
$request
->
nomePlanoTrabalho
[
$part
];
}
}
$data
[
'nomePlanoTrabalho'
]
=
$request
->
nomePlanoTrabalho
[
$part
];
}
}
//função no projeto
//função no projeto
if
(
FuncaoParticipantes
::
where
(
'nome'
,
$request
->
funcaoParticipante
[
$part
])
->
exists
())
if
(
$evento
->
tipo
!=
"CONTINUO"
){
$data
[
'funcao_participante_id'
]
=
FuncaoParticipantes
::
where
(
'nome'
,
$request
->
funcaoParticipante
[
$part
])
->
first
()
->
id
;
if
(
FuncaoParticipantes
::
where
(
'nome'
,
$request
->
funcaoParticipante
[
$part
])
->
exists
())
$data
[
'funcao_participante_id'
]
=
FuncaoParticipantes
::
where
(
'nome'
,
$request
->
funcaoParticipante
[
$part
])
->
first
()
->
id
;
}
//instituição do participante
//instituição do participante
if
(
$request
->
instituicao
[
$part
]
!=
"Outra"
)
{
if
(
$request
->
instituicao
[
$part
]
!=
"Outra"
)
{
...
@@ -1332,20 +1336,22 @@ class TrabalhoController extends Controller
...
@@ -1332,20 +1336,22 @@ class TrabalhoController extends Controller
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
trabalho_id
=
$trabalho
->
id
;
$participante
->
save
();
$participante
->
save
();
if
(
$request
->
estudante
[
$part
]
==
true
&&
$request
[
'nomePlanoTrabalho'
][
$part
]
!=
null
)
{
if
(
$evento
->
tipo
!=
"CONTINUO"
){
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
if
(
$request
->
estudante
[
$part
]
==
true
&&
$request
[
'nomePlanoTrabalho'
][
$part
]
!=
null
)
{
$nome
=
$request
[
'nomePlanoTrabalho'
][
$part
]
.
".pdf"
;
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$file
=
$request
->
anexoPlanoTrabalho
[
$part
];
$nome
=
$request
[
'nomePlanoTrabalho'
][
$part
]
.
".pdf"
;
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$file
=
$request
->
anexoPlanoTrabalho
[
$part
];
$arquivo
=
new
Arquivo
();
Storage
::
putFileAs
(
$path
,
$file
,
$nome
);
$arquivo
->
titulo
=
$request
[
'nomePlanoTrabalho'
][
$part
];
$arquivo
=
new
Arquivo
();
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
titulo
=
$request
[
'nomePlanoTrabalho'
][
$part
];
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
nome
=
$path
.
$nome
;
$arquivo
->
data
=
now
();
$arquivo
->
trabalhoId
=
$trabalho
->
id
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
data
=
now
();
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
participanteId
=
$participante
->
id
;
$arquivo
->
save
();
$arquivo
->
versaoFinal
=
true
;
$arquivo
->
save
();
}
}
}
}
}
...
...
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