- Alteração na formula do calculo do cabeçalho do relatório de rendimento
- Alteração dos filtros - Outras modificações reatório de receita git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@28380 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4fc71289ab
commit
21f233dcb2
|
@ -0,0 +1,10 @@
|
|||
#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=à
|
||||
|
||||
rodape.pagina=Página
|
||||
rodape.de=de
|
|
@ -57,7 +57,7 @@ public class RendimentoParamsImpl implements IParametros {
|
|||
StringBuilder sql = new StringBuilder();
|
||||
|
||||
sql.append("SELECT round(NVL(TAB.TOTAL_ARRECADADO,0),2) TOTAL_ARRECADADO, ");
|
||||
sql.append(" round(NVL(TAB.TOTAL_ARRECADADO / TAB.KM_OCUPADA,0),2) ARRECADADO_KM, ");
|
||||
sql.append(" round(NVL(TAB.TOTAL_ARRECADADO / TAB.KM_NOMINAL,0),2) ARRECADADO_KM, ");
|
||||
sql.append(" round(NVL(TAB.TOTAL_NOMINAL,0),2) TOTAL_NOMINAL, ");
|
||||
sql.append(" round(TAB.TOTAL_NOMINAL / TAB.KM_NOMINAL,2) NOMINAL_KM,");
|
||||
sql.append(" (TAB.TOTAL_OCUPADOS/TAB.TOTAL_ACENTOS) OCUPACAO, ");
|
||||
|
@ -73,7 +73,7 @@ public class RendimentoParamsImpl implements IParametros {
|
|||
sql.append(" AND (BO.MOTIVOCANCELACION_ID IS NULL OR ");
|
||||
sql.append(" BO.MOTIVOCANCELACION_ID = 0)) TOTAL_ARRECADADO, ");
|
||||
sql.append(" ");
|
||||
sql.append(" (SELECT SUM(TR.CANTKMREAL * DA.CANTASIENTOS) ");
|
||||
sql.append(" (SELECT SUM(TR.CANTKMREAL) ");
|
||||
sql.append(" FROM CORRIDA_TRAMO CT, ");
|
||||
sql.append(" TRAMO TR, ");
|
||||
sql.append(" ROL_OPERATIVO RO, ");
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.render;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.sql.Connection;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -44,6 +45,14 @@ public abstract class RenderRelatorioAbstract implements IRenderRelatorio {
|
|||
*/
|
||||
protected abstract byte[] render(SaidaRelatorio saida) throws Exception;
|
||||
|
||||
|
||||
protected abstract InputStream getTemplateInputStream() throws Exception;
|
||||
|
||||
protected abstract byte[] renderPdf() throws Exception;
|
||||
|
||||
protected abstract byte[] renderXls() throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* @param relatorio
|
||||
* Enum do tipo Relatorio contendo as configurações de geração de todos os relatórios
|
||||
|
@ -66,7 +75,6 @@ public abstract class RenderRelatorioAbstract implements IRenderRelatorio {
|
|||
|
||||
public void initParametros(){
|
||||
this.parametros.put("NOME_RELATORIO", this.relatorio.getDescricao());
|
||||
this.parametros.put("MSG_NO_DATA", this.relatorio.getNome());
|
||||
|
||||
}
|
||||
|
||||
|
@ -82,4 +90,6 @@ public abstract class RenderRelatorioAbstract implements IRenderRelatorio {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import java.util.Locale;
|
|||
import java.util.ResourceBundle;
|
||||
|
||||
import net.sf.jasperreports.engine.JRDataSource;
|
||||
import net.sf.jasperreports.engine.JRException;
|
||||
import net.sf.jasperreports.engine.JRParameter;
|
||||
import net.sf.jasperreports.engine.JasperExportManager;
|
||||
import net.sf.jasperreports.engine.JasperFillManager;
|
||||
|
@ -58,18 +59,41 @@ public class RenderRelatorioJasper extends RenderRelatorioAbstract {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void preRender(){
|
||||
public void preRender() {
|
||||
super.preRender();
|
||||
this.initBundler();
|
||||
this.initLocale();
|
||||
|
||||
}
|
||||
|
||||
private void initBundler(){
|
||||
private void initBundler() {
|
||||
// TODO Alterar para injeção de acordo com usuário logado ou outro meio para obter o Locale correto
|
||||
Locale locale = new Locale("pt", "BR");
|
||||
ResourceBundle resource = ResourceBundle.getBundle("com.rjconsultores.ventaboletos.relatorios.internacionalizacao."+this.relatorio.getNome(), locale);
|
||||
try {
|
||||
|
||||
ResourceBundle resource = ResourceBundle.getBundle("com.rjconsultores.ventaboletos.relatorios.internacionalizacao." + this.relatorio.getNome(), locale);
|
||||
this.parametros.put(JRParameter.REPORT_RESOURCE_BUNDLE, resource);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
|
||||
private void initLocale() {
|
||||
// TODO Alterar para injeção de acordo com usuário logado ou outro meio para obter o Locale correto
|
||||
Locale locale = new Locale("pt", "BR");
|
||||
this.parametros.put(JRParameter.REPORT_LOCALE, locale);
|
||||
}
|
||||
|
||||
protected InputStream getTemplateInputStream() throws Exception {
|
||||
String diretorio = "/com/rjconsultores/ventaboletos/relatorios/templates/" + this.relatorio.getNome() + ".jasper";
|
||||
InputStream iStemplate = this.getClass().getResourceAsStream(diretorio);
|
||||
|
||||
if (iStemplate == null)
|
||||
{
|
||||
throw new Exception("Não foi possivel localizar o template do relátorio no diretorio a seguir: " + diretorio);
|
||||
}
|
||||
|
||||
return iStemplate;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -86,22 +110,31 @@ public class RenderRelatorioJasper extends RenderRelatorioAbstract {
|
|||
if (this.relatorio.getParametros() != null)
|
||||
this.relatorio.getParametros().processaParametros(this.parametros, this.connection);
|
||||
|
||||
InputStream iStemplate = this.getClass().getResourceAsStream("/com/rjconsultores/ventaboletos/relatorios/templates/" + this.relatorio.getNome()+".jasper");
|
||||
|
||||
if (this.relatorio.getDatasource() != null)
|
||||
this.jasperPrint = JasperFillManager.fillReport(iStemplate, this.getParametros(), (JRDataSource) this.datasource);
|
||||
this.jasperPrint = JasperFillManager.fillReport(this.getTemplateInputStream(), this.getParametros(), (JRDataSource) this.datasource);
|
||||
else
|
||||
this.jasperPrint = JasperFillManager.fillReport(iStemplate, this.getParametros(), this.connection);
|
||||
this.jasperPrint = JasperFillManager.fillReport(this.getTemplateInputStream(), this.getParametros(), this.connection);
|
||||
|
||||
}
|
||||
|
||||
|
||||
switch (saida) {
|
||||
|
||||
case PDF:
|
||||
conteudo = JasperExportManager.exportReportToPdf(this.jasperPrint);
|
||||
conteudo = this.renderPdf();
|
||||
break;
|
||||
|
||||
case XLS:
|
||||
conteudo = this.renderXls();
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
return conteudo;
|
||||
}
|
||||
|
||||
protected byte[] renderXls() throws Exception {
|
||||
|
||||
JRXlsExporter exporterXLS = new JRXlsExporter();
|
||||
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
exporterXLS.setParameter(JRXlsExporterParameter.JASPER_PRINT, this.jasperPrint);
|
||||
|
@ -111,11 +144,13 @@ public class RenderRelatorioJasper extends RenderRelatorioAbstract {
|
|||
exporterXLS.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
|
||||
exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);
|
||||
exporterXLS.exportReport();
|
||||
conteudo = output.toByteArray();
|
||||
break;
|
||||
return output.toByteArray();
|
||||
|
||||
}
|
||||
|
||||
return conteudo;
|
||||
protected byte[] renderPdf() throws Exception {
|
||||
|
||||
return JasperExportManager.exportReportToPdf(this.jasperPrint);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,799 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db">
|
||||
<property name="ireport.zoom" value="2.0"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="75"/>
|
||||
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
|
||||
<style name="SubTitle" forecolor="#736343" fontName="Arial" fontSize="18"/>
|
||||
<style name="Column header" forecolor="#666666" fontName="Arial" fontSize="12" isBold="true"/>
|
||||
<style name="Detail" fontName="Arial" fontSize="12"/>
|
||||
<style name="Row" mode="Transparent">
|
||||
<conditionalStyle>
|
||||
<conditionExpression><![CDATA[$V{REPORT_COUNT} % 2 == 0]]></conditionExpression>
|
||||
<style backcolor="#EEEEEE"/>
|
||||
</conditionalStyle>
|
||||
</style>
|
||||
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
|
||||
<parameter name="DATA_INICIO" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<parameter name="ESTADO_ID" class="java.lang.Integer"/>
|
||||
<parameter name="NUMPUNTOVENTA" class="java.util.List"/>
|
||||
<parameter name="ISNUMPUNTOVENTATODOS" class="java.lang.String">
|
||||
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||
</parameter>
|
||||
<parameter name="B_EXCLUI_BAGAGEM" class="java.lang.Boolean"/>
|
||||
<queryString>
|
||||
<![CDATA[select tab1.*,
|
||||
(tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro +
|
||||
tab1.receita_tarifa_gap + tab1.receita_seguro_gap -
|
||||
tab1.total_devol - tab1.total_devol_gap) receita_total,
|
||||
0 impostos,
|
||||
((tab1.receita_tarifa + tab1.receita_bagagem + tab1.receita_seguro +
|
||||
tab1.receita_tarifa_gap + tab1.receita_seguro_gap -
|
||||
tab1.total_devol - tab1.total_devol_gap) - 0) receita_liquida,
|
||||
0 percentual_comissao,
|
||||
0 valor_comissao,
|
||||
0 diferenca_comissao,
|
||||
'' tipo_agencia
|
||||
from (select tab.cveestado,
|
||||
tab.puntoventa_id,
|
||||
tab.numpuntoventa,
|
||||
tab.nombpuntoventa,
|
||||
tab.total_bilhetes, --
|
||||
tab.total_bilhetes_gap,
|
||||
tab.receita_tarifa receita_tarifa,
|
||||
tab.receita_seguro receita_seguro,
|
||||
decode($P{B_EXCLUI_BAGAGEM}, 0, nvl(sum(case
|
||||
when ee.tipoeventoextra_id = 1 and ee.activo = 1 then
|
||||
ee.impingreso
|
||||
end),0), 0) receita_bagagem,
|
||||
tab.total_devol total_devol,
|
||||
tab.receita_tarifa_gap receita_tarifa_gap,
|
||||
tab.receita_seguro_gap receita_seguro_gap,
|
||||
tab.total_devol_gap total_devol_gap,
|
||||
tab.total_bilhetes_canc total_bilhetes_canc
|
||||
|
||||
from (select es.cveestado,
|
||||
pv.puntoventa_id,
|
||||
pv.numpuntoventa,
|
||||
pv.nombpuntoventa,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END) total_bilhetes,
|
||||
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is not null THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END) total_bilhetes_canc,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
1
|
||||
ELSE
|
||||
0
|
||||
END) total_bilhetes_gap,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.preciopagado
|
||||
ELSE
|
||||
0
|
||||
END) receita_tarifa,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.preciopagado
|
||||
ELSE
|
||||
0
|
||||
END) receita_tarifa_gap,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.importeseguro
|
||||
ELSE
|
||||
0
|
||||
END) receita_seguro,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.importeseguro
|
||||
ELSE
|
||||
0
|
||||
END) receita_seguro_gap,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.importetaxaembarque
|
||||
ELSE
|
||||
0
|
||||
END) receita_embarque,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.importetaxaembarque
|
||||
ELSE
|
||||
0
|
||||
END) receita_embarque_gap,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.importeoutros
|
||||
ELSE
|
||||
0
|
||||
END) receita_outros,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.importeoutros
|
||||
ELSE
|
||||
0
|
||||
END) receita_outros_gap,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.importepedagio
|
||||
ELSE
|
||||
0
|
||||
END) receita_pedagio,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id is null and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.importepedagio
|
||||
ELSE
|
||||
0
|
||||
END) receita_pedagio_gap,
|
||||
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id in (31, 32) and
|
||||
cj.tipoventa_id <> 18 THEN
|
||||
cj.preciopagado
|
||||
ELSE
|
||||
0
|
||||
END) total_devol,
|
||||
sum(CASE
|
||||
WHEN cj.motivocancelacion_id in (31, 32) and
|
||||
cj.tipoventa_id = 18 THEN
|
||||
cj.preciopagado
|
||||
ELSE
|
||||
0
|
||||
END) total_devol_gap
|
||||
from vtabol.caja cj,
|
||||
vtabol.punto_venta pv,
|
||||
vtabol.parada pr,
|
||||
vtabol.ciudad cd,
|
||||
vtabol.estado es
|
||||
where cj.puntoventa_id = pv.puntoventa_id
|
||||
and trunc(cj.fechorventa) between $P{DATA_INICIO} and $P{DATA_FINAL}
|
||||
and pr.parada_id = pv.parada_id
|
||||
and cd.ciudad_id = pr.ciudad_id
|
||||
and cd.estado_id = es.estado_id
|
||||
and es.estado_id = nvl($P{ESTADO_ID}, es.estado_id)
|
||||
and (($X{IN, numpuntoventa, NUMPUNTOVENTA} and $P{ISNUMPUNTOVENTATODOS} = 'N')or($P{ISNUMPUNTOVENTATODOS} = 'S'))
|
||||
group by es.cveestado, pv.puntoventa_id, pv.numpuntoventa, pv.nombpuntoventa) tab,
|
||||
vtabol.evento_extra ee
|
||||
where trunc(ee.fechoringreso(+)) between $P{DATA_INICIO} and $P{DATA_FINAL}
|
||||
and ee.puntoventa_id(+) = tab.puntoventa_id
|
||||
|
||||
group by tab.cveestado,
|
||||
tab.puntoventa_id,
|
||||
tab.numpuntoventa,
|
||||
tab.nombpuntoventa,
|
||||
tab.total_bilhetes,
|
||||
tab.total_bilhetes_gap,
|
||||
tab.receita_tarifa,
|
||||
tab.receita_seguro,
|
||||
tab.total_devol,
|
||||
tab.receita_tarifa_gap,
|
||||
tab.receita_seguro_gap,
|
||||
tab.total_devol_gap,
|
||||
tab.total_bilhetes_canc) tab1]]>
|
||||
</queryString>
|
||||
<field name="CVEESTADO" class="java.lang.String"/>
|
||||
<field name="PUNTOVENTA_ID" class="java.math.BigDecimal"/>
|
||||
<field name="NUMPUNTOVENTA" class="java.lang.String"/>
|
||||
<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
|
||||
<field name="TOTAL_BILHETES" class="java.math.BigDecimal"/>
|
||||
<field name="TOTAL_BILHETES_GAP" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_TARIFA" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_SEGURO" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_BAGAGEM" class="java.math.BigDecimal"/>
|
||||
<field name="TOTAL_DEVOL" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_TARIFA_GAP" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_SEGURO_GAP" class="java.math.BigDecimal"/>
|
||||
<field name="TOTAL_DEVOL_GAP" class="java.math.BigDecimal"/>
|
||||
<field name="TOTAL_BILHETES_CANC" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_TOTAL" class="java.math.BigDecimal"/>
|
||||
<field name="IMPOSTOS" class="java.math.BigDecimal"/>
|
||||
<field name="RECEITA_LIQUIDA" class="java.math.BigDecimal"/>
|
||||
<field name="PERCENTUAL_COMISSAO" class="java.math.BigDecimal"/>
|
||||
<field name="VALOR_COMISSAO" class="java.math.BigDecimal"/>
|
||||
<field name="DIFERENCA_COMISSAO" class="java.math.BigDecimal"/>
|
||||
<field name="TIPO_AGENCIA" class="java.lang.String"/>
|
||||
<sortField name="CVEESTADO"/>
|
||||
<variable name="TOTAL_BILHETES_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TOTAL_BILHETES}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_TARIFA_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_SEGURO_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_BAGAGEM_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_DEVOL_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TOTAL_DEVOL}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_TARIFA_GAP" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA_GAP}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_SEGURO_GAP" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_SEGURO_GAP}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_DEVOL_GAP" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TOTAL_DEVOL_GAP}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_TOTAL_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="IMPOSTOS_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{IMPOSTOS}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_LIQUIDA_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_LIQUIDA}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="VALOR_COMISSAO_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{VALOR_COMISSAO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="TOTAL_BILHETES_CANC_SUM" class="java.math.BigDecimal" resetType="Group" resetGroup="GRUPO_ESTADO" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{TOTAL_BILHETES_CANC}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="GRUPO_ESTADO">
|
||||
<groupExpression><![CDATA[$F{CVEESTADO}]]></groupExpression>
|
||||
<groupFooter>
|
||||
<band height="15">
|
||||
<staticText>
|
||||
<reportElement uuid="62260c71-5c44-400d-8048-b5076630da1b" mode="Transparent" x="0" y="0" width="82" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total da UF]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="479bbc53-bfef-4007-a5f5-94b6eff14400" positionType="FixRelativeToBottom" x="1" y="0" width="802" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5" lineColor="#999999"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="8e892f70-7671-4f8b-ba54-a1308c2bbf70" positionType="FixRelativeToBottom" x="1" y="12" width="802" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5" lineColor="#999999"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="1822c753-da5f-4143-820b-5eeb890867ab" mode="Transparent" x="82" y="1" width="28" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="5b9a67a1-30db-4fd6-9636-3871e514dd4a" mode="Transparent" x="110" y="0" width="39" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="87542156-d9ea-472e-b425-308a8fa66ca1" mode="Transparent" x="149" y="1" width="59" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="5967aa4f-f97a-4647-99fb-37ae2709a068" mode="Transparent" x="208" y="1" width="62" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="d1dfd492-5eb5-405f-b92d-da78c30127f7" mode="Transparent" x="270" y="1" width="34" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_DEVOL_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="fdac474f-3490-4639-831f-7168be228ca3" mode="Transparent" x="342" y="1" width="40" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="e509cc8c-a4ea-4928-bbce-1a80ea7524f1" mode="Transparent" x="304" y="1" width="38" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_TARIFA_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="70efadc9-0551-41d1-8a54-512615ddf0db" mode="Transparent" x="382" y="1" width="39" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_DEVOL_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="a359bde7-b7fe-4b71-bf27-4675f9b3f5b2" mode="Transparent" x="421" y="1" width="36" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="8649a7fe-2b8b-4aaf-9b47-53721663e978" mode="Transparent" x="457" y="0" width="32" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{IMPOSTOS_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="fa48c687-c1cb-4166-b96d-24955cb277ee" mode="Transparent" x="489" y="1" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_LIQUIDA_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="1c62672c-7ff7-4c84-8048-b776a6d621c6" mode="Transparent" x="569" y="1" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{VALOR_COMISSAO_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="d380f48c-42b4-4b8e-824e-9c38eb71c5c9" mode="Transparent" x="736" y="1" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="Arial" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_CANC_SUM}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="74" splitType="Stretch">
|
||||
<rectangle>
|
||||
<reportElement uuid="40951cf0-f721-444c-937e-a529296c7cc5" x="1" y="0" width="800" height="30"/>
|
||||
</rectangle>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="51724883-07e3-4d85-9d83-8e4fb54a369f" mode="Transparent" x="71" y="0" width="369" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="9ab65a31-d370-435c-9797-bf9d01f7db8e" x="6" y="0" width="65" height="15"/>
|
||||
<textElement>
|
||||
<font size="9" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.relatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="3df44bfd-0b0d-408a-b69d-ce5a91fac303" mode="Transparent" x="6" y="15" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement uuid="2d8e8bb8-83e9-4e1b-87dc-60f3aa339144" mode="Transparent" x="71" y="15" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement uuid="c29183cc-bb62-4ac1-b880-a218e54be0c0" mode="Transparent" x="137" y="15" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="66de0d17-aaae-4bc7-97fc-c642bbcdf2fa" mode="Transparent" x="124" y="15" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="16" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement uuid="f72cb4df-3356-4874-b805-90039927d88a" positionType="FixRelativeToBottom" x="0" y="15" width="802" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5" lineColor="#999999"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<elementGroup>
|
||||
<staticText>
|
||||
<reportElement uuid="b82388b4-1e64-4f98-950d-a6b07d87c1e0" style="Column header" x="0" y="1" width="17" height="15" forecolor="#000000"/>
|
||||
<textElement>
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[UF]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="761cd577-3c83-4e18-b17b-d327b62aa772" style="Column header" x="17" y="1" width="30" height="15" forecolor="#000000"/>
|
||||
<textElement>
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Código]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="d1726122-2865-4484-b5f0-0f44c5a0d04b" style="Column header" x="82" y="1" width="28" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Qtd. Bil.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="5a346661-5bf1-4cef-b4c7-78953ab826d4" style="Column header" x="110" y="1" width="39" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Tarifa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b705c904-485e-4039-90da-c565711ee526" style="Column header" x="149" y="1" width="61" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Seguro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="09b51c92-9289-4be6-a015-6de7a2c50838" style="Column header" x="210" y="1" width="60" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Bagagem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="e1ed74d5-645d-4d2b-9c44-42a663ee6e19" style="Column header" x="270" y="1" width="34" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Vr. Devol.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="1f5fb691-2caf-4210-833d-b1bad215ba9a" style="Column header" x="304" y="1" width="38" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Tarifa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="16c9f923-0257-4c6a-99b3-e0cf1c64a1ae" style="Column header" x="342" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Seguro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="048b4213-b856-4aa9-9551-31d31c52a0f9" style="Column header" x="382" y="1" width="39" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Devol.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f1d10a1d-13fb-4ca0-914a-734f48754946" style="Column header" x="421" y="1" width="36" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Total]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="84454d72-309f-415d-a7b3-90dac892c3da" style="Column header" x="457" y="1" width="32" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Impostos]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f7ff14b9-9667-4efe-9472-ba79158b9828" style="Column header" x="489" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Liquida]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="ab78513c-7198-4b8d-9c5a-3115e4da2e9c" style="Column header" x="529" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[% Com.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f3d84a95-2573-4611-a296-48e1787869cf" style="Column header" x="569" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Comissão]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="cb3693c3-17f0-4449-bd01-c940885474a4" style="Column header" x="609" y="1" width="47" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Adiantamento]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="6176aeab-ecf8-4cfb-a197-e9a04dda31d9" style="Column header" x="656" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Diferença]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="81c1c4f5-fe2b-4603-9209-0ebd22967e31" style="Column header" x="696" y="1" width="40" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tipo]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c3f916bc-f810-448d-abe2-ac7257c4eee2" style="Column header" x="736" y="1" width="65" height="15" forecolor="#000000"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Qtd. Cancelamento]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="04cfc0a4-4f6d-4ad6-b9ce-0f4953e454cd" style="Column header" x="47" y="1" width="35" height="15" forecolor="#000000"/>
|
||||
<textElement>
|
||||
<font size="7" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Agência]]></text>
|
||||
</staticText>
|
||||
</elementGroup>
|
||||
<line>
|
||||
<reportElement uuid="7955897b-dd86-4c44-8086-ca3c7d756d6b" positionType="FixRelativeToBottom" x="1" y="0" width="802" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5" lineColor="#999999"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<frame>
|
||||
<reportElement uuid="ae7acb67-192e-4412-a3f8-18344b824658" style="Row" mode="Opaque" x="0" y="0" width="802" height="15"/>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="27124f1a-ca93-43bd-9a8e-448ed64b4241" style="Detail" x="1" y="0" width="16" height="15"/>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CVEESTADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="973aff15-d389-4027-b370-6dc8a38ae793" style="Detail" x="17" y="0" width="30" height="15"/>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NUMPUNTOVENTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="186064f7-7476-4ff7-b159-0e96361a94f0" style="Detail" x="47" y="0" width="35" height="15"/>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b435d52f-a973-4e4f-81cc-86721ad26065" style="Detail" x="82" y="0" width="28" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL_BILHETES}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="8a842131-2b16-4d73-af3d-add23f0f4669" style="Detail" x="110" y="0" width="39" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="7968d320-7f6a-433e-ac7a-7593d1ca2e52" style="Detail" x="149" y="0" width="59" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
</frame>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="15e58feb-7f79-4a61-b111-fe7561e4d939" style="Detail" x="208" y="0" width="62" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="7680fb2a-85e4-4bdd-82b0-cf49ac8d0052" style="Detail" x="270" y="0" width="34" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL_DEVOL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="31e7809b-4d70-4afb-a89f-9bb4190f15cd" style="Detail" x="304" y="0" width="38" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="22aa78a8-8324-46e4-8f82-296d7798b6d7" style="Detail" x="342" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="b225f72a-e727-4ce4-a1e3-40a3a4b48a35" style="Detail" x="382" y="0" width="39" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL_DEVOL_GAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="d1ea5b17-efef-48aa-9464-38f800297476" style="Detail" x="421" y="0" width="36" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_TOTAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="b9dbe642-525c-463e-9e91-c9de2c9e7f18" style="Detail" x="457" y="0" width="32" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{IMPOSTOS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="ad32ef2c-9328-413c-9ee7-c18c4dcd3ae1" style="Detail" x="489" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_LIQUIDA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00 %">
|
||||
<reportElement uuid="33c3f1e6-1775-4341-8852-2948b2bcc1c7" style="Detail" x="529" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{PERCENTUAL_COMISSAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="f74e30d5-1737-4a51-b516-cf1cbaa1a1a1" style="Detail" x="569" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{VALOR_COMISSAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="82a6de6e-b2b6-4f2d-b1f3-01eeca119640" style="Detail" x="656" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DIFERENCA_COMISSAO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="b8a07c84-cbe2-42aa-8b89-6ae548390e82" style="Detail" x="696" y="0" width="40" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TIPO_AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="4bfa82cd-4346-47b6-916a-c500cac81bb3" style="Detail" x="736" y="0" width="65" height="15"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL_BILHETES_CANC}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="23" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement uuid="550e9fbd-9d42-430f-ad4a-4df61bf47764" positionType="FixRelativeToBottom" x="0" y="3" width="802" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5" lineColor="#999999"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band height="25" splitType="Stretch">
|
||||
<frame>
|
||||
<reportElement uuid="c7f454d1-df93-4f1f-adf2-1370faee439a" mode="Opaque" x="0" y="1" width="802" height="24" forecolor="#CCCCCC" backcolor="#CCCCCC"/>
|
||||
<textField evaluationTime="Report">
|
||||
<reportElement uuid="8eac3c11-7a66-42dd-b9bf-cddff16e20de" style="Column header" x="759" y="1" width="40" height="20" forecolor="#736343"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="f41a29ef-7a03-4fe4-abd8-359dcee2cba3" style="Column header" x="679" y="0" width="80" height="20" forecolor="#736343"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{rodape.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{rodape.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="EEEEE dd MMMMM yyyy">
|
||||
<reportElement uuid="86638452-9dd7-4deb-90f5-caa33d583b3d" style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="10" isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
</frame>
|
||||
</band>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="50">
|
||||
<textField>
|
||||
<reportElement uuid="7ccffb4a-33f7-4829-8ee5-ea548c7b9e76" x="137" y="20" width="530" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -20,8 +20,8 @@ import com.rjconsultores.ventaboletos.relatorios.parametros.*;
|
|||
public enum Relatorio {
|
||||
|
||||
RELATORIO_APROVEITAMENTO(1, "RelatorioAproveitamento", "Relatório de Aproveitamento",new RendimentoParamsImpl(), null),
|
||||
RELATORIO_SERVICOS(2, "Servicosr", "Relatório de Serviços", null, new Vendas2CustomDS()),
|
||||
RELATORIO_EXEMPLO(3, "ExemploFoo", "Relatório Foo", null, null);
|
||||
RELATORIO_RECEITA_DIARIA_AGENCIA(2, "RelatorioReceitaDiariaAgencia", "Relatório de Receita Diária por Agência", null, null),
|
||||
RELATORIO_EXEMPLO(99, "ExemploFoo", "Relatório Foo", null, null);
|
||||
|
||||
private int codigo;
|
||||
private String nome;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -12,17 +13,30 @@ import javax.sql.DataSource;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Iframe;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Corrida;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.relatorios.render.RenderRelatorioJasper;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCorrida;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCorridaAproveitamento;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -33,28 +47,22 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
|||
public class RelatorioAproveitamentoController extends MyGenericForwardComposer {
|
||||
|
||||
private Datebox fecCorrida;
|
||||
private Div divResultadoRelatorio;
|
||||
private Iframe iframeRelatorio;
|
||||
private MyTextbox txtCorridaId;
|
||||
|
||||
private MyComboboxParada cmbParadaOrigem;
|
||||
private MyComboboxParadaCve cmbParadaOrigemCve;
|
||||
private MyComboboxParada cmbParadaDestino;
|
||||
private MyComboboxParadaCve cmbParadaDestinoCve;
|
||||
private Button btnExecutarRelatorio;
|
||||
|
||||
private MyListbox corridaList;
|
||||
private Paging pagingCorrida;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSource;
|
||||
|
||||
public Iframe getIframeRelatorio() {
|
||||
return iframeRelatorio;
|
||||
}
|
||||
|
||||
public void setIframeRelatorio(Iframe iframeRelatorio) {
|
||||
this.iframeRelatorio = iframeRelatorio;
|
||||
}
|
||||
|
||||
public Div getDivResultadoRelatorio() {
|
||||
return divResultadoRelatorio;
|
||||
}
|
||||
|
||||
public void setDivResultadoRelatorio(Div divResultadoRelatorio) {
|
||||
this.divResultadoRelatorio = divResultadoRelatorio;
|
||||
}
|
||||
@Autowired
|
||||
private transient PagedListWrapper<Corrida> plwCorrida;
|
||||
|
||||
public Datebox getFecCorrida() {
|
||||
return fecCorrida;
|
||||
|
@ -68,12 +76,134 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
corridaList.setItemRenderer(new RenderCorridaAproveitamento());
|
||||
|
||||
btnExecutarRelatorio.setDisabled(true);
|
||||
|
||||
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
|
||||
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
cmbParadaDestinoCve.setItemRenderer(new ComboitemRenderer() {
|
||||
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnBuscarServico(Event ev) throws Exception {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaOrigemCve(Event ev) {
|
||||
if (cmbParadaOrigemCve.getSelectedItem() != null) {
|
||||
cmbParadaOrigem.setComboItemByParada((Parada) cmbParadaOrigemCve.getSelectedItem().getValue());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaOrigem(Event ev) {
|
||||
|
||||
if (cmbParadaOrigem.getSelectedItem() != null)
|
||||
cmbParadaOrigemCve.setComboItemByParada((Parada) cmbParadaOrigem.getSelectedItem().getValue());
|
||||
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestinoCve(Event ev) {
|
||||
|
||||
if (cmbParadaDestinoCve.getSelectedItem() != null)
|
||||
cmbParadaDestino.setComboItemByParada((Parada) cmbParadaDestinoCve.getSelectedItem().getValue());
|
||||
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestino(Event ev) {
|
||||
|
||||
if (cmbParadaDestino.getSelectedItem() != null)
|
||||
cmbParadaDestinoCve.setComboItemByParada((Parada) cmbParadaDestino.getSelectedItem().getValue());
|
||||
|
||||
}
|
||||
public void onSelect$corridaList(Event ev) {
|
||||
txtCorridaId.setValue(((Corrida)corridaList.getSelected()).getId().getCorridaId().toString());
|
||||
btnExecutarRelatorio.setDisabled(false);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void refreshLista() {
|
||||
btnExecutarRelatorio.setDisabled(true);
|
||||
HibernateSearchObject<Corrida> corridaBusqueda =
|
||||
new HibernateSearchObject<Corrida>(Corrida.class,
|
||||
pagingCorrida.getPageSize());
|
||||
|
||||
|
||||
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
||||
if (cbiOrigem != null) {
|
||||
Parada origem = (Parada) cbiOrigem.getValue();
|
||||
corridaBusqueda.addFilterEqual("origem", origem);
|
||||
}
|
||||
|
||||
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
|
||||
if (cbiDestino != null) {
|
||||
Parada destino = (Parada) cbiDestino.getValue();
|
||||
corridaBusqueda.addFilterEqual("destino", destino);
|
||||
}
|
||||
|
||||
if (fecCorrida.getValue() != null) {
|
||||
Date data = fecCorrida.getValue();
|
||||
data.setHours(00);
|
||||
data.setMinutes(00);
|
||||
data.setSeconds(00);
|
||||
corridaBusqueda.addFilterEqual("id.feccorrida", data);
|
||||
}
|
||||
|
||||
|
||||
if(txtCorridaId.getValue() != null && !txtCorridaId.getValue().isEmpty()){
|
||||
corridaBusqueda.addFilterEqual("id.corridaId", new Integer(txtCorridaId.getValue()));
|
||||
}
|
||||
|
||||
|
||||
corridaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwCorrida.init(corridaBusqueda, corridaList,
|
||||
pagingCorrida);
|
||||
|
||||
if (corridaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioAproveitamentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
|
||||
if (corridaList.getData().length == 1) {
|
||||
corridaList.setSelectedIndex(0);
|
||||
btnExecutarRelatorio.setDisabled(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*
|
||||
|
@ -94,7 +224,7 @@ public class RelatorioAproveitamentoController extends MyGenericForwardComposer
|
|||
args.put("renderRelatorio", render);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Relatorio.RELATORIO_APROVEITAMENTO.getNome(), args, MODAL);
|
||||
Relatorio.RELATORIO_APROVEITAMENTO.getDescricao(), args, MODAL);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,276 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.ForwardEvent;
|
||||
import org.zkoss.zul.Bandbox;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Iframe;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.event.PagingEvent;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Articulo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.Pais;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.render.RenderRelatorioJasper;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.service.PaisService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderArticulo;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVentaSimple;
|
||||
import com.trg.search.Filter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("relatorioReceitaDiariaAgenciaController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
@Autowired
|
||||
private PuntoVentaService puntoVentaService;
|
||||
@Autowired
|
||||
private DataSource dataSource;
|
||||
private List<Estado> lsEstado;
|
||||
|
||||
private ArrayList<String> lsNumPuntoVenta = new ArrayList<String>();
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
private MyListbox puntoVentaList;
|
||||
private Paging pagingPuntoVenta;
|
||||
|
||||
private Bandbox bbPesquisaPuntoVenta;
|
||||
|
||||
private Textbox txtPalavraPesquisa;
|
||||
private Combobox cmbEstado;
|
||||
private Combobox cmbPuntoVenta;
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private Checkbox chkExcessoBagagem;
|
||||
|
||||
public Datebox getDatInicial() {
|
||||
return datInicial;
|
||||
}
|
||||
|
||||
public void setDatInicial(Datebox datInicial) {
|
||||
this.datInicial = datInicial;
|
||||
}
|
||||
|
||||
public Datebox getDatFinal() {
|
||||
return datFinal;
|
||||
}
|
||||
|
||||
public void setDatFinal(Datebox datFinal) {
|
||||
this.datFinal = datFinal;
|
||||
}
|
||||
|
||||
public List<Estado> getLsEstado() {
|
||||
return lsEstado;
|
||||
}
|
||||
|
||||
public void setLsEstado(List<Estado> lsEstado) {
|
||||
this.lsEstado = lsEstado;
|
||||
}
|
||||
|
||||
public Combobox getCmbEstado() {
|
||||
return cmbEstado;
|
||||
}
|
||||
|
||||
public void setCmbEstado(Combobox cmbEstado) {
|
||||
this.cmbEstado = cmbEstado;
|
||||
}
|
||||
|
||||
public Combobox getCmbPuntoVenta() {
|
||||
return cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
|
||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getPuntoVentaList() {
|
||||
return puntoVentaList;
|
||||
}
|
||||
|
||||
public void setPuntoVentaList(MyListbox puntoVentaList) {
|
||||
this.puntoVentaList = puntoVentaList;
|
||||
}
|
||||
|
||||
public Paging getPagingPuntoVenta() {
|
||||
return pagingPuntoVenta;
|
||||
}
|
||||
|
||||
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
|
||||
this.pagingPuntoVenta = pagingPuntoVenta;
|
||||
}
|
||||
|
||||
public Textbox getTxtPalavraPesquisa() {
|
||||
return txtPalavraPesquisa;
|
||||
}
|
||||
|
||||
public void setTxtPalavraPesquisa(Textbox txtPalavraPesquisa) {
|
||||
this.txtPalavraPesquisa = txtPalavraPesquisa;
|
||||
}
|
||||
|
||||
public Bandbox getBbPesquisaPuntoVenta() {
|
||||
return bbPesquisaPuntoVenta;
|
||||
}
|
||||
|
||||
public void setBbPesquisaPuntoVenta(Bandbox bbPesquisaPuntoVenta) {
|
||||
this.bbPesquisaPuntoVenta = bbPesquisaPuntoVenta;
|
||||
}
|
||||
|
||||
public Checkbox getChkExcessoBagagem() {
|
||||
return chkExcessoBagagem;
|
||||
}
|
||||
|
||||
public void setChkExcessoBagagem(Checkbox chkExcessoBagagem) {
|
||||
this.chkExcessoBagagem = chkExcessoBagagem;
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
public void onSelect$puntoVentaList(Event ev) {
|
||||
|
||||
String strListPuntoVenta = new String();
|
||||
ArrayList<Object> lsSelecionados = (ArrayList<Object>) puntoVentaList.getSelectedsItens();
|
||||
|
||||
lsNumPuntoVenta.clear();
|
||||
for (Object objPuntoVenta : lsSelecionados) {
|
||||
strListPuntoVenta = ((PuntoVenta) objPuntoVenta).getNombpuntoventa() + " " + strListPuntoVenta;
|
||||
lsNumPuntoVenta.add(((PuntoVenta) objPuntoVenta).getNumPuntoVenta());
|
||||
}
|
||||
this.bbPesquisaPuntoVenta.setValue(strListPuntoVenta);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnLimpar(Event ev) {
|
||||
limparPesquisaAgencia();
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
executarPesquisa();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private void limparPesquisaAgencia() {
|
||||
puntoVentaList.clearSelection();
|
||||
|
||||
lsNumPuntoVenta.clear();
|
||||
this.bbPesquisaPuntoVenta.setValue("");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private void executarPesquisa() {
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
|
||||
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
||||
pagingPuntoVenta.getPageSize());
|
||||
|
||||
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
|
||||
|
||||
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
||||
|
||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||
|
||||
if (puntoVentaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*
|
||||
*/
|
||||
private void executarRelatorio() throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
RenderRelatorioJasper render = new RenderRelatorioJasper(Relatorio.RELATORIO_RECEITA_DIARIA_AGENCIA, dataSource.getConnection());
|
||||
|
||||
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime()));
|
||||
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
|
||||
|
||||
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
|
||||
|
||||
if (lsNumPuntoVenta.size() > 0) {
|
||||
parametros.put("NUMPUNTOVENTA", lsNumPuntoVenta);
|
||||
parametros.put("ISNUMPUNTOVENTATODOS", "N");
|
||||
}
|
||||
else
|
||||
parametros.put("ISNUMPUNTOVENTATODOS", "S");
|
||||
|
||||
Comboitem itemEstado = cmbEstado.getSelectedItem();
|
||||
if (itemEstado != null) {
|
||||
Estado estado = (Estado) itemEstado.getValue();
|
||||
parametros.put("ESTADO_ID", estado.getEstadoId());
|
||||
}
|
||||
|
||||
render.setParametros(parametros);
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("renderRelatorio", render);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Relatorio.RELATORIO_RECEITA_DIARIA_AGENCIA.getDescricao(), args, MODAL);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEstado = estadoService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple());
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -132,4 +132,13 @@ public class MyComboboxParada extends Combobox {
|
|||
public void setSinTodos(boolean sinTodos) {
|
||||
this.sinTodos = sinTodos;
|
||||
}
|
||||
|
||||
public void setComboItemByParada(Parada parada) {
|
||||
|
||||
List<Parada> ls = new ArrayList<Parada>();
|
||||
ls.add(parada);
|
||||
|
||||
this.setModel(new BindingListModelList(ls, false));
|
||||
this.setText(parada.getDescparada());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,145 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.InputEvent;
|
||||
import org.zkoss.zkplus.databind.BindingListModel;
|
||||
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||
import org.zkoss.zkplus.spring.SpringUtil;
|
||||
import org.zkoss.zul.Combobox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
public class MyComboboxParadaCve extends Combobox {
|
||||
|
||||
private static Logger log = Logger.getLogger(MyComboboxParadaCve.class);
|
||||
public final static int minLength = 2;
|
||||
private ParadaService paradaService;
|
||||
private List<Parada> lsParadas;
|
||||
private Parada initialValue;
|
||||
private Integer indiceSelected = null;
|
||||
private boolean sinTodos = false;
|
||||
private Integer ID_TODOS = -1;
|
||||
|
||||
public MyComboboxParadaCve() {
|
||||
super();
|
||||
|
||||
paradaService = (ParadaService) SpringUtil.getBean("paradaService");
|
||||
lsParadas = new ArrayList<Parada>();
|
||||
|
||||
this.setAutodrop(false);
|
||||
this.setAutocomplete(false);
|
||||
|
||||
this.addEventListener("onOK", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
String strParada = MyComboboxParadaCve.this.getText().toUpperCase();
|
||||
if (strParada.length() < MyComboboxParadaCve.minLength) {
|
||||
return;
|
||||
}
|
||||
if (!strParada.isEmpty()) {
|
||||
lsParadas = paradaService.buscarCVE(strParada);
|
||||
|
||||
if (sinTodos) {
|
||||
log.debug("Sin todos");
|
||||
Parada p = paradaService.obtenerID(ID_TODOS);
|
||||
lsParadas.remove(p);
|
||||
}
|
||||
|
||||
BindingListModel listModelParada = new BindingListModelList(lsParadas, true);
|
||||
MyComboboxParadaCve.this.setModel(listModelParada);
|
||||
indiceSelected = null;
|
||||
if (!lsParadas.isEmpty()) {
|
||||
indiceSelected = 0;
|
||||
}
|
||||
|
||||
MyComboboxParadaCve.this.open();
|
||||
} else {
|
||||
lsParadas.clear();
|
||||
|
||||
BindingListModel listModelParada = new BindingListModelList(lsParadas, true);
|
||||
MyComboboxParadaCve.this.setModel(listModelParada);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.addEventListener("onChanging", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
InputEvent ev = (InputEvent) event;
|
||||
String strParada = ev.getValue();
|
||||
if (strParada.length() < 2) {
|
||||
lsParadas.clear();
|
||||
|
||||
BindingListModel listModelParada = new BindingListModelList(lsParadas, true);
|
||||
MyComboboxParadaCve.this.setModel(listModelParada);
|
||||
|
||||
MyComboboxParadaCve.this.close();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public Parada getInitialValue() {
|
||||
return initialValue;
|
||||
}
|
||||
|
||||
public void setInitialValue(Parada initialValue) {
|
||||
if (initialValue == null) {
|
||||
return;
|
||||
}
|
||||
List<Parada> ls = new ArrayList<Parada>();
|
||||
ls.add(initialValue);
|
||||
|
||||
this.setModel(new BindingListModelList(ls, false));
|
||||
this.setText(initialValue.getDescparada());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param checaBusqueda
|
||||
* @throws WrongValueException
|
||||
*/
|
||||
public String getValue(boolean checaBusqueda) throws WrongValueException {
|
||||
if (checaBusqueda) {
|
||||
if (this.getSelectedItem() == null) {
|
||||
throw new WrongValueException(this, Labels.getLabel("MSG.Error.combobox.hacerBusqueda"));
|
||||
}
|
||||
}
|
||||
|
||||
return super.getValue();
|
||||
}
|
||||
|
||||
public boolean isSinTodos() {
|
||||
return sinTodos;
|
||||
}
|
||||
|
||||
public void setSinTodos(boolean sinTodos) {
|
||||
this.sinTodos = sinTodos;
|
||||
}
|
||||
|
||||
public void setComboItemByParada(Parada parada) {
|
||||
|
||||
List<Parada> ls = new ArrayList<Parada>();
|
||||
ls.add(parada);
|
||||
|
||||
this.setModel(new BindingListModelList(ls, false));
|
||||
this.setText(parada.getCveparada());
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioReceitaDiariaAgencia extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioReceitaDiariaAgencia() {
|
||||
super("indexController.mniRelatorioReceitaDiariaAgencia.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIORECEITADIARIAAGENCIA";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioReceitaDiariaAgencia.zul",
|
||||
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"), null,desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Corrida;
|
||||
import java.text.SimpleDateFormat;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
public class RenderCorridaAproveitamento implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Corrida corrida = (Corrida) o;
|
||||
|
||||
Listcell lc = new Listcell();
|
||||
|
||||
lc = new Listcell(corrida.getId().getCorridaId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formatData = new SimpleDateFormat("dd/MM/yyyy");
|
||||
lc = new Listcell(formatData.format(corrida.getFechorsalida()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat formatHora = new SimpleDateFormat("KK:mm");
|
||||
lc = new Listcell(formatHora.format(corrida.getFechorsalida()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (corrida.getOrigem() != null) {
|
||||
lc = new Listcell(corrida.getOrigem().getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (corrida.getDestino() != null) {
|
||||
lc = new Listcell(corrida.getDestino().getDescparada());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (corrida.getRuta() != null) {
|
||||
lc = new Listcell(corrida.getRuta().getDescruta());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (corrida.getClaseServicio() != null) {
|
||||
lc = new Listcell(corrida.getClaseServicio().getDescclase());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", corrida);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
public class RenderPuntoVentaSimple implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) o;
|
||||
|
||||
Listcell lc = new Listcell(puntoVenta.getNumPuntoVenta());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
||||
|
||||
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", puntoVenta);
|
||||
}
|
||||
}
|
|
@ -211,6 +211,7 @@ indexController.mniCliente.label = Cliente
|
|||
indexController.mniTarjetaCredito.label = Cartão de Crédito
|
||||
indexController.mniRelatorios.label = Relatórios
|
||||
indexController.mniRelatorioAproveitamento.label = Relatório de Aproveitamento
|
||||
indexController.mniRelatorioReceitaDiariaAgencia.label = Relatório de Receita Diária por Agência
|
||||
|
||||
#PARTE REALIZADA POR MANUEL
|
||||
indexController.mnCortesias.label = Cortesias Para Funcionários
|
||||
|
@ -235,10 +236,33 @@ busquedaClaseServicioController.lhDesc.label = Descrição
|
|||
busquedaClaseServicioController.lhId.label = ID
|
||||
|
||||
#Relatórios
|
||||
|
||||
#Aproveitamento
|
||||
relatorioAproveitamentoController.window.title = Relatório de Aproveitamento
|
||||
relatorioAproveitamentoController.lbFecCorrida.value = Data Serviço
|
||||
relatorioAproveitamentoController.lbServico.value = N. Serviço
|
||||
|
||||
|
||||
relatorioAproveitamentoController.lhDesc.label = Descrição
|
||||
relatorioAproveitamentoController.Origem.label = Origem
|
||||
relatorioAproveitamentoController.Destino.label = Destino
|
||||
relatorioAproveitamentoController.Servico.label = Serviço
|
||||
relatorioAproveitamentoController.DataServico.label = Data Serviço
|
||||
relatorioAproveitamentoController.HoraServico.label = Data Serviço
|
||||
relatorioAproveitamentoController.Classe.label = Classe
|
||||
relatorioAproveitamentoController.btnBuscarServico.label = Buscar Serviço
|
||||
|
||||
|
||||
#Receita Diária por Agência
|
||||
relatorioReceitaDiariaAgenciaController.window.title = Relatório de Receita Diária por Agência
|
||||
relatorioReceitaDiariaAgenciaController.lbDataIni.value = Data Inicial
|
||||
relatorioReceitaDiariaAgenciaController.lbDataFin.value = Data Final
|
||||
relatorioReceitaDiariaAgenciaController.lbEstado.value = Estado
|
||||
relatorioReceitaDiariaAgenciaController.lbPuntoVenta.value = Agência
|
||||
relatorioReceitaDiariaAgenciaController.btnPesquisa.label = Pesquisar
|
||||
relatorioReceitaDiariaAgenciaController.btnLimpar.label = Limpar Seleção
|
||||
|
||||
|
||||
# Pantalla Editar Classe
|
||||
editarClaseServicioController.window.title = Tipo de Classe
|
||||
editarClaseServicioController.btnApagar.tooltiptext = Eliminar
|
||||
|
|
|
@ -5,28 +5,87 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioAproveitamento" apply="${relatorioAproveitamentoController}"
|
||||
contentStyle="overflow:auto" height="140px" width="350px" border="normal" >
|
||||
<window id="winFiltroRelatorioAproveitamento"
|
||||
apply="${relatorioAproveitamentoController}"
|
||||
contentStyle="overflow:auto" height="540px" width="750px"
|
||||
border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
<column width="15%" />
|
||||
<column width="15%" />
|
||||
<column width="70%" />
|
||||
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('relatorioAproveitamentoController.lbServico.value')}"/>
|
||||
<textbox id="txtCorridaId" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" constraint="no empty" maxlength="7"/>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigemCve"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
<combobox id="cmbParadaOrigem"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="60%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('relatorioAproveitamentoController.lbFecCorrida.value')}"/>
|
||||
<datebox id="fecCorrida" width="90%" format="dd/MM/yyyy" lenient="false" constraint="no empty" maxlength="10"/>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestinoCve" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="60%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioAproveitamentoController.lbFecCorrida.value')}" />
|
||||
<datebox id="fecCorrida" width="100%"
|
||||
format="dd/MM/yyyy" lenient="false" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioAproveitamentoController.lbServico.value')}" />
|
||||
<textbox id="txtCorridaId" width="95%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
maxlength="7" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}"/>
|
||||
<button id="btnBuscarServico" image="/gui/img/find.png"
|
||||
label="${c:l('relatorioAproveitamentoController.btnBuscarServico.label')}" />
|
||||
<button id="btnExecutarRelatorio"
|
||||
image="/gui/img/enginer.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingCorrida" pageSize="20" />
|
||||
<listbox id="corridaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="95%">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.Servico.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.DataServico.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.HoraServico.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.Origem.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.Destino.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.lhDesc.label')}" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('relatorioAproveitamentoController.Classe.label')}" />
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
||||
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFiltroRelatorioReceitaDiariaAgencia"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioReceitaDiariaAgencia"
|
||||
apply="${relatorioReceitaDiariaAgenciaController}"
|
||||
contentStyle="overflow:auto" height="180px" width="550px"
|
||||
border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioReceitaDiariaAgenciaController.lbDataIni.value')}" />
|
||||
<datebox id="datInicial" width="90%"
|
||||
format="dd/MM/yyyy" lenient="false" constraint="no empty"
|
||||
maxlength="10" />
|
||||
<label
|
||||
value="${c:l('relatorioReceitaDiariaAgenciaController.lbDataFin.value')}" />
|
||||
<datebox id="datFinal" width="90%"
|
||||
format="dd/MM/yyyy" lenient="false" constraint="no empty"
|
||||
maxlength="10" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioReceitaDiariaAgenciaController.lbEstado.value')}" />
|
||||
<combobox id="cmbEstado" width="90%" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioReceitaDiariaAgencia$composer.lsEstado}" />
|
||||
<label
|
||||
value="${c:l('relatorioReceitaDiariaAgenciaController.lbPuntoVenta.value')}" />
|
||||
<bandbox id="bbPesquisaPuntoVenta" width="90%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox id="txtPalavraPesquisa" />
|
||||
<button id="btnPesquisa"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('relatorioReceitaDiariaAgenciaController.btnPesquisa.label')}" />
|
||||
<button id="btnLimpar"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioReceitaDiariaAgenciaController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
|
||||
<listbox checkmark="true"
|
||||
id="puntoVentaList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="60%" width="360px">
|
||||
<listhead>
|
||||
<listheader label="Código" />
|
||||
<listheader label="Nome" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingPuntoVenta"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<cell colspan="2">
|
||||
<checkbox id="chkExcessoBagagem"
|
||||
label="Excluso Excesso de Bagagem" />
|
||||
</cell>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
</toolbar>
|
||||
</window>
|
||||
</zk>
|
||||
|
Loading…
Reference in New Issue