daniel.zauli 2015-07-13 14:02:48 +00:00
parent 1c12546dca
commit 7a565d3980
13 changed files with 674 additions and 163 deletions

View File

@ -0,0 +1,94 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioDiferencasTransferencias extends Relatorio {
public RelatorioDiferencasTransferencias(Map<String, Object> parametros, Connection conexao) throws Exception
{
super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) {
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String sql = getSql();
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
ResultSet rset = stmt.executeQuery();
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
dataResult.put("classe_original", rset.getString("classe_original"));
dataResult.put("total_pago_original", rset.getBigDecimal("total_pago_original"));
dataResult.put("classe_novo", rset.getString("classe_novo"));
dataResult.put("diferença_preço", rset.getBigDecimal("diferença_preço"));
this.dados.add(dataResult);
}
this.resultSet = rset;
}
});
}
@Override
protected void processaParametros() throws Exception {
}
private String getSql() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT CS_ORIG.DESCCLASE AS classe_original, ");
sql.append(" ( B_ORIG.PRECIOPAGADO + B_ORIG.IMPORTETAXAEMBARQUE + B_ORIG.IMPORTEPEDAGIO + B_ORIG.IMPORTEOUTROS + B_ORIG.IMPORTESEGURO ) AS total_pago_original, ");
sql.append(" CS_NOVO.DESCCLASE AS classe_novo, ");
sql.append(" (CASE WHEN ee.tipoeventoextra_id = 62 THEN ( -1 * (ee.IMPINGRESO) ) ELSE (ee.IMPINGRESO) END) AS diferença_preço ");
sql.append(" FROM BOLETO B_NOVO ");
sql.append(" INNER JOIN CAJA_DIVERSOS CD ");
sql.append(" ON CD.NUMOPERACION = B_NOVO.NUMOPERACION");
sql.append(" INNER JOIN EVENTO_EXTRA EE ");
sql.append(" ON EE.EVENTOEXTRA_ID = CD.EVENTOEXTRA_ID ");
sql.append(" INNER JOIN TIPO_EVENTO_EXTRA TEE ");
sql.append(" ON TEE.TIPOEVENTOEXTRA_ID = EE.TIPOEVENTOEXTRA_ID ");
sql.append(" AND EE.TIPOEVENTOEXTRA_ID IN (62 , 63) ");
sql.append(" INNER JOIN BOLETO B_ORIG ");
sql.append(" ON B_ORIG.BOLETO_ID = B_NOVO.BOLETOORIGINAL_ID ");
sql.append(" INNER JOIN CLASE_SERVICIO CS_NOVO ");
sql.append(" ON CS_NOVO.CLASESERVICIO_ID = B_NOVO.CLASESERVICIO_ID ");
sql.append(" INNER JOIN CLASE_SERVICIO CS_ORIG ");
sql.append(" ON CS_ORIG.CLASESERVICIO_ID = B_ORIG.CLASESERVICIO_ID ");
sql.append("WHERE B_NOVO.INDSTATUSBOLETO LIKE 'T' ");
sql.append(" AND B_NOVO.FECHORVENTA >= :DATA_INICIAL ");
sql.append(" AND B_NOVO.FECHORVENTA <= :DATA_FINAL ");
sql.append(" AND B_NOVO.BOLETOORIGINAL_ID IS NOT NULL ");
sql.append(" ORDER BY ");
sql.append(" CASE ");
sql.append(" WHEN cs_orig.DESCCLASE = cs_novo.DESCCLASE THEN 1 ");
sql.append(" WHEN cs_orig.DESCCLASE <> cs_novo.DESCCLASE THEN 2 ");
sql.append(" ELSE 3 ");
sql.append(" END asc ");
return sql.toString();
}
}

View File

@ -9,6 +9,7 @@ import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioReceitaServico extends Relatorio { public class RelatorioReceitaServico extends Relatorio {
@ -24,20 +25,19 @@ public class RelatorioReceitaServico extends Relatorio {
Map<String, Object> parametros = this.relatorio.getParametros(); Map<String, Object> parametros = this.relatorio.getParametros();
String sql = getSql( String sql = getSql(
(parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != "" ) , (parametros.get("ORIGEN_ID") != null && parametros.get("ORIGEN_ID") != ""),
(parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != "" ) , (parametros.get("DESTINO_ID") != null && parametros.get("DESTINO_ID") != ""),
(parametros.get("CORRIDA_ID") != null && parametros.get("CORRIDA_ID") != "" ) , (parametros.get("CORRIDA_ID") != null && parametros.get("CORRIDA_ID") != ""),
(parametros.get("CLASESERVICIO_ID") != null && parametros.get("CLASESERVICIO_ID") != "" ) (parametros.get("CLASESERVICIO_ID") != null && parametros.get("CLASESERVICIO_ID") != "")
); );
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
stmt.setTimestamp("DATA_INICIAL", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_INICIAL", new Timestamp(((Date) parametros.get("DATA_INICIAL")).getTime())); stmt.setTimestamp("DATA_FINAL", new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
stmt.setTimestamp("DATA_FINAL", new Timestamp(((Date) parametros.get("DATA_FINAL")).getTime()));
if (parametros.get("CORRIDA_ID") != null) if (parametros.get("CORRIDA_ID") != null)
stmt.setString("CORRIDA_ID", (String)parametros.get("CORRIDA_ID")); stmt.setString("CORRIDA_ID", (String) parametros.get("CORRIDA_ID"));
if (parametros.get("ORIGEN_ID") != null) if (parametros.get("ORIGEN_ID") != null)
stmt.setInt("ORIGEN_ID", (Integer) parametros.get("ORIGEN_ID")); stmt.setInt("ORIGEN_ID", (Integer) parametros.get("ORIGEN_ID"));
@ -50,10 +50,10 @@ public class RelatorioReceitaServico extends Relatorio {
else else
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER); stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals("") )) if (parametros.get("CLASESERVICIO_ID") != null && (!parametros.get("CLASESERVICIO_ID").equals("")))
stmt.setInt("CLASESERVICIO_ID", (Short) parametros.get("CLASESERVICIO_ID")); stmt.setInt("CLASESERVICIO_ID", (Short) parametros.get("CLASESERVICIO_ID"));
// else // else
// stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER); // stmt.setNull("CLASESERVICIO_ID", java.sql.Types.INTEGER);
ResultSet rset = stmt.executeQuery(); ResultSet rset = stmt.executeQuery();
@ -89,11 +89,9 @@ public class RelatorioReceitaServico extends Relatorio {
protected void processaParametros() throws Exception { protected void processaParametros() throws Exception {
} }
private String getSql(boolean origemSelected , boolean destinoSelected, boolean servicoSelected, boolean claseServicioSelected ) { private String getSql(boolean origemSelected, boolean destinoSelected, boolean servicoSelected, boolean claseServicioSelected) {
StringBuilder sql = new StringBuilder(); StringBuilder sql = new StringBuilder();
sql.append(" select cj.feccorrida as data, "); sql.append(" select cj.feccorrida as data, ");
sql.append(" cj.corrida_id as servico, "); sql.append(" cj.corrida_id as servico, ");
sql.append(" mar.descmarca as empresa , "); sql.append(" mar.descmarca as empresa , ");
@ -121,19 +119,23 @@ public class RelatorioReceitaServico extends Relatorio {
sql.append(" where cj.feccorrida >= :DATA_INICIAL "); sql.append(" where cj.feccorrida >= :DATA_INICIAL ");
sql.append(" and cj.feccorrida <= :DATA_FINAL "); sql.append(" and cj.feccorrida <= :DATA_FINAL ");
if(servicoSelected){ sql.append(" and cj.corrida_id IN (:CORRIDA_ID) "); } if (servicoSelected) {
if(origemSelected){ sql.append(" and pOrig.PARADA_ID IN (:ORIGEN_ID) "); } sql.append(" and cj.corrida_id IN (:CORRIDA_ID) ");
if(destinoSelected){ sql.append(" and pDest.PARADA_ID IN (:DESTINO_ID) "); } }
if (origemSelected) {
sql.append(" and pOrig.PARADA_ID IN (:ORIGEN_ID) ");
}
if (destinoSelected) {
sql.append(" and pDest.PARADA_ID IN (:DESTINO_ID) ");
}
sql.append(" and mar.EMPRESA_ID = :EMPRESA_ID "); sql.append(" and mar.EMPRESA_ID = :EMPRESA_ID ");
if(claseServicioSelected){ sql.append(" and cj.CLASESERVICIO_ID = :CLASESERVICIO_ID "); } if (claseServicioSelected) {
sql.append(" and cj.CLASESERVICIO_ID = :CLASESERVICIO_ID ");
}
sql.append(" order by cj.feccorrida, cj.corrida_id "); sql.append(" order by cj.feccorrida, cj.corrida_id ");
return sql.toString(); return sql.toString();
} }
} }

View File

@ -0,0 +1,12 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,12 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,192 @@
<?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="RelatorioDiferencasTransferencias" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="704929c0-c799-46a5-9ca8-3e21a3f3f8b3">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<field name="classe_original" class="java.lang.String"/>
<field name="total_pago_original" class="java.math.BigDecimal"/>
<field name="classe_novo" class="java.lang.String"/>
<field name="diferença_preço" class="java.math.BigDecimal"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="106" splitType="Stretch">
<textField>
<reportElement uuid="610c970c-2f65-4cfb-b455-e840b4bd647c" x="567" y="16" width="122" height="25"/>
<textElement textAlignment="Right">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="917f4346-87f6-4040-b8ec-781e8e14be30" x="1" y="99" width="802" height="5"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="71b7f03d-60a4-4dc8-a056-087a9f0aec4d" mode="Transparent" x="481" y="58" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="9629258c-431b-4142-b21a-7b7e7524cda6" mode="Transparent" x="704" y="41" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="68bbfdc2-bb16-40bc-898c-0bb20d8394be" x="1" y="76" width="802" height="5"/>
</line>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="17df9fe4-c482-4448-a4ca-5ab3dccc1ba7" mode="Transparent" x="704" y="14" width="89" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="99b96f7a-fa53-44a8-beda-294bd0098d81" x="1" y="81" width="802" height="14"/>
<textElement verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fb13ecbc-e8ae-4663-9c10-fc9e3df409c6" mode="Transparent" x="14" y="16" width="382" height="35" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e0048527-18d6-42a9-8bfb-abc5e8b69cd2" mode="Transparent" x="584" y="41" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="0c0e2883-7d56-4c18-99d5-ff57476f6cc6" mode="Transparent" x="14" y="51" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" 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="" isBlankWhenNull="false">
<reportElement uuid="646ef8b5-8aa8-4dab-995c-3d072f56e647" mode="Transparent" x="144" y="51" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="6f9ba5a7-c5b1-4382-a3a4-de071a202549" mode="Transparent" x="154" y="51" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" 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="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="7825d024-4acb-48ef-ac31-17f62bf76d2e" mode="Transparent" x="86" y="51" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="55" splitType="Stretch">
<staticText>
<reportElement uuid="bc37af37-9b2d-46dc-969d-800271b9247b" x="642" y="35" width="129" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[VALOR LANÇADO]]></text>
</staticText>
<staticText>
<reportElement uuid="05f6b0c4-65f5-4413-814f-5f3f5171bb89" x="14" y="35" width="112" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[CLASSE ORIGINAL ]]></text>
</staticText>
<staticText>
<reportElement uuid="8b901287-2a27-4555-a9ec-fc89e5b29701" x="343" y="35" width="138" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[CLASSE TRANSFERIDA]]></text>
</staticText>
<staticText>
<reportElement uuid="127050d6-089c-4486-bffc-0dd6603debd4" x="130" y="35" width="112" height="20"/>
<textElement>
<font size="12"/>
</textElement>
<text><![CDATA[TOTAL ORIGINAL ]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="24" splitType="Stretch">
<textField pattern="¤ #,##0.00">
<reportElement uuid="63e7f691-3da7-403b-b3c0-428204cd300b" x="642" y="0" width="129" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{diferença_preço}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="f328e3a4-f1d7-46f6-9d02-9bfd4ad1d512" x="343" y="0" width="138" height="20"/>
<textElement textAlignment="Left">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{classe_novo}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00">
<reportElement uuid="e5de48ac-118a-416c-a88e-b42b7dc64e40" x="130" y="0" width="112" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{total_pago_original}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="6f0f48bd-579d-4016-938f-75034c33ccf4" x="14" y="0" width="112" height="20"/>
<textElement textAlignment="Left">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{classe_original}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
<noData>
<band height="50">
<textField>
<reportElement uuid="b6953c35-eeee-4652-907d-2d9e415750dd" x="14" y="14" width="530" height="26"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021"> <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="RelatorioReceitaServico" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.0"/> <property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="10"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/> <parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/> <parameter name="DATA_INICIAL" class="java.util.Date"/>
@ -44,7 +44,7 @@
<pageHeader> <pageHeader>
<band height="82" splitType="Stretch"> <band height="82" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="11" y="0" width="257" height="35" forecolor="#000000" backcolor="#FFFFFF" uuid="136a5066-d141-4362-af36-0780f0d16542"/> <reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="11" y="0" width="257" height="35" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -52,7 +52,7 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="11" y="35" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="3dca1764-758d-4e1c-80c0-85cc02e47813"/> <reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="11" y="35" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -60,7 +60,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="134" y="35" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="8948c0fc-e878-45e2-8505-7934add98ab9"/> <reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="134" y="35" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -68,7 +68,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="83" y="35" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587"/> <reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="83" y="35" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -76,7 +76,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement mode="Transparent" x="144" y="35" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="64632058-9466-479c-ae28-0a11c9ed2c7f"/> <reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="144" y="35" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -84,14 +84,14 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="554" y="0" width="122" height="25" uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192"/> <reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="554" y="0" width="122" height="25"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="691" y="0" width="89" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9"/> <reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="691" y="0" width="89" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -99,10 +99,10 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement x="0" y="54" width="802" height="5" uuid="bbf33a72-515f-42fc-8c79-e859aebca31d"/> <reportElement uuid="bbf33a72-515f-42fc-8c79-e859aebca31d" x="0" y="54" width="802" height="5"/>
</line> </line>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="571" y="27" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4"/> <reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="571" y="27" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -110,7 +110,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField> </textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="691" y="27" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="314e312c-8f24-42de-8354-3c1f7241a985"/> <reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="691" y="27" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -118,7 +118,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="468" y="42" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="4e030613-9cee-443e-9eaa-b19fa3090976"/> <reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="468" y="42" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -126,10 +126,10 @@
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement x="0" y="77" width="802" height="5" uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf"/> <reportElement uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf" x="0" y="77" width="802" height="5"/>
</line> </line>
<textField> <textField>
<reportElement x="0" y="59" width="802" height="14" uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda"/> <reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="802" height="14"/>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
@ -140,224 +140,224 @@
<columnHeader> <columnHeader>
<band height="61" splitType="Stretch"> <band height="61" splitType="Stretch">
<staticText> <staticText>
<reportElement x="0" y="33" width="46" height="28" uuid="5f9a0ea4-15d3-4bad-953a-0dc6f3f6ef51"/> <reportElement uuid="5f9a0ea4-15d3-4bad-953a-0dc6f3f6ef51" x="0" y="33" width="46" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Data]]></text> <text><![CDATA[Data]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="46" y="33" width="37" height="28" uuid="fa0a31b5-6a94-4b0c-b730-4b6ef8f2304c"/> <reportElement uuid="fa0a31b5-6a94-4b0c-b730-4b6ef8f2304c" x="46" y="33" width="37" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Serviço]]></text> <text><![CDATA[Serviço]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="83" y="33" width="83" height="28" uuid="a797bc17-1810-47b7-a3e1-510cc6403454"/> <reportElement uuid="a797bc17-1810-47b7-a3e1-510cc6403454" x="83" y="33" width="83" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8" isBold="false"/> <font size="8" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[Empresa]]></text> <text><![CDATA[Empresa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="169" y="33" width="30" height="28" uuid="765ebd99-b6de-4c8e-910d-b3e5bf9db573"/> <reportElement uuid="765ebd99-b6de-4c8e-910d-b3e5bf9db573" x="169" y="33" width="30" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Origem]]></text> <text><![CDATA[Origem]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="199" y="33" width="30" height="28" uuid="2f3b9ac0-165c-4718-96c8-a37f005b5b82"/> <reportElement uuid="2f3b9ac0-165c-4718-96c8-a37f005b5b82" x="199" y="33" width="30" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Destino]]></text> <text><![CDATA[Destino]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="229" y="33" width="68" height="28" uuid="9eb87b55-da02-478a-b21d-c7b727dbaafe"/> <reportElement uuid="9eb87b55-da02-478a-b21d-c7b727dbaafe" x="229" y="33" width="68" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Classe]]></text> <text><![CDATA[Classe]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="297" y="33" width="33" height="28" uuid="fe1e6ace-6d95-4089-8f28-d926554bf65d"/> <reportElement uuid="fe1e6ace-6d95-4089-8f28-d926554bf65d" x="297" y="33" width="33" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Tarifa]]></text> <text><![CDATA[Tarifa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="330" y="33" width="33" height="28" uuid="52d26417-4766-44b3-aaa7-b468c124feda"/> <reportElement uuid="52d26417-4766-44b3-aaa7-b468c124feda" x="330" y="33" width="33" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[TUT]]></text> <text><![CDATA[TUT]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="363" y="33" width="33" height="28" uuid="3f6afcbf-9dfe-4f1b-b937-45dbc9ace8a2"/> <reportElement uuid="3f6afcbf-9dfe-4f1b-b937-45dbc9ace8a2" x="363" y="33" width="33" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8" isStrikeThrough="false"/> <font size="8" isStrikeThrough="false"/>
</textElement> </textElement>
<text><![CDATA[Pedágio]]></text> <text><![CDATA[Pedágio]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="396" y="33" width="33" height="28" uuid="182474d6-668a-4847-9db6-ba65c41119aa"/> <reportElement uuid="182474d6-668a-4847-9db6-ba65c41119aa" x="396" y="33" width="33" height="28"/>
<textElement textAlignment="Left"> <textElement textAlignment="Left">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Total]]></text> <text><![CDATA[Total]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="432" y="33" width="53" height="28" uuid="a7b14fa8-3b89-4f4d-b265-63eb3d930b04"/> <reportElement uuid="a7b14fa8-3b89-4f4d-b265-63eb3d930b04" x="432" y="33" width="53" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Tipo]]></text> <text><![CDATA[Tipo]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="484" y="33" width="70" height="28" uuid="10f27b7d-5cc9-423c-a196-330c78cdb69e"/> <reportElement uuid="10f27b7d-5cc9-423c-a196-330c78cdb69e" x="484" y="33" width="70" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Agência]]></text> <text><![CDATA[Agência]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="554" y="33" width="85" height="28" uuid="f2097833-6bd3-4523-b457-44ed6cc4abd6"/> <reportElement uuid="f2097833-6bd3-4523-b457-44ed6cc4abd6" x="554" y="33" width="85" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[DataHoraCompra ]]></text> <text><![CDATA[DataHoraCompra ]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="639" y="33" width="87" height="28" uuid="44b2bf55-871a-4eaa-97d4-74bee2a89769"/> <reportElement uuid="44b2bf55-871a-4eaa-97d4-74bee2a89769" x="639" y="33" width="87" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Passageiro]]></text> <text><![CDATA[Passageiro]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="726" y="33" width="39" height="28" uuid="2abbc372-a813-4da6-8ce1-e5901a15b430"/> <reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="726" y="33" width="39" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Nr bilhete ]]></text> <text><![CDATA[Nr bilhete ]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="765" y="33" width="37" height="28" uuid="2bd47a58-e591-4b32-bdd4-fa43ece0c581"/> <reportElement uuid="2bd47a58-e591-4b32-bdd4-fa43ece0c581" x="765" y="33" width="37" height="28"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<text><![CDATA[Status]]></text> <text><![CDATA[Status]]></text>
</staticText> </staticText>
<line> <line>
<reportElement x="0" y="56" width="802" height="5" uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb"/> <reportElement uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb" x="0" y="56" width="802" height="5"/>
</line> </line>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="23" splitType="Stretch"> <band height="23" splitType="Stretch">
<textField> <textField>
<reportElement x="46" y="0" width="37" height="20" uuid="b15ada19-a1c0-4feb-9734-3a6c624bbfe6"/> <reportElement uuid="b15ada19-a1c0-4feb-9734-3a6c624bbfe6" x="46" y="0" width="37" height="20"/>
<textElement> <textElement>
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="83" y="0" width="83" height="20" uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0"/> <reportElement uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0" x="83" y="0" width="83" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="169" y="0" width="30" height="20" uuid="fd8ae360-3ae2-4adc-8c3a-fcfb19551d22"/> <reportElement uuid="fd8ae360-3ae2-4adc-8c3a-fcfb19551d22" x="169" y="0" width="30" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="199" y="0" width="30" height="20" uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3"/> <reportElement uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3" x="199" y="0" width="30" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="229" y="0" width="68" height="20" uuid="7265d085-4188-44a0-8e04-e5efdb0d5ccf"/> <reportElement uuid="7265d085-4188-44a0-8e04-e5efdb0d5ccf" x="229" y="0" width="68" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="297" y="0" width="33" height="20" uuid="6430daa4-d318-4f4a-87ff-2ea4de9d492e"/> <reportElement uuid="6430daa4-d318-4f4a-87ff-2ea4de9d492e" x="297" y="0" width="33" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="330" y="0" width="33" height="20" uuid="49faea3b-2ce4-469a-b07c-3b4869aaa9e5"/> <reportElement uuid="49faea3b-2ce4-469a-b07c-3b4869aaa9e5" x="330" y="0" width="33" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="363" y="0" width="33" height="20" uuid="16461919-04ea-48df-af5c-7f0d7dcb7fab"/> <reportElement uuid="16461919-04ea-48df-af5c-7f0d7dcb7fab" x="363" y="0" width="33" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="396" y="0" width="33" height="20" uuid="97be07ba-bdb1-4bf2-91af-554b580ee3fa"/> <reportElement uuid="97be07ba-bdb1-4bf2-91af-554b580ee3fa" x="396" y="0" width="33" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="432" y="0" width="53" height="20" uuid="8cf0c102-4e42-4f6d-8922-8edc808fdc0f"/> <reportElement uuid="8cf0c102-4e42-4f6d-8922-8edc808fdc0f" x="432" y="0" width="53" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="484" y="0" width="70" height="20" uuid="0ecedfc0-febb-40e0-b5ca-168b5a296646"/> <reportElement uuid="0ecedfc0-febb-40e0-b5ca-168b5a296646" x="484" y="0" width="70" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="554" y="0" width="85" height="20" uuid="8229beec-daa6-4357-a4c9-f475d7a873aa"/> <reportElement uuid="8229beec-daa6-4357-a4c9-f475d7a873aa" x="554" y="0" width="85" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format($F{dataHoraCompra})]]></textFieldExpression> <textFieldExpression><![CDATA[new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format($F{dataHoraCompra})]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="639" y="0" width="87" height="20" uuid="8e67c346-5c72-4a92-beee-9dd9ad647bb1"/> <reportElement uuid="8e67c346-5c72-4a92-beee-9dd9ad647bb1" x="639" y="0" width="87" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{passageiro}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement x="726" y="0" width="39" height="20" uuid="9a639996-146c-42c9-a8fd-f947a59310f4"/> <reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="726" y="0" width="39" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{nrBilhete}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{nrBilhete}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy"> <textField pattern="dd/MM/yyyy">
<reportElement x="0" y="0" width="46" height="20" uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa"/> <reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="0" y="0" width="46" height="20"/>
<textElement> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
@ -368,41 +368,44 @@
<summary> <summary>
<band height="100" splitType="Stretch"> <band height="100" splitType="Stretch">
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="144" y="78" width="178" height="20" uuid="4bbf9db6-cc01-4cc0-98fa-7522eb890d4c"/> <reportElement uuid="4bbf9db6-cc01-4cc0-98fa-7522eb890d4c" x="144" y="78" width="178" height="20"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{totalizador}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{totalizador}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="144" y="18" width="178" height="20" uuid="381ba8fc-878f-4419-8c93-758a607e9ba3"/> <reportElement uuid="381ba8fc-878f-4419-8c93-758a607e9ba3" x="144" y="18" width="178" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_TARIFA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="144" y="38" width="178" height="20" uuid="a36d2d34-3721-4796-93ec-3cf838aebf85"/> <reportElement uuid="a36d2d34-3721-4796-93ec-3cf838aebf85" x="144" y="38" width="178" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$V{TOTAL_TUT}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_TUT}]]></textFieldExpression>
</textField> </textField>
<textField pattern="¤ #,##0.00"> <textField pattern="¤ #,##0.00">
<reportElement x="144" y="58" width="178" height="20" uuid="219227d5-1615-4876-a810-c6393957ccd0"/> <reportElement uuid="219227d5-1615-4876-a810-c6393957ccd0" x="144" y="58" width="178" height="20"/>
<textElement/>
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO}]]></textFieldExpression>
</textField> </textField>
<staticText> <staticText>
<reportElement x="15" y="18" width="100" height="20" uuid="d4600e8d-457a-47cf-aa81-84b1231728fe"/> <reportElement uuid="d4600e8d-457a-47cf-aa81-84b1231728fe" x="15" y="18" width="100" height="20"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Tarifa]]></text> <text><![CDATA[Total Tarifa]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="15" y="38" width="100" height="20" uuid="5b0f4977-d53a-4fcb-a16f-88c1edd8493b"/> <reportElement uuid="5b0f4977-d53a-4fcb-a16f-88c1edd8493b" x="15" y="38" width="100" height="20"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Tut]]></text> <text><![CDATA[Total Tut]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="15" y="58" width="100" height="20" uuid="f6849b27-f317-458b-b4f3-8d96a150962e"/> <reportElement uuid="f6849b27-f317-458b-b4f3-8d96a150962e" x="15" y="58" width="100" height="20"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Pedágio]]></text> <text><![CDATA[Total Pedágio]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="15" y="79" width="100" height="20" uuid="9f5fda19-bdf2-4600-ba05-aa2ded9c6a89"/> <reportElement uuid="9f5fda19-bdf2-4600-ba05-aa2ded9c6a89" x="15" y="79" width="100" height="20"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<text><![CDATA[Total Receita]]></text> <text><![CDATA[Total Receita]]></text>
</staticText> </staticText>
@ -411,7 +414,7 @@
<noData> <noData>
<band height="50"> <band height="50">
<textField> <textField>
<reportElement x="46" y="24" width="530" height="26" uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83"/> <reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="46" y="24" width="530" height="26"/>
<textElement markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>

View File

@ -0,0 +1,120 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.Calendar;
import java.util.HashMap;
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.zul.Comboitem;
import org.zkoss.zul.ComboitemRenderer;
import org.zkoss.zul.Datebox;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDiferencasTransferencias;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaServico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@Controller("relatorioDiferencasTransferenciasController")
@Scope("prototype")
public class RelatorioDiferencasTransferenciasController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private Datebox datInicial;
private Datebox datFinal;
@Autowired
private DataSource dataSourceRead;
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;
}
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
/**
* @throws Exception
*
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioDiferencasTransferenciasController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
} else
{
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
filtro.append("Início período: ");
Calendar cal = Calendar.getInstance();
cal.setTime(datInicial.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
filtro.append("Fim período: ");
cal.setTime(datFinal.getValue());
filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR) + "; ");
parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue());
parametros.put("FILTROS", filtro.toString());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioDiferencasTransferenciasController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
relatorio = new RelatorioDiferencasTransferencias(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioDiferencasTransferenciasController.window.title"), args, MODAL);
}
}
}

View File

@ -34,11 +34,10 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
@Controller("relatorioReceitaServicoController") @Controller("relatorioReceitaServicoController")
@Scope("prototype") @Scope("prototype")
public class RelatorioReceitaServicoController extends MyGenericForwardComposer { public class RelatorioReceitaServicoController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Datebox datInicial; private Datebox datInicial;
private Datebox datFinal; private Datebox datFinal;
private MyComboboxParada cmbParadaOrigem; private MyComboboxParada cmbParadaOrigem;
@ -85,7 +84,6 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
} }
}); });
} }
public void onSelect$cmbParadaOrigemCve(Event ev) { public void onSelect$cmbParadaOrigemCve(Event ev) {
@ -111,7 +109,6 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
} }
} }
/** /**
* @throws Exception * @throws Exception
* *
@ -119,7 +116,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
@SuppressWarnings({ "rawtypes", "unchecked" }) @SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception { private void executarRelatorio() throws Exception {
if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0 ) { if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0) {
try { try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"), Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioReceitaServicoController.window.title"), Labels.getLabel("relatorioReceitaServicoController.window.title"),
@ -127,7 +124,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
}else } else
{ {
Relatorio relatorio; Relatorio relatorio;
@ -135,30 +132,28 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
StringBuilder filtro = new StringBuilder(); StringBuilder filtro = new StringBuilder();
if(null != txtCorridaId.getValue() && !("".equals(txtCorridaId.getValue()))) if (null != txtCorridaId.getValue() && !("".equals(txtCorridaId.getValue())))
{ {
filtro.append("Serviço: "); filtro.append("Serviço: ");
filtro.append(txtCorridaId.getValue()+"; "); filtro.append(txtCorridaId.getValue() + "; ");
parametros.put("CORRIDA_ID", txtCorridaId.getValue()); parametros.put("CORRIDA_ID", txtCorridaId.getValue());
}else{ } else {
filtro.append("Serviço: TODOS; "); filtro.append("Serviço: TODOS; ");
parametros.put("CORRIDA_ID", null); parametros.put("CORRIDA_ID", null);
} }
filtro.append("Início período: "); filtro.append("Início período: ");
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
cal.setTime(datInicial.getValue()); cal.setTime(datInicial.getValue());
filtro.append(cal.get(Calendar.DATE)+"/"); filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH)+1)+"/"); filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR)+"; "); filtro.append(cal.get(Calendar.YEAR) + "; ");
filtro.append("Fim período: "); filtro.append("Fim período: ");
cal.setTime(datFinal.getValue()); cal.setTime(datFinal.getValue());
filtro.append(cal.get(Calendar.DATE)+"/"); filtro.append(cal.get(Calendar.DATE) + "/");
filtro.append((cal.get(Calendar.MONTH)+1)+"/"); filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
filtro.append(cal.get(Calendar.YEAR)+"; "); filtro.append(cal.get(Calendar.YEAR) + "; ");
parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue()); parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue()); parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue());
@ -166,13 +161,14 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem(); Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
if (cbiOrigem != null) { if (cbiOrigem != null) {
Parada origem = (Parada) cbiOrigem.getValue(); Parada origem = (Parada) cbiOrigem.getValue();
if(origem.getParadaId() != -1){ if (origem.getParadaId() != -1) {
parametros.put("ORIGEN_ID", origem.getParadaId()); parametros.put("ORIGEN_ID", origem.getParadaId());
filtro.append("Origem: "+origem.getCveparada()+"; "); filtro.append("Origem: " + origem.getCveparada() + "; ");
} }
else{parametros.put("ORIGEN_ID", null); else {
parametros.put("ORIGEN_ID", null);
filtro.append("Origem: Todas; "); filtro.append("Origem: Todas; ");
} }
} else { } else {
parametros.put("ORIGEN_ID", null); parametros.put("ORIGEN_ID", null);
filtro.append("Origem: Todas; "); filtro.append("Origem: Todas; ");
@ -181,12 +177,14 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem(); Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
if (cbiDestino != null) { if (cbiDestino != null) {
Parada destino = (Parada) cbiDestino.getValue(); Parada destino = (Parada) cbiDestino.getValue();
if(destino.getParadaId() != -1) if (destino.getParadaId() != -1)
{ parametros.put("DESTINO_ID", destino.getParadaId()); {
filtro.append("Destino: "+destino.getCveparada()+"; "); parametros.put("DESTINO_ID", destino.getParadaId());
}else{parametros.put("DESTINO_ID", null); filtro.append("Destino: " + destino.getCveparada() + "; ");
filtro.append("Destino: Todos; "); } else {
} parametros.put("DESTINO_ID", null);
filtro.append("Destino: Todos; ");
}
} else { } else {
parametros.put("DESTINO_ID", null); parametros.put("DESTINO_ID", null);
@ -197,7 +195,7 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
if (itemEmpresa != null) { if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue(); Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId()); parametros.put("EMPRESA_ID", empresa.getEmpresaId());
filtro.append("Empresa: "+empresa.getNombempresa()+"; "); filtro.append("Empresa: " + empresa.getNombempresa() + "; ");
} else { } else {
parametros.put("EMPRESA_ID", ""); parametros.put("EMPRESA_ID", "");
} }
@ -205,12 +203,14 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
Comboitem itemClasse = cmbClase.getSelectedItem(); Comboitem itemClasse = cmbClase.getSelectedItem();
if (itemClasse != null) { if (itemClasse != null) {
ClaseServicio clase = (ClaseServicio) itemClasse.getValue(); ClaseServicio clase = (ClaseServicio) itemClasse.getValue();
if(clase.getClaseservicioId() == -1 ){ if (clase.getClaseservicioId() == -1) {
parametros.put("CLASESERVICIO_ID", ""); parametros.put("CLASESERVICIO_ID", "");
filtro.append("Classe: "+clase.getDescclase()+"; "); filtro.append("Classe: " + clase.getDescclase() + "; ");
} }
else{ parametros.put("CLASESERVICIO_ID", clase.getClaseservicioId()); } else {
filtro.append("Classe: "+clase.getDescclase()+"; "); parametros.put("CLASESERVICIO_ID", clase.getClaseservicioId());
}
filtro.append("Classe: " + clase.getDescclase() + "; ");
} else { } else {
parametros.put("CLASESERVICIO_ID", ""); parametros.put("CLASESERVICIO_ID", "");
filtro.append("Classe: TODAS; "); filtro.append("Classe: TODAS; ");
@ -223,11 +223,11 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
relatorio = new RelatorioReceitaServico(parametros, dataSourceRead.getConnection()); relatorio = new RelatorioReceitaServico(parametros, dataSourceRead.getConnection());
Map args = new HashMap(); Map args = new HashMap();
args.put("relatorio", relatorio); args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", openWindow("/component/reportView.zul",
Labels.getLabel("relatorioReceitaServicoController.window.title"), args, MODAL); Labels.getLabel("relatorioReceitaServicoController.window.title"), args, MODAL);
} }
} }
@ -339,5 +339,4 @@ public class RelatorioReceitaServicoController extends MyGenericForwardComposer
this.txtCorridaId = txtCorridaId; this.txtCorridaId = txtCorridaId;
} }
} }

View File

@ -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 ItemMenuRelatorioDiferencasTransferencias extends DefaultItemMenuSistema {
public ItemMenuRelatorioDiferencasTransferencias() {
super("indexController.mniRelatorioDiferencasTransferencias.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODIFERENCASTRANSFERENCIAS";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioDiferencasTransferencias.zul",
Labels.getLabel("relatorioDiferencasTransferenciasController.window.title"), getArgs(), desktop);
}
}

View File

@ -246,6 +246,7 @@ indexController.mniPrecoApanhe.label = Preço Apanhe
indexController.mniRelatorioVendasPacotesResumido.label = Ventas de Paquetes - Resumido indexController.mniRelatorioVendasPacotesResumido.label = Ventas de Paquetes - Resumido
indexController.mniRelatorioVendasPacotesDetalhado.label = Ventas de Paquetes - Detalhado indexController.mniRelatorioVendasPacotesDetalhado.label = Ventas de Paquetes - Detalhado
indexController.mniRelatorioVendasPacotesBoletos.label = Ventas de Pacotes - Boletos indexController.mniRelatorioVendasPacotesBoletos.label = Ventas de Pacotes - Boletos
indexController.mniRelatorioDiferencasTransferencias.label = Relatório de Diferenças em Transferências
indexController.mniSubMenuClientePacote.label=Pacote indexController.mniSubMenuClientePacote.label=Pacote
indexController.mniAlterarEnderecoApanhe.label=Alterar Endereço Apanhe indexController.mniAlterarEnderecoApanhe.label=Alterar Endereço Apanhe
@ -446,6 +447,11 @@ relatorioReceitaServicoController.lbEmpresa.value = Empresa
relatorioReceitaServicoController.lbClase.value = Clase relatorioReceitaServicoController.lbClase.value = Clase
relatorioReceitaServicoController.lbServico.value = N. Serviço relatorioReceitaServicoController.lbServico.value = N. Serviço
#Relatorio de Diferencas de Transferencias
relatorioDiferencasTransferenciasController.window.title = Relatório de Diferenças em Transferências
relatorioDiferencasTransferenciasController.lbDePeriodoTransferencia.value = Período de Transferência
relatorioDiferencasTransferenciasController.lbAtePeriodoTransferencia.value = até
# Relatorio Sisdap # Relatorio Sisdap
relatorioSisdapController.window.title=Reporte SISDAP relatorioSisdapController.window.title=Reporte SISDAP
relatorioSisdapController.lbDatInicio.value=Fecha inicio relatorioSisdapController.lbDatInicio.value=Fecha inicio

View File

@ -251,6 +251,7 @@ indexController.mniPrecoApanhe.label = Preço Apanhe
indexController.mniRelatorioVendasPacotesResumido.label = Vendas de Pacotes - Resumido indexController.mniRelatorioVendasPacotesResumido.label = Vendas de Pacotes - Resumido
indexController.mniRelatorioVendasPacotesDetalhado.label = Vendas de Pacotes - Detalhado indexController.mniRelatorioVendasPacotesDetalhado.label = Vendas de Pacotes - Detalhado
indexController.mniRelatorioVendasPacotesBoletos.label = Vendas de Pacotes - Boletos indexController.mniRelatorioVendasPacotesBoletos.label = Vendas de Pacotes - Boletos
indexController.mniRelatorioDiferencasTransferencias.label = Relatório de Diferenças em Transferências
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Relatório Impressão Fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Relatório Impressão Fiscal
@ -483,6 +484,11 @@ relatorioReceitaServicoController.lbEmpresa.value = Empresa
relatorioReceitaServicoController.lbClase.value = Classe relatorioReceitaServicoController.lbClase.value = Classe
relatorioReceitaServicoController.lbServico.value = N. Serviço relatorioReceitaServicoController.lbServico.value = N. Serviço
#Relatorio de Diferencas de Transferencias
relatorioDiferencasTransferenciasController.window.title = Relatório de Diferenças em Transferências
relatorioDiferencasTransferenciasController.lbDePeriodoTransferencia.value = Período de Transferência
relatorioDiferencasTransferenciasController.lbAtePeriodoTransferencia.value = até
# Relatorio Sisdap # Relatorio Sisdap
relatorioSisdapController.window.title=Relatório SISDAP relatorioSisdapController.window.title=Relatório SISDAP
relatorioSisdapController.lbDatInicio.value=Data Inicio relatorioSisdapController.lbDatInicio.value=Data Inicio

View File

@ -0,0 +1,40 @@
<?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="winFiltroRelatorioDiferencasTransferencias"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioDiferencasTransferencias"
apply="${relatorioDiferencasTransferenciasController}" contentStyle="overflow:auto"
width="800px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="15%" />
<column width="35%" />
<column width="15%" />
<column width="35%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioDiferencasTransferenciasController.lbDePeriodoTransferencia.value')}" />
<datebox id="datInicial" format="dd/MM/yyyy"
mold="rounded" width="95%" lenient="false" constraint="no empty, no future"
maxlength="10" />
<label
value="${c:l('relatorioDiferencasTransferenciasController.lbAtePeriodoTransferencia.value')}" />
<datebox id="datFinal" format="dd/MM/yyyy"
mold="rounded" width="95%" lenient="false" constraint="no empty, no future"
maxlength="10" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>