<?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="RelatorioVendasPacotesDetalhado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="fecPacoteInicio" class="java.util.Date"/>
	<parameter name="fecPacoteFinal" class="java.util.Date" isForPrompting="false"/>
	<parameter name="noDataRelatorio" class="java.lang.String"/>
	<parameter name="subreporte" class="net.sf.jasperreports.engine.JasperReport">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="SUBREPORT_RESOURCE_BUNDLE" class="java.util.ResourceBundle"/>
	<parameter name="nompacote" class="java.lang.String"/>
	<parameter name="trecho" class="java.lang.String"/>
	<parameter name="origem" class="java.lang.String"/>
	<parameter name="destino" class="java.lang.String"/>
	<parameter name="usuario" class="java.lang.String"/>
	<parameter name="tipoTarifaPacote" class="java.lang.String"/>
	<parameter name="situacaoPacote" class="java.lang.String"/>
	<parameter name="voucherNotaCredito" class="java.lang.String"/>
	<parameter name="fecVendaInicio" class="java.util.Date"/>
	<parameter name="fecVendaFinal" class="java.util.Date" isForPrompting="false"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="nompacote" class="java.lang.String"/>
	<field name="relatorioVendasPacotesDetalhadoItemBeans" class="java.util.List"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="200" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="637" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
				<textElement markup="none">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement x="637" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="20" width="637" height="20" uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empresa} + " " + $P{empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="40" width="637" height="20" isRemoveLineWhenBlank="true" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b">
					<printWhenExpression><![CDATA[$P{fecPacoteInicio} != null && $P{fecPacoteFinal} != null]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodoPacote} +
" " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecPacoteInicio})
+ " " + $R{cabecalho.periodoA}
+ " " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecPacoteFinal})]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="80" width="637" height="20" uuid="66f394e2-0568-447d-9f46-c358a05628c5"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pacote} + " " + $P{nompacote}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="120" width="801" height="20" uuid="979b7126-0e47-4885-8a07-d8f9aa75a204"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.usuario} + " " + $P{usuario}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="140" width="801" height="20" uuid="fa1e3d80-b034-4acc-8e6e-e32ebbfb35d5"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.tipoTarifaPacote} + " " + $P{tipoTarifaPacote}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="100" width="801" height="20" uuid="eb151f53-cf44-4e98-a49b-9427f740f9fc"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.origem} + " " + $P{origem} + " " + $R{cabecalho.destino} + " " + $P{destino}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="160" width="801" height="20" uuid="0081e5f0-0219-4d52-a883-d932296d8764"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.situacaoPacote} + " " + $P{situacaoPacote}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="180" width="801" height="20" uuid="cc9c448f-3596-46c2-99bf-7ed4dc2cf865"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.voucherNotaCredito} + " " + $P{voucherNotaCredito}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="60" width="637" height="20" isRemoveLineWhenBlank="true" uuid="b7e70dbc-b468-47a0-8c5f-f3d7a67f8156">
					<printWhenExpression><![CDATA[$P{fecVendaInicio} != null && $P{fecVendaFinal} != null]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodoVenda} +
" " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecVendaInicio})
+ " " + $R{cabecalho.periodoA}
+ " " + new SimpleDateFormat("dd/MM/yyyy").format($P{fecVendaFinal})]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="21" splitType="Stretch">
			<line>
				<reportElement x="0" y="19" width="802" height="1" uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa"/>
			</line>
			<textField>
				<reportElement x="753" y="0" width="24" height="20" uuid="44c43d9d-c39d-49da-809a-87d7e06bf93b"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="674" y="0" width="79" height="20" uuid="6e243deb-c928-4ea6-a4cf-eeb2f708baca"/>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="777" y="0" width="22" height="20" uuid="6e022362-5a4e-4608-a181-a075d86a8c71"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="76" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement positionType="Float" x="0" y="1" width="801" height="20" isPrintWhenDetailOverflows="true" uuid="752263b1-e76b-41c5-a728-c17367094dab"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.pacote} + " " + $F{nompacote}]]></textFieldExpression>
			</textField>
			<subreport isUsingCache="true">
				<reportElement positionType="Float" x="0" y="27" width="801" height="38" uuid="75fad27f-9275-4535-844a-316ac8365073"/>
				<subreportParameter name="REPORT_RESOURCE_BUNDLE">
					<subreportParameterExpression><![CDATA[$P{SUBREPORT_RESOURCE_BUNDLE}]]></subreportParameterExpression>
				</subreportParameter>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{relatorioVendasPacotesDetalhadoItemBeans})]]></dataSourceExpression>
				<subreportExpression><![CDATA[$P{subreporte}]]></subreportExpression>
			</subreport>
			<line>
				<reportElement positionType="Float" x="0" y="68" width="802" height="1" uuid="29b89cc0-dcf8-4bdd-a667-7341d74330ea"/>
			</line>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
	<noData>
		<band height="35">
			<textField isBlankWhenNull="true">
				<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
