<?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="RelatorioDemandasDetalhadoNovoLayout" pageWidth="920" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="920" leftMargin="0" rightMargin="0" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
	<property name="ireport.zoom" value="2.0"/>
	<property name="ireport.x" value="1149"/>
	<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="INTERNET" 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() ) * 100]]></variableExpression>
	</variable>
	<group name="EMPRESA">
		<groupExpression><![CDATA[$F{EMPRESA}]]></groupExpression>
		<groupHeader>
			<band/>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="13">
			<staticText>
				<reportElement x="92" y="0" width="46" height="13" uuid="9fc7e58e-8625-41c4-a8ee-6454f6382d46"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Serviço]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="0" width="61" height="13" uuid="3766fa33-6281-4576-a9d1-3b984e1976d3"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Data]]></text>
			</staticText>
			<staticText>
				<reportElement x="222" y="0" width="46" height="13" uuid="7e1f6b82-8a1f-4719-b942-41f0d7027aa8"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Horário]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="618" y="0" width="50" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="95367884-2b52-4bbd-b716-852ff13290e9"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Ocupação]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="368" y="0" width="100" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Destino]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="668" y="0" width="75" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="170230ea-2a12-4444-9f13-c706d557ae8d"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Tipo]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="268" y="0" width="100" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="c0542d93-dde4-448d-932c-453d6a4a6882"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Origem]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="558" y="0" width="60" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="9c65b631-065c-49af-ab2c-3bcea583eaea"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Capacidade]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="468" y="0" width="90" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Classe]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="743" y="0" width="65" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[%Ocupação]]></text>
			</staticText>
			<staticText>
				<reportElement x="61" y="0" width="31" height="13" uuid="3766fa33-6281-4576-a9d1-3b984e1976d3"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Linha]]></text>
			</staticText>
			<staticText>
				<reportElement x="138" y="0" width="84" height="13" uuid="a427bc80-0924-441c-896b-a888a929d4f5"/>
				<textElement textAlignment="Center">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Empresa]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="808" y="0" width="43" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="8213fc73-da7f-47fc-b430-e9f4f3e4add7"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Sentido]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="851" y="0" width="68" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="4d299c7f-97c0-4b61-aaf6-b284a0d13aa6"/>
				<textElement textAlignment="Center" verticalAlignment="Top" 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[Plataforma]]></text>
			</staticText>
		</band>
	</title>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="13" splitType="Prevent">
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="61" height="13" uuid="bc091860-adab-47d8-8352-982bc8e484a3"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="92" y="0" width="46" height="13" uuid="82c36c16-1662-4af9-a285-c935ab350e79"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="HH.mm" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="222" y="0" width="46" height="13" uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[(""+$F{HORARIO}).substring(11,16)]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="268" y="0" width="100" height="13" uuid="17011486-0d4c-4e22-b534-48e0bb025673"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="368" y="0" width="100" height="13" uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="468" y="0" width="90" height="13" uuid="7be97f5f-b36b-4679-befb-e5f2b4532963"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{CLASSE}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="558" y="0" width="60" height="13" uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{CAPACIDADE}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="618" y="0" width="50" height="13" uuid="7c0246f5-739b-440c-a242-915117bd9fd1"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{OCUPACAO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="668" y="0" width="75" height="13" uuid="dd401917-6047-4e1b-9722-31fe8d096594"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{TIPO_SERVICO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
				<reportElement stretchType="RelativeToTallestObject" x="743" y="0" width="65" height="13" uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[""+ String.format("%.02f",$V{POR_OCUPACAO}) + "%"]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="61" y="0" width="31" height="13" uuid="bc091860-adab-47d8-8352-982bc8e484a3"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{CODLINHA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="138" y="0" width="84" height="13" uuid="773ac0f6-0c11-430d-8a10-8c62b272b064"/>
				<textElement textAlignment="Left">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{EMPRESA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="808" y="0" width="43" height="13" uuid="cce46f47-2fbf-45c2-8347-6d3572f19b92"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{SENTIDO}.equals("0") ? "VOLTA" : "IDA"]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="851" y="0" width="68" height="13" uuid="2365ef56-c413-4795-b3f1-e04100d71bc6"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{PLATAFORMA}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band/>
	</noData>
</jasperReport>
