fixes bug #9608
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73368 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
393e214ff9
commit
30699b8f34
|
@ -4,6 +4,7 @@ import java.sql.Connection;
|
|||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -77,6 +78,7 @@ public class RelatorioFolioRmd extends Relatorio {
|
|||
|
||||
});
|
||||
|
||||
Collections.sort(listdata);
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(listdata));
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?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="RelatorioFolioRmd" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="2903c33e-d004-46d3-99c9-7dfec3f64338">
|
||||
<property name="ireport.zoom" value="1.3310000000000004"/>
|
||||
<property name="ireport.x" value="431"/>
|
||||
<property name="ireport.x" value="298"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<field name="foliormd" class="java.lang.String"/>
|
||||
<field name="status" class="java.lang.String"/>
|
||||
|
@ -17,21 +17,76 @@
|
|||
<field name="isentos" class="java.math.BigDecimal"/>
|
||||
<field name="outros" class="java.math.BigDecimal"/>
|
||||
<field name="icms" class="java.math.BigDecimal"/>
|
||||
<variable name="valorContabil" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variable name="valorContabil" class="java.math.BigDecimal" resetType="Group" resetGroup="tipo_gr" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="baseCalculo" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variable name="baseCalculo" class="java.math.BigDecimal" resetType="Group" resetGroup="tipo_gr" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{baseCalculo}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="isentos" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variable name="isentos" class="java.math.BigDecimal" resetType="Group" resetGroup="tipo_gr" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{isentos}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="outros" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variable name="outros" class="java.math.BigDecimal" resetType="Group" resetGroup="tipo_gr" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{outros}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="icms" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variable name="icms" class="java.math.BigDecimal" resetType="Group" resetGroup="tipo_gr" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{icms}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="tipo_gr">
|
||||
<groupExpression><![CDATA[$F{tipo}]]></groupExpression>
|
||||
<groupFooter>
|
||||
<band height="17">
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="802" height="1" uuid="d269f449-5afd-4518-998c-8cc3c9b2756c"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="435" y="1" width="86" height="15" uuid="b45829aa-aa5e-4cd3-91aa-e45fef519c2e"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="705" y="1" width="58" height="15" uuid="f7856fef-fb83-4e9b-809e-6773bedcbe85"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="647" y="1" width="58" height="15" uuid="595cef70-5020-4147-88f3-958048124ede"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="521" y="1" width="87" height="15" uuid="f459d5b3-ddb4-48e8-a9ad-2ee903a78693"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="435" height="15" uuid="0a0926d0-297d-4333-9deb-b865c4f981fd"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Total: "]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="15" width="802" height="1" uuid="b056f86d-4b35-4671-b936-ec7dbefbd7ff"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="763" y="1" width="39" height="15" uuid="2a276df5-68f0-4fab-bbf2-eabb5f18f3e9"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
|
@ -120,42 +175,42 @@
|
|||
</line>
|
||||
<staticText>
|
||||
<reportElement x="435" y="1" width="86" height="20" uuid="60fa3604-9bbf-40e4-8492-6ba55537846e"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Valor Contábil]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="521" y="1" width="87" height="20" uuid="d680f6d1-6ba8-48ed-be14-45c3c20960bc"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Base Cálculo]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="608" y="1" width="39" height="20" uuid="359fa980-1282-4802-868d-b72dc7eb3cf6"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Alíquota]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="647" y="1" width="58" height="20" uuid="bf5d37cc-12af-464c-9b6a-99ae821ccc93"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Isentos]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="705" y="1" width="58" height="20" uuid="f9d63538-c3e1-43e1-af46-eaee055aeca6"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Outros]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="763" y="1" width="39" height="20" uuid="b6ac5c1a-6708-4738-b740-e9cdff0f96f6"/>
|
||||
<textElement>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ICMS]]></text>
|
||||
|
@ -250,58 +305,6 @@
|
|||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="17" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="802" height="1" uuid="d269f449-5afd-4518-998c-8cc3c9b2756c"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="435" y="1" width="86" height="15" uuid="b45829aa-aa5e-4cd3-91aa-e45fef519c2e"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="705" y="1" width="58" height="15" uuid="f7856fef-fb83-4e9b-809e-6773bedcbe85"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="647" y="1" width="58" height="15" uuid="595cef70-5020-4147-88f3-958048124ede"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="521" y="1" width="87" height="15" uuid="f459d5b3-ddb4-48e8-a9ad-2ee903a78693"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="435" height="15" uuid="0a0926d0-297d-4333-9deb-b865c4f981fd"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Total: "]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="15" width="802" height="1" uuid="b056f86d-4b35-4671-b936-ec7dbefbd7ff"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="763" y="1" width="39" height="15" uuid="2a276df5-68f0-4fab-bbf2-eabb5f18f3e9"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
|
|
Loading…
Reference in New Issue