fixes bug #8467
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@64568 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1926600c0d
commit
6e08b978e4
|
@ -12,10 +12,6 @@ import java.util.List;
|
|||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.AproveitamentoBean;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
@ -25,6 +21,8 @@ import com.rjconsultores.ventaboletos.web.utilerias.CurrencyUtil;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
/**
|
||||
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
|
||||
*
|
||||
|
@ -211,7 +209,7 @@ public class RelatorioAproveitamento extends Relatorio {
|
|||
sql.append(" AND ( BO.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append(" OR BO.MOTIVOCANCELACION_ID = 0 ) ");
|
||||
sql.append(" AND ROWNUM = 1) OCUPADO, ");
|
||||
sql.append(" (SELECT DECODE(AE.VENDIBLE, 1, 1, ");
|
||||
sql.append(" (SELECT DISTINCT DECODE(AE.VENDIBLE, 1, 1, ");
|
||||
sql.append(" 0, 2) ");
|
||||
sql.append(" FROM ASIENTO_EXCLUSIVO AE, ");
|
||||
sql.append(" CORRIDA_TRAMO CTD, ");
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -38,7 +37,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCorridaAproveitamento;
|
||||
|
||||
/**
|
||||
|
@ -68,8 +66,6 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<Corrida> plwCorrida;
|
||||
|
||||
public Datebox getFecCorrida() {
|
||||
return fecCorrida;
|
||||
|
@ -171,6 +167,7 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
btnExecutarRelatorio.setDisabled(false);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void refreshLista() {
|
||||
btnExecutarRelatorio.setDisabled(true);
|
||||
|
||||
|
@ -201,9 +198,9 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
|
||||
List<Corrida> ls = null;
|
||||
try {
|
||||
ls = corridaService.buscarCorridaRelatorio(dataSourceRead.getConnection(),
|
||||
ls = corridaService.buscarCorridaRelAproveitamento(
|
||||
origem, destino, data, corridaId);
|
||||
} catch (SQLException e) {
|
||||
} catch (Exception e) {
|
||||
log.error("", e);
|
||||
}
|
||||
|
||||
|
@ -230,6 +227,7 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
* @throws Exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executarRelatorio() throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
|
Loading…
Reference in New Issue