<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="SUB_IND_REQUISICAO"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="535"
		 pageHeight="842"
		 columnWidth="535"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="0"
		 bottomMargin="0"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<property name="ireport.scriptlethandling" value="0" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<parameter name="SUBREPORT_DIR_IND" isForPrompting="false" class="java.lang.String"/>

	<field name="identificador" class="java.lang.Long">
		<fieldDescription><![CDATA[produto.identificador]]></fieldDescription>
	</field>
	<field name="nome" class="java.lang.String">
		<fieldDescription><![CDATA[produto.nome]]></fieldDescription>
	</field>
	<field name="sigla" class="java.lang.String">
		<fieldDescription><![CDATA[produto.unidadeMedida.sigla]]></fieldDescription>
	</field>
	<field name="grade" class="java.util.List">
		<fieldDescription><![CDATA[gradeItemRequisicao]]></fieldDescription>
	</field>
	<field name="codigo" class="java.lang.String">
		<fieldDescription><![CDATA[centroCusto.codigo]]></fieldDescription>
	</field>
	<field name="nome_1" class="java.lang.String">
		<fieldDescription><![CDATA[centroCusto.nome]]></fieldDescription>
	</field>
	<field name="codigo_1" class="java.lang.String">
		<fieldDescription><![CDATA[planoContaGerencial.codigo]]></fieldDescription>
	</field>
	<field name="descricao" class="java.lang.String">
		<fieldDescription><![CDATA[planoContaGerencial.descricao]]></fieldDescription>
	</field>
	<field name="identificador_1" class="java.lang.Long">
		<fieldDescription><![CDATA[planoContaGerencial.identificador]]></fieldDescription>
	</field>
	<field name="reduzida" class="java.lang.String">
		<fieldDescription><![CDATA[planoContaDeb.reduzida]]></fieldDescription>
	</field>
	<field name="descricao_1" class="java.lang.String">
		<fieldDescription><![CDATA[planoContaDeb.descricao]]></fieldDescription>
	</field>
	<field name="codigo_2" class="java.lang.String">
		<fieldDescription><![CDATA[planoContaDeb.codigo]]></fieldDescription>
	</field>
	<field name="identificador_2" class="java.lang.Long">
		<fieldDescription><![CDATA[lancamentoCtbGerencial.identificador]]></fieldDescription>
	</field>
	<field name="quantidadeTotal" class="java.lang.Double">
		<fieldDescription><![CDATA[quantidadeTotal]]></fieldDescription>
	</field>

		<background>
			<band height="1"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="11"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="0"
						y="1"
						width="59"
						height="10"
						key="staticText-1"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[Produto:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="176"
						y="1"
						width="24"
						height="10"
						key="staticText-2"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[UM]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="260"
						y="1"
						width="36"
						height="10"
						key="staticText-14"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[Descrição:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="405"
						y="1"
						width="62"
						height="10"
						key="staticText-15"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[Lote Fabricação:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="485"
						y="1"
						width="43"
						height="10"
						key="staticText-16"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[Quantidade:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="200"
						y="1"
						width="59"
						height="10"
						key="staticText-17"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[Centro de Custo]]></text>
				</staticText>
			</band>
		</title>
		<pageHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="11"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="200"
						y="0"
						width="59"
						height="10"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{codigo}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="260"
						y="0"
						width="145"
						height="10"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement>
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{nome_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="1"
						width="24"
						height="10"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.Long"><![CDATA[$F{identificador}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="25"
						y="1"
						width="150"
						height="10"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement>
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[" - "+$F{nome}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="176"
						y="1"
						width="24"
						height="10"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{sigla}]]></textFieldExpression>
				</textField>
				<subreport  isUsingCache="true">
					<reportElement
						x="405"
						y="-1"
						width="64"
						height="10"
						key="subreport-1"
						positionType="Float"/>
					<subreportParameter  name="SUBREPORT_DIR_IND">
						<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR_IND}]]></subreportParameterExpression>
					</subreportParameter>
					<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{grade})]]></dataSourceExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR_IND} + "SUB_IND_REQUISICAO_GRADE_ITEM.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
