git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@29483 d1611594-4594-4d17-8e1d-87c2c4800839
parent
e550986d50
commit
8b2e79de6c
|
@ -6,6 +6,7 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
|||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -27,6 +28,7 @@ import org.zkoss.zul.Textbox;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioPassageirosViajar;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||
|
@ -159,23 +161,6 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
|
|||
executarRelatorio();
|
||||
}
|
||||
|
||||
public void onDoubleClick$categoriaList(Event ev) {
|
||||
|
||||
Categoria categoriaSel = (Categoria) categoriaList.getSelected();
|
||||
Boolean bExiste = false;
|
||||
|
||||
for (Categoria objCategoria : lsNumCategoria) {
|
||||
if (objCategoria.equals(categoriaSel))
|
||||
bExiste = true;
|
||||
}
|
||||
|
||||
if (!bExiste) {
|
||||
lsNumCategoria.add(categoriaSel);
|
||||
categoriaSelList.setData(lsNumCategoria);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onSelect$categoriaList(Event ev) {
|
||||
|
||||
}
|
||||
|
@ -235,15 +220,14 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
|
|||
parametros.put("DATA_INICIO", datInicial.getValue());
|
||||
parametros.put("DATA_FINAL", datFinal.getValue());
|
||||
String passagemAberta = "";
|
||||
if (chkPassageiroAberto.isChecked()) {
|
||||
passagemAberta = "9";
|
||||
} else {
|
||||
if (!chkPassageiroAberto.isChecked()) {
|
||||
passagemAberta = "T";
|
||||
}
|
||||
parametros.put("PASSAGEM_ABERTA", passagemAberta);
|
||||
Empresa e = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
parametros.put("EMPRESA_ID", e.getEmpresaId().toString());
|
||||
|
||||
lsNumCategoria = new ArrayList(Arrays.asList(categoriaSelList.getData()));
|
||||
StringBuilder strNumCategoria = new StringBuilder();
|
||||
for (Categoria c : lsNumCategoria) {
|
||||
strNumCategoria.append(' ' + c.getCategoriaId().toString() + ',');
|
||||
|
@ -271,4 +255,14 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
|
|||
|
||||
}
|
||||
|
||||
public void onDoubleClick$categoriaList(Event ev) {
|
||||
Categoria categoriaSel = (Categoria) categoriaList.getSelected();
|
||||
categoriaSelList.addItemNovo(categoriaSel);
|
||||
|
||||
}
|
||||
|
||||
public void onDoubleClick$categoriaSelList(Event ev) {
|
||||
Categoria categoriaSel = (Categoria) categoriaSelList.getSelected();
|
||||
categoriaSelList.removeItem(categoriaSel);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue