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;
|
||||
|
||||
/**
|
||||
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
|
||||
* @author valdevir_rj
|
||||
*
|
||||
*/
|
||||
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
||||
|
@ -20,14 +20,9 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
|
|||
*/
|
||||
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 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
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodo=Período Viagens:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
|
|
|
@ -4,7 +4,7 @@ msg.noData=N
|
|||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodo=Período Viagens:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
|
|
|
@ -4,7 +4,7 @@ msg.noData=N
|
|||
|
||||
#Labels cabeçalho
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodo=Período Viagens:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
|
|
|
@ -28,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.RelatorioResumoLinhasAnaliticoSimplificadoSumarizado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
|
@ -67,6 +68,9 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
private MyComboboxEstandar cmbGrupoRuta;
|
||||
private Radio rdAnalitico;
|
||||
private Checkbox chcSumarizar;
|
||||
private Checkbox chcSimplificadoSumarizado;
|
||||
|
||||
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
|
@ -87,6 +91,7 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue());
|
||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario().toString());
|
||||
|
||||
Comboitem itemRuta = cmbRuta.getSelectedItem();
|
||||
|
||||
|
@ -126,10 +131,12 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
if (rdAnalitico.isChecked()) {
|
||||
if(chcSumarizar.isChecked()) {
|
||||
relatorio = new RelatorioResumoLinhasAnaliticoSumarizado(parametros, dataSourceRead.getConnection());
|
||||
}else if(chcSimplificadoSumarizado.isChecked()){
|
||||
relatorio = new RelatorioResumoLinhasAnaliticoSimplificadoSumarizado(parametros, dataSourceRead.getConnection());
|
||||
}else {
|
||||
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSourceRead.getConnection());
|
||||
relatorio = new RelatorioResumoLinhasAnalitico(parametros, dataSourceRead.getConnection());
|
||||
}
|
||||
}else {
|
||||
}else {
|
||||
relatorio = new RelatorioResumoLinhas(parametros, dataSourceRead.getConnection());
|
||||
}
|
||||
Map args = new HashMap();
|
||||
|
@ -180,5 +187,13 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
|
|||
public void setLsGrupoRuta(List<GrupoRuta> 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();
|
||||
customToDatabase();
|
||||
imageToDatabase();
|
||||
//customToDatabase();
|
||||
//imageToDatabase();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioResumoLinhas"
|
||||
apply="${relatorioResumoLinhasController}"
|
||||
contentStyle="overflow:auto" width="480px"
|
||||
contentStyle="overflow:auto" width="500px"
|
||||
border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
|
@ -45,7 +45,12 @@
|
|||
<radio id="rdAnalitico" checked="true" label="Analítico"
|
||||
radiogroup="rdIndTipoRelatorio" />
|
||||
<radio id="rdSintetico" label="Sintético"
|
||||
radiogroup="rdIndTipoRelatorio" />
|
||||
radiogroup="rdIndTipoRelatorio">
|
||||
<attribute name="onCheck">
|
||||
chcSimplificadoSumarizado.setChecked(false);
|
||||
chcSumarizar.setChecked(false);
|
||||
</attribute>
|
||||
</radio>
|
||||
</cell>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -59,7 +64,11 @@
|
|||
|
||||
<cell colspan="2">
|
||||
<checkbox id="chcSumarizar"
|
||||
label="${c:l('relatorioResumoLinhasController.lblSumarizar.value')}" />
|
||||
label="${c:l('relatorioResumoLinhasController.lblSumarizar.value')}" >
|
||||
<attribute name="onCheck">
|
||||
chcSimplificadoSumarizado.setChecked(false);
|
||||
</attribute>
|
||||
</checkbox>
|
||||
</cell>
|
||||
|
||||
</row>
|
||||
|
@ -70,6 +79,14 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
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>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
Loading…
Reference in New Issue