Relatório SISDAP - Falta título (fixed bug #5144)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@34566 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
30e6481f79
commit
e5e832a0f0
|
@ -105,10 +105,18 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
public void export(Date fecInicio, Date fecFinal) {
|
public void export(Date fecInicio, Date fecFinal) {
|
||||||
|
|
||||||
List<String> movimentoLinhas = sisdapService.getMovimentoLinhas(fecInicio, fecFinal, empresa.getEmpresaId());
|
try{
|
||||||
List<String> movimentoSecoes = sisdapService.getMovimentoSecoes(fecInicio, fecFinal, empresa.getEmpresaId());
|
List<String> movimentoLinhas = sisdapService.getMovimentoLinhas(fecInicio, fecFinal, empresa.getEmpresaId());
|
||||||
|
List<String> movimentoSecoes = sisdapService.getMovimentoSecoes(fecInicio, fecFinal, empresa.getEmpresaId());
|
||||||
try {
|
|
||||||
|
if (movimentoLinhas.size() <= 1 && movimentoSecoes.size() <= 1){
|
||||||
|
// Não retornou dados
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioSisdapController.MSG.nenhumRegistro"),
|
||||||
|
Labels.getLabel("filtroRelatorioSisdap.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
FileWriter writer = new FileWriter("movimentoLinhas.txt");
|
FileWriter writer = new FileWriter("movimentoLinhas.txt");
|
||||||
for (String str : movimentoLinhas) {
|
for (String str : movimentoLinhas) {
|
||||||
writer.write(str + "\r\n");
|
writer.write(str + "\r\n");
|
||||||
|
@ -127,7 +135,7 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
||||||
FileInputStream is = new FileInputStream("sisdap.zip");
|
FileInputStream is = new FileInputStream("sisdap.zip");
|
||||||
Filedownload.save(is, "application/zip", "sisdap.zip");
|
Filedownload.save(is, "application/zip", "sisdap.zip");
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -385,11 +385,13 @@ relatorioTaxasLinhaController.lbCidadeDestino.value = Parada destino
|
||||||
relatorioTaxasLinhaController.lbPuntoVenta.value = Punto de venta
|
relatorioTaxasLinhaController.lbPuntoVenta.value = Punto de venta
|
||||||
|
|
||||||
# Relatorio Sisdap
|
# Relatorio Sisdap
|
||||||
|
relatorioSisdapController.window.title=Reporte SISDAP
|
||||||
relatorioSisdapController.lbDatInicio.value=Fecha Inicio
|
relatorioSisdapController.lbDatInicio.value=Fecha Inicio
|
||||||
relatorioSisdapController.lbDatFinal.value=Fecha Final
|
relatorioSisdapController.lbDatFinal.value=Fecha Final
|
||||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||||
relatorioSisdapController.MSG.empresaErro=Debe de seleccionar una Empresa
|
relatorioSisdapController.MSG.empresaErro=Debe de seleccionar una Empresa
|
||||||
|
relatorioSisdapController.MSG.nenhumRegistro=No se encontró ningún registro
|
||||||
|
|
||||||
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
||||||
|
|
||||||
|
|
|
@ -271,6 +271,7 @@ editarGrupoRutaController.MSG.borrarOK = Grupo de linha excluido com sucesso.
|
||||||
|
|
||||||
#Relatórios
|
#Relatórios
|
||||||
|
|
||||||
|
|
||||||
#Resumo de linhas
|
#Resumo de linhas
|
||||||
relatorioResumoLinhasController.window.title = Relatório Resumo de Linhas
|
relatorioResumoLinhasController.window.title = Relatório Resumo de Linhas
|
||||||
relatorioResumoLinhasController.lbRuta.value = Linha
|
relatorioResumoLinhasController.lbRuta.value = Linha
|
||||||
|
@ -414,11 +415,13 @@ relatorioTaxasLinhaController.lbCidadeDestino.value = Localidade Destino
|
||||||
relatorioTaxasLinhaController.lbPuntoVenta.value = Agência
|
relatorioTaxasLinhaController.lbPuntoVenta.value = Agência
|
||||||
|
|
||||||
# Relatorio Sisdap
|
# Relatorio Sisdap
|
||||||
|
relatorioSisdapController.window.title=Relatório SISDAP
|
||||||
relatorioSisdapController.lbDatInicio.value=Data Inicio
|
relatorioSisdapController.lbDatInicio.value=Data Inicio
|
||||||
relatorioSisdapController.lbDatFinal.value=Data Final
|
relatorioSisdapController.lbDatFinal.value=Data Final
|
||||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||||
relatorioSisdapController.MSG.empresaErro=Deve selecionar uma empresa!
|
relatorioSisdapController.MSG.empresaErro=Deve selecionar uma empresa!
|
||||||
|
relatorioSisdapController.MSG.nenhumRegistro=Nenhum registro encontrado para o relatório
|
||||||
|
|
||||||
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,9 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winFiltroRelatorioSisdap"
|
<window id="winFiltroRelatorioSisdap"
|
||||||
apply="${relatorioSisdapController}" contentStyle="overflow:auto"
|
apply="${relatorioSisdapController}"
|
||||||
height="260px" width="550px" border="normal">
|
contentStyle="overflow:auto" height="260px" width="550px"
|
||||||
<toolbar>
|
border="normal" closable="true">
|
||||||
<button id="btnCerrar" onClick="winFiltroRelatorioSisdap.detach()"
|
|
||||||
image="/gui/img/exit.png" width="35px"
|
|
||||||
tooltiptext="${c:l('relatorioSisdapController.btnCerrar.tooltiptext')}" />
|
|
||||||
</toolbar>
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="100%" />
|
<column width="100%" />
|
||||||
|
|
Loading…
Reference in New Issue