rodrigo 2013-08-21 21:56:02 +00:00
parent 04d2b97e0c
commit beb0502b8e
5 changed files with 130 additions and 82 deletions

View File

@ -99,8 +99,8 @@ public class RelatorioTaxasLinha extends Relatorio {
else
throw e;
}
}
return null;
}
});
@ -142,13 +142,16 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append(" EM.NOMBEMPRESA, ");
sql.append(" CJ.PUNTOVENTA_ID, ");
sql.append(" PV.NOMBPUNTOVENTA, ");
sql.append(" SUM(CASE WHEN CJ.IMPORTETAXAEMBARQUE>0 THEN 1 ELSE 0 END) EMBARQUE_VENDIDOS, ");
sql.append(" SUM(CASE WHEN CJ.IMPORTEPEDAGIO>0 THEN 1 ELSE 0 END) PEDAGIO_VENDIDOS, ");
sql.append(" SUM(CASE WHEN CJ.IMPORTESEGURO>0 THEN 1 ELSE 0 END) SEGURO_VENDIDOS, ");
sql.append(" CASE ");
sql.append(" WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN ");
sql.append(" 'S' ");
sql.append(" ELSE ");
sql.append(" 'N' ");
sql.append(" END INTERESTADUAL, ");
sql.append(" COUNT(1) TOTAL_VENDIDOS, ");
sql.append(" SUM(CJ.IMPORTETAXAEMBARQUE) TOTAL_EMBARQUE, ");
sql.append(" SUM(CJ.IMPORTEPEDAGIO) TOTAL_PEDAGIO, ");
sql.append(" SUM(CJ.IMPORTESEGURO) TOTAL_SEGURO ");
@ -162,6 +165,9 @@ public class RelatorioTaxasLinha extends Relatorio {
sql.append(" CIUDAD CD, ");
sql.append(" EMPRESA EM ");
sql.append(" WHERE CR.RUTA_ID = RT.RUTA_ID ");
sql.append(" AND (CJ.IMPORTETAXAEMBARQUE>0 OR CJ.IMPORTEPEDAGIO>0 OR CJ.IMPORTESEGURO>0) ");
sql.append(" AND CJ.CORRIDA_ID = CR.CORRIDA_ID ");
sql.append(" AND CJ.FECCORRIDA = CR.FECCORRIDA ");
sql.append(" AND PO.PARADA_ID = CJ.ORIGEN_ID ");

View File

@ -81,14 +81,12 @@ public class CalculoImposto {
cacheConfig.put("ICMS", rs.getBigDecimal("ICMS"));
cacheConfig.put("PORCREDBASEICMS", rs.getBigDecimal("PORCREDBASEICMS"));
}
String estado = rs.getString("NOMBESTADO");
String empresa = rs.getString("NOMBEMPRESA");
if (!isBuscouConfig)
throw new ExceptionConfiguracao("Não foi possivel obter a configuração de imposto para o estado: " + estado + " empresa: " + empresa);
}
;
@ -102,8 +100,7 @@ public class CalculoImposto {
mapCacheConfigImposto.put(puntoVentaId.toString(), cacheConfig);
}
else
} else
cacheConfig = mapCacheConfigImposto.get(puntoVentaId.toString());
return cacheConfig;
@ -139,8 +136,6 @@ public class CalculoImposto {
baseCalculo = indBaseEmbarque && embarque != null ? baseCalculo.add(embarque) : baseCalculo;
baseCalculo = indBasePedagio && pedagio != null ? baseCalculo.add(pedagio) : baseCalculo;
baseCalculo = indBaseBagagem && bagagem != null ? baseCalculo.add(bagagem) : baseCalculo;
// Redução da base de calculo
if (porcRedBaseIcms != null && porcRedBaseIcms.equals(BigDecimal.ZERO))
@ -154,14 +149,10 @@ public class CalculoImposto {
if (porcRedEstadualMunicipal != null && porcRedEstadualMunicipal.equals(BigDecimal.ZERO))
valorIcms = valorIcms.subtract(porcRedEstadualMunicipal.divide(BigDecimal.valueOf(100)).multiply(valorIcms));
return valorIcms;
}
public static BigDecimal getValorImposto(Connection conexao, Integer puntoVentaId, String indInterestadual, BigDecimal tarifa, BigDecimal seguro, BigDecimal embarque, BigDecimal pedagio) throws Exception {
HashMap<String, Object> configImposto = new HashMap<String, Object>();
BigDecimal baseCalculo = BigDecimal.ZERO;
@ -202,9 +193,7 @@ public class CalculoImposto {
baseCalculo = indSeguroEstadual && seguro != null ? baseCalculo.add(seguro) : baseCalculo;
baseCalculo = indTxEmbarqueEstadual && embarque != null ? baseCalculo.add(embarque) : baseCalculo;
baseCalculo = indPedagioEstadual && pedagio != null ? baseCalculo.add(pedagio) : baseCalculo;
}
else {
} else {
porcRedEstadualMunicipal = (BigDecimal) configImposto.get("PORCREDMUNICIPAL");
indTarifaMunicipal = (Boolean) configImposto.get("INDTARIFAMUNICIPAL");
@ -216,8 +205,6 @@ public class CalculoImposto {
baseCalculo = indSeguroMunicipal && seguro != null ? baseCalculo.add(seguro) : baseCalculo;
baseCalculo = indTxEmbarqueMunicipal && embarque != null ? baseCalculo.add(embarque) : baseCalculo;
baseCalculo = indPedagioMunicipal && pedagio != null ? baseCalculo.add(pedagio) : baseCalculo;
}
// Redução da base de calculo
@ -233,7 +220,5 @@ public class CalculoImposto {
valorIcms = valorIcms.subtract(porcRedEstadualMunicipal.divide(BigDecimal.valueOf(100)).multiply(valorIcms));
return valorIcms;
}
}

View File

@ -1,7 +1,7 @@
<?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="RelatorioTaxasLinha" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="495"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
@ -41,15 +41,14 @@
<field name="IMPORTETAXAEMBARQUE" class="java.math.BigDecimal"/>
<field name="IMPORTEPEDAGIO" class="java.math.BigDecimal"/>
<field name="IMPORTESEGURO" class="java.math.BigDecimal"/>
<field name="TOTAL_VENDIDOS" class="java.math.BigDecimal"/>
<field name="TOTAL_EMBARQUE" class="java.math.BigDecimal"/>
<field name="TOTAL_PEDAGIO" class="java.math.BigDecimal"/>
<field name="TOTAL_SEGURO" class="java.math.BigDecimal"/>
<field name="NOMBEMPRESA" class="java.lang.String"/>
<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
<variable name="TOTAL_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_VENDIDOS}]]></variableExpression>
</variable>
<field name="EMBARQUE_VENDIDOS" class="java.math.BigDecimal"/>
<field name="PEDAGIO_VENDIDOS" class="java.math.BigDecimal"/>
<field name="SEGURO_VENDIDOS" class="java.math.BigDecimal"/>
<variable name="TOTAL_EMBARQUE_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></variableExpression>
</variable>
@ -59,9 +58,6 @@
<variable name="TOTAL_SEGURO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_SEGURO}]]></variableExpression>
</variable>
<variable name="TOTAL_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_VENDIDOS}]]></variableExpression>
</variable>
<variable name="TOTAL_EMBARQUE_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></variableExpression>
</variable>
@ -71,6 +67,24 @@
<variable name="TOTAL_SEGURO_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL_SEGURO}]]></variableExpression>
</variable>
<variable name="EMBARQUE_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></variableExpression>
</variable>
<variable name="PEDAGIO_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></variableExpression>
</variable>
<variable name="SEGURO_VENDIDOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="grpEmpresa" calculation="Sum">
<variableExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></variableExpression>
</variable>
<variable name="EMBARQUE_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></variableExpression>
</variable>
<variable name="PEDAGIO_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></variableExpression>
</variable>
<variable name="SEGURO_VENDIDOS_2" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></variableExpression>
</variable>
<group name="grpEmpresa">
<groupExpression><![CDATA[$F{NOMBEMPRESA}]]></groupExpression>
<groupHeader>
@ -91,23 +105,18 @@
<textElement/>
<text><![CDATA[Total Empresa: ]]></text>
</staticText>
<textField>
<reportElement uuid="3fcf21e1-b360-4146-ae72-864f9ed007de" x="341" y="0" width="34" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_VENDIDOS_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="0617c1e5-cd2f-4b67-ba79-d68c6604275e" x="377" y="0" width="64" height="11"/>
<reportElement uuid="0617c1e5-cd2f-4b67-ba79-d68c6604275e" x="443" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="64e6d5bd-b475-479b-a12b-c4c28025fd57" x="440" y="0" width="56" height="11"/>
<reportElement uuid="64e6d5bd-b475-479b-a12b-c4c28025fd57" x="480" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="2cf7fe63-7c91-47d0-9ccb-71e1f669579f" x="496" y="0" width="58" height="11"/>
<reportElement uuid="2cf7fe63-7c91-47d0-9ccb-71e1f669579f" x="517" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO_1}]]></textFieldExpression>
</textField>
@ -123,6 +132,21 @@
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField>
<reportElement uuid="95408a88-e07a-409a-a11d-5061362a9521" x="331" y="0" width="38" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{EMBARQUE_VENDIDOS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e6546467-4251-4025-a0b8-e6502bc5b141" x="369" y="0" width="38" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PEDAGIO_VENDIDOS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d3f05b2b-2c01-4b3b-a471-e79b0e5bbd75" x="407" y="0" width="36" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{SEGURO_VENDIDOS_1}]]></textFieldExpression>
</textField>
</band>
</groupFooter>
</group>
@ -245,28 +269,28 @@
</graphicElement>
</line>
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="1" width="46" height="11"/>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="1" width="34" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Prefixo]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="47" y="1" width="55" height="11"/>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="37" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="102" y="1" width="55" height="11"/>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="92" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="245" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="235" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
@ -274,7 +298,7 @@
<text><![CDATA[Emb.]]></text>
</staticText>
<staticText>
<reportElement uuid="93a5880a-7547-4e53-85f4-09a6c22d5699" mode="Transparent" x="277" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="93a5880a-7547-4e53-85f4-09a6c22d5699" mode="Transparent" x="267" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
@ -282,7 +306,7 @@
<text><![CDATA[Ped.]]></text>
</staticText>
<staticText>
<reportElement uuid="1d4f5650-a014-468d-a9b2-c58887492ace" mode="Transparent" x="309" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="1d4f5650-a014-468d-a9b2-c58887492ace" mode="Transparent" x="299" y="1" width="32" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
@ -290,127 +314,143 @@
<text><![CDATA[Seg.]]></text>
</staticText>
<staticText>
<reportElement uuid="9b724ccc-0e90-4271-9e51-54128161d074" mode="Transparent" x="377" y="1" width="63" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="9b724ccc-0e90-4271-9e51-54128161d074" mode="Transparent" x="443" y="1" width="37" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Total Embarque]]></text>
<text><![CDATA[Total Emb.]]></text>
</staticText>
<staticText>
<reportElement uuid="88be8133-60fd-45a5-9c81-363647bb3002" mode="Transparent" x="440" y="1" width="56" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="88be8133-60fd-45a5-9c81-363647bb3002" mode="Transparent" x="480" y="1" width="37" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Total Pedagio]]></text>
<text><![CDATA[Total Ped.]]></text>
</staticText>
<staticText>
<reportElement uuid="bb5f610e-adc6-4f73-ba16-11ce1ec169a3" mode="Transparent" x="496" y="1" width="58" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="bb5f610e-adc6-4f73-ba16-11ce1ec169a3" mode="Transparent" x="517" y="1" width="37" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Total Seguro]]></text>
<text><![CDATA[Total Seg.]]></text>
</staticText>
<staticText>
<reportElement uuid="c41834a6-5ca0-4bba-a5ac-0cc2dd7a35b5" mode="Transparent" x="341" y="1" width="34" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="c41834a6-5ca0-4bba-a5ac-0cc2dd7a35b5" mode="Transparent" x="331" y="1" width="38" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Vendidos]]></text>
<text><![CDATA[Vend. Emb]]></text>
</staticText>
<staticText>
<reportElement uuid="32c20a27-414c-41be-86b2-0d23645acd18" x="157" y="1" width="88" height="11"/>
<reportElement uuid="32c20a27-414c-41be-86b2-0d23645acd18" x="147" y="1" width="88" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Agência]]></text>
</staticText>
<staticText>
<reportElement uuid="88257609-1874-4558-b57a-bc6f811f7896" mode="Transparent" x="369" y="1" width="38" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Vend. Ped]]></text>
</staticText>
<staticText>
<reportElement uuid="276a9b95-f7ce-44e7-a3a9-65f7fd6944fd" mode="Transparent" x="407" y="1" width="38" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Vend. Seg]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="11">
<textField>
<reportElement uuid="b12cbc2b-3eac-4c2c-b94c-cac2e746b2c2" x="0" y="0" width="46" height="11"/>
<reportElement uuid="b12cbc2b-3eac-4c2c-b94c-cac2e746b2c2" x="0" y="0" width="34" height="11"/>
<textElement/>
<textFieldExpression><![CDATA[$F{PREFIXO}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d19cff45-ad13-4a6b-b6f3-3e871a6d8d58" x="47" y="0" width="55" height="11"/>
<reportElement uuid="d19cff45-ad13-4a6b-b6f3-3e871a6d8d58" x="37" y="0" width="55" height="11"/>
<textElement/>
<textFieldExpression><![CDATA[$F{CIDADE_ORIGEM}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f868a599-c0bb-4187-97b6-7681b753abbf" x="102" y="0" width="55" height="11"/>
<reportElement uuid="f868a599-c0bb-4187-97b6-7681b753abbf" x="92" y="0" width="55" height="11"/>
<textElement/>
<textFieldExpression><![CDATA[$F{CIDADE_DESTINO}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="6454beed-fb72-4aa5-8bff-7eb4ea6c26ba" x="245" y="0" width="32" height="11"/>
<reportElement uuid="6454beed-fb72-4aa5-8bff-7eb4ea6c26ba" x="235" y="0" width="32" height="11"/>
<textElement textAlignment="Right" markup="none"/>
<textFieldExpression><![CDATA[$F{IMPORTETAXAEMBARQUE}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="1242bccb-ce44-47d6-ac13-6f4df97f707e" x="277" y="0" width="32" height="11"/>
<reportElement uuid="1242bccb-ce44-47d6-ac13-6f4df97f707e" x="267" y="0" width="32" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{IMPORTEPEDAGIO}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="2184d556-1501-4525-8d09-510f9d798b86" x="309" y="0" width="32" height="11"/>
<reportElement uuid="2184d556-1501-4525-8d09-510f9d798b86" x="299" y="0" width="32" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{IMPORTESEGURO}]]></textFieldExpression>
</textField>
<textField pattern="">
<reportElement uuid="49969921-90d5-4873-9b56-9b6e6be548c5" x="341" y="0" width="34" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TOTAL_VENDIDOS}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="58c1e14e-9c44-4e34-8b57-fbb6af384ce3" x="377" y="0" width="63" height="11"/>
<reportElement uuid="58c1e14e-9c44-4e34-8b57-fbb6af384ce3" x="443" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TOTAL_EMBARQUE}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="05426ccc-ff54-4381-8406-ae0c4290a54b" x="440" y="0" width="56" height="11"/>
<reportElement uuid="05426ccc-ff54-4381-8406-ae0c4290a54b" x="480" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TOTAL_PEDAGIO}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="8a365def-0ad3-48e8-b942-5d00f5d74a21" x="496" y="0" width="58" height="11"/>
<reportElement uuid="8a365def-0ad3-48e8-b942-5d00f5d74a21" x="517" y="0" width="37" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TOTAL_SEGURO}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="b2a45c9f-3da0-4273-9941-c9e31ee61723" x="157" y="0" width="88" height="11"/>
<reportElement uuid="b2a45c9f-3da0-4273-9941-c9e31ee61723" x="147" y="0" width="88" height="11"/>
<textElement/>
<textFieldExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="7059069b-3c22-416a-afc1-d05473a3d429" x="331" y="0" width="38" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{EMBARQUE_VENDIDOS}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="049ba79a-5ee9-4ee2-80d7-d498ad7d7125" x="369" y="0" width="38" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{PEDAGIO_VENDIDOS}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c15ba1bc-2040-4a73-a221-52d574fbedb4" x="407" y="0" width="36" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{SEGURO_VENDIDOS}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band height="11">
<textField evaluationTime="Auto">
<reportElement uuid="f0b0773e-5235-4ee8-84d3-8741ecce0dae" x="341" y="-1" width="34" height="12"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_VENDIDOS_2}]]></textFieldExpression>
</textField>
<textField evaluationTime="Auto" pattern="#,##0.00">
<reportElement uuid="1d265368-d216-4cec-a824-a0c0b5536a43" x="377" y="-1" width="63" height="12"/>
<reportElement uuid="1d265368-d216-4cec-a824-a0c0b5536a43" x="443" y="-1" width="37" height="12"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_2}]]></textFieldExpression>
</textField>
<textField evaluationTime="Auto" pattern="#,##0.00">
<reportElement uuid="adfa3eb3-6ab0-4141-aced-e3d231e4f433" x="440" y="-1" width="56" height="12"/>
<reportElement uuid="adfa3eb3-6ab0-4141-aced-e3d231e4f433" x="480" y="-1" width="37" height="12"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_PEDAGIO_2}]]></textFieldExpression>
</textField>
<textField evaluationTime="Auto" pattern="#,##0.00">
<reportElement uuid="a4f4cff0-6b6e-42f0-9f07-7cbd06f5a545" x="496" y="-1" width="58" height="12"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO_2}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="f7ac3bf7-ac60-405e-b2a3-60c9150421a0" x="0" y="0" width="51" height="11"/>
<textElement/>
@ -422,6 +462,26 @@
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField evaluationTime="Auto" pattern="#,##0.00">
<reportElement uuid="a4f4cff0-6b6e-42f0-9f07-7cbd06f5a545" x="517" y="0" width="37" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_SEGURO_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="58961ea4-a59e-4a77-b898-b2df93fc43cb" x="331" y="0" width="38" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{EMBARQUE_VENDIDOS_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="96bd08a5-5321-4938-8d4b-5260faa9a283" x="369" y="0" width="38" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PEDAGIO_VENDIDOS_2}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c090f6cf-7340-4990-92d0-101fbf056cb7" x="407" y="0" width="36" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{SEGURO_VENDIDOS_2}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
<noData>

View File

@ -34,7 +34,7 @@ public class DataSource implements IDataSource {
} catch (Exception e) {
e.printStackTrace();
throw new JRException(e);
}
}
@ -49,7 +49,6 @@ public class DataSource implements IDataSource {
this.rowNum++;
return this.resultSet != null && this.resultSet.next();
} catch (SQLException e) {
// TODO Auto-generated catch block
return false;
}
}
@ -66,8 +65,6 @@ public class DataSource implements IDataSource {
*/
@Override
public Object valueCustomFields(String fieldName) throws Exception {
// TODO Auto-generated method stub
return null;
}
}