You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

377 lines
18 KiB

<?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="Auditoria" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e4b6a11f-cfdc-4666-bae2-75464500b5ef">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="Zebrado">
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean(($V{COLUMN_COUNT}.intValue() % 2) == 0)]]></conditionExpression>
<style backcolor="#CCCCCC"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[new Boolean(($V{COLUMN_COUNT}.intValue() % 2) != 0)]]></conditionExpression>
<style/>
</conditionalStyle>
</style>
<style name="ResultadoFinal">
<conditionalStyle>
<conditionExpression><![CDATA[($V{somaPontos} / $V{pesotag}) < 0.6]]></conditionExpression>
<style forecolor="#FF0000"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[(($V{somaPontos} / $V{pesotag}) > 0.59) && (($V{somaPontos} / $V{pesotag}) < 0.8)]]></conditionExpression>
<style forecolor="#FFFF00"/>
</conditionalStyle>
<conditionalStyle>
<conditionExpression><![CDATA[($V{somaPontos} / $V{pesotag}) > 0.79]]></conditionExpression>
<style forecolor="#009900"/>
</conditionalStyle>
</style>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="tag" mode="Opaque" backcolor="#999999"/>
<style name="cabecalho" mode="Opaque" backcolor="#CCCCCC"/>
<style name="tag2" mode="Opaque" backcolor="#CCCCCC"/>
<style name="ponto"/>
<subDataset name="Tabela" uuid="0e159536-d986-4489-b471-bdb5c6975772">
<parameter name="auditoria" class="java.lang.Long">
<defaultValueExpression><![CDATA[$P{auditoria}]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[Select (select titulo from auditoria where chave_auditoria = $P{auditoria}) titulo,
tag_id,tag_id2, ponto_avaliado, pontuacao,
(Select nome from nauth.grupo where sigla = cq.usrespostanao) as grupoexec,
descrespostanao,
cq.pesoag1,
cq.pesoag2,
cq.pesoag3,
ordem
from auditoria_questoes cq where chave_auditoria = $P{auditoria} order by ordem,tag_id,tag_id2]]>
</queryString>
<field name="tag_id" class="java.lang.String"/>
<field name="tag_id2" class="java.lang.String"/>
<field name="titulo" class="java.lang.String"/>
<field name="ponto_avaliado" class="java.lang.String"/>
<field name="pontuacao" class="java.lang.Float"/>
<field name="grupoexec" class="java.lang.String"/>
<field name="descrespostanao" class="java.lang.String"/>
<field name="pesoag1" class="java.lang.Float"/>
<field name="pesoag2" class="java.lang.Float"/>
<variable name="totalTag" class="java.lang.Integer" incrementType="Group" incrementGroup="Tag" calculation="Count">
<variableExpression><![CDATA[new Integer($V{totalTag})]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalTag2" class="java.lang.Integer" resetType="Group" resetGroup="Tag" incrementType="Group" incrementGroup="Tag2" calculation="Count">
<variableExpression><![CDATA[new Integer($V{totalTag2})]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalItens" class="java.lang.Integer" resetType="Group" resetGroup="Tag2">
<variableExpression><![CDATA[new Integer($V{totalItens}) + new Integer(1)]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalAG1" class="java.lang.Double" resetType="Group" resetGroup="Tag" calculation="Sum">
<variableExpression><![CDATA[new Double($F{pontuacao})]]></variableExpression>
<initialValueExpression><![CDATA[new Double(0)]]></initialValueExpression>
</variable>
<variable name="totalAG2" class="java.lang.Integer" resetType="Group" resetGroup="Tag2" calculation="Sum">
<variableExpression><![CDATA[$V{totalAG2}]]></variableExpression>
</variable>
<variable name="pont1" class="java.lang.Float" resetType="Group" resetGroup="Tag" calculation="Sum">
<variableExpression><![CDATA[$F{pontuacao}]]></variableExpression>
</variable>
<group name="group1"/>
<group name="Tag">
<groupExpression><![CDATA[$F{tag_id}]]></groupExpression>
</group>
<group name="Tag2">
<groupExpression><![CDATA[$F{tag_id2}]]></groupExpression>
</group>
</subDataset>
<parameter name="auditoria" class="java.lang.Long">
<defaultValueExpression><![CDATA[342]]></defaultValueExpression>
</parameter>
<queryString>
<![CDATA[Select (select titulo from auditoria where chave_auditoria = $P{auditoria}) titulo,
tag_id,tag_id2, ponto_avaliado, pontuacao,
(Select nome from nauth.grupo where sigla = cq.usrespostanao) as grupoexec,
descrespostanao from auditoria_questoes cq where chave_auditoria = $P{auditoria} order by tag_id, tag_id2, ordem]]>
</queryString>
<field name="tag_id" class="java.lang.String"/>
<field name="tag_id2" class="java.lang.String"/>
<field name="titulo" class="java.lang.String"/>
<field name="ponto_avaliado" class="java.lang.String"/>
<field name="pontuacao" class="java.lang.Float"/>
<field name="grupoexec" class="java.lang.String"/>
<field name="descrespostanao" class="java.lang.String"/>
<variable name="totalTag" class="java.lang.Integer" incrementType="Group" incrementGroup="Tag" calculation="Count">
<variableExpression><![CDATA[new Integer($V{totalTag})]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalTag2" class="java.lang.Integer" resetType="Group" resetGroup="Tag" incrementType="Group" incrementGroup="Tag2" calculation="Count">
<variableExpression><![CDATA[new Integer($V{totalTag2})]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalItens" class="java.lang.Integer" resetType="Group" resetGroup="Tag2">
<variableExpression><![CDATA[new Integer($V{totalItens}) + new Integer(1)]]></variableExpression>
<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
</variable>
<variable name="totalAG1" class="java.lang.Double" resetType="Group" resetGroup="Tag" calculation="Sum">
<variableExpression><![CDATA[new Double($F{pontuacao})]]></variableExpression>
<initialValueExpression><![CDATA[new Double(0)]]></initialValueExpression>
</variable>
<variable name="totalAG2" class="java.lang.Integer" resetType="Group" resetGroup="Tag2" calculation="Sum">
<variableExpression><![CDATA[$V{totalAG2}]]></variableExpression>
</variable>
<variable name="pontuacao_1" class="java.lang.Float" resetType="Group" resetGroup="Tag" calculation="Sum">
<variableExpression><![CDATA[$F{pontuacao}]]></variableExpression>
</variable>
<variable name="pontuacao_2" class="java.lang.Float" resetType="Group" resetGroup="Tag2" calculation="Sum">
<variableExpression><![CDATA[$F{pontuacao}]]></variableExpression>
</variable>
<group name="Tag">
<groupExpression><![CDATA[$F{tag_id}]]></groupExpression>
<groupHeader>
<band/>
</groupHeader>
</group>
<group name="Tag2">
<groupExpression><![CDATA[$F{tag_id2}]]></groupExpression>
<groupHeader>
<band/>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band splitType="Stretch"/>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="202" splitType="Stretch">
<componentElement>
<reportElement key="table" style="table" x="0" y="0" width="788" height="202" uuid="430a0e18-6ebc-4d4f-9e86-509fa6c8bdbc"/>
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<datasetRun subDataset="Tabela" uuid="f33de750-63ef-4e06-a658-b9766ed242f6">
<datasetParameter name="auditoria">
<datasetParameterExpression><![CDATA[$P{auditoria}]]></datasetParameterExpression>
</datasetParameter>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:columnGroup width="788" uuid="a24bcea4-27ac-441c-98b4-82a95cad087c">
<jr:tableHeader height="29" rowSpan="1">
<textField>
<reportElement mode="Opaque" x="0" y="0" width="788" height="29" backcolor="#999999" uuid="eecf1be5-758e-4ac4-8ece-e32d1ec3317b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="16" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{titulo}]]></textFieldExpression>
</textField>
</jr:tableHeader>
<jr:column width="457" uuid="58c79fd9-8845-473a-9ea7-9d040466cb7b">
<jr:tableHeader style="cabecalho" height="24" rowSpan="1">
<staticText>
<reportElement x="79" y="0" width="185" height="24" uuid="26a9ffa7-f1bb-48b6-bdc9-de22447569b5"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<text><![CDATA[Ponto Avaliado]]></text>
</staticText>
</jr:tableHeader>
<jr:groupHeader groupName="group1">
<jr:cell style="cabecalho" height="32" rowSpan="1"/>
</jr:groupHeader>
<jr:groupHeader groupName="Tag">
<jr:cell style="tag" height="20" rowSpan="1">
<textField>
<reportElement x="21" y="0" width="420" height="18" uuid="98c83601-0bbc-41b2-a711-746a3246b136"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalTag} + new Integer(1) + " - " + $F{tag_id}]]></textFieldExpression>
</textField>
</jr:cell>
</jr:groupHeader>
<jr:groupHeader groupName="Tag2">
<jr:cell style="tag2" height="15" rowSpan="1">
<textField>
<reportElement x="48" y="0" width="393" height="14" uuid="dab639d3-65ce-424d-94d6-503863090c8d"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[new Integer(new Integer($V{totalTag2}) + new Integer(1)).toString().equals("1") ? (new Integer($V{totalTag})) + new Integer(1) + "." + (new Integer($V{totalTag2}) + new Integer(1)) + " - " + $F{tag_id2} : (new Integer($V{totalTag})) + "." + (new Integer($V{totalTag2}) + new Integer(1)) + " - " + $F{tag_id2}]]></textFieldExpression>
</textField>
</jr:cell>
</jr:groupHeader>
<jr:detailCell height="30" rowSpan="1">
<textField isStretchWithOverflow="true">
<reportElement x="79" y="0" width="362" height="30" uuid="eee2671a-1943-42a4-8c96-7fe07eca1174"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression><![CDATA[new Integer(new Integer($V{totalItens}) + new Integer(1)).toString().equals("1") ?
(new Integer($V{totalTag})) + new Integer(1) + "." + (new Integer($V{totalTag2}) + new Integer(1)) + $V{totalItens} + " - " + $F{ponto_avaliado}
: (new Integer($V{totalTag})) + "." + (new Integer($V{totalTag2})) + "." + (new Integer($V{totalItens})) + " - " +
$F{ponto_avaliado}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="114" uuid="d9617f11-d44c-48ac-ba46-d21d5ff4da3b">
<jr:tableHeader style="cabecalho" height="24" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="111" height="24" uuid="17bd0ed4-c531-4f09-a7be-696413112e4f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<text><![CDATA[Tarefa]]></text>
</staticText>
</jr:tableHeader>
<jr:groupHeader groupName="group1">
<jr:cell style="cabecalho" height="32" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="111" height="30" uuid="65ccb26c-557c-484a-9344-100d6404b16e"/>
<textElement>
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Caso a resposta seja "n�o" qual tarefa ir� para o executor ou grupo executor]]></text>
</staticText>
</jr:cell>
</jr:groupHeader>
<jr:groupHeader groupName="Tag">
<jr:cell style="tag" height="20" rowSpan="1"/>
</jr:groupHeader>
<jr:groupHeader groupName="Tag2">
<jr:cell style="tag2" height="15" rowSpan="1"/>
</jr:groupHeader>
<jr:detailCell style="table_TD" height="30" rowSpan="1">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="111" height="30" uuid="eef15f5b-8b18-41c7-852a-47f438f6fd61"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{descrespostanao}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:columnGroup width="66" uuid="f9be1184-a78c-4204-80e4-f9b5817a4870">
<jr:column width="66" uuid="35e810be-3c2b-4585-af0e-41681415a01f">
<jr:tableHeader style="cabecalho" height="24" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="63" height="24" uuid="d8ab6505-8d07-4eb4-9a89-5c1544650d07"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<text><![CDATA[Pontos]]></text>
</staticText>
</jr:tableHeader>
<jr:groupHeader groupName="group1">
<jr:cell style="cabecalho" height="32" rowSpan="1"/>
</jr:groupHeader>
<jr:groupHeader groupName="Tag">
<jr:cell style="tag" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="63" height="20" uuid="b831b322-4541-4303-b904-6017a64df7d9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{pesoag1}]]></textFieldExpression>
</textField>
</jr:cell>
</jr:groupHeader>
<jr:groupHeader groupName="Tag2">
<jr:cell style="tag2" height="15" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="63" height="15" uuid="37063f3d-12d9-4170-a842-979b802ae982"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{pesoag2}]]></textFieldExpression>
</textField>
</jr:cell>
</jr:groupHeader>
<jr:detailCell style="table_TD" height="30" rowSpan="1">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="63" height="30" uuid="bd965dae-2b4c-4cb2-a3a6-846ad7d182e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{pontuacao}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:columnGroup>
<jr:column width="151" uuid="cffdde69-9658-49dd-a706-17941decd8ca">
<jr:tableHeader style="cabecalho" height="24" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="84" height="24" uuid="274416e2-0e19-4c40-85c0-1ae8d37423a3"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" isBold="true"/>
</textElement>
<text><![CDATA[Grupo executor]]></text>
</staticText>
</jr:tableHeader>
<jr:groupHeader groupName="group1">
<jr:cell style="cabecalho" height="32" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="81" height="30" uuid="b0181cec-6021-4e98-a167-b1cf46f6334f"/>
<textElement>
<font fontName="Arial" size="8"/>
</textElement>
<text><![CDATA[Caso a resposta seja "n�o" quem ir� realizar a tarefa]]></text>
</staticText>
</jr:cell>
</jr:groupHeader>
<jr:groupHeader groupName="Tag">
<jr:cell style="tag" height="20" rowSpan="1"/>
</jr:groupHeader>
<jr:groupHeader groupName="Tag2">
<jr:cell style="tag2" height="15" rowSpan="1"/>
</jr:groupHeader>
<jr:detailCell style="table_TD" height="30" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="81" height="30" uuid="8c785e03-6b67-4a17-890a-fcd8ece10620"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="Arial" size="8" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{grupoexec}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:columnGroup>
</jr:table>
</componentElement>
</band>
</summary>
</jasperReport>