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
pad-upe
Commits
502fc4f5
Commit
502fc4f5
authored
Aug 19, 2022
by
alissonalbuquerque
Browse files
add models de extensao e pesquisa
parent
b5db8e07
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/Models/Tabelas/Extensao/ExtensaoCoordenacao.php
View file @
502fc4f5
...
@@ -55,7 +55,7 @@ class ExtensaoCoordenacao extends Model
...
@@ -55,7 +55,7 @@ class ExtensaoCoordenacao extends Model
* @return array
* @return array
*/
*/
public
static
function
getPlanejamentos
()
{
public
static
function
getPlanejamentos
()
{
$codes
=
[];
$codes
=
[
'X-1'
];
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
}
}
...
...
app/Models/Tabelas/Extensao/ExtensaoOrientacao.php
View file @
502fc4f5
...
@@ -55,7 +55,7 @@ class ExtensaoOrientacao extends Model
...
@@ -55,7 +55,7 @@ class ExtensaoOrientacao extends Model
* @return array
* @return array
*/
*/
public
static
function
getPlanejamentos
()
{
public
static
function
getPlanejamentos
()
{
$codes
=
[];
$codes
=
[
'X-2'
];
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
}
}
...
...
app/Models/Tabelas/Pesquisa/PesquisaCoordenacao.php
View file @
502fc4f5
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Models\Tabelas\Pesquisa
;
namespace
App\Models\Tabelas\Pesquisa
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Queries\Tabelas\Pesquisa\PesquisaCoordenacaoQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaCoordenacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
...
@@ -41,6 +42,14 @@ class PesquisaCoordenacao extends Model
...
@@ -41,6 +42,14 @@ class PesquisaCoordenacao extends Model
];
];
}
}
/**
* @return array
*/
public
static
function
getPlanejamentos
()
{
$codes
=
[
'P-2'
,
'P-4'
];
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
}
public
static
function
initQuery
()
public
static
function
initQuery
()
{
{
return
new
PesquisaCoordenacaoQuery
(
get_called_class
());
return
new
PesquisaCoordenacaoQuery
(
get_called_class
());
...
...
app/Models/Tabelas/Pesquisa/PesquisaLideranca.php
View file @
502fc4f5
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Models\Tabelas\Pesquisa
;
namespace
App\Models\Tabelas\Pesquisa
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Queries\Tabelas\Pesquisa\PesquisaLiderancaQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaLiderancaQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
...
@@ -27,6 +28,14 @@ class PesquisaLideranca extends Model
...
@@ -27,6 +28,14 @@ class PesquisaLideranca extends Model
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
return
Constants
::
listFuncaoProjeto
(
$this
->
funcao
);
}
}
/**
* @return array
*/
public
static
function
getPlanejamentos
()
{
$codes
=
[
'P-1'
];
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
}
public
static
function
initQuery
()
public
static
function
initQuery
()
{
{
return
new
PesquisaLiderancaQuery
(
get_called_class
());
return
new
PesquisaLiderancaQuery
(
get_called_class
());
...
...
app/Models/Tabelas/Pesquisa/PesquisaOrientacao.php
View file @
502fc4f5
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
App\Models\Tabelas\Pesquisa
;
namespace
App\Models\Tabelas\Pesquisa
;
use
App\Models\Planejamento
;
use
App\Models\Tabelas\Constants
;
use
App\Models\Tabelas\Constants
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOrientacaoQuery
;
use
App\Queries\Tabelas\Pesquisa\PesquisaOrientacaoQuery
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\Model
;
...
@@ -27,6 +28,14 @@ class PesquisaOrientacao extends Model
...
@@ -27,6 +28,14 @@ class PesquisaOrientacao extends Model
return
Constants
::
listFuncaoOrientador
(
$this
->
funcao
);
return
Constants
::
listFuncaoOrientador
(
$this
->
funcao
);
}
}
/**
* @return array
*/
public
static
function
getPlanejamentos
()
{
$codes
=
[
'P-3'
];
return
Planejamento
::
initQuery
()
->
whereInCodDimensao
(
$codes
)
->
get
();
}
public
static
function
initQuery
()
public
static
function
initQuery
()
{
{
return
new
PesquisaOrientacaoQuery
(
get_called_class
());
return
new
PesquisaOrientacaoQuery
(
get_called_class
());
...
...
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