<?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="RelatorioHistoricoClientes" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="832" leftMargin="5" rightMargin="5" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.3310000000000064"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="AGRUPAR" class="java.lang.Boolean"/>
	<field name="numFidelidade" class="java.lang.String"/>
	<field name="cliente" class="java.lang.String"/>
	<field name="identificaUno" class="java.lang.String"/>
	<field name="identificaDos" class="java.lang.String"/>
	<field name="fecNascimento" class="java.util.Date"/>
	<field name="celular" class="java.lang.String"/>
	<field name="telefone" class="java.lang.String"/>
	<field name="fax" class="java.lang.String"/>
	<field name="email" class="java.lang.String"/>
	<field name="sexo" class="java.lang.String"/>
	<field name="fecCadastro" class="java.util.Date"/>
	<field name="empresaId" class="java.lang.Integer"/>
	<field name="codUsuario" class="java.lang.String"/>
	<field name="usuario" class="java.lang.String"/>
	<field name="codigoPuntoVenta" class="java.lang.String"/>
	<field name="puntoVenta" class="java.lang.String"/>
	<field name="descIdentificaUno" class="java.lang.String"/>
	<field name="descIdentificaDos" class="java.lang.String"/>
	<title>
		<band height="79" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="0" y="0" width="457" height="41" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="811" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="728" y="42" width="104" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="728" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="543" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single" markup="none">
					<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="543" y="0" width="185" height="25"/>
				<textElement textAlignment="Right" lineSpacing="Single">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="-1" y="58" width="832" height="1"/>
			</line>
			<textField isStretchWithOverflow="true">
				<reportElement x="-1" y="59" width="833" height="15"/>
				<textElement verticalAlignment="Middle" lineSpacing="Single">
					<font size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement positionType="Float" x="-1" y="78" width="832" height="1"/>
			</line>
		</band>
	</title>
	<columnHeader>
		<band height="15">
			<textField>
				<reportElement x="0" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.numFidelidade}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="48" y="0" width="63" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.cliente}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="111" y="0" width="63" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.identificaUno}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="174" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.identificaDos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="222" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.fecNascimento}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="318" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.telefone}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="366" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.fax}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="462" y="0" width="25" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.sexo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="487" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.fecCadastro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="535" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.empresaId}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="583" y="0" width="60" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.codUsuario}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="643" y="0" width="60" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.usuario}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="703" y="0" width="60" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.codigoPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="763" y="0" width="60" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="414" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.email}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="270" y="0" width="48" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{label.celular}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{numFidelidade}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="48" y="0" width="63" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="111" y="0" width="63" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{identificaUno}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="174" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{identificaDos}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="222" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{fecNascimento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="270" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{celular}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="318" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{telefone}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="366" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{fax}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="414" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{email}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="462" y="0" width="25" height="15"/>
				<textElement textAlignment="Center" lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{sexo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="487" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{fecCadastro}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="535" y="0" width="48" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{empresaId} == 0 ? "" : $F{empresaId}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="583" y="0" width="60" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{codUsuario}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="643" y="0" width="60" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{usuario}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="703" y="0" width="60" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{codigoPuntoVenta}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="763" y="0" width="60" height="15"/>
				<textElement lineSpacing="Single">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{puntoVenta}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="50">
			<textField>
				<reportElement x="0" y="24" width="831" height="26"/>
				<textElement lineSpacing="Single" markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
