From a35a2613062af0689481d39e3364c3eae663e1d5 Mon Sep 17 00:00:00 2001 From: Eriksen Costa Date: Thu, 22 Jul 2010 17:18:10 -0300 Subject: [PATCH] Removido código obsoleto devido a implementação do módulo {{{Avaliacao}}} (uso das classes de notas e faltas legadas foi depreciado) --- ieducar/intranet/educar_matricula_cad.php | 90 ------------------------------------------------------------------------------------------ 1 file changed, 0 insertions(+), 90 deletions(-) diff --git a/ieducar/intranet/educar_matricula_cad.php b/ieducar/intranet/educar_matricula_cad.php index ab51878..5d68a4f 100644 --- a/ieducar/intranet/educar_matricula_cad.php +++ b/ieducar/intranet/educar_matricula_cad.php @@ -421,96 +421,6 @@ class indice extends clsCadastro return FALSE; } } - - // Armazena as disciplinas utilizadas da nova escola - $obj_esd = new clsPmieducarEscolaSerieDisciplina(); - $lst_esd = $obj_esd->lista( - $this->ref_ref_cod_serie, $this->ref_cod_escola, NULL, 1 - ); - - if (is_array($lst_esd)) { - foreach ($lst_esd as $campo) { - $disciplinas[$campo['ref_cod_disciplina']] = $campo['ref_cod_disciplina']; - } - } - - // Lista as notas que o aluno já tinha - $obj_nota_aluno = new clsPmieducarNotaAluno(); - $lst_nota_aluno = $obj_nota_aluno->lista( - NULL, NULL, NULL, $this->ref_ref_cod_serie, NULL, NULL, - $matricula_saida, NULL, NULL, NULL, NULL, NULL, NULL, 1 - ); - - if (is_array($lst_nota_aluno)) { - foreach ($lst_nota_aluno as $campo) { - if ($disciplinas[$campo['ref_cod_disciplina']]) { - // Cadastra as notas existentes na nova matrícula - $obj_nota_aluno = new clsPmieducarNotaAluno( - NULL, $campo['ref_sequencial'], - $campo['ref_ref_cod_tipo_avaliacao'], $this->ref_ref_cod_serie, - $this->ref_cod_escola, $campo['ref_cod_disciplina'], - $cadastrou, NULL, $this->pessoa_logada, NULL, NULL, - 1, $campo['modulo'] - ); - - $cadastrou_nota = $obj_nota_aluno->cadastra(); - - if (! $cadastrou_nota) { - $this->mensagem = 'Cadastro não realizado.
'; - return FALSE; - } - } - } - } - - // Lista as faltas que o aluno já tinha - $obj_falta_aluno = new clsPmieducarFaltaAluno(); - $lst_falta_aluno = $obj_falta_aluno->lista( - NULL, NULL, NULL, $this->ref_ref_cod_serie, NULL, NULL, - $matricula_saida, NULL, NULL, NULL, NULL, NULL, 1 - ); - - if (is_array($lst_falta_aluno)) { - foreach ($lst_falta_aluno as $campo) { - if ($disciplinas[$campo['ref_cod_disciplina']]) { - // Cadastra as faltas existentes na nova matrícula - $obj_falta_aluno = new clsPmieducarFaltaAluno( - NULL, NULL, $this->pessoa_logada, - $this->ref_ref_cod_serie, $this->ref_cod_escola, - $campo['ref_cod_disciplina'], $cadastrou, - $campo['faltas'], NULL, NULL, 1, $campo['modulo'] - ); - - $cadastrou_falta = $obj_falta_aluno->cadastra(); - - if (! $cadastrou_falta) { - $this->mensagem = 'Cadastro não realizado.
'; - return FALSE; - } - } - } - } - - // Lista as notas que o aluno já tinha (globalizada) - $obj_faltas = new clsPmieducarFaltas(); - $lst_faltas = $obj_faltas->lista($matricula_saida); - - if (is_array($lst_faltas)) { - foreach ($lst_faltas as $campo) { - // Cadastra as faltas existentes na nova matrícula - $obj_faltas = new clsPmieducarFaltas( - $cadastrou, $campo['sequencial'], $this->pessoa_logada, - $campo['falta'] - ); - - $cadastrou_faltas = $obj_faltas->cadastra(); - - if (! $cadastrou_faltas) { - $this->mensagem = 'Cadastro não realizado.
'; - return FALSE; - } - } - } } } -- libgit2 0.21.2