<?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="RelatorioDemandasDetalhado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
	<property name="ireport.zoom" value="2.200000000000009"/>
	<property name="ireport.x" value="839"/>
	<property name="ireport.y" value="0"/>
	<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
	<style name="table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="DATA_INICIAL" class="java.util.Date"/>
	<parameter name="DATA_FINAL" class="java.util.Date"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="NUMPUNTOVENTA" class="java.lang.String"/>
	<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
	<parameter name="EMPRESA" class="java.lang.String"/>
	<field name="DATA" class="java.util.Date"/>
	<field name="LINHA" class="java.lang.String"/>
	<field name="HORARIO" class="java.sql.Timestamp"/>
	<field name="ORIGEM" class="java.lang.String"/>
	<field name="DESTINO" class="java.lang.String"/>
	<field name="CLASSE" class="java.lang.String"/>
	<field name="SERVICO" class="java.math.BigDecimal"/>
	<field name="OCUPACAO" class="java.lang.Integer"/>
	<field name="CAPACIDADE" class="java.lang.Integer"/>
	<field name="TIPO_SERVICO" class="java.lang.String"/>
	<field name="PLATAFORMA" class="java.lang.String"/>
	<field name="EMPRESA" class="java.lang.String"/>
	<field name="CODLINHA" class="java.lang.String"/>
	<field name="SENTIDO" class="java.lang.String"/>
	<variable name="POR_OCUPACAO" class="java.lang.Double">
		<variableExpression><![CDATA[$F{OCUPACAO}.doubleValue() / $F{CAPACIDADE}.doubleValue()]]></variableExpression>
	</variable>
	<group name="EMPRESA">
		<groupExpression><![CDATA[$F{EMPRESA}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<textField>
					<reportElement uuid="36e9cbc6-ccc2-4a81-8977-c66fa5a7cb62" x="0" y="0" width="265" height="14"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA["Empresa: "+$F{EMPRESA}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="61" splitType="Stretch">
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Transparent" x="45" y="15" width="100" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[$P{DATA_INICIAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="d2973779-79dc-4cc8-937a-e9167c42bab0" mode="Transparent" x="0" y="0" width="265" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="8730e85b-d436-42cd-beb6-1a881bad2478" mode="Transparent" x="155" y="15" width="110" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[$P{DATA_FINAL}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6" mode="Transparent" x="0" y="15" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" x="45" y="44" width="757" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="a179c478-4014-4b4a-abf0-4655e7588bf7" x="0" y="43" width="801" height="1"/>
			</line>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Transparent" x="0" y="44" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="91cded42-c53d-469a-abc7-6eb0d59f69af" mode="Transparent" x="725" y="0" width="76" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<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"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856" mode="Transparent" x="634" y="30" width="167" height="12" 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>
				<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="ba831a24-59f4-4f8f-888f-fd69711018e9" mode="Transparent" x="634" y="15" width="167" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<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"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}+" "+$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801" x="634" y="0" width="91" height="15"/>
				<textElement textAlignment="Right">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="6d6ab075-006c-4796-98d5-f047ae963876" mode="Transparent" x="145" y="15" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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.periodoA}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="14" splitType="Stretch">
			<staticText>
				<reportElement uuid="9fc7e58e-8625-41c4-a8ee-6454f6382d46" x="204" y="0" width="49" height="11"/>
				<textElement textAlignment="Left">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Serviço]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="3766fa33-6281-4576-a9d1-3b984e1976d3" x="0" y="0" width="45" height="11"/>
				<textElement textAlignment="Left">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Data]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="7e1f6b82-8a1f-4719-b942-41f0d7027aa8" x="253" y="0" width="73" height="11"/>
				<textElement textAlignment="Left">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Horário]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="95367884-2b52-4bbd-b716-852ff13290e9" mode="Transparent" x="590" y="0" width="35" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Ocupação]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c" mode="Transparent" x="406" y="0" width="83" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Destino]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="170230ea-2a12-4444-9f13-c706d557ae8d" mode="Transparent" x="625" y="0" width="34" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Tipo]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="8a5e97db-9b05-4fa5-9663-7795869b6b90" x="88" y="0" width="116" height="11"/>
				<textElement textAlignment="Left">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Linha]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="c0542d93-dde4-448d-932c-453d6a4a6882" mode="Transparent" x="326" y="0" width="80" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Origem]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="9c65b631-065c-49af-ab2c-3bcea583eaea" mode="Transparent" x="545" y="0" width="45" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Capacidade]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7" mode="Transparent" x="489" y="0" width="56" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Classe]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="0452264c-0f27-46d6-84ad-0fba6e5abdfa" mode="Transparent" x="659" y="0" width="56" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Plataforma]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f" mode="Transparent" x="715" y="0" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[% Ocupação]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="3766fa33-6281-4576-a9d1-3b984e1976d3" x="45" y="0" width="43" height="11"/>
				<textElement textAlignment="Left">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Cod. Linha]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="00c54946-d0e2-4e47-a473-3445959d4d69" mode="Transparent" x="755" y="0" width="31" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" 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[Sentido]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="45" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="88" y="0" width="116" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{LINHA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="204" y="0" width="49" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
			</textField>
			<textField pattern="HH.mm" isBlankWhenNull="true">
				<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="253" y="0" width="73" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{HORARIO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="326" y="0" width="80" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="406" y="0" width="82" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="489" y="0" width="56" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{CLASSE}]]></textFieldExpression>
			</textField>
			<textField pattern="###0" isBlankWhenNull="true">
				<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="545" y="0" width="45" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{CAPACIDADE}]]></textFieldExpression>
			</textField>
			<textField pattern="###0" isBlankWhenNull="true">
				<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="590" y="0" width="35" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{OCUPACAO}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="625" y="0" width="34" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{TIPO_SERVICO}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="659" y="0" width="56" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{PLATAFORMA}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00 %" isBlankWhenNull="true">
				<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="715" y="0" width="40" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$V{POR_OCUPACAO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="45" y="0" width="43" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{CODLINHA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="ce7446b8-b4da-489e-9435-27133b870da1" x="755" y="0" width="31" height="11"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{SENTIDO}.equals("0") ? "VOLTA" : "IDA"  ]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="50">
			<textField>
				<reportElement uuid="995c4c61-6291-4e5f-8d92-b75502a10466" x="0" y="15" width="801" height="20"/>
				<textElement textAlignment="Center" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
