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
3761cb9f
Commit
3761cb9f
authored
Aug 01, 2023
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcao propostas entes
parent
351409a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
EntePublicoController.php
app/Http/Controllers/Sistema/EntePublicoController.php
+9
-4
No files found.
app/Http/Controllers/Sistema/EntePublicoController.php
View file @
3761cb9f
...
@@ -267,12 +267,16 @@ class EntePublicoController extends Controller
...
@@ -267,12 +267,16 @@ class EntePublicoController extends Controller
//return $where;
//return $where;
$usuario
=
User
::
where
(
$where
)
->
first
();
$usuario
=
User
::
where
(
$where
)
->
first
();
$usuario
->
load
(
'tipoUsuario'
,
'statusUsuario'
,
'entePublico.municipio.uf'
);
$usuario
->
load
(
'tipoUsuario'
,
'statusUsuario'
,
'entePublico.municipio.uf'
);
$wherePropostas
=
[];
$wherePropostas
[]
=
[
'ente_publico_id'
,
$usuario
->
ente_publico_id
];
$wherePropostas
[]
=
[
'bln_propostas_recebidas_sistema'
,
true
];
$propostas
=
Propostas
::
where
(
'ente_publico_id'
,
$usuario
->
ente_publico_id
)
->
get
();
$propostas
=
Propostas
::
where
(
$wherePropostas
)
->
get
();
$propostas
->
load
(
'situacaoProposta'
);
$propostas
->
load
(
'situacaoProposta'
);
...
@@ -291,7 +295,8 @@ class EntePublicoController extends Controller
...
@@ -291,7 +295,8 @@ class EntePublicoController extends Controller
flash
()
->
erro
(
"Erro"
,
"Não existe Ente Público para os dados informados."
);
flash
()
->
erro
(
"Erro"
,
"Não existe Ente Público para os dados informados."
);
return
back
();
return
back
();
}
else
{
}
else
{
$usuario
->
load
(
'tipoUsuario'
,
'statusUsuario'
);
//$usuario->load('tipoUsuario', 'statusUsuario');
//return $usuario->name;
return
view
(
'modulo_sistema.ente_publico.EntePublicoPropostas'
,
compact
(
'usuario'
,
'cronogramas'
,
'propostas'
,
'dadosArquivoOficio'
));
return
view
(
'modulo_sistema.ente_publico.EntePublicoPropostas'
,
compact
(
'usuario'
,
'cronogramas'
,
'propostas'
,
'dadosArquivoOficio'
));
}
}
...
...
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