relatorioMultasOrgao.jrxml 10.9 KB
<?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="relatorioMultasOgao" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<style name="zebrado" isDefault="false">
		<conditionalStyle>
			<conditionExpression><![CDATA[new Boolean(($V{COLUMN_COUNT}.intValue() % 2) == 0)]]></conditionExpression>
			<style isDefault="false" style="zebrado" mode="Opaque" forecolor="#000000" backcolor="#FFD8B0"/>
		</conditionalStyle>
	</style>
	<parameter name="IMAGEM_URI" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="dtInicial" class="java.util.Date">
		<fieldDescription><![CDATA[dtInicial]]></fieldDescription>
	</field>
	<field name="dtFinal" class="java.util.Date">
		<fieldDescription><![CDATA[dtFinal]]></fieldDescription>
	</field>
	<field name="orgao" class="br.gov.ce.fortaleza.cti.sgf.entity.UG">
		<fieldDescription><![CDATA[orgao]]></fieldDescription>
	</field>
	<field name="multa" class="br.gov.ce.fortaleza.cti.sgf.entity.Multa">
		<fieldDescription><![CDATA[multa]]></fieldDescription>
	</field>
	<group name="Orgao">
		<groupExpression><![CDATA[$F{orgao}]]></groupExpression>
		<groupHeader>
			<band height="40">
				<staticText>
					<reportElement x="0" y="3" width="48" height="14"/>
					<textElement>
						<font size="10" isBold="true"/>
					</textElement>
					<text><![CDATA[Orgão:]]></text>
				</staticText>
				<textField>
					<reportElement x="48" y="3" width="438" height="14"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{orgao}.getDescricao()]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="669" y="22" width="49" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Valor]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="129" y="22" width="218" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Motorista]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="544" y="22" width="76" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Gravidade]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="1" y="22" width="127" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Placa]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="348" y="22" width="195" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Infração]]></text>
				</staticText>
				<line>
					<reportElement x="0" y="19" width="802" height="1" forecolor="#990000"/>
				</line>
				<line>
					<reportElement x="0" y="37" width="802" height="1" forecolor="#990000"/>
				</line>
				<staticText>
					<reportElement mode="Opaque" x="621" y="22" width="47" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Pontos]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="719" y="22" width="82" height="14" forecolor="#FFFFFF" backcolor="#990000"/>
					<textElement>
						<font fontName="Verdana" size="11" isBold="true"/>
					</textElement>
					<text><![CDATA[Data]]></text>
				</staticText>
				<line>
					<reportElement x="0" y="1" width="802" height="1" forecolor="#990000"/>
				</line>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="86" splitType="Stretch">
			<image>
				<reportElement x="0" y="6" width="245" height="75" forecolor="#000000" backcolor="#FFFFFF"/>
				<imageExpression class="java.lang.String"><![CDATA[$P{IMAGEM_URI}+"fortaleza-bela.gif"]]></imageExpression>
			</image>
			<line>
				<reportElement x="0" y="82" width="802" height="1" forecolor="#990000" backcolor="#FFFFFF"/>
			</line>
			<line>
				<reportElement x="0" y="2" width="802" height="1" forecolor="#990000" backcolor="#FFFFFF"/>
				<graphicElement>
					<pen lineWidth="3.0"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement x="259" y="6" width="305" height="33" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement markup="none">
					<font fontName="Verdana" size="19"/>
				</textElement>
				<text><![CDATA[Sistema de Gestão de Frotas]]></text>
			</staticText>
			<staticText>
				<reportElement x="259" y="61" width="227" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement>
					<font fontName="Verdana"/>
				</textElement>
				<text><![CDATA[Relatório de Multas de Veículo]]></text>
			</staticText>
			<staticText>
				<reportElement x="259" y="39" width="195" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement>
					<font fontName="Verdana"/>
				</textElement>
				<text><![CDATA[Prefeitura Municipal de Fortaleza]]></text>
			</staticText>
		</band>
	</title>
	<pageHeader>
		<band height="18" splitType="Stretch">
			<textField>
				<reportElement x="684" y="3" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression class="java.lang.String"><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="764" y="3" width="40" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="17" width="802" height="1" forecolor="#990000" backcolor="#FFFFFF"/>
			</line>
			<staticText>
				<reportElement x="1" y="1" width="44" height="14"/>
				<textElement>
					<font size="11" isBold="true"/>
				</textElement>
				<text><![CDATA[Data:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="47" y="1" width="86" height="14"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="31" splitType="Stretch">
			<staticText>
				<reportElement x="1" y="0" width="75" height="14"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Data inicio:]]></text>
			</staticText>
			<textField pattern="MM/yyyy">
				<reportElement x="76" y="0" width="100" height="14"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{dtInicial}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="1" y="14" width="75" height="14"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Data final:]]></text>
			</staticText>
			<textField pattern="MM/yyyy">
				<reportElement x="76" y="14" width="100" height="14"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{dtFinal}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="17" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement style="zebrado" x="1" y="0" width="127" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{multa}.getVeiculo().getPlaca()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement style="zebrado" x="129" y="0" width="218" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{multa}.getMotorista().getPessoa().getNome()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement style="zebrado" x="349" y="0" width="194" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{multa}.getInfracao().getDescricao()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement style="zebrado" x="544" y="0" width="76" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{multa}.getInfracao().getGravidade()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement style="zebrado" x="621" y="0" width="47" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$F{multa}.getInfracao().getPontuacao()]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00">
				<reportElement style="zebrado" x="669" y="0" width="49" height="14"/>
				<textElement/>
				<textFieldExpression class="java.lang.Float"><![CDATA[$F{multa}.getInfracao().getValor()]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement style="zebrado" x="719" y="0" width="82" height="14"/>
				<textElement/>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{multa}.getDataInfracao()]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="5" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="22" splitType="Stretch">
			<staticText>
				<reportElement x="342" y="5" width="100" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Center"/>
				<text><![CDATA[V. 1.0]]></text>
			</staticText>
			<textField>
				<reportElement x="681" y="4" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression class="java.lang.String"><![CDATA["Página "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="1" y="4" width="227" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement>
					<font fontName="Verdana"/>
				</textElement>
				<text><![CDATA[Relatório de Multas de Veículo]]></text>
			</staticText>
			<textField evaluationTime="Report">
				<reportElement x="761" y="4" width="40" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="3" width="802" height="1" forecolor="#990000" backcolor="#FFFFFF"/>
			</line>
		</band>
	</pageFooter>
	<summary>
		<band height="10" splitType="Stretch"/>
	</summary>
</jasperReport>