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
57f6ff43
Commit
57f6ff43
authored
Jan 30, 2022
by
Guilherme Silva
Browse files
Criado parecer interno
parent
5d2eea34
Changes
5
Show whitespace changes
Inline
Side-by-side
app/Avaliador.php
View file @
57f6ff43
...
...
@@ -30,5 +30,8 @@ class Avaliador extends Model
public
function
area
(){
return
$this
->
belongsTo
(
'App\Area'
);
}
public
function
parecer_internos
(){
return
$this
->
hasMany
(
ParecerInterno
::
class
,
'avali_id'
,
'id'
);
}
}
app/Http/Controllers/ParecerInternoController.php
0 → 100644
View file @
57f6ff43
<?php
namespace
App\Http\Controllers
;
use
App\ParecerInterno
;
use
Illuminate\Http\Request
;
class
ParecerInternoController
extends
Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public
function
index
()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public
function
create
()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
//
}
/**
* Display the specified resource.
*
* @param \App\ParecerInterno $parecer
* @return \Illuminate\Http\Response
*/
public
function
show
(
ParecerInterno
$parecer
)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\ParecerInterno $parecer
* @return \Illuminate\Http\Response
*/
public
function
edit
(
ParecerInterno
$parecer
)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\ParecerInterno $parecer
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
ParecerInterno
$parecer
)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\ParecerInterno $parecer
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
ParecerInterno
$parecer
)
{
//
}
}
app/ParecerInterno.php
0 → 100644
View file @
57f6ff43
<?php
namespace
App
;
use
Illuminate\Database\Eloquent\Model
;
class
ParecerInterno
extends
Model
{
protected
$fillable
=
[
'statusLinkGrupoPesquisa'
,
'statusLinkLattesProponente'
,
'statusAnexoProjeto'
,
'statusAnexoDecisaoCONSU'
,
'statusAnexoPlanilhaPontuacao'
,
'statusAnexoLattesCoordenador'
,
'statusAnexoGrupoPesquisa'
,
'statusAnexoAtuorizacaoComiteEtica'
,
'statusJustificativaAutorizacaoEtica'
,
'statusParecer'
,
'statusPlanoTrabalho'
,
'trabalho_id'
,
'avaliador_id'
,
];
public
function
trabalho
(){
return
$this
->
belongsTo
(
Trabalho
::
class
,
'trab_id'
,
'id'
);
}
public
function
avaliador
(){
return
$this
->
belongsTo
(
Avaliador
::
class
,
'avali_id'
,
'id'
);
}
}
app/Trabalho.php
View file @
57f6ff43
...
...
@@ -101,4 +101,9 @@ class Trabalho extends Model
public
function
substituicaos
(){
return
$this
->
hasMany
(
'App\Substituicao'
);
}
public
function
parecer_internos
(){
return
$this
->
hasMany
(
ParecerInterno
::
class
,
'trab_id'
,
'id'
);
}
}
database/migrations/2021_11_23_063014_create_parecer_internos_table.php
0 → 100644
View file @
57f6ff43
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
CreateParecerInternosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
create
(
'parecer_internos'
,
function
(
Blueprint
$table
)
{
$table
->
bigIncrements
(
'id'
);
$table
->
timestamps
();
$table
->
string
(
'statusLinkGrupoPesquisa'
);
$table
->
string
(
'statusLinkLattesProponente'
);
$table
->
string
(
'statusAnexoProjeto'
);
$table
->
string
(
'statusAnexoDecisaoCONSU'
);
$table
->
string
(
'statusAnexoPlanilhaPontuacao'
);
$table
->
string
(
'statusAnexoLattesCoordenador'
);
$table
->
string
(
'statusAnexoGrupoPesquisa'
);
$table
->
string
(
'statusAnexoAtuorizacaoComiteEtica'
);
$table
->
string
(
'statusJustificativaAutorizacaoEtica'
);
$table
->
string
(
'statusPlanoTrabalho'
);
$table
->
string
(
'statusParecer'
);
$table
->
unsignedBigInteger
(
'trabalho_id'
);
$table
->
unsignedBigInteger
(
'avaliador_id'
);
$table
->
foreign
(
'trabalho_id'
)
->
references
(
'id'
)
->
on
(
'trabalhos'
);
$table
->
foreign
(
'avaliador_id'
)
->
references
(
'id'
)
->
on
(
'avaliadors'
);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'parecer_internos'
);
}
}
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