valdevir 2017-01-11 17:25:21 +00:00
parent 414df7ea9a
commit 3ad9db10a3
1 changed files with 11 additions and 2 deletions

View File

@ -169,7 +169,6 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
@SuppressWarnings("deprecation")
private void refreshLista() {
btnExecutarRelatorio.setDisabled(true);
Parada origem = null;
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
@ -190,12 +189,22 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
data.setMinutes(00);
data.setSeconds(00);
}
Integer corridaId = null;
if (txtCorridaId.getValue() != null && !txtCorridaId.getValue().isEmpty()) {
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;
try {
ls = corridaService.buscarCorridaRelAproveitamento(