Commit 8add19a01e8c49c34b9453aceabd342f8ae445b7

Authored by Lucas Schmoeller da Silva
1 parent 72536133
Exists in master

#25 Não listar alunos excluídos e em abandono no lançamento de notas, e não list…

…ando alunos excluídos do DynamicInput de Matrículas
ieducar/intranet/include/pmieducar/clsPmieducarMatricula.inc.php
@@ -570,7 +570,7 @@ class clsPmieducarMatricula @@ -570,7 +570,7 @@ class clsPmieducarMatricula
570 $sql = "SELECT {$this->_campos_lista}, c.ref_cod_instituicao, p.nome, a.cod_aluno, a.ref_idpes, c.cod_curso, m.observacao FROM {$this->_tabela} m, {$this->_schema}curso c, {$this->_schema}aluno a, cadastro.pessoa p "; 570 $sql = "SELECT {$this->_campos_lista}, c.ref_cod_instituicao, p.nome, a.cod_aluno, a.ref_idpes, c.cod_curso, m.observacao FROM {$this->_tabela} m, {$this->_schema}curso c, {$this->_schema}aluno a, cadastro.pessoa p ";
571 571
572 $whereAnd = " AND "; 572 $whereAnd = " AND ";
573 - $filtros = " WHERE m.ref_cod_aluno = a.cod_aluno AND m.ref_cod_curso = c.cod_curso AND p.idpes = a.ref_idpes "; 573 + $filtros = " WHERE m.ref_cod_aluno = a.cod_aluno AND a.ativo = 1 AND m.ref_cod_curso = c.cod_curso AND p.idpes = a.ref_idpes ";
574 574
575 if (is_numeric($int_cod_matricula)) { 575 if (is_numeric($int_cod_matricula)) {
576 $filtros .= "{$whereAnd} m.cod_matricula = '{$int_cod_matricula}'"; 576 $filtros .= "{$whereAnd} m.cod_matricula = '{$int_cod_matricula}'";
ieducar/intranet/include/pmieducar/clsPmieducarMatriculaTurma.inc.php
@@ -367,7 +367,7 @@ class clsPmieducarMatriculaTurma @@ -367,7 +367,7 @@ class clsPmieducarMatriculaTurma
367 ) as nome_aluno"; 367 ) as nome_aluno";
368 $tab_aluno = ", {$this->_schema}aluno a"; 368 $tab_aluno = ", {$this->_schema}aluno a";
369 369
370 - $where_nm_aluno = " AND a.cod_aluno = m.ref_cod_aluno "; 370 + $where_nm_aluno = " AND a.cod_aluno = m.ref_cod_aluno AND a.ativo=1";
371 } 371 }
372 372
373 if ( $bool_escola_andamento) { 373 if ( $bool_escola_andamento) {
ieducar/modules/Avaliacao/Views/DiarioApiController.php
@@ -552,7 +552,7 @@ class DiarioApiController extends ApiCoreController @@ -552,7 +552,7 @@ class DiarioApiController extends ApiCoreController
552 $this->getRequest()->instituicao_id, 552 $this->getRequest()->instituicao_id,
553 $this->getRequest()->aluno_id, 553 $this->getRequest()->aluno_id,
554 NULL, 554 NULL,
555 - NULL, 555 + 3,
556 NULL, 556 NULL,
557 NULL, 557 NULL,
558 $this->getRequest()->ano, 558 $this->getRequest()->ano,