fixes bug#20799
qua: dev:Valdir Realizado alteracao para mostrar relatorio linha sumarizado. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@104638 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
79b0f6649d
commit
a0237bde23
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
||||
/**
|
||||
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
|
||||
*
|
||||
*/
|
||||
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
||||
|
||||
/**
|
||||
* @param parametros
|
||||
* @param conexao
|
||||
*/
|
||||
public RelatorioResumoLinhasAnaliticoSumarizado(Map<String, Object> parametros, Connection conexao) {
|
||||
super(parametros, conexao);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
|
||||
*/
|
||||
@Override
|
||||
public void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
|
||||
rodape.pagina=Página
|
||||
rodape.de=de
|
|
@ -0,0 +1,16 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
|
||||
rodape.pagina=Página
|
||||
rodape.de=de
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,247 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class RelatorioResumoLinhasAnaliticoBean {
|
||||
|
||||
private Integer rutaId;
|
||||
private Integer numRuta;
|
||||
private Boolean indSentidoIda;
|
||||
private String descruta;
|
||||
private BigDecimal tarifa;
|
||||
private Integer grupoRutaId;
|
||||
private Integer assentos;
|
||||
private Integer rolOperativoId;
|
||||
private String interestadual;
|
||||
private String grupoLinha;
|
||||
private BigDecimal extensaoKm;
|
||||
private String cveClaseServicio;
|
||||
private BigDecimal receitaSeguro;
|
||||
private BigDecimal receitaBagagem;
|
||||
private BigDecimal receitaSeguroOutros;
|
||||
private BigDecimal receitaTarifa;
|
||||
private BigDecimal receitaPedagio;
|
||||
private BigDecimal receitaEmbarque;
|
||||
private Integer passageiros;
|
||||
private Integer viagensExtra;
|
||||
private Integer viagens;
|
||||
private BigDecimal receitaTotal;
|
||||
private Integer viagensTotal;
|
||||
private BigDecimal kmRodado;
|
||||
private BigDecimal passageirosEquivalentes;
|
||||
private BigDecimal passageirosMpa;
|
||||
private BigDecimal passageirosMpe;
|
||||
private BigDecimal receitaKm;
|
||||
private BigDecimal receitaViagem;
|
||||
private BigDecimal equivalencia;
|
||||
private BigDecimal paxKm;
|
||||
private BigDecimal paxOfertado;
|
||||
private BigDecimal iap;
|
||||
|
||||
public Integer getRutaId() {
|
||||
return rutaId;
|
||||
}
|
||||
public void setRutaId(Integer rutaId) {
|
||||
this.rutaId = rutaId;
|
||||
}
|
||||
public Integer getNumRuta() {
|
||||
return numRuta;
|
||||
}
|
||||
public void setNumRuta(Integer numRuta) {
|
||||
this.numRuta = numRuta;
|
||||
}
|
||||
public Boolean getIndSentidoIda() {
|
||||
return indSentidoIda;
|
||||
}
|
||||
public void setIndSentidoIda(Boolean indSentidoIda) {
|
||||
this.indSentidoIda = indSentidoIda;
|
||||
}
|
||||
public String getDescruta() {
|
||||
return descruta;
|
||||
}
|
||||
public void setDescruta(String descruta) {
|
||||
this.descruta = descruta;
|
||||
}
|
||||
public BigDecimal getTarifa() {
|
||||
return tarifa;
|
||||
}
|
||||
public void setTarifa(BigDecimal tarifa) {
|
||||
this.tarifa = tarifa;
|
||||
}
|
||||
public Integer getGrupoRutaId() {
|
||||
return grupoRutaId;
|
||||
}
|
||||
public void setGrupoRutaId(Integer grupoRutaId) {
|
||||
this.grupoRutaId = grupoRutaId;
|
||||
}
|
||||
public Integer getAssentos() {
|
||||
return assentos;
|
||||
}
|
||||
public void setAssentos(Integer assentos) {
|
||||
this.assentos = assentos;
|
||||
}
|
||||
public Integer getRolOperativoId() {
|
||||
return rolOperativoId;
|
||||
}
|
||||
public void setRolOperativoId(Integer rolOperativoId) {
|
||||
this.rolOperativoId = rolOperativoId;
|
||||
}
|
||||
public String getInterestadual() {
|
||||
return interestadual;
|
||||
}
|
||||
public void setInterestadual(String interestadual) {
|
||||
this.interestadual = interestadual;
|
||||
}
|
||||
public String getGrupoLinha() {
|
||||
return grupoLinha;
|
||||
}
|
||||
public void setGrupoLinha(String grupoLinha) {
|
||||
this.grupoLinha = grupoLinha;
|
||||
}
|
||||
public BigDecimal getExtensaoKm() {
|
||||
return extensaoKm;
|
||||
}
|
||||
public void setExtensaoKm(BigDecimal extensaoKm) {
|
||||
this.extensaoKm = extensaoKm;
|
||||
}
|
||||
public String getCveClaseServicio() {
|
||||
return cveClaseServicio;
|
||||
}
|
||||
public void setCveClaseServicio(String cveClaseServicio) {
|
||||
this.cveClaseServicio = cveClaseServicio;
|
||||
}
|
||||
public BigDecimal getReceitaSeguro() {
|
||||
return receitaSeguro;
|
||||
}
|
||||
public void setReceitaSeguro(BigDecimal receitaSeguro) {
|
||||
this.receitaSeguro = receitaSeguro;
|
||||
}
|
||||
public BigDecimal getReceitaBagagem() {
|
||||
return receitaBagagem;
|
||||
}
|
||||
public void setReceitaBagagem(BigDecimal receitaBagagem) {
|
||||
this.receitaBagagem = receitaBagagem;
|
||||
}
|
||||
public BigDecimal getReceitaSeguroOutros() {
|
||||
return receitaSeguroOutros;
|
||||
}
|
||||
public void setReceitaSeguroOutros(BigDecimal receitaSeguroOutros) {
|
||||
this.receitaSeguroOutros = receitaSeguroOutros;
|
||||
}
|
||||
public BigDecimal getReceitaTarifa() {
|
||||
return receitaTarifa;
|
||||
}
|
||||
public void setReceitaTarifa(BigDecimal receitaTarifa) {
|
||||
this.receitaTarifa = receitaTarifa;
|
||||
}
|
||||
public BigDecimal getReceitaPedagio() {
|
||||
return receitaPedagio;
|
||||
}
|
||||
public void setReceitaPedagio(BigDecimal receitaPedagio) {
|
||||
this.receitaPedagio = receitaPedagio;
|
||||
}
|
||||
public BigDecimal getReceitaEmbarque() {
|
||||
return receitaEmbarque;
|
||||
}
|
||||
public void setReceitaEmbarque(BigDecimal receitaEmbarque) {
|
||||
this.receitaEmbarque = receitaEmbarque;
|
||||
}
|
||||
public Integer getPassageiros() {
|
||||
return passageiros;
|
||||
}
|
||||
public void setPassageiros(Integer passageiros) {
|
||||
this.passageiros = passageiros;
|
||||
}
|
||||
public Integer getViagensExtra() {
|
||||
return viagensExtra;
|
||||
}
|
||||
public void setViagensExtra(Integer viagensExtra) {
|
||||
this.viagensExtra = viagensExtra;
|
||||
}
|
||||
public Integer getViagens() {
|
||||
return viagens;
|
||||
}
|
||||
public void setViagens(Integer viagens) {
|
||||
this.viagens = viagens;
|
||||
}
|
||||
public BigDecimal getReceitaTotal() {
|
||||
return receitaTotal;
|
||||
}
|
||||
public void setReceitaTotal(BigDecimal receitaTotal) {
|
||||
this.receitaTotal = receitaTotal;
|
||||
}
|
||||
public Integer getViagensTotal() {
|
||||
return viagensTotal;
|
||||
}
|
||||
public void setViagensTotal(Integer viagensTotal) {
|
||||
this.viagensTotal = viagensTotal;
|
||||
}
|
||||
public BigDecimal getKmRodado() {
|
||||
return kmRodado;
|
||||
}
|
||||
public void setKmRodado(BigDecimal kmRodado) {
|
||||
this.kmRodado = kmRodado;
|
||||
}
|
||||
public BigDecimal getPassageirosEquivalentes() {
|
||||
return passageirosEquivalentes;
|
||||
}
|
||||
public void setPassageirosEquivalentes(BigDecimal passageirosEquivalentes) {
|
||||
this.passageirosEquivalentes = passageirosEquivalentes;
|
||||
}
|
||||
public BigDecimal getPassageirosMpa() {
|
||||
return passageirosMpa;
|
||||
}
|
||||
public void setPassageirosMpa(BigDecimal passageirosMpa) {
|
||||
this.passageirosMpa = passageirosMpa;
|
||||
}
|
||||
public BigDecimal getPassageirosMpe() {
|
||||
return passageirosMpe;
|
||||
}
|
||||
public void setPassageirosMpe(BigDecimal passageirosMpe) {
|
||||
this.passageirosMpe = passageirosMpe;
|
||||
}
|
||||
public BigDecimal getReceitaKm() {
|
||||
return receitaKm;
|
||||
}
|
||||
public void setReceitaKm(BigDecimal receitaKm) {
|
||||
this.receitaKm = receitaKm;
|
||||
}
|
||||
public BigDecimal getReceitaViagem() {
|
||||
return receitaViagem;
|
||||
}
|
||||
public void setReceitaViagem(BigDecimal receitaViagem) {
|
||||
this.receitaViagem = receitaViagem;
|
||||
}
|
||||
public BigDecimal getEquivalencia() {
|
||||
return equivalencia;
|
||||
}
|
||||
public void setEquivalencia(BigDecimal equivalencia) {
|
||||
this.equivalencia = equivalencia;
|
||||
}
|
||||
public BigDecimal getPaxKm() {
|
||||
return paxKm;
|
||||
}
|
||||
public void setPaxKm(BigDecimal paxKm) {
|
||||
this.paxKm = paxKm;
|
||||
}
|
||||
public BigDecimal getPaxOfertado() {
|
||||
return paxOfertado;
|
||||
}
|
||||
public void setPaxOfertado(BigDecimal paxOfertado) {
|
||||
this.paxOfertado = paxOfertado;
|
||||
}
|
||||
public BigDecimal getIap() {
|
||||
return iap;
|
||||
}
|
||||
public void setIap(BigDecimal iap) {
|
||||
this.iap = iap;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -18,6 +18,7 @@ import org.springframework.stereotype.Controller;
|
|||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
@ -27,6 +28,7 @@ import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
|
|||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhas;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnalitico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
|
||||
|
@ -64,6 +66,7 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
private MyComboboxEstandar cmbEmpresa;
|
||||
private MyComboboxEstandar cmbGrupoRuta;
|
||||
private Radio rdAnalitico;
|
||||
private Checkbox chcSumarizar;
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
|
@ -120,11 +123,15 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
parametros.put("DATA", new Date());
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
|
||||
if (rdAnalitico.isChecked())
|
||||
if (rdAnalitico.isChecked()) {
|
||||
if(chcSumarizar.isChecked()) {
|
||||
relatorio = new RelatorioResumoLinhasAnaliticoSumarizado(parametros, dataSourceRead.getConnection());
|
||||
}else {
|
||||
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSourceRead.getConnection());
|
||||
else
|
||||
}
|
||||
}else {
|
||||
relatorio = new RelatorioResumoLinhas(parametros, dataSourceRead.getConnection());
|
||||
|
||||
}
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
|
|
|
@ -520,6 +520,8 @@ relatorioResumoLinhasController.lbConexao.value=Conexão
|
|||
relatorioResumoLinhasController.lbLote.value=Lote
|
||||
relatorioResumoLinhasController.lbAte.value=até
|
||||
relatorioResumoLinhasController.lbGrupoRuta.label=Grupo de Linhas
|
||||
relatorioResumoLinhasController.lblSumarizar.value = Sumarizar por linhas
|
||||
|
||||
|
||||
#Km Programada
|
||||
relatorioKmProgramadaController.window.title=Relatório Resumo de Linhas
|
||||
|
|
|
@ -484,6 +484,7 @@ relatorioResumoLinhasController.lbEmpresa.value = Empresa
|
|||
relatorioResumoLinhasController.lbConexao.value = Conexión
|
||||
relatorioResumoLinhasController.lbLote.value = Lote
|
||||
relatorioResumoLinhasController.lbAte.value = Hasta
|
||||
relatorioResumoLinhasController.lblSumarizar.value = Sumarizar por linhas
|
||||
|
||||
|
||||
#Aproveitamento
|
||||
|
|
|
@ -523,7 +523,7 @@ relatorioResumoLinhasController.lbConexao.value = Conexão
|
|||
relatorioResumoLinhasController.lbLote.value = Lote
|
||||
relatorioResumoLinhasController.lbAte.value = até
|
||||
relatorioResumoLinhasController.lbGrupoRuta.label = Grupo de Linhas
|
||||
|
||||
relatorioResumoLinhasController.lblSumarizar.value = Sumarizar por linhas
|
||||
#Km Programada
|
||||
relatorioKmProgramadaController.window.title = Relatório Resumo de Linhas
|
||||
relatorioKmProgramadaController.lbRuta.value = Linha
|
||||
|
|
|
@ -56,6 +56,11 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioResumoLinhas$composer.lsEmpresa}"
|
||||
constraint="no empty" />
|
||||
|
||||
<cell colspan="2">
|
||||
<checkbox id="chcSumarizar"
|
||||
label="${c:l('relatorioResumoLinhasController.lblSumarizar.value')}" />
|
||||
</cell>
|
||||
|
||||
</row>
|
||||
<row>
|
||||
|
|
Loading…
Reference in New Issue