<?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="RelatorioVendasRequisicao" 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.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="Crosstab Data Text" hAlign="Center"/>
	<parameter name="empresa" class="java.lang.String"/>
	<parameter name="puntoventa" class="java.lang.String"/>
	<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="id" class="java.lang.Long"/>
	<field name="descricao" class="java.lang.String"/>
	<field name="registro" class="java.lang.String"/>
	<field name="mac" class="java.lang.String"/>
	<field name="mei" class="java.lang.String"/>
	<field name="puntoVenta" class="java.lang.String"/>
	<field name="bloqueado" class="java.lang.Boolean"/>
	<field name="manutencao" class="java.lang.Boolean"/>
	<field name="baixado" class="java.lang.Boolean"/>
	<field name="usuario" class="java.lang.String"/>
	<field name="puntoVentaBpe" class="java.lang.String"/>
	<field name="usuarioBpe" class="java.lang.String"/>
	<variable name="MAC" class="java.lang.String">
		<variableExpression><![CDATA[$V{DESC_MAC}.substring(0, 2)+"-"+
$V{DESC_MAC}.substring(2, 4)+"-"+
$V{DESC_MAC}.substring(4, 6)+"-"+
$V{DESC_MAC}.substring(6, 8)+"-"+
$V{DESC_MAC}.substring(8, 10)+"-"+
$V{DESC_MAC}.substring(10, 12)]]></variableExpression>
	</variable>
	<variable name="DESC_MAC" class="java.lang.String">
		<variableExpression><![CDATA[Long.toHexString(Long.parseLong($F{mac}))]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="44" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="342" 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="638" 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>
			<staticText>
				<reportElement x="0" y="20" width="95" height="20" uuid="a91f6081-4740-4e36-8965-41b6cde4cc20"/>
				<text><![CDATA[Empresa:]]></text>
			</staticText>
			<line>
				<reportElement x="0" y="41" width="801" height="1" uuid="3a4eed21-70b4-44c0-8d34-8c53d44de3cf"/>
			</line>
			<textField>
				<reportElement x="95" y="20" width="247" height="20" uuid="e6215ddf-94d9-4b7e-840b-d0fb9855795c"/>
				<textFieldExpression><![CDATA[$P{EMPRESA_ID}+" - "+$P{empresa}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="39">
			<textField>
				<reportElement x="606" y="1" width="195" height="20" uuid="701a95fd-2c75-40c1-bb18-0e784375e289"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de} + " " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="25" y="23" width="100" height="16" uuid="75e53320-bdd4-45e0-902b-3fafdf90068e"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Descrição]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="23" width="26" height="16" uuid="a8b0ee47-fa8a-445f-a374-cff850b10e9b"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[ID]]></text>
			</staticText>
			<staticText>
				<reportElement x="125" y="23" width="61" height="16" uuid="25785916-76a5-476c-a0cd-94296724136b"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Registro]]></text>
			</staticText>
			<staticText>
				<reportElement x="186" y="23" width="100" height="16" uuid="afbc7a84-0ad7-41ee-8bd7-06d84620c6ac"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[MAC]]></text>
			</staticText>
			<staticText>
				<reportElement x="286" y="23" width="100" height="16" uuid="e35b00a9-aa03-451e-ab46-94481e196ceb"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[MEI]]></text>
			</staticText>
			<staticText>
				<reportElement x="386" y="23" width="100" height="16" uuid="d7dfa4b9-c39d-4052-8b8c-0c9690618504"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Punto Venta]]></text>
			</staticText>
			<staticText>
				<reportElement x="486" y="23" width="50" height="16" uuid="423a69b6-bbb2-47ee-af94-b382d083ee27"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Bloqueado]]></text>
			</staticText>
			<staticText>
				<reportElement x="536" y="23" width="56" height="16" uuid="d8f3a8cf-e38f-4503-80f8-af75d42dea48"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Manutenção]]></text>
			</staticText>
			<staticText>
				<reportElement x="592" y="23" width="46" height="16" uuid="96ba869d-399c-4e6a-9d8c-cbc4cf09e709"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Baixado]]></text>
			</staticText>
			<staticText>
				<reportElement x="638" y="23" width="35" height="16" uuid="3d802b23-09bd-4d79-84e5-38b1edd41b6f"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Usuário]]></text>
			</staticText>
			<staticText>
				<reportElement x="673" y="23" width="72" height="16" uuid="ca2731c9-b79a-4ff9-af42-679ec93def0d"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Pto. Venta Bpe]]></text>
			</staticText>
			<staticText>
				<reportElement x="745" y="23" width="56" height="16" uuid="e27e018d-3aa5-42b7-a595-45bbbd25ef56"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Usuário Bpe]]></text>
			</staticText>
		</band>
	</pageHeader>
	<detail>
		<band height="17">
			<textField>
				<reportElement x="25" y="-1" width="100" height="16" uuid="77afab70-30c9-446b-85bb-2b75e42d6258"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descricao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="-1" width="26" height="16" uuid="9f405a85-379c-4620-b778-59a8d521cba8"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{id}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="125" y="-1" width="61" height="16" uuid="74a70bbf-4b5c-464b-86d2-12fe03bfc8c4"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{registro}]]></textFieldExpression>
			</textField>
			<textField pattern="">
				<reportElement x="186" y="-1" width="100" height="16" uuid="3ae29b61-c75c-4eb7-9398-bcaef3b1b782"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{DESC_MAC}.toUpperCase()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="286" y="-1" width="100" height="16" uuid="972a3e6b-90f3-496b-8691-a62ecd5ea6af"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{mei}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="386" y="-1" width="100" height="16" uuid="587184da-a10f-4e28-aa91-4da020f25005"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{puntoVenta}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="486" y="-1" width="50" height="16" uuid="77cc130c-51d1-496f-8302-b88eb2d5a439"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{bloqueado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="536" y="-1" width="56" height="16" uuid="2528de0c-d7e5-4f92-b7ee-f9b75adf0f7a"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{manutencao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="592" y="-1" width="46" height="16" uuid="2b450a4b-a86d-4abb-b1f4-1a07ffe2591d"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{baixado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="638" y="-1" width="35" height="16" uuid="e40e8d17-7b75-4f53-82f6-005e29ed9542"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{usuario}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="673" y="-1" width="72" height="16" uuid="2f721f36-11ae-49d8-9ebb-2df9dec33a7f"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{puntoVentaBpe}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="745" y="-1" width="56" height="16" uuid="e9a7787b-da61-462f-96a7-b1dc5193382f"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{usuarioBpe}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<noData>
		<band height="20">
			<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>
