fixes bug#8953
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@68383 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
94659ca43c
commit
ec9d8a5b09
|
@ -18,6 +18,7 @@ import org.zkoss.zul.Datebox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
@ -25,6 +26,7 @@ import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioGratuidade;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||||
|
@ -48,6 +50,8 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||||
private RutaService rutaService;
|
private RutaService rutaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CategoriaService categoriaService;
|
private CategoriaService categoriaService;
|
||||||
|
@Autowired
|
||||||
|
private OrgaoConcedenteService orgaocConcedenteService;
|
||||||
|
|
||||||
private Datebox datInicial;
|
private Datebox datInicial;
|
||||||
private Datebox datFinal;
|
private Datebox datFinal;
|
||||||
|
@ -57,10 +61,12 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||||
private MyComboboxParada cmbOrigem;
|
private MyComboboxParada cmbOrigem;
|
||||||
private MyComboboxParada cmbDestino;
|
private MyComboboxParada cmbDestino;
|
||||||
private MyComboboxEstandar cmbTipoGratuidade;
|
private MyComboboxEstandar cmbTipoGratuidade;
|
||||||
|
private MyComboboxEstandar cmbOrgaoConcedente;
|
||||||
|
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
private List<Ruta> lsLinhas;
|
private List<Ruta> lsLinhas;
|
||||||
private List<Categoria> lsCategorias;
|
private List<Categoria> lsCategorias;
|
||||||
|
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||||
|
|
||||||
private void executarRelatorio() throws Exception {
|
private void executarRelatorio() throws Exception {
|
||||||
|
|
||||||
|
@ -88,6 +94,11 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||||
if(cmbTipoGratuidade.getSelectedIndex() != -1){
|
if(cmbTipoGratuidade.getSelectedIndex() != -1){
|
||||||
parametros.put("categoria", ((Categoria) cmbTipoGratuidade.getSelectedItem().getValue()).getCategoriaId());
|
parametros.put("categoria", ((Categoria) cmbTipoGratuidade.getSelectedItem().getValue()).getCategoriaId());
|
||||||
}
|
}
|
||||||
|
if (cmbOrgaoConcedente.getSelectedItem() != null) {
|
||||||
|
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue();
|
||||||
|
parametros.put("orgao_concedente_id", orgaoConcedente.getOrgaoConcedenteId());
|
||||||
|
parametros.put("orgao_concedente_desc", orgaoConcedente.getDescOrgao());
|
||||||
|
}
|
||||||
|
|
||||||
parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeController.window.title"));
|
parametros.put("TITULO", Labels.getLabel("relatorioGratuidadeController.window.title"));
|
||||||
|
|
||||||
|
@ -111,6 +122,7 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||||
lsLinhas = rutaService.obtenerTodos();
|
lsLinhas = rutaService.obtenerTodos();
|
||||||
lsEmpresas = empresaService.obtenerTodos();
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
lsCategorias = categoriaService.obtenerTodos();
|
lsCategorias = categoriaService.obtenerTodos();
|
||||||
|
lsOrgaoConcedente = orgaocConcedenteService.obtenerTodos();
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
}
|
}
|
||||||
|
@ -195,4 +207,20 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||||
this.cmbTipoGratuidade = cmbTipoGratuidade;
|
this.cmbTipoGratuidade = cmbTipoGratuidade;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MyComboboxEstandar getCmbOrgaoConcedente() {
|
||||||
|
return cmbOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbOrgaoConcedente(MyComboboxEstandar cmbOrgaoConcedente) {
|
||||||
|
this.cmbOrgaoConcedente = cmbOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrgaoConcedente> getLsOrgaoConcedente() {
|
||||||
|
return lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
|
||||||
|
this.lsOrgaoConcedente = lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue