fixes bug#20984
qua: dev:Valdevir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@104911 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8be6e472f4
commit
8724524e86
|
@ -0,0 +1,30 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author valdevir_rj
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relatorio {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param parametros
|
||||||
|
* @param conexao
|
||||||
|
*/
|
||||||
|
public RelatorioResumoLinhasAnaliticoSimplificadoSumarizado(Map<String, Object> parametros, Connection conexao) {
|
||||||
|
super(parametros, conexao);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -9,7 +9,7 @@ import java.util.Map;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
|
* @author valdevir_rj
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
||||||
|
@ -20,14 +20,9 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
||||||
*/
|
*/
|
||||||
public RelatorioResumoLinhasAnaliticoSumarizado(Map<String, Object> parametros, Connection conexao) {
|
public RelatorioResumoLinhasAnaliticoSumarizado(Map<String, Object> parametros, Connection conexao) {
|
||||||
super(parametros, conexao);
|
super(parametros, conexao);
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void processaParametros() throws Exception {
|
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 Viagens:
|
||||||
|
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 Viagens:
|
||||||
|
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
|
|
@ -4,7 +4,7 @@ msg.noData=N
|
||||||
|
|
||||||
#Labels cabeçalho
|
#Labels cabeçalho
|
||||||
cabecalho.relatorio=Relatório:
|
cabecalho.relatorio=Relatório:
|
||||||
cabecalho.periodo=Período:
|
cabecalho.periodo=Período Viagens:
|
||||||
cabecalho.periodoA=à
|
cabecalho.periodoA=à
|
||||||
cabecalho.dataHora=Data/Hora:
|
cabecalho.dataHora=Data/Hora:
|
||||||
cabecalho.impressorPor=Impressor por:
|
cabecalho.impressorPor=Impressor por:
|
||||||
|
|
|
@ -4,7 +4,7 @@ msg.noData=N
|
||||||
|
|
||||||
#Labels cabeçalho
|
#Labels cabeçalho
|
||||||
cabecalho.relatorio=Relatório:
|
cabecalho.relatorio=Relatório:
|
||||||
cabecalho.periodo=Período:
|
cabecalho.periodo=Período Viagens:
|
||||||
cabecalho.periodoA=à
|
cabecalho.periodoA=à
|
||||||
cabecalho.dataHora=Data/Hora:
|
cabecalho.dataHora=Data/Hora:
|
||||||
cabecalho.impressorPor=Impressor por:
|
cabecalho.impressorPor=Impressor por:
|
||||||
|
|
|
@ -4,7 +4,7 @@ msg.noData=N
|
||||||
|
|
||||||
#Labels cabeçalho
|
#Labels cabeçalho
|
||||||
cabecalho.relatorio=Relatório:
|
cabecalho.relatorio=Relatório:
|
||||||
cabecalho.periodo=Período:
|
cabecalho.periodo=Período Viagens:
|
||||||
cabecalho.periodoA=à
|
cabecalho.periodoA=à
|
||||||
cabecalho.dataHora=Data/Hora:
|
cabecalho.dataHora=Data/Hora:
|
||||||
cabecalho.impressorPor=Impressor por:
|
cabecalho.impressorPor=Impressor por:
|
||||||
|
|
|
@ -28,6 +28,7 @@ import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhas;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhas;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnalitico;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnalitico;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSimplificadoSumarizado;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
@ -67,6 +68,9 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
||||||
private MyComboboxEstandar cmbGrupoRuta;
|
private MyComboboxEstandar cmbGrupoRuta;
|
||||||
private Radio rdAnalitico;
|
private Radio rdAnalitico;
|
||||||
private Checkbox chcSumarizar;
|
private Checkbox chcSumarizar;
|
||||||
|
private Checkbox chcSimplificadoSumarizado;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
executarRelatorio();
|
executarRelatorio();
|
||||||
|
@ -87,6 +91,7 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
||||||
parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue());
|
parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue());
|
||||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
|
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
|
||||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||||
|
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario().toString());
|
||||||
|
|
||||||
Comboitem itemRuta = cmbRuta.getSelectedItem();
|
Comboitem itemRuta = cmbRuta.getSelectedItem();
|
||||||
|
|
||||||
|
@ -126,10 +131,12 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
||||||
if (rdAnalitico.isChecked()) {
|
if (rdAnalitico.isChecked()) {
|
||||||
if(chcSumarizar.isChecked()) {
|
if(chcSumarizar.isChecked()) {
|
||||||
relatorio = new RelatorioResumoLinhasAnaliticoSumarizado(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioResumoLinhasAnaliticoSumarizado(parametros, dataSourceRead.getConnection());
|
||||||
|
}else if(chcSimplificadoSumarizado.isChecked()){
|
||||||
|
relatorio = new RelatorioResumoLinhasAnaliticoSimplificadoSumarizado(parametros, dataSourceRead.getConnection());
|
||||||
}else {
|
}else {
|
||||||
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSourceRead.getConnection());
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
relatorio = new RelatorioResumoLinhas(parametros, dataSourceRead.getConnection());
|
relatorio = new RelatorioResumoLinhas(parametros, dataSourceRead.getConnection());
|
||||||
}
|
}
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
|
@ -180,5 +187,13 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
||||||
public void setLsGrupoRuta(List<GrupoRuta> lsGrupoRuta) {
|
public void setLsGrupoRuta(List<GrupoRuta> lsGrupoRuta) {
|
||||||
this.lsGrupoRuta = lsGrupoRuta;
|
this.lsGrupoRuta = lsGrupoRuta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Checkbox getChcSimplificadoSumarizado() {
|
||||||
|
return chcSimplificadoSumarizado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChcSimplificadoSumarizado(Checkbox chcSimplificadoSumarizado) {
|
||||||
|
this.chcSimplificadoSumarizado = chcSimplificadoSumarizado;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,8 +93,8 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
executeFlyway();
|
executeFlyway();
|
||||||
customToDatabase();
|
//customToDatabase();
|
||||||
imageToDatabase();
|
//imageToDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winFiltroRelatorioResumoLinhas"
|
<window id="winFiltroRelatorioResumoLinhas"
|
||||||
apply="${relatorioResumoLinhasController}"
|
apply="${relatorioResumoLinhasController}"
|
||||||
contentStyle="overflow:auto" width="480px"
|
contentStyle="overflow:auto" width="500px"
|
||||||
border="normal">
|
border="normal">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
|
@ -45,7 +45,12 @@
|
||||||
<radio id="rdAnalitico" checked="true" label="Analítico"
|
<radio id="rdAnalitico" checked="true" label="Analítico"
|
||||||
radiogroup="rdIndTipoRelatorio" />
|
radiogroup="rdIndTipoRelatorio" />
|
||||||
<radio id="rdSintetico" label="Sintético"
|
<radio id="rdSintetico" label="Sintético"
|
||||||
radiogroup="rdIndTipoRelatorio" />
|
radiogroup="rdIndTipoRelatorio">
|
||||||
|
<attribute name="onCheck">
|
||||||
|
chcSimplificadoSumarizado.setChecked(false);
|
||||||
|
chcSumarizar.setChecked(false);
|
||||||
|
</attribute>
|
||||||
|
</radio>
|
||||||
</cell>
|
</cell>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -59,7 +64,11 @@
|
||||||
|
|
||||||
<cell colspan="2">
|
<cell colspan="2">
|
||||||
<checkbox id="chcSumarizar"
|
<checkbox id="chcSumarizar"
|
||||||
label="${c:l('relatorioResumoLinhasController.lblSumarizar.value')}" />
|
label="${c:l('relatorioResumoLinhasController.lblSumarizar.value')}" >
|
||||||
|
<attribute name="onCheck">
|
||||||
|
chcSimplificadoSumarizado.setChecked(false);
|
||||||
|
</attribute>
|
||||||
|
</checkbox>
|
||||||
</cell>
|
</cell>
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
|
@ -70,6 +79,14 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
model="@{winFiltroRelatorioResumoLinhas$composer.lsGrupoRuta}" />
|
model="@{winFiltroRelatorioResumoLinhas$composer.lsGrupoRuta}" />
|
||||||
|
<cell colspan="2">
|
||||||
|
<checkbox id="chcSimplificadoSumarizado"
|
||||||
|
label="${c:l('relatorioResumoLinhasController.lblSimplificadoSumarizado.value')}" >
|
||||||
|
<attribute name="onCheck">
|
||||||
|
chcSumarizar.setChecked(false);
|
||||||
|
</attribute>
|
||||||
|
</checkbox>
|
||||||
|
</cell>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
Loading…
Reference in New Issue