0019336: Valtur- (GLPI - 25261) Relatório de Aproveitamento
bug#19336 dev:thiago.veloso qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@101788 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
eaa41c8057
commit
26cd9f2fe4
|
@ -11,6 +11,7 @@ import java.util.Map;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -227,6 +228,7 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
|
||||
if (corridaList.getData().length == 1) {
|
||||
corridaList.setSelectedIndex(0);
|
||||
txtCorridaId.setValue(((Corrida) corridaList.getSelected()).getId().getCorridaId().toString());
|
||||
btnExecutarRelatorio.setDisabled(false);
|
||||
}
|
||||
|
||||
|
@ -241,6 +243,18 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
if(StringUtils.isBlank(this.txtCorridaId.getValue())) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("relatorioAproveitamentoController.semServico.label"),
|
||||
Labels.getLabel("relatorioAproveitamentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
log.error("", ex);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
parametros.put("CORRIDA_ID", this.txtCorridaId.getValue());
|
||||
parametros.put("FECCORRIDA", new java.sql.Date(((java.util.Date) this.fecCorrida.getValue()).getTime()));
|
||||
parametros.put("DATA", DateUtil.getStringDate((java.util.Date) this.fecCorrida.getValue())); // Utilizada para exibição no cabeçalho
|
||||
|
|
|
@ -489,6 +489,7 @@ relatorioAproveitamentoController.DataServico.label = Fecha servicio
|
|||
relatorioAproveitamentoController.HoraServico.label = Hora servicio
|
||||
relatorioAproveitamentoController.Classe.label = Clase
|
||||
relatorioAproveitamentoController.btnBuscarServico.label = Buscar servicio
|
||||
relatorioAproveitamentoController.semServico.label=Escolha o serviço para impressão do relatório
|
||||
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||
|
|
|
@ -535,6 +535,7 @@ relatorioAproveitamentoController.DataServico.label = Data Serviço
|
|||
relatorioAproveitamentoController.HoraServico.label = Hora Serviço
|
||||
relatorioAproveitamentoController.Classe.label = Classe
|
||||
relatorioAproveitamentoController.btnBuscarServico.label = Buscar Serviço
|
||||
relatorioAproveitamentoController.semServico.label=Escolha o serviço para impressão do relatório
|
||||
|
||||
# Relatorio Empresa Corrida
|
||||
relatorioEmpresaCorridaController.window.title=Relatório Empresa Corrida
|
||||
|
|
Loading…
Reference in New Issue