fixes bug#21506
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105152 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
dcaecaf854
commit
fb4f79864c
|
@ -114,10 +114,6 @@ public class RelatorioLinhasHorarioController extends MyGenericForwardComposer {
|
|||
log.debug(e.getMessage());
|
||||
}
|
||||
|
||||
if(!verificarFiltrosRelatorio()) {
|
||||
return;
|
||||
}
|
||||
|
||||
parametros.put("TIPOSERVICIO_ID", tipoServico);
|
||||
|
||||
Timestamp dataInicio = new Timestamp((DateUtil.inicioFecha((java.util.Date) this.datInicial.getValue()).getTime()));
|
||||
|
@ -131,13 +127,14 @@ public class RelatorioLinhasHorarioController extends MyGenericForwardComposer {
|
|||
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario().toString());
|
||||
|
||||
|
||||
if(cmbEmpresa.getSelectedItem() != null && cmbEmpresa.getSelectedItem().getValue() != null) {
|
||||
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
parametros.put("EMPRESA", empresa);
|
||||
parametros.put("NOMBEMPRESA", empresa.getNombempresa());
|
||||
} else {
|
||||
parametros.put("NOMBEMPRESA", "TODOS");
|
||||
Empresa empresa = null;
|
||||
try {
|
||||
empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
} catch (Exception e) {
|
||||
log.debug(e.getMessage());
|
||||
}
|
||||
parametros.put("EMPRESA", empresa);
|
||||
|
||||
|
||||
GrupoRuta grupoRuta = null;
|
||||
try {
|
||||
|
@ -153,6 +150,12 @@ public class RelatorioLinhasHorarioController extends MyGenericForwardComposer {
|
|||
parametros.put("DESCGRUPO", "TODOS");
|
||||
}
|
||||
|
||||
if (empresa != null) {
|
||||
parametros.put("NOMBEMPRESA", empresa.getNombempresa());
|
||||
} else {
|
||||
parametros.put("NOMBEMPRESA", "TODOS");
|
||||
}
|
||||
|
||||
|
||||
lsNumLinha = new ArrayList(Arrays.asList(linhaListSelList.getData()));
|
||||
lsNumServico = new ArrayList(Arrays.asList(servicoListSelList.getData()));
|
||||
|
@ -183,17 +186,6 @@ public class RelatorioLinhasHorarioController extends MyGenericForwardComposer {
|
|||
|
||||
}
|
||||
|
||||
private boolean verificarFiltrosRelatorio() throws InterruptedException {
|
||||
cmbEmpresa.getValue();
|
||||
if(cmbEmpresa.getSelectedItem() == null || cmbEmpresa.getSelectedItem().getValue() == null) {
|
||||
Messagebox.show(Labels.getLabel("MSG.Error.empresa.naoinformado"),
|
||||
Labels.getLabel("relatorioLinhasHorarioController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
|
|
@ -219,8 +219,7 @@
|
|||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
model="@{winFiltroRelatorioLinhasHorario$composer.lsEmpresa}"
|
||||
constraint="no empty" />
|
||||
model="@{winFiltroRelatorioLinhasHorario$composer.lsEmpresa}"/>
|
||||
|
||||
</row>
|
||||
|
||||
|
|
Loading…
Reference in New Issue