<?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="RelatorioTripulacao" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isIgnorePagination="true" uuid="d5ad1cbf-3b72-40fa-b0c7-0dd4a3aac974">
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
	<property name="ireport.zoom" value="3.452271214393123"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="titulo" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="nomeEmpresa" class="java.lang.String"/>
	<parameter name="nomeEmpleado" class="java.lang.String"/>
	<parameter name="fecInicio" class="java.util.Date"/>
	<parameter name="fecFinal" class="java.util.Date"/>
	<parameter name="tipoEmpleado" class="java.lang.String"/>
	<field name="nomeEmpleado" class="java.lang.String"/>
	<field name="fecha" class="java.util.Date"/>
	<field name="nomeOrigem" class="java.lang.String"/>
	<field name="nomeDestino" class="java.lang.String"/>
	<field name="distanciaKm" class="java.lang.Double"/>
	<field name="idEmpleado" class="java.lang.Long"/>
	<field name="corridaId" class="java.lang.Long"/>
	<field name="hora" class="java.lang.String"/>
	<field name="tipoEmpleadoTramo" class="java.lang.String"/>
	<field name="nomeMaterno" class="java.lang.String"/>
	<field name="nomePaterno" class="java.lang.String"/>
	<variable name="totalKM" class="java.lang.Double" resetType="Group" resetGroup="empleado" calculation="Sum">
		<variableExpression><![CDATA[$F{distanciaKm}]]></variableExpression>
		<initialValueExpression><![CDATA[0.0]]></initialValueExpression>
	</variable>
	<group name="tipoEmpleadoTramo">
		<groupExpression><![CDATA[$F{tipoEmpleadoTramo}]]></groupExpression>
	</group>
	<group name="empleado">
		<groupExpression><![CDATA[$F{idEmpleado}]]></groupExpression>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="40" splitType="Stretch">
			<textField>
				<reportElement uuid="f6832783-9c29-4cad-9f22-9720cfacf1b6" x="400" y="0" width="56" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement uuid="44b4f57c-9828-4cae-9e5f-b02bf81421b9" x="456" y="0" width="98" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8f1be949-b574-4f79-9fc3-ad18d94635c3" x="0" y="0" width="401" height="20"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{titulo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="2617faa7-82b9-4631-b1b1-aeab2d940b8e" x="167" y="22" width="58" height="12"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{filtro.empresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="f5b64932-6e93-408b-883b-6947fc45df32" x="17" y="22" width="43" height="12"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{filtro.periodo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="5d538a0a-bc1f-4ef2-9f31-877f2fb71ed5" x="312" y="22" width="52" height="12"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{filtro.empregado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="634786ed-bb56-43f4-9c17-c797a15368f2" x="439" y="22" width="60" height="12"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{filtro.tipoEmpregado}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="9f76f840-1ff6-469e-893f-7db8b470b627" x="60" y="22" width="53" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{fecInicio}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="7c1f3629-dd0d-4dd9-8ae2-070d4ade1366" x="499" y="22" width="55" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{tipoEmpleado}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="88100b48-af1c-4b1c-b5ca-7779f5fd637d" x="364" y="22" width="75" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{nomeEmpleado}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="d8070e66-07f1-474a-b9a7-ba55740c2031" x="225" y="22" width="87" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{nomeEmpresa}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="0b606534-b607-4a38-af7f-b28bce38bcd2" x="113" y="22" width="54" height="12"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{fecFinal}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="14">
			<textField>
				<reportElement uuid="e148679a-25dc-4c96-9497-e872e126abd3" x="259" y="0" width="100" height="14"/>
				<textElement markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.corridaId}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="a9bd4432-bc5f-459b-976a-d7a8f6dfd9a2" x="359" y="0" width="100" height="14"/>
				<textElement markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.fecha}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="703ec7e6-40ca-4cbf-a0a1-295218e08434" x="559" y="0" width="100" height="14"/>
				<textElement markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.nomeOrigem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="3b5a4c87-70ca-4614-bf08-55847461064c" x="659" y="0" width="87" height="14"/>
				<textElement markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.nomeDestino}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="24f31a18-4f1a-4371-af7f-fa2b2e5d8d96" x="459" y="0" width="100" height="14"/>
				<textElement markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.hora}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="6b84c912-0932-4851-aa4c-e1be076ffc6a" x="746" y="0" width="55" height="14"/>
				<textElement textAlignment="Right" markup="none">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.distanciaKm}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="89628efb-c65d-4fc7-98ab-af7c1e3c9fa5" mode="Transparent" x="128" y="0" width="131" height="14" backcolor="#FFFFFF"/>
				<textElement markup="none">
					<font size="10" isBold="true"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empleadoNome}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="cf168ea7-9011-4c9f-a86c-d0dc486b0db1" mode="Transparent" x="60" y="0" width="68" height="14" backcolor="#FFFFFF"/>
				<textElement markup="none">
					<font size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empleadoId}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="c0b8fcf8-1fcd-4dd2-a00d-549b66100249" x="1" y="0" width="59" height="14"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Tipo]]></text>
			</staticText>
		</band>
	</pageHeader>
	<detail>
		<band height="12">
			<textField pattern="dd/MM/yyyy">
				<reportElement uuid="86264348-3c96-4e1c-bfcf-6ae99678ad58" x="359" y="0" width="100" height="12"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{fecha}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e29b00a0-9cec-4ab5-af59-7eb97369cfa2" x="559" y="0" width="100" height="12"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeOrigem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="cf818fc9-459e-4a3f-9c56-48105b3f21ef" x="459" y="0" width="100" height="12"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{hora}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="914fa266-37c9-49d2-8b33-c34c306ea8fd" x="659" y="0" width="87" height="12"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeDestino}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement uuid="40b166b9-7d72-4686-8a07-439fbd452007" x="746" y="0" width="55" height="12"/>
				<textElement textAlignment="Right">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{distanciaKm}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="57fc4cf8-8a8e-4112-b017-c5a1fc388b9a" x="259" y="0" width="100" height="12"/>
				<textElement>
					<font size="9"/>
					<paragraph leftIndent="4"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{corridaId}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="4089971f-a6c6-43b7-adfb-1d1427a9e570" x="1" y="0" width="59" height="12"/>
				<textElement>
					<font size="9" isBold="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tipoEmpleadoTramo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="cbdbd675-769a-4cac-af77-0f5876f60864" mode="Transparent" x="60" y="0" width="68" height="12" backcolor="#FFFFFF"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{idEmpleado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="560ecce1-2a4a-42b2-b2da-ef04ae8b2363" mode="Transparent" x="128" y="0" width="131" height="12" backcolor="#FFFFFF"/>
				<textElement>
					<font size="9"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nomeEmpleado}.concat( ($F{nomePaterno}==null?" ":" "+$F{nomePaterno}) ) .concat( ($F{nomeMaterno}==null?" ":" "+$F{nomeMaterno})  )]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="17">
			<textField>
				<reportElement uuid="46c91d61-62ce-4350-8ea5-19fb20d611bd" x="0" y="0" width="554" height="15"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression><![CDATA[$R{label.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
