From fbfbdcb233e94b7fed6f8ae209eb90d79aa33f7e Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 12:06:27 +0000 Subject: Add test case for #528 --- .../tickets/protected/pages/Ticket528.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket528.php (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket528.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket528.php b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php new file mode 100644 index 00000000..c2d1fcbe --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket528.php @@ -0,0 +1,35 @@ + array('id_turno' => 'M', 'descricao' => 'Manhã'), + 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'), + 'N' => array('id_turno' => 'N', 'descricao' => 'Noite') + ); + + + public function onLoad($param) + { + parent::onLoad($param); + if (!$this->IsPostBack) { + $this->DDropTurno->loadOptions(); + $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); + } + } + + + protected function loadDadosTurno($id) + { + $this->Codigo->setText(self::$turnos[$id]['id_turno']); + $this->Descricao->setText(self::$turnos[$id]['descricao']); + } + + + public function trocaTurno($sender,$param) + { + $this->loadDadosTurno($sender->getSelectedValue()); + } +} + +?> \ No newline at end of file -- cgit v1.2.3