Commit ae96230b455df8ff6291ff46c588a6c21c3c373a
1 parent
3e15bfd5
Exists in
master
Retirando do formulário modelo de históricos não disponíveis
Showing
2 changed files
with
2 additions
and
16 deletions
Show diff stats
ieducar/modules/Reports/Reports/HistoricoEscolarReport.php
| @@ -49,18 +49,13 @@ class HistoricoEscolarReport extends Portabilis_Report_ReportCore | @@ -49,18 +49,13 @@ class HistoricoEscolarReport extends Portabilis_Report_ReportCore | ||
| 49 | { | 49 | { |
| 50 | 50 | ||
| 51 | function templateName() { | 51 | function templateName() { |
| 52 | - $modelos = array(1 => 'portabilis_historico_escolar_9anos', | ||
| 53 | - 2 => 'portabilis_historico_escolar', | ||
| 54 | - 3 => 'portabilis_historico_escolar_series_anos'); | ||
| 55 | - | ||
| 56 | - return $modelos[$this->args['modelo']]; | 52 | + return 'portabilis_historico_escolar_9anos'; |
| 57 | } | 53 | } |
| 58 | 54 | ||
| 59 | function requiredArgs() { | 55 | function requiredArgs() { |
| 60 | $this->addRequiredArg('instituicao'); | 56 | $this->addRequiredArg('instituicao'); |
| 61 | $this->addRequiredArg('escola'); | 57 | $this->addRequiredArg('escola'); |
| 62 | $this->addRequiredArg('aluno'); | 58 | $this->addRequiredArg('aluno'); |
| 63 | - $this->addRequiredArg('modelo'); | ||
| 64 | } | 59 | } |
| 65 | } | 60 | } |
| 66 | 61 |
ieducar/modules/Reports/Views/HistoricoEscolarController.php
| @@ -55,13 +55,6 @@ class HistoricoEscolarController extends Portabilis_Controller_ReportCoreControl | @@ -55,13 +55,6 @@ class HistoricoEscolarController extends Portabilis_Controller_ReportCoreControl | ||
| 55 | $this->inputsHelper()->dynamic(array('instituicao', 'escola')); | 55 | $this->inputsHelper()->dynamic(array('instituicao', 'escola')); |
| 56 | $this->inputsHelper()->simpleSearchAluno(); | 56 | $this->inputsHelper()->simpleSearchAluno(); |
| 57 | 57 | ||
| 58 | - $resources = array(1 => '9 anos', | ||
| 59 | - 2 => '8 anos', | ||
| 60 | - 3 => 'Série/Anos'); | ||
| 61 | - | ||
| 62 | - $options = array('label' => 'Modelo', 'resources' => $resources, 'value' => 1); | ||
| 63 | - $this->inputsHelper()->select('modelo', $options); | ||
| 64 | - | ||
| 65 | // carrega javascript HistoricoEscolar.js para listar alunos de todas as escolas | 58 | // carrega javascript HistoricoEscolar.js para listar alunos de todas as escolas |
| 66 | $this->loadResourceAssets($this->getDispatcher()); | 59 | $this->loadResourceAssets($this->getDispatcher()); |
| 67 | } | 60 | } |
| @@ -73,9 +66,7 @@ class HistoricoEscolarController extends Portabilis_Controller_ReportCoreControl | @@ -73,9 +66,7 @@ class HistoricoEscolarController extends Portabilis_Controller_ReportCoreControl | ||
| 73 | function beforeValidation() { | 66 | function beforeValidation() { |
| 74 | $this->report->addArg('instituicao', (int)$this->getRequest()->ref_cod_instituicao); | 67 | $this->report->addArg('instituicao', (int)$this->getRequest()->ref_cod_instituicao); |
| 75 | $this->report->addArg('escola', (int)$this->getRequest()->ref_cod_escola); | 68 | $this->report->addArg('escola', (int)$this->getRequest()->ref_cod_escola); |
| 76 | - $this->report->addArg('aluno', (int)$this->getRequest()->aluno_id); | ||
| 77 | - $this->report->addArg('aluno', (int)$this->getRequest()->aluno_id); | ||
| 78 | - $this->report->addArg('modelo', (int)$this->getRequest()->modelo); | 69 | + $this->report->addArg('aluno', (int)$this->getRequest()->aluno_id); |
| 79 | } | 70 | } |
| 80 | } | 71 | } |
| 81 | 72 |