Commit a35a2613062af0689481d39e3364c3eae663e1d5
1 parent
c8c9ad32
Exists in
master
Removido código obsoleto devido a implementação do módulo {{{Avaliacao}}} (uso d…
…as classes de notas e faltas legadas foi depreciado)
Showing
1 changed file
with
0 additions
and
90 deletions
Show diff stats
ieducar/intranet/educar_matricula_cad.php
| @@ -421,96 +421,6 @@ class indice extends clsCadastro | @@ -421,96 +421,6 @@ class indice extends clsCadastro | ||
| 421 | return FALSE; | 421 | return FALSE; |
| 422 | } | 422 | } |
| 423 | } | 423 | } |
| 424 | - | ||
| 425 | - // Armazena as disciplinas utilizadas da nova escola | ||
| 426 | - $obj_esd = new clsPmieducarEscolaSerieDisciplina(); | ||
| 427 | - $lst_esd = $obj_esd->lista( | ||
| 428 | - $this->ref_ref_cod_serie, $this->ref_cod_escola, NULL, 1 | ||
| 429 | - ); | ||
| 430 | - | ||
| 431 | - if (is_array($lst_esd)) { | ||
| 432 | - foreach ($lst_esd as $campo) { | ||
| 433 | - $disciplinas[$campo['ref_cod_disciplina']] = $campo['ref_cod_disciplina']; | ||
| 434 | - } | ||
| 435 | - } | ||
| 436 | - | ||
| 437 | - // Lista as notas que o aluno já tinha | ||
| 438 | - $obj_nota_aluno = new clsPmieducarNotaAluno(); | ||
| 439 | - $lst_nota_aluno = $obj_nota_aluno->lista( | ||
| 440 | - NULL, NULL, NULL, $this->ref_ref_cod_serie, NULL, NULL, | ||
| 441 | - $matricula_saida, NULL, NULL, NULL, NULL, NULL, NULL, 1 | ||
| 442 | - ); | ||
| 443 | - | ||
| 444 | - if (is_array($lst_nota_aluno)) { | ||
| 445 | - foreach ($lst_nota_aluno as $campo) { | ||
| 446 | - if ($disciplinas[$campo['ref_cod_disciplina']]) { | ||
| 447 | - // Cadastra as notas existentes na nova matrícula | ||
| 448 | - $obj_nota_aluno = new clsPmieducarNotaAluno( | ||
| 449 | - NULL, $campo['ref_sequencial'], | ||
| 450 | - $campo['ref_ref_cod_tipo_avaliacao'], $this->ref_ref_cod_serie, | ||
| 451 | - $this->ref_cod_escola, $campo['ref_cod_disciplina'], | ||
| 452 | - $cadastrou, NULL, $this->pessoa_logada, NULL, NULL, | ||
| 453 | - 1, $campo['modulo'] | ||
| 454 | - ); | ||
| 455 | - | ||
| 456 | - $cadastrou_nota = $obj_nota_aluno->cadastra(); | ||
| 457 | - | ||
| 458 | - if (! $cadastrou_nota) { | ||
| 459 | - $this->mensagem = 'Cadastro não realizado.<br />'; | ||
| 460 | - return FALSE; | ||
| 461 | - } | ||
| 462 | - } | ||
| 463 | - } | ||
| 464 | - } | ||
| 465 | - | ||
| 466 | - // Lista as faltas que o aluno já tinha | ||
| 467 | - $obj_falta_aluno = new clsPmieducarFaltaAluno(); | ||
| 468 | - $lst_falta_aluno = $obj_falta_aluno->lista( | ||
| 469 | - NULL, NULL, NULL, $this->ref_ref_cod_serie, NULL, NULL, | ||
| 470 | - $matricula_saida, NULL, NULL, NULL, NULL, NULL, 1 | ||
| 471 | - ); | ||
| 472 | - | ||
| 473 | - if (is_array($lst_falta_aluno)) { | ||
| 474 | - foreach ($lst_falta_aluno as $campo) { | ||
| 475 | - if ($disciplinas[$campo['ref_cod_disciplina']]) { | ||
| 476 | - // Cadastra as faltas existentes na nova matrícula | ||
| 477 | - $obj_falta_aluno = new clsPmieducarFaltaAluno( | ||
| 478 | - NULL, NULL, $this->pessoa_logada, | ||
| 479 | - $this->ref_ref_cod_serie, $this->ref_cod_escola, | ||
| 480 | - $campo['ref_cod_disciplina'], $cadastrou, | ||
| 481 | - $campo['faltas'], NULL, NULL, 1, $campo['modulo'] | ||
| 482 | - ); | ||
| 483 | - | ||
| 484 | - $cadastrou_falta = $obj_falta_aluno->cadastra(); | ||
| 485 | - | ||
| 486 | - if (! $cadastrou_falta) { | ||
| 487 | - $this->mensagem = 'Cadastro não realizado.<br />'; | ||
| 488 | - return FALSE; | ||
| 489 | - } | ||
| 490 | - } | ||
| 491 | - } | ||
| 492 | - } | ||
| 493 | - | ||
| 494 | - // Lista as notas que o aluno já tinha (globalizada) | ||
| 495 | - $obj_faltas = new clsPmieducarFaltas(); | ||
| 496 | - $lst_faltas = $obj_faltas->lista($matricula_saida); | ||
| 497 | - | ||
| 498 | - if (is_array($lst_faltas)) { | ||
| 499 | - foreach ($lst_faltas as $campo) { | ||
| 500 | - // Cadastra as faltas existentes na nova matrícula | ||
| 501 | - $obj_faltas = new clsPmieducarFaltas( | ||
| 502 | - $cadastrou, $campo['sequencial'], $this->pessoa_logada, | ||
| 503 | - $campo['falta'] | ||
| 504 | - ); | ||
| 505 | - | ||
| 506 | - $cadastrou_faltas = $obj_faltas->cadastra(); | ||
| 507 | - | ||
| 508 | - if (! $cadastrou_faltas) { | ||
| 509 | - $this->mensagem = 'Cadastro não realizado.<br />'; | ||
| 510 | - return FALSE; | ||
| 511 | - } | ||
| 512 | - } | ||
| 513 | - } | ||
| 514 | } | 424 | } |
| 515 | } | 425 | } |
| 516 | 426 |