fixes bug #8524
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@64827 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
414df7ea9a
commit
3ad9db10a3
|
@ -169,7 +169,6 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
btnExecutarRelatorio.setDisabled(true);
|
|
||||||
|
|
||||||
Parada origem = null;
|
Parada origem = null;
|
||||||
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
||||||
|
@ -190,12 +189,22 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
||||||
data.setMinutes(00);
|
data.setMinutes(00);
|
||||||
data.setSeconds(00);
|
data.setSeconds(00);
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer corridaId = null;
|
Integer corridaId = null;
|
||||||
if (txtCorridaId.getValue() != null && !txtCorridaId.getValue().isEmpty()) {
|
if (txtCorridaId.getValue() != null && !txtCorridaId.getValue().isEmpty()) {
|
||||||
corridaId = new Integer(txtCorridaId.getValue());
|
corridaId = new Integer(txtCorridaId.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((origem==null || destino==null) && corridaId==null ){
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("relatorioAproveitamentoController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("", e);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
btnExecutarRelatorio.setDisabled(true);
|
||||||
List<Corrida> ls = null;
|
List<Corrida> ls = null;
|
||||||
try {
|
try {
|
||||||
ls = corridaService.buscarCorridaRelAproveitamento(
|
ls = corridaService.buscarCorridaRelAproveitamento(
|
||||||
|
|
Loading…
Reference in New Issue