diff --git a/web/reports/gesacAvail.jrxml b/web/reports/gesacAvail.jrxml new file mode 100644 index 0000000000000000000000000000000000000000..5cf844045174771bfebe27f37ecb66f81714e9f0 --- /dev/null +++ b/web/reports/gesacAvail.jrxml @@ -0,0 +1,234 @@ +<?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="teste_inventRelatorio" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="8aebead2-33a3-49b2-80db-ae7b6301ad20"> + <property name="ireport.zoom" value="1.0"/> + <property name="ireport.x" value="0"/> + <property name="ireport.y" value="0"/> + <parameter name="imagesPath" class="java.lang.String"/> + <parameter name="ID_CITY" class="java.lang.Integer"/> + <queryString> + <![CDATA[SELECT * FROM availability_report($P{ID_CITY});]]> + </queryString> + <field name="load_date" class="java.lang.String"/> + <field name="machine" class="java.lang.Object"/> + <field name="region" class="java.lang.String"/> + <field name="state" class="java.lang.String"/> + <field name="city" class="java.lang.String"/> + <field name="last_contact" class="java.sql.Date"/> + <field name="days_last_contact" class="java.lang.Integer"/> + <field name="month_contacts" class="java.lang.Long"/> + <field name="telecenter" class="java.lang.String"/> + <field name="green" class="java.lang.Boolean"/> + <field name="yellow" class="java.lang.Boolean"/> + <field name="red" class="java.lang.Boolean"/> + <group name="escola"> + <groupExpression><![CDATA[$F{telecenter}]]></groupExpression> + <groupHeader> + <band height="17"> + <textField> + <reportElement uuid="f72733a1-808b-4104-8fe9-40490705c20e" mode="Opaque" x="1" y="3" width="552" height="13" backcolor="#DFDFDF"/> + <textElement verticalAlignment="Top"> + <font isBold="true" isPdfEmbedded="true"/> + </textElement> + <textFieldExpression><![CDATA[$F{telecenter}]]></textFieldExpression> + </textField> + </band> + </groupHeader> + </group> + <background> + <band splitType="Stretch"/> + </background> + <title> + <band height="117" splitType="Stretch"> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Transparent" x="1" y="2" width="554" height="24" backcolor="#CCCCCC"/> + <textElement> + <font size="14" isBold="true"/> + </textElement> + <text><![CDATA[Relatório de Disponibilidade por Cidade]]></text> + </staticText> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Transparent" x="0" y="26" width="41" height="22" backcolor="#CCCCCC"/> + <textElement> + <font size="12" isBold="false"/> + </textElement> + <text><![CDATA[Data:]]></text> + </staticText> + <textField> + <reportElement uuid="cc76f6ba-e2f8-48c0-ade1-b4d9cb4d9dab" x="34" y="27" width="79" height="20"/> + <textElement> + <font size="12"/> + </textElement> + <textFieldExpression><![CDATA[$F{load_date}]]></textFieldExpression> + </textField> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Transparent" x="1" y="74" width="54" height="22" backcolor="#CCCCCC"/> + <textElement> + <font size="12" isBold="false"/> + </textElement> + <text><![CDATA[Estado:]]></text> + </staticText> + <textField> + <reportElement uuid="f8d02fd9-b48e-4238-b143-9115259a10d6" x="47" y="75" width="100" height="20"/> + <textElement> + <font size="12"/> + </textElement> + <textFieldExpression><![CDATA[$F{state}]]></textFieldExpression> + </textField> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Transparent" x="0" y="51" width="54" height="22" backcolor="#CCCCCC"/> + <textElement> + <font size="12" isBold="false"/> + </textElement> + <text><![CDATA[Região:]]></text> + </staticText> + <textField> + <reportElement uuid="8d523ce9-f10c-4e04-ba34-6bcba95164fb" x="45" y="52" width="100" height="20"/> + <textElement> + <font size="12"/> + </textElement> + <textFieldExpression><![CDATA[$F{region}]]></textFieldExpression> + </textField> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Transparent" x="2" y="95" width="54" height="22" backcolor="#CCCCCC"/> + <textElement> + <font size="12" isBold="false"/> + </textElement> + <text><![CDATA[Cidade:]]></text> + </staticText> + <textField> + <reportElement uuid="087033ea-1b48-447b-870c-a1cc67882481" x="50" y="95" width="100" height="20"/> + <textElement> + <font size="12"/> + </textElement> + <textFieldExpression><![CDATA[$F{city}]]></textFieldExpression> + </textField> + <staticText> + <reportElement uuid="4da927bc-3ac2-4e26-beea-39a5bf5b9bfa" x="191" y="27" width="100" height="14"/> + <textElement> + <font size="10" isBold="true"/> + </textElement> + <text><![CDATA[Legenda]]></text> + </staticText> + <staticText> + <reportElement uuid="4da927bc-3ac2-4e26-beea-39a5bf5b9bfa" x="216" y="52" width="188" height="14"/> + <textElement> + <font size="10" isBold="false"/> + </textElement> + <text><![CDATA[Último contato há menos de 10 dias]]></text> + </staticText> + <staticText> + <reportElement uuid="4da927bc-3ac2-4e26-beea-39a5bf5b9bfa" x="216" y="66" width="188" height="14"/> + <textElement> + <font size="10" isBold="false"/> + </textElement> + <text><![CDATA[Último contato entre 11 e 30 dias]]></text> + </staticText> + <staticText> + <reportElement uuid="4da927bc-3ac2-4e26-beea-39a5bf5b9bfa" x="216" y="83" width="188" height="14"/> + <textElement> + <font size="10" isBold="false"/> + </textElement> + <text><![CDATA[Último contato há mais de 30 dias]]></text> + </staticText> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="183" y="51" width="16" height="15"/> + <imageExpression><![CDATA[$P{imagesPath}+"dot_green.png"]]></imageExpression> + </image> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="183" y="66" width="16" height="14"/> + <imageExpression><![CDATA[$P{imagesPath}+"dot_yellow.png"]]></imageExpression> + </image> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="183" y="81" width="16" height="14"/> + <imageExpression><![CDATA[$P{imagesPath}+"dot_red.png"]]></imageExpression> + </image> + <image> + <reportElement uuid="f489d887-7ef3-448c-a9f6-86c9b2fbb9bc" x="449" y="1" width="106" height="77"/> + <imageExpression><![CDATA[$P{imagesPath}+"gesac.png"]]></imageExpression> + </image> + </band> + </title> + <columnHeader> + <band height="33" splitType="Stretch"> + <staticText> + <reportElement uuid="59ee773f-4192-46fc-aac7-b518a5446ace" mode="Opaque" x="0" y="1" width="554" height="31" backcolor="#CCCCCC"/> + <textElement> + <font isBold="true"/> + </textElement> + <text><![CDATA[Máquina]]></text> + </staticText> + <staticText> + <reportElement uuid="8cc2d983-32a0-4a4e-9f49-fb9cee2baf1c" x="82" y="3" width="125" height="29"/> + <textElement textAlignment="Center"> + <font size="9" isBold="true"/> + </textElement> + <text><![CDATA[Data do último contato]]></text> + </staticText> + <staticText> + <reportElement uuid="16c3ced1-5003-4818-bce4-7736ac06483f" x="217" y="2" width="160" height="30"/> + <textElement textAlignment="Center"> + <font isBold="true"/> + </textElement> + <text><![CDATA[Quantidade de dias desde o último contato]]></text> + </staticText> + <staticText> + <reportElement uuid="cc20b211-eb83-4836-85d6-3e2bd15f2ded" x="389" y="3" width="165" height="20"/> + <textElement> + <font size="9" isBold="true"/> + </textElement> + <text><![CDATA[Número de contatos no mês]]></text> + </staticText> + </band> + </columnHeader> + <detail> + <band height="16"> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="171" y="0" width="16" height="14"> + <printWhenExpression><![CDATA[$F{yellow}.booleanValue()]]></printWhenExpression> + </reportElement> + <imageExpression><![CDATA[$P{imagesPath}+"dot_yellow.png"]]></imageExpression> + </image> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="171" y="2" width="16" height="14"> + <printWhenExpression><![CDATA[$F{red}.booleanValue()]]></printWhenExpression> + </reportElement> + <imageExpression><![CDATA[$P{imagesPath}+"dot_red.png"]]></imageExpression> + </image> + <image> + <reportElement uuid="4a2ceac0-d05f-4f28-a5eb-203d381cbbb2" x="171" y="1" width="16" height="14"> + <printWhenExpression><![CDATA[$F{green}.booleanValue()]]></printWhenExpression> + </reportElement> + <imageExpression><![CDATA[$P{imagesPath}+"dot_green.png"]]></imageExpression> + </image> + <textField> + <reportElement uuid="83a61e39-c048-4a22-8cdb-2e85bbe11664" x="0" y="0" width="100" height="16"/> + <textElement> + <font size="9"/> + </textElement> + <textFieldExpression><![CDATA[$F{machine}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="688d9a60-0868-44b3-84e4-e756f0ca5cae" x="217" y="0" width="160" height="15"/> + <textElement textAlignment="Center"> + <font size="10"/> + </textElement> + <textFieldExpression><![CDATA[$F{days_last_contact}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="fe9e50b2-9ede-411e-8165-6b58abfe1fbb" x="389" y="0" width="164" height="15"/> + <textElement textAlignment="Center"> + <font size="9"/> + <paragraph lineSpacing="Single"/> + </textElement> + <textFieldExpression><![CDATA[$F{month_contacts}]]></textFieldExpression> + </textField> + <textField> + <reportElement uuid="981d352c-0ff1-4461-915c-41f85606ce08" x="114" y="0" width="57" height="16"/> + <textElement> + <font size="9"/> + </textElement> + <textFieldExpression><![CDATA[$F{last_contact}]]></textFieldExpression> + </textField> + </band> + </detail> +</jasperReport>