fixes bug #10419
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@77809 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
dc153c5a9f
commit
fcfccd2f42
|
@ -160,6 +160,12 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
|
||||||
sql.append(" WHERE ct.activo = 1 ");
|
sql.append(" WHERE ct.activo = 1 ");
|
||||||
sql.append(" and co.activo = 1 ");
|
sql.append(" and co.activo = 1 ");
|
||||||
sql.append(" and co.FECHORSALIDA >= :DATA_INICIAL and co.FECHORSALIDA <= :DATA_FINAL ");
|
sql.append(" and co.FECHORSALIDA >= :DATA_INICIAL and co.FECHORSALIDA <= :DATA_FINAL ");
|
||||||
|
|
||||||
|
sql.append((parametros.get("EMPRESA_ID") != null) ? " and e.empresa_id = :EMPRESA_ID " : "");
|
||||||
|
sql.append((parametros.get("RUTA_ID") != null) ? " and r.ruta_id = :RUTA_ID " : "");
|
||||||
|
sql.append((parametros.get("PARADA_ID") != null) ? " and co.origen_id = :PARADA_ID " : "");
|
||||||
|
sql.append((parametros.get("TIPO_SERVICO") != null) ? " and ts.tiposervicio_id = :TIPO_SERVICO " : "");
|
||||||
|
|
||||||
sql.append(" and co.CORRIDA_ID not in (select servico from vendidos ) ");
|
sql.append(" and co.CORRIDA_ID not in (select servico from vendidos ) ");
|
||||||
|
|
||||||
sql.append(" and co.activo = 1 and ct.activo = 1 and r.activo = 1 and e.activo = 1 and ori.activo = 1 and des.activo = 1 and ");
|
sql.append(" and co.activo = 1 and ct.activo = 1 and r.activo = 1 and e.activo = 1 and ori.activo = 1 and des.activo = 1 and ");
|
||||||
|
|
|
@ -126,24 +126,10 @@ public class RelatorioDemandasController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onChange$cmbLinha(Event ev) throws Exception {
|
|
||||||
if (cmbLinha != null) {
|
|
||||||
Comboitem itemEmpresa = cmbLinha.getSelectedItem();
|
|
||||||
if (itemEmpresa != null) {
|
|
||||||
Ruta linha = (Ruta) itemEmpresa.getValue();
|
|
||||||
// mudar depois
|
|
||||||
lsOrigem = paradaService.obtenerOrigenPorRuta(linha);
|
|
||||||
|
|
||||||
BindingListModel listOrigemModel = new BindingListModelList(lsOrigem, true);
|
|
||||||
cmbOrigem.setValue("");
|
|
||||||
cmbOrigem.setModel(listOrigemModel);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
lsEmpresa = empresaService.obtenerTodos();
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
lsOrigem = paradaService.obtenerTodos();
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue