<?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="RelatorioTabelaPreco" pageWidth="900" pageHeight="842" orientation="Landscape" columnWidth="860" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="5edc9f7a-8634-485f-96f7-c65a462aa868">
	<property name="ireport.zoom" value="1.000000000000004"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="artesp_logo" class="java.lang.Object"/>
	<parameter name="empresa_logo" class="java.lang.Object"/>
	<field name="origem" class="java.lang.String"/>
	<field name="destino" class="java.lang.String"/>
	<field name="tarifa" class="java.math.BigDecimal"/>
	<field name="pedagio" class="java.math.BigDecimal"/>
	<field name="seguro" class="java.math.BigDecimal"/>
	<field name="seguroOpcional" class="java.math.BigDecimal"/>
	<field name="outros" class="java.math.BigDecimal"/>
	<field name="tipoClasse" class="java.lang.String"/>
	<field name="linha" class="java.lang.String"/>
	<field name="empresa" class="java.lang.String"/>
	<field name="dataVigenciaInicial" class="java.util.Date"/>
	<field name="dataVigenciaFinal" class="java.util.Date"/>
	<field name="taxaEmbarque" class="java.math.BigDecimal"/>
	<field name="idVigencia" class="java.lang.Integer"/>
	<field name="idLinha" class="java.lang.Integer"/>
	<variable name="total" class="java.lang.Double">
		<variableExpression><![CDATA[$F{tarifa}.doubleValue()
+$F{pedagio}.doubleValue()
+$F{taxaEmbarque}.doubleValue()]]></variableExpression>
	</variable>
	<variable name="totalSeguro" class="java.lang.Double">
		<variableExpression><![CDATA[$F{tarifa}.doubleValue()
+$F{pedagio}.doubleValue()
+$F{taxaEmbarque}.doubleValue()
+$F{seguroOpcional}.doubleValue()]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="47" splitType="Stretch">
			<textField>
				<reportElement uuid="5d83d8a8-01aa-4022-9583-6808e65d2ec8" mode="Opaque" x="0" y="0" width="321" height="47" backcolor="#FFFF66"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="SansSerif" size="20" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="2c5b01a1-51db-478a-a307-83c9df5cea6e" x="363" y="0" width="497" height="47">
					<printWhenExpression><![CDATA[($P{empresa_logo})==null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="SansSerif" size="14" isBold="true"/>
					<paragraph leftIndent="4"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
			</textField>
			<image onErrorType="Blank">
				<reportElement uuid="71c314ae-5bbd-41d2-a548-b80de625c9b0" x="363" y="0" width="497" height="47"/>
				<imageExpression><![CDATA[$P{empresa_logo}]]></imageExpression>
			</image>
		</band>
	</title>
	<pageHeader>
		<band height="20" splitType="Stretch">
			<staticText>
				<reportElement uuid="325e439b-ecaf-48cb-9c09-387c0649e47b" x="0" y="0" width="860" height="20"/>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Tabela de Preços R$]]></text>
			</staticText>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="29" splitType="Stretch">
			<textField>
				<reportElement uuid="2bc93d5d-8e74-4b8b-8808-080060e8cad1" mode="Opaque" x="0" y="0" width="321" height="28" forecolor="#000000" backcolor="#FFFF66"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="74398eb5-f168-4dff-a38d-b23b11361b96" mode="Opaque" x="321" y="0" width="86" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.tarifa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="571d26cc-b563-4f10-8d8a-1ee49678088a" mode="Opaque" x="407" y="0" width="86" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="78aa7d0c-aa5e-43b0-a7eb-5de12d80db4f" mode="Opaque" x="493" y="0" width="86" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.taxaEmbarque}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="4a9bdb71-945e-48ce-a495-fdd4eee1b1e2" mode="Opaque" x="579" y="0" width="86" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalSemSeguro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="50b8dc32-c117-444f-b819-9b4c2ff954bd" mode="Opaque" x="752" y="0" width="108" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.totalComSeguro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a08041c7-23de-4505-86bc-f009082b2faf" mode="Opaque" x="665" y="0" width="87" height="28" backcolor="#CCCCCC"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valorSeguro}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="22" splitType="Stretch">
			<textField pattern="">
				<reportElement uuid="a36a0fa9-3f68-416b-ba5b-3221bb3b6353" x="0" y="0" width="321" height="20"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement>
					<font fontName="SansSerif" size="12" isBold="true"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{destino}+" ("+$F{tipoClasse}+")"]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="fefa6e89-eec1-424e-bc72-bec86ee9eb1b" x="321" y="0" width="86" height="20" forecolor="#333333"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="10" isBold="true"/>
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="8452d6c9-7348-4c6a-965f-e127b5fd9830" x="752" y="0" width="108" height="20"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="12" isBold="true"/>
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{totalSeguro}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="a7c2dd13-c0c0-4a7e-9782-b758b6176b1c" x="579" y="0" width="86" height="20"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="12" isBold="true"/>
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="61b08629-ac62-475b-96c8-d88aedcf87ef" x="493" y="0" width="86" height="20" forecolor="#333333"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="10" isBold="true"/>
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{taxaEmbarque}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="4233bd79-2a8d-4b1b-88b7-a235f79b1227" x="407" y="0" width="86" height="20" forecolor="#333333"/>
				<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="10" isBold="true"/>
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="9a062a18-ecb7-4297-9c1b-b6397f1844a1" x="665" y="0" width="87" height="20" forecolor="#333333"/>
				<box leftPadding="1" rightPadding="1">
					<pen lineWidth="0.25" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.25" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.25" lineColor="#CCCCCC"/>
				</box>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{seguroOpcional}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="57" splitType="Stretch">
			<rectangle>
				<reportElement uuid="88249295-7646-48b5-b723-522631570fc7" x="0" y="15" width="802" height="30" backcolor="#CCCCCC"/>
				<graphicElement>
					<pen lineWidth="0.0"/>
				</graphicElement>
			</rectangle>
			<textField>
				<reportElement uuid="b7957c63-89ec-4009-b196-373a274b59e1" mode="Opaque" x="0" y="13" width="860" height="44" backcolor="#CCCCCC"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.msgAviso}]]></textFieldExpression>
			</textField>
			<image onErrorType="Blank">
				<reportElement uuid="804159e8-555b-475f-a036-836a4230c641" x="0" y="16" width="186" height="41"/>
				<imageExpression><![CDATA[$P{artesp_logo}]]></imageExpression>
			</image>
		</band>
	</pageFooter>
	<noData>
		<band height="30">
			<textField>
				<reportElement uuid="5954ac3d-3873-40e1-b643-cd910fa11ef2" x="0" y="4" width="860" height="26"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="SansSerif" size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
