<?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="RelatorioAproveitamento" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="3308e98f-a36a-4ee6-bb41-be017c32427e">
	<property name="ireport.zoom" value="1.6105100000000019"/>
	<property name="ireport.x" value="309"/>
	<property name="ireport.y" value="0"/>
	<style name="Crosstab Data Text" hAlign="Center"/>
	<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="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="DATA" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["20/02/2013"]]></defaultValueExpression>
	</parameter>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Users\\PC\\Documents\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="P_NOMINAL_KM" class="java.lang.String"/>
	<parameter name="P_TOTAL_ARRECADADO" class="java.lang.String"/>
	<parameter name="P_ARRECADO_KM" class="java.lang.String"/>
	<parameter name="P_OCUPACAO" class="java.lang.String"/>
	<parameter name="P_OCUPACAO_ARRECADACAO" class="java.lang.String"/>
	<parameter name="P_OCUPACAO_S_ARRECADACAO" class="java.lang.String"/>
	<parameter name="P_TOTAL_NOMINAL" class="java.lang.String"/>
	<parameter name="CORRIDA_ID" class="java.lang.String"/>
	<parameter name="FECCORRIDA" class="java.util.Date"/>
	<parameter name="DESCMONEDA" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="cveparada" class="java.lang.String"/>
	<field name="asiento" class="java.math.BigDecimal"/>
	<field name="ocupado" class="java.math.BigDecimal"/>
	<field name="ocupadoOperacao" class="java.math.BigDecimal"/>
	<field name="numsecuencia" class="java.math.BigDecimal"/>
	<sortField name="numsecuencia"/>
	<sortField name="ocupado"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="106" splitType="Stretch">
			<rectangle>
				<reportElement uuid="8f226d21-ccdb-41b4-a01d-fb0712f0b4d3" x="0" y="0" width="802" height="30"/>
				<graphicElement>
					<pen lineWidth="0.75" lineStyle="Solid"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="b6aa9717-79c4-4f13-91df-9b0255003a16" x="0" y="40" width="802" height="39"/>
				<graphicElement>
					<pen lineWidth="0.75" lineStyle="Solid"/>
				</graphicElement>
			</rectangle>
			<textField>
				<reportElement uuid="eb300dc6-1610-409d-8589-72b1539f86d3" x="77" y="0" width="531" height="15"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a125ac5c-e00c-4ac5-bc03-317c514f1ad8" x="12" y="15" width="65" height="15"/>
				<textElement markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.servico}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="88bb80e0-40a4-490c-914a-01a41178168b" x="244" y="15" width="65" height="15"/>
				<textElement markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.data}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a3d3c093-a9f4-4b32-823f-b4f548e46c2f" x="77" y="15" width="167" height="15"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{CORRIDA_ID}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="995111bb-4726-421b-a538-db8b53b3f206" x="12" y="40" width="78" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.totalArrecadado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="3a0c6793-e57f-44c7-8588-1692055bf62a" x="12" y="51" width="78" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.arrecadadoKm}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a0ec9db5-a7be-4407-b257-e49dd7fe6811" x="255" y="40" width="130" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.ocupacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="0325af45-b23b-45ba-a8c6-dea75a36bb75" x="255" y="51" width="130" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.ocupacaoComArrecadacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="bec7dafe-b775-495d-8233-301b351597ac" x="12" y="63" width="78" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.nominalKm}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="fcaa51c2-2057-4aa4-bb84-adae3ef5c34e" x="255" y="63" width="130" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.ocupacaoSemArrecadacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="5cc7b439-0a60-4581-a67c-83519a4fd977" x="542" y="40" width="78" height="11"/>
				<textElement markup="none">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{sumario.totalNominal}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="5b56b7a4-1abd-43cc-8071-e949d5575a45" x="243" y="40" width="1" height="39" forecolor="#CCCCCC"/>
			</line>
			<line>
				<reportElement uuid="98b93926-7900-4445-bbe6-024e456fd45e" x="530" y="40" width="1" height="39" forecolor="#CCCCCC"/>
			</line>
			<textField>
				<reportElement uuid="bdfd7f9e-e50e-4a8b-bba4-2fc8a909f38b" x="90" y="63" width="85" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_NOMINAL_KM}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="7eb2d8d3-4a3f-40cd-8117-8e53ab128f34" x="90" y="40" width="85" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_TOTAL_ARRECADADO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="64600377-6028-4c56-b0f1-3acf6ceeb708" x="90" y="51" width="85" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_ARRECADO_KM}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="6b68d2b4-0fa0-41a4-bdf5-0eaccb7d1f59" x="385" y="40" width="33" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_OCUPACAO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="66317ebd-e503-420c-8886-8385b782770d" x="385" y="51" width="33" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_OCUPACAO_ARRECADACAO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a6ff7221-60b5-4d08-b7e8-7b10db0b97a6" x="385" y="63" width="33" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_OCUPACAO_S_ARRECADACAO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="9eebfdd7-504b-4e98-8893-63bdb8c02b54" x="628" y="40" width="74" height="11"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{P_TOTAL_NOMINAL}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="0eccc14c-3288-43e8-8731-7c876e4d659e" x="309" y="15" width="100" height="15"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="11a895de-bf79-45dc-8d47-ea6ef8bf562c" x="12" y="0" width="65" height="15"/>
				<textElement>
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.relatorio}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="3a123294-f53f-40c2-b412-ff71cb7f2d98" style="Crosstab Data Text" x="72" y="87" width="18" height="8"/>
				<textElement>
					<font size="6" isBold="true"/>
				</textElement>
				<text><![CDATA[O]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="756fd1c7-16bc-4f9a-8e98-c31b46cc48b6" style="Crosstab Data Text" x="200" y="87" width="18" height="8" backcolor="#FFFFFF"/>
				<textElement>
					<font size="6" isBold="true"/>
				</textElement>
				<text><![CDATA[E]]></text>
			</staticText>
			<textField>
				<reportElement uuid="ed96b163-866d-4f9c-8955-38eee360f49e" x="90" y="87" width="76" height="8"/>
				<textElement markup="none">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{legenda.ocupacaoOperacional}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="1eb3ad3e-e20c-4852-892c-dff3ecf5da3f" x="218" y="87" width="76" height="8"/>
				<textElement markup="none">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{legenda.poltronaExclusiva}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="30ce4f5d-d891-4be8-aeaa-694bcb2c3d6e" x="410" y="15" width="65" height="15"/>
				<textElement markup="none">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.moneda}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="63080cb0-d5df-4465-aedc-8b4f5035cd07" x="475" y="15" width="133" height="15"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DESCMONEDA}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<summary>
		<band height="47">
			<crosstab>
				<reportElement uuid="eff55ca1-3935-4726-82a1-4a15e4518714" x="0" y="0" width="802" height="47"/>
				<rowGroup name="asiento" width="16">
					<bucket class="java.math.BigDecimal">
						<bucketExpression><![CDATA[$F{asiento}]]></bucketExpression>
					</bucket>
					<crosstabRowHeader>
						<cellContents backcolor="#F0F8FF" mode="Opaque">
							<box>
								<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
							</box>
							<textField>
								<reportElement uuid="1d4e483e-bf24-4da5-ab8c-62bf83e6c1bb" style="Crosstab Data Text" x="0" y="0" width="15" height="8"/>
								<textElement>
									<font size="6"/>
								</textElement>
								<textFieldExpression><![CDATA[$V{asiento}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabRowHeader>
					<crosstabTotalRowHeader>
						<cellContents/>
					</crosstabTotalRowHeader>
				</rowGroup>
				<columnGroup name="numsecuencia" height="0">
					<bucket class="java.math.BigDecimal">
						<bucketExpression><![CDATA[$F{numsecuencia}]]></bucketExpression>
					</bucket>
					<crosstabColumnHeader>
						<cellContents backcolor="#F0F8FF" mode="Opaque">
							<box>
								<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
							</box>
						</cellContents>
					</crosstabColumnHeader>
					<crosstabTotalColumnHeader>
						<cellContents/>
					</crosstabTotalColumnHeader>
				</columnGroup>
				<columnGroup name="cveparada" height="10">
					<bucket class="java.lang.String">
						<bucketExpression><![CDATA[$F{cveparada}]]></bucketExpression>
					</bucket>
					<crosstabColumnHeader>
						<cellContents backcolor="#F0F8FF" mode="Opaque">
							<box>
								<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
							</box>
							<textField>
								<reportElement uuid="92b133ad-3903-4c0c-8aeb-593d907cac98" style="Crosstab Data Text" x="0" y="0" width="20" height="10"/>
								<textElement>
									<font size="7"/>
								</textElement>
								<textFieldExpression><![CDATA[$V{cveparada}]]></textFieldExpression>
							</textField>
						</cellContents>
					</crosstabColumnHeader>
					<crosstabTotalColumnHeader>
						<cellContents/>
					</crosstabTotalColumnHeader>
				</columnGroup>
				<measure name="ocupadoMeasure" class="java.math.BigDecimal" calculation="Lowest">
					<measureExpression><![CDATA[$F{ocupado}]]></measureExpression>
				</measure>
				<measure name="ocupadoOperacaoMeasure" class="java.lang.Number" calculation="Lowest">
					<measureExpression><![CDATA[$F{ocupadoOperacao}]]></measureExpression>
				</measure>
				<crosstabCell width="20" height="8">
					<cellContents>
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<elementGroup>
							<rectangle radius="0">
								<reportElement uuid="bc96586e-75d2-4c8a-9225-f63fe33165d0" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#00FFFF">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 1]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="259b2b7f-cade-4df7-9c89-72a225c62776" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#FFAFAF">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 2]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="8e43f640-9de0-457e-938d-ca2d7012d919" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#C0C0C0">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 3]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="81e379b2-8a72-44d9-9561-e43b82e98e3c" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#00FF00">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 4]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="14f27af8-ce53-48f5-ab9d-991aafbe15bb" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#FF0000">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure} == null ? $V{ocupadoOperacaoMeasure} != null: $V{ocupadoMeasure}.intValue() == 5]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="b98ab63f-8b99-4e97-a439-e5b0d4afa627" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#FF00FF">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 6]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="a7c3a624-f104-421e-afb0-01abc19644ec" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#000000" backcolor="#FFFF00">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() == 7]]></printWhenExpression>
								</reportElement>
							</rectangle>
							<rectangle radius="0">
								<reportElement uuid="0f50449e-8901-4eec-bca1-c7343268a0ff" style="Crosstab Data Text" x="0" y="0" width="20" height="8" forecolor="#FFFFFF" backcolor="#000000">
									<printWhenExpression><![CDATA[$V{ocupadoMeasure}.intValue() > 7]]></printWhenExpression>
								</reportElement>
							</rectangle>
						</elementGroup>
						<staticText>
							<reportElement uuid="8fcc35fd-62a3-4480-bc4e-467eb3668653" style="Crosstab Data Text" x="0" y="2" width="20" height="2">
								<printWhenExpression><![CDATA[$V{ocupadoOperacaoMeasure}.intValue() == 2]]></printWhenExpression>
							</reportElement>
							<textElement>
								<font isBold="true"/>
							</textElement>
							<text><![CDATA[O]]></text>
						</staticText>
						<staticText>
							<reportElement uuid="55cf6871-62ff-4e1f-867f-8e22dbfdc305" style="Crosstab Data Text" x="0" y="4" width="20" height="2">
								<printWhenExpression><![CDATA[$V{ocupadoOperacaoMeasure}.intValue() == 1]]></printWhenExpression>
							</reportElement>
							<textElement>
								<font isBold="true"/>
							</textElement>
							<text><![CDATA[E]]></text>
						</staticText>
					</cellContents>
				</crosstabCell>
				<crosstabCell height="25" rowTotalGroup="asiento">
					<cellContents backcolor="#BFE1FF" mode="Opaque">
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<textField>
							<reportElement uuid="10f494b4-33d7-49c7-ac38-32cb02d7c493" style="Crosstab Data Text" x="0" y="0" width="50" height="25"/>
							<textElement/>
							<textFieldExpression><![CDATA[$V{ocupadoMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell width="50" columnTotalGroup="numsecuencia">
					<cellContents backcolor="#005FB3" mode="Opaque">
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<textField>
							<reportElement uuid="294894a3-4154-42ab-a716-5b0b0baac4d1" style="Crosstab Data Text" x="0" y="0" width="50" height="25" forecolor="#FFFFFF"/>
							<textElement/>
							<textFieldExpression><![CDATA[$V{ocupadoMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell rowTotalGroup="asiento" columnTotalGroup="numsecuencia">
					<cellContents backcolor="#005FB3" mode="Opaque">
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<textField>
							<reportElement uuid="39e993e0-05ef-447e-82db-d0ae1829485b" style="Crosstab Data Text" x="0" y="0" width="50" height="25" forecolor="#FFFFFF"/>
							<textElement/>
							<textFieldExpression><![CDATA[$V{ocupadoMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell width="50" columnTotalGroup="cveparada">
					<cellContents backcolor="#BFE1FF" mode="Opaque">
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<textField>
							<reportElement uuid="5b616be4-ef52-429c-8752-84f5873a23da" style="Crosstab Data Text" x="0" y="0" width="50" height="25"/>
							<textElement/>
							<textFieldExpression><![CDATA[$V{ocupadoMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
				<crosstabCell rowTotalGroup="asiento" columnTotalGroup="cveparada">
					<cellContents backcolor="#BFE1FF" mode="Opaque">
						<box>
							<pen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
						</box>
						<textField>
							<reportElement uuid="4adf1aa7-2515-434f-98c7-26072ed402b5" style="Crosstab Data Text" x="0" y="0" width="50" height="25"/>
							<textElement/>
							<textFieldExpression><![CDATA[$V{ocupadoMeasure}]]></textFieldExpression>
						</textField>
					</cellContents>
				</crosstabCell>
			</crosstab>
		</band>
	</summary>
	<noData>
		<band height="50">
			<textField>
				<reportElement uuid="4a218426-e82c-4eed-9f30-eb9430eef10b" x="12" y="16" width="530" height="20"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
