<?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="LancamentoFreteTLK" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="bc2c5df6-5cb1-4684-9fac-a450d960856c">
	<property name="ireport.zoom" value="1.2418426461183103"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" forecolor="#FFFFFF" backcolor="#000066">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#CCCCCC">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.25" lineColor="#000000"/>
			<topPen lineWidth="0.25"/>
			<leftPen lineWidth="0.25"/>
			<bottomPen lineWidth="0.25"/>
			<rightPen lineWidth="0.25"/>
		</box>
	</style>
	<style name="table 1">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_CH" mode="Opaque" backcolor="#999999">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table 3_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<subDataset name="Pedidos" uuid="d12b241a-35fc-41fe-9177-dc6724b7252f">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Verdemar Produção"/>
		<parameter name="_userLogin" class="java.lang.String"/>
		<parameter name="ParDataIni" class="java.util.Date"/>
		<parameter name="ParDataFim" class="java.util.Date"/>
		<parameter name="ParTipoFrota" class="java.lang.String"/>
		<parameter name="ParClientes" class="java.util.Collection"/>
		<parameter name="ParPlaca" class="java.util.Collection"/>
		<parameter name="ParFuncionario" class="java.util.Collection"/>
		<parameter name="ParCaminhaoCarreta" class="java.lang.String"/>
		<parameter name="ParPlacaCarreta" class="java.util.Collection"/>
		<queryString>
			<![CDATA[select * from (
select ccf.chave_receita_frete,
  ccf.data,
  (select cv.placa::varchar from veiculo cv where cv.codigo = ccf.chave_veiculo) veiculo,
  ccf.placa_carreta placa_carreta,
  (select cf.nome::varchar from funcionario cf where cf.codigo = ccf.chave_funcionario) funcionario,
  ccf.cte,
  ccf.valor_liquido::numeric valor_liquido,
  ccf.valor_frete::numeric valor_frete,

  ccf.frota_terceiro,
  case when ccf.frota_terceiro = 'T' then 'TERCEIRO'
  else 'FROTA' end frota_terceiro_nome,

  ccf.caminhao_carreta,
  case when ccf.caminhao_carreta = 'T' then 'Carreta'
  else 'Caminhão' end caminhao_carreta_nome,

  (select co.nome::varchar from clientes co where co.codigo = ccf.chave_cliente) cliente,
  (select e.sigla from estados e where e.chave_estado = ccf.uf_origem) uf_origem,
  (select e.sigla from estados e where e.chave_estado = ccf.uf_destino) uf_destino

  from controle_receitas_fretes ccf) t
where data between $P{ParDataIni} and $P{ParDataFim}
and ( frota_terceiro = $P{ParTipoFrota} or 'A' = $P{ParTipoFrota} )
and ( caminhao_carreta = $P{ParCaminhaoCarreta} or 'A' = $P{ParCaminhaoCarreta} )
and $X{IN, cliente, ParClientes}
and $X{IN, veiculo, ParPlaca}
and $X{IN, placa_carreta, ParPlacaCarreta}
and $X{IN, funcionario, ParFuncionario}
  order by t.cliente, t.frota_terceiro_nome, t.data]]>
		</queryString>
		<field name="chave_receita_frete" class="java.lang.Integer">
			<fieldDescription><![CDATA[Código da receita]]></fieldDescription>
		</field>
		<field name="data" class="java.sql.Date"/>
		<field name="veiculo" class="java.lang.String"/>
		<field name="placa_carreta" class="java.lang.String">
			<fieldDescription><![CDATA[Placa da carreta]]></fieldDescription>
		</field>
		<field name="funcionario" class="java.lang.String"/>
		<field name="cte" class="java.lang.String">
			<fieldDescription><![CDATA[Campo livre]]></fieldDescription>
		</field>
		<field name="valor_liquido" class="java.math.BigDecimal">
			<fieldDescription><![CDATA[Valor líquido (frete - imposto)]]></fieldDescription>
		</field>
		<field name="valor_frete" class="java.math.BigDecimal">
			<fieldDescription><![CDATA[Valor do frete]]></fieldDescription>
		</field>
		<field name="frota_terceiro" class="java.lang.String"/>
		<field name="frota_terceiro_nome" class="java.lang.String"/>
		<field name="caminhao_carreta" class="java.lang.String"/>
		<field name="caminhao_carreta_nome" class="java.lang.String"/>
		<field name="cliente" class="java.lang.String"/>
		<field name="uf_origem" class="java.lang.String">
			<fieldDescription><![CDATA[Código do estado de origem]]></fieldDescription>
		</field>
		<field name="uf_destino" class="java.lang.String">
			<fieldDescription><![CDATA[Código do estado de destino]]></fieldDescription>
		</field>
		<variable name="VALOR_SUM" class="java.lang.Number" calculation="Sum"/>
		<variable name="soma_grupo" class="java.lang.Number" resetType="Group" resetGroup="CLIENTE" calculation="Sum">
			<variableExpression><![CDATA[$F{valor_liquido}]]></variableExpression>
			<initialValueExpression><![CDATA[0]]></initialValueExpression>
		</variable>
		<variable name="soma_total" class="java.lang.Number" calculation="Sum">
			<variableExpression><![CDATA[$F{valor_liquido}]]></variableExpression>
		</variable>
		<variable name="total_frota" class="java.math.BigDecimal" calculation="Sum">
			<variableExpression><![CDATA[($F{frota_terceiro}.toString().equals("F")) ? $F{valor_liquido} : 0]]></variableExpression>
			<initialValueExpression><![CDATA[]]></initialValueExpression>
		</variable>
		<variable name="total_terceiro" class="java.math.BigDecimal" calculation="Sum">
			<variableExpression><![CDATA[($F{frota_terceiro}.toString().equals("T")) ? $F{valor_liquido} : 0]]></variableExpression>
			<initialValueExpression><![CDATA[]]></initialValueExpression>
		</variable>
		<variable name="soma_grupo_bruto" class="java.lang.Number" resetType="Group" resetGroup="CLIENTE" calculation="Sum">
			<variableExpression><![CDATA[$F{valor_frete}]]></variableExpression>
			<initialValueExpression><![CDATA[0]]></initialValueExpression>
		</variable>
		<variable name="total_frota_bruto" class="java.math.BigDecimal" calculation="Sum">
			<variableExpression><![CDATA[($F{frota_terceiro}.toString().equals("F")) ? $F{valor_frete} : 0]]></variableExpression>
			<initialValueExpression><![CDATA[]]></initialValueExpression>
		</variable>
		<variable name="total_terceiro_bruto" class="java.math.BigDecimal" calculation="Sum">
			<variableExpression><![CDATA[($F{frota_terceiro}.toString().equals("T")) ? $F{valor_frete} : 0]]></variableExpression>
			<initialValueExpression><![CDATA[]]></initialValueExpression>
		</variable>
		<variable name="soma_total_bruto" class="java.lang.Number" calculation="Sum">
			<variableExpression><![CDATA[$F{valor_frete}]]></variableExpression>
		</variable>
		<group name="FROTA" isReprintHeaderOnEachPage="true">
			<groupExpression><![CDATA[$F{frota_terceiro_nome}]]></groupExpression>
		</group>
		<group name="CLIENTE" isReprintHeaderOnEachPage="true">
			<groupExpression><![CDATA[$F{cliente}]]></groupExpression>
		</group>
	</subDataset>
	<parameter name="_userLogin" class="java.lang.String"/>
	<parameter name="ParDataIni" class="java.util.Date"/>
	<parameter name="ParDataFim" class="java.util.Date"/>
	<parameter name="ParTipoFrota" class="java.lang.String">
		<parameterDescription><![CDATA[]]></parameterDescription>
	</parameter>
	<parameter name="ParClientes" class="java.util.Collection"/>
	<parameter name="ParPlaca" class="java.util.Collection"/>
	<parameter name="ParFuncionario" class="java.util.Collection"/>
	<parameter name="ParCaminhaoCarreta" class="java.lang.String"/>
	<parameter name="ParPlacaCarreta" class="java.util.Collection"/>
	<queryString>
		<![CDATA[select 1 teste]]>
	</queryString>
	<field name="teste" class="java.lang.Integer"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="75">
			<image hAlign="Center" vAlign="Middle" onErrorType="Blank">
				<reportElement mode="Opaque" x="2" y="8" width="100" height="60" uuid="c3f3c480-b5c4-4d64-a6bb-d91394519e50"/>
				<box>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<imageExpression><![CDATA["http://localhost/imagens/logo_cliente.png"]]></imageExpression>
			</image>
			<staticText>
				<reportElement mode="Opaque" x="124" y="13" width="377" height="31" uuid="52232d80-f1a7-4b1c-afb9-b674ad9c455c"/>
				<box>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="16" isBold="true" isUnderline="false"/>
				</textElement>
				<text><![CDATA[Lançamento de Frete]]></text>
			</staticText>
			<textField>
				<reportElement x="124" y="47" width="411" height="15" uuid="ed8789be-5920-45e7-b049-a5d968edd37c"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[" Período: " + new java.text.SimpleDateFormat("dd/MM/yyyy").format($P{ParDataIni}) +  " a " + new java.text.SimpleDateFormat("dd/MM/yyyy").format($P{ParDataFim})]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="91">
			<componentElement>
				<reportElement key="table 2" style="table 2" x="0" y="0" width="50" height="16" uuid="5e236430-5b4b-4e3b-a3dd-e94feb6f05f9"/>
				<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
					<datasetRun subDataset="Pedidos" uuid="224fbeb5-2af4-4b2b-87a6-0984cacfed1a">
						<datasetParameter name="ParDataIni">
							<datasetParameterExpression><![CDATA[$P{ParDataIni}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParDataFim">
							<datasetParameterExpression><![CDATA[$P{ParDataFim}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParTipoFrota">
							<datasetParameterExpression><![CDATA[$P{ParTipoFrota}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParClientes">
							<datasetParameterExpression><![CDATA[$P{ParClientes}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParPlaca">
							<datasetParameterExpression><![CDATA[$P{ParPlaca}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParFuncionario">
							<datasetParameterExpression><![CDATA[$P{ParFuncionario}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParCaminhaoCarreta">
							<datasetParameterExpression><![CDATA[$P{ParCaminhaoCarreta}]]></datasetParameterExpression>
						</datasetParameter>
						<datasetParameter name="ParPlacaCarreta">
							<datasetParameterExpression><![CDATA[$P{ParPlacaCarreta}]]></datasetParameterExpression>
						</datasetParameter>
						<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					</datasetRun>
					<jr:columnGroup width="567" uuid="c8bb69f1-54d7-4241-be65-9f5e82fca47a">
						<jr:column width="29" uuid="3bc7f206-a826-4130-9b07-64d320d1329d">
							<jr:tableFooter height="57" rowSpan="1"/>
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<box>
									<pen lineColor="#FFFFFF"/>
									<topPen lineColor="#FFFFFF"/>
									<leftPen lineColor="#FFFFFF"/>
									<bottomPen lineColor="#FFFFFF"/>
									<rightPen lineWidth="0.5" lineColor="#FFFFFF"/>
								</box>
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="29" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="0d01324f-5b10-4081-ac3b-c26689dda49f"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="10" isBold="true"/>
									</textElement>
									<text><![CDATA[N°]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField isStretchWithOverflow="true">
									<reportElement x="0" y="0" width="29" height="16" uuid="12d34ec1-1116-427d-add9-29be3109c5f6"/>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="7"/>
										<paragraph firstLineIndent="4" rightIndent="4"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{chave_receita_frete}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
						<jr:column width="55" uuid="e0f792c3-3d33-4fe8-a71a-e8cd7f4896c6">
							<jr:tableFooter height="57" rowSpan="1"/>
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<box>
									<pen lineColor="#FFFFFF"/>
									<topPen lineColor="#FFFFFF"/>
									<leftPen lineColor="#FFFFFF"/>
									<bottomPen lineColor="#FFFFFF"/>
									<rightPen lineWidth="0.5" lineColor="#FFFFFF"/>
								</box>
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="55" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="2f27596e-be79-43e9-8fb4-4fe5b1c193a8"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="10" isBold="true"/>
									</textElement>
									<text><![CDATA[Data]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
									<reportElement x="0" y="0" width="55" height="16" uuid="85c79aa5-dac5-48a6-80ac-eebf393f9fc4"/>
									<textElement verticalAlignment="Middle">
										<font size="8"/>
										<paragraph firstLineIndent="2" leftIndent="4" rightIndent="2"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
						<jr:column width="50" uuid="256c66a3-cd29-4ffc-97fa-e6037f4b10d5">
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<box>
									<pen lineColor="#FFFFFF"/>
									<topPen lineColor="#FFFFFF"/>
									<leftPen lineColor="#FFFFFF"/>
									<bottomPen lineColor="#FFFFFF"/>
									<rightPen lineWidth="0.5" lineColor="#FFFFFF"/>
								</box>
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="50" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="5ec5b9a9-eccf-4eef-b329-94d1fb0bc8d9"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="10" isBold="true"/>
									</textElement>
									<text><![CDATA[Cavalo]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField pattern="###0.00" isBlankWhenNull="true">
									<reportElement x="0" y="0" width="50" height="16" uuid="42079df9-79fe-4fc5-b520-c010de355b35"/>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="8"/>
										<paragraph leftIndent="1" rightIndent="1"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{veiculo}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
						<jr:column width="50" uuid="8fd7099b-df6f-4c12-b005-f3f86734f1d3">
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<box>
									<pen lineColor="#FFFFFF"/>
									<topPen lineColor="#FFFFFF"/>
									<leftPen lineColor="#FFFFFF"/>
									<bottomPen lineColor="#FFFFFF"/>
									<rightPen lineWidth="0.5" lineColor="#FFFFFF"/>
								</box>
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="50" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="0164fa3b-9205-4395-a698-3fb96aedc5fe"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="10" isBold="true"/>
									</textElement>
									<text><![CDATA[Carreta]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField pattern="" isBlankWhenNull="true">
									<reportElement x="0" y="0" width="50" height="16" uuid="6be842c2-713b-4899-95d2-f44389955b4c"/>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="8"/>
										<paragraph leftIndent="2" rightIndent="1"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{placa_carreta}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
						<jr:columnGroup width="172" uuid="8fb12ee5-7d6b-479c-9022-8178b0beacae">
							<jr:tableFooter height="57" rowSpan="1">
								<staticText>
									<reportElement mode="Opaque" x="0" y="19" width="109" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="c651af1f-aa27-476d-b24e-16c058926d6c"/>
									<box>
										<pen lineWidth="0.0"/>
										<topPen lineWidth="0.0"/>
										<leftPen lineWidth="0.0"/>
										<bottomPen lineWidth="0.0"/>
										<rightPen lineWidth="0.0"/>
									</box>
									<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
										<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
										<paragraph lineSpacing="Single"/>
									</textElement>
									<text><![CDATA[TOTAL TERCEIRO: ]]></text>
								</staticText>
								<staticText>
									<reportElement mode="Opaque" x="0" y="3" width="109" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="f91d47b5-38b4-4804-9b03-4f06a91f7214"/>
									<box>
										<pen lineWidth="0.0"/>
										<topPen lineWidth="0.0"/>
										<leftPen lineWidth="0.0"/>
										<bottomPen lineWidth="0.0"/>
										<rightPen lineWidth="0.0"/>
									</box>
									<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
										<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
										<paragraph lineSpacing="Single"/>
									</textElement>
									<text><![CDATA[TOTAL FROTA: ]]></text>
								</staticText>
								<staticText>
									<reportElement mode="Opaque" x="0" y="35" width="109" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="97d33d39-b009-4083-9d2d-121f919a90f7"/>
									<box>
										<pen lineWidth="0.0"/>
										<topPen lineWidth="0.0"/>
										<leftPen lineWidth="0.0"/>
										<bottomPen lineWidth="0.0"/>
										<rightPen lineWidth="0.0"/>
									</box>
									<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
										<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
										<paragraph lineSpacing="Single"/>
									</textElement>
									<text><![CDATA[TOTAL: ]]></text>
								</staticText>
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="107" y="3" width="65" height="16" uuid="2451455e-e747-4160-91a5-90daa0025055"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{total_frota_bruto}]]></textFieldExpression>
								</textField>
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="107" y="19" width="65" height="16" uuid="7706c734-0b55-48b7-9255-432299d69d25"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{total_terceiro_bruto}]]></textFieldExpression>
								</textField>
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="107" y="35" width="65" height="16" uuid="55780e37-aed6-4877-931d-9f00f06cf205"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{soma_total_bruto}]]></textFieldExpression>
								</textField>
							</jr:tableFooter>
							<jr:groupFooter groupName="CLIENTE">
								<jr:cell height="23" rowSpan="1">
									<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
										<reportElement style="table_TD" x="0" y="0" width="107" height="16" uuid="a100d7e6-1804-4f44-90a1-b8e27e825d47"/>
										<textElement textAlignment="Right" verticalAlignment="Middle">
											<font size="8" isBold="true"/>
											<paragraph rightIndent="5"/>
										</textElement>
										<textFieldExpression><![CDATA[$F{frota_terceiro_nome}]]></textFieldExpression>
									</textField>
									<textField pattern="#,##0.00">
										<reportElement style="table_TD" x="107" y="0" width="65" height="16" uuid="413027dd-7b45-456b-ae78-c7311b178a0d"/>
										<textElement textAlignment="Right" verticalAlignment="Middle">
											<font size="8" isBold="true"/>
											<paragraph rightIndent="5"/>
										</textElement>
										<textFieldExpression><![CDATA[$V{soma_grupo_bruto}]]></textFieldExpression>
									</textField>
								</jr:cell>
							</jr:groupFooter>
							<jr:columnGroup width="107" uuid="b2aaf063-0226-4e13-a4e3-85deee8483b6">
								<jr:column width="73" uuid="4b6af4a9-87c6-4bc9-b61a-c28ce547b1a9">
									<jr:columnHeader style="table_TH" height="28" rowSpan="1">
										<staticText>
											<reportElement mode="Transparent" x="0" y="0" width="73" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="ac8d809f-7bf7-4f30-837c-7d2b61ec6d75"/>
											<box>
												<topPen lineWidth="1.0"/>
												<leftPen lineWidth="1.0"/>
												<bottomPen lineWidth="1.0"/>
												<rightPen lineWidth="1.0"/>
											</box>
											<textElement textAlignment="Center" verticalAlignment="Middle">
												<font size="10" isBold="true"/>
											</textElement>
											<text><![CDATA[Motorista]]></text>
										</staticText>
									</jr:columnHeader>
									<jr:columnFooter height="0" rowSpan="1"/>
									<jr:detailCell style="table_TD" height="16" rowSpan="1">
										<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
											<reportElement x="0" y="0" width="73" height="16" uuid="e85ee43f-c9b8-41b6-8b1d-65600fb24980"/>
											<textElement verticalAlignment="Middle">
												<font size="8"/>
												<paragraph leftIndent="2" rightIndent="2"/>
											</textElement>
											<textFieldExpression><![CDATA[$F{funcionario}]]></textFieldExpression>
										</textField>
									</jr:detailCell>
								</jr:column>
								<jr:column width="34" uuid="6afde1f4-5b69-4c2b-8abd-87eddd6b42bd">
									<jr:columnHeader style="table_TH" height="28" rowSpan="1">
										<staticText>
											<reportElement mode="Transparent" x="0" y="0" width="34" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="6f6986d1-5531-4ae4-804f-a5feaa8e4905"/>
											<box>
												<topPen lineWidth="1.0"/>
												<leftPen lineWidth="1.0"/>
												<bottomPen lineWidth="1.0"/>
												<rightPen lineWidth="1.0"/>
											</box>
											<textElement textAlignment="Center" verticalAlignment="Middle">
												<font size="10" isBold="true"/>
											</textElement>
											<text><![CDATA[CTE]]></text>
										</staticText>
									</jr:columnHeader>
									<jr:columnFooter height="0" rowSpan="1"/>
									<jr:detailCell style="table_TD" height="16" rowSpan="1">
										<textField pattern="" isBlankWhenNull="true">
											<reportElement x="0" y="0" width="34" height="16" uuid="4550020d-275f-4b9e-ba8b-dfa797da5062"/>
											<textElement textAlignment="Center" verticalAlignment="Middle">
												<font size="8"/>
											</textElement>
											<textFieldExpression><![CDATA[$F{cte}]]></textFieldExpression>
										</textField>
									</jr:detailCell>
								</jr:column>
							</jr:columnGroup>
							<jr:column width="65" uuid="42b7e66e-5069-44a9-9ce9-71d4c1287353">
								<jr:tableHeader height="0" rowSpan="1"/>
								<jr:tableFooter height="0" rowSpan="1"/>
								<jr:columnHeader style="table_TH" height="28" rowSpan="1">
									<staticText>
										<reportElement mode="Transparent" x="0" y="0" width="65" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="3dd8adae-f054-4ff1-bd01-9bb59392eb46"/>
										<box>
											<topPen lineWidth="1.0"/>
											<leftPen lineWidth="1.0"/>
											<bottomPen lineWidth="1.0"/>
											<rightPen lineWidth="1.0"/>
										</box>
										<textElement textAlignment="Center" verticalAlignment="Middle" 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>
										<text><![CDATA[Valor Bruto]]></text>
									</staticText>
								</jr:columnHeader>
								<jr:columnFooter height="0" rowSpan="1"/>
								<jr:detailCell height="16" rowSpan="1">
									<textField pattern="#,##0.00" isBlankWhenNull="true">
										<reportElement style="table_TD" x="0" y="0" width="65" height="16" uuid="b62ae027-c98f-4296-958a-9804dbe781f9"/>
										<textElement textAlignment="Right" verticalAlignment="Middle">
											<font size="8"/>
											<paragraph rightIndent="5"/>
										</textElement>
										<textFieldExpression><![CDATA[$F{valor_frete}]]></textFieldExpression>
									</textField>
								</jr:detailCell>
							</jr:column>
						</jr:columnGroup>
						<jr:columnGroup width="125" uuid="74b727fd-b24f-4442-91c4-d88f70aa2829">
							<jr:tableFooter height="57" rowSpan="1">
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="0" y="35" width="63" height="16" uuid="0a7f1ae0-7bd2-458b-8148-46d3428157e6"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{soma_total}]]></textFieldExpression>
								</textField>
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="0" y="3" width="63" height="16" uuid="c80dc808-17a9-42c3-b16f-3002abeb1c73"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{total_frota}]]></textFieldExpression>
								</textField>
								<textField pattern="#,##0.00;#,##0.00-">
									<reportElement x="0" y="19" width="63" height="16" uuid="7184b268-5234-4dd5-bcc4-d5db9c8837f5"/>
									<textElement textAlignment="Right" verticalAlignment="Middle">
										<font size="8" isBold="true"/>
									</textElement>
									<textFieldExpression><![CDATA[$V{total_terceiro}]]></textFieldExpression>
								</textField>
							</jr:tableFooter>
							<jr:groupFooter groupName="CLIENTE">
								<jr:cell height="23" rowSpan="1">
									<textField pattern="#,##0.00">
										<reportElement style="table_TD" x="0" y="0" width="63" height="16" uuid="9d530a15-2b41-40a3-a15b-79c17dc74029"/>
										<textElement textAlignment="Right" verticalAlignment="Middle">
											<font size="8" isBold="true"/>
											<paragraph rightIndent="5"/>
										</textElement>
										<textFieldExpression><![CDATA[$V{soma_grupo}]]></textFieldExpression>
									</textField>
								</jr:cell>
							</jr:groupFooter>
							<jr:column width="63" uuid="07de9059-69d7-41d3-8aa1-10ab8f5a999b">
								<jr:columnHeader style="table_TH" height="28" rowSpan="1">
									<staticText>
										<reportElement mode="Transparent" x="0" y="0" width="63" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="07dd27b6-dc69-454b-b05f-e57c6980ae41"/>
										<box>
											<topPen lineWidth="1.0"/>
											<leftPen lineWidth="1.0"/>
											<bottomPen lineWidth="1.0"/>
											<rightPen lineWidth="1.0"/>
										</box>
										<textElement textAlignment="Center" verticalAlignment="Middle">
											<font size="10" isBold="true"/>
										</textElement>
										<text><![CDATA[Valor Líq.]]></text>
									</staticText>
								</jr:columnHeader>
								<jr:columnFooter style="table_TD" height="0" rowSpan="1"/>
								<jr:detailCell height="16" rowSpan="1">
									<textField pattern="#,##0.00" isBlankWhenNull="true">
										<reportElement style="table_TD" x="0" y="0" width="63" height="16" uuid="c17dfd5b-227c-41e4-9cb2-41ab29868fd5"/>
										<textElement textAlignment="Right" verticalAlignment="Middle">
											<font size="8"/>
											<paragraph rightIndent="5"/>
										</textElement>
										<textFieldExpression><![CDATA[$F{valor_liquido}]]></textFieldExpression>
									</textField>
								</jr:detailCell>
							</jr:column>
							<jr:column width="62" uuid="f99a7a3b-69d2-406b-b47c-0dd2a9f25712">
								<jr:columnHeader style="table_TH" height="28" rowSpan="1">
									<staticText>
										<reportElement mode="Transparent" x="0" y="0" width="62" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="d52a9f74-2200-491e-a7a7-c13289566b32"/>
										<box>
											<topPen lineWidth="1.0"/>
											<leftPen lineWidth="1.0"/>
											<bottomPen lineWidth="1.0"/>
											<rightPen lineWidth="1.0"/>
										</box>
										<textElement textAlignment="Center" verticalAlignment="Middle">
											<font size="10" isBold="true"/>
										</textElement>
										<text><![CDATA[Cliente]]></text>
									</staticText>
								</jr:columnHeader>
								<jr:columnFooter height="0" rowSpan="1"/>
								<jr:detailCell style="table_TD" height="16" rowSpan="1">
									<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
										<reportElement x="0" y="0" width="62" height="16" uuid="f3520110-f580-4385-9a5b-fdac6dfe8c07"/>
										<textElement verticalAlignment="Middle">
											<font size="8"/>
											<paragraph leftIndent="2"/>
										</textElement>
										<textFieldExpression><![CDATA[$F{cliente}]]></textFieldExpression>
									</textField>
								</jr:detailCell>
							</jr:column>
						</jr:columnGroup>
						<jr:column width="42" uuid="90f6627a-50e3-4668-94e6-f32102abba47">
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="42" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="1a00d88f-90d2-42dc-80e6-d0448e65754e"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font isBold="true"/>
									</textElement>
									<text><![CDATA[Rota]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField pattern="" isBlankWhenNull="true">
									<reportElement x="0" y="0" width="42" height="16" uuid="fc326928-afa8-4468-9760-8c7295723a92"/>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="8"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{uf_origem} + " - " + $F{uf_destino}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
						<jr:column width="44" uuid="35734692-8643-478a-83ab-2245b4ae6909">
							<jr:tableHeader height="0" rowSpan="1"/>
							<jr:columnHeader style="table_TH" height="28" rowSpan="1">
								<staticText>
									<reportElement mode="Transparent" x="0" y="0" width="44" height="28" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="8b0e27e6-ca37-48e4-89fd-45d358777445"/>
									<box>
										<topPen lineWidth="1.0"/>
										<leftPen lineWidth="1.0"/>
										<bottomPen lineWidth="1.0"/>
										<rightPen lineWidth="1.0"/>
									</box>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font isBold="true"/>
									</textElement>
									<text><![CDATA[Tipo]]></text>
								</staticText>
							</jr:columnHeader>
							<jr:columnFooter height="0" rowSpan="1"/>
							<jr:detailCell style="table_TD" height="16" rowSpan="1">
								<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
									<reportElement x="0" y="0" width="44" height="16" uuid="f6ab3c2b-5358-4416-9c8b-37ce88f807fe"/>
									<textElement textAlignment="Center" verticalAlignment="Middle">
										<font size="8"/>
										<paragraph leftIndent="1" rightIndent="1"/>
									</textElement>
									<textFieldExpression><![CDATA[$F{caminhao_carreta_nome}]]></textFieldExpression>
								</textField>
							</jr:detailCell>
						</jr:column>
					</jr:columnGroup>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<pageFooter>
		<band height="47">
			<textField>
				<reportElement x="72" y="7" width="52" height="28" uuid="a31660aa-f745-4360-8e78-01a25294a889"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
					<paragraph leftIndent="5"/>
				</textElement>
				<textFieldExpression><![CDATA["TLK"]]></textFieldExpression>
			</textField>
			<image hAlign="Center" vAlign="Middle" isUsingCache="true" onErrorType="Blank">
				<reportElement positionType="FixRelativeToBottom" x="2" y="7" width="70" height="28" uuid="bbb3dccd-5cd7-4247-a61b-ee86db2ffdbb"/>
				<imageExpression><![CDATA["http://localhost/imagens/logo_davinti.jpg"]]></imageExpression>
			</image>
			<line>
				<reportElement x="0" y="0" width="555" height="1" uuid="df446232-8e70-4b4c-b48b-07f1a435ba6d"/>
			</line>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="191" y="7" width="101" height="28" uuid="1ed25a63-3a18-4b9d-9509-e074e3d8ba66"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
					<paragraph leftIndent="5"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="145" y="7" width="46" height="28" uuid="8c38b390-0e6d-46f2-b65a-7321a92e6eeb"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Emissão:]]></text>
			</staticText>
			<textField pattern="d/M/yyyy">
				<reportElement x="338" y="7" width="136" height="28" uuid="e62afd1b-1e7f-4de4-8e69-c70013dce2fa"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
					<paragraph leftIndent="5"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{_userLogin}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="292" y="7" width="46" height="28" uuid="579c87dc-cde7-4b94-b896-ae19e01401b8"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Usuário:]]></text>
			</staticText>
			<staticText>
				<reportElement x="482" y="7" width="45" height="28" uuid="9c1b5c0d-2823-41bc-85b2-2a81ea8958a4"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Página:]]></text>
			</staticText>
			<textField>
				<reportElement x="527" y="7" width="28" height="28" uuid="543d5462-6c77-4d67-8c10-429776b70b6a"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
					<paragraph leftIndent="5" rightIndent="5"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
</jasperReport>
