julio 2017-06-02 14:44:44 +00:00
parent edfdbccbb5
commit d05034006b
13 changed files with 506 additions and 13 deletions

View File

@ -9,10 +9,10 @@ import com.rjconsultores.ventaboletos.utilerias.impressaormd.vo.ImpressaoRMD;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioImpressaoRMD extends Relatorio {
public class RelatorioImpressaoRmd extends Relatorio {
@SuppressWarnings("unchecked")
public RelatorioImpressaoRMD(final Map<String, Object> parametros, Connection conexao) throws Exception {
public RelatorioImpressaoRmd(final Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
List<ImpressaoRMD> list = (List<ImpressaoRMD>) parametros.get("list");

View File

@ -0,0 +1,27 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.util.List;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.impressaormd.vo.ImpressaoRMD;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioImpressaoRmdBpr extends Relatorio {
@SuppressWarnings("unchecked")
public RelatorioImpressaoRmdBpr(final Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
List<ImpressaoRMD> list = (List<ImpressaoRMD>) parametros.get("list");
this.setCollectionDataSource(new JRBeanCollectionDataSource(list));
}
@Override
protected void processaParametros() throws Exception {
}
}

View File

@ -0,0 +1,2 @@
#geral
msg.noData=No se pudo obtener datos con los parámetros reportados.

View File

@ -0,0 +1,2 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.

View File

@ -0,0 +1,222 @@
<?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="RelatorioImpressaoRMD" printOrder="Horizontal" pageWidth="948" pageHeight="765" columnWidth="924" leftMargin="10" rightMargin="14" topMargin="2" bottomMargin="18" uuid="d3d490c9-33e7-4eeb-97cc-1fa9be0f10d4">
<property name="ireport.zoom" value="0.7513148009015805"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<field name="empresa" class="java.lang.String"/>
<field name="enderecoEmpresa" class="java.lang.String"/>
<field name="cnpjEmpresa" class="java.lang.String"/>
<field name="ieEmpresa" class="java.lang.String"/>
<field name="rmd" class="java.lang.String"/>
<field name="naturezaOperacao" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/>
<field name="serie" class="java.lang.String"/>
<field name="numero" class="java.lang.String"/>
<field name="valorContabil" class="java.math.BigDecimal"/>
<field name="baseCalculo" class="java.math.BigDecimal"/>
<field name="aliquota" class="java.math.BigDecimal"/>
<field name="icms" class="java.math.BigDecimal"/>
<field name="isentos" class="java.math.BigDecimal"/>
<field name="outros" class="java.math.BigDecimal"/>
<field name="obs" class="java.lang.String"/>
<field name="folio" class="java.lang.String"/>
<variable name="sum_valorContabil" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
</variable>
<variable name="sum_baseCalculo" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{baseCalculo}]]></variableExpression>
</variable>
<variable name="sum_icms" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{icms}]]></variableExpression>
</variable>
<variable name="sum_isentos" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{isentos}]]></variableExpression>
</variable>
<variable name="sum_outros" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{outros}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="130" splitType="Stretch">
<textField>
<reportElement x="331" y="0" width="343" height="13" uuid="76bd1c26-ed5d-4155-916b-f90dbdb2b9dc"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="331" y="13" width="343" height="13" uuid="1bc67f62-16e9-4681-891c-4d2680466d91"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{enderecoEmpresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="331" y="39" width="343" height="13" uuid="fe223feb-b29e-4f97-b359-272aa857ce87"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{ieEmpresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="331" y="26" width="343" height="13" uuid="cc73dace-ff3e-40cf-8292-9519af0108d4"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{cnpjEmpresa}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="331" y="52" width="343" height="13" uuid="b716c82c-1944-4691-b907-1d194b41ecfd"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="743" y="0" width="185" height="39" uuid="1c447225-9f55-4f72-a269-d29c272ef2a4"/>
<textElement verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{folio} != null ? Integer.parseInt($F{folio}) + ($V{PAGE_NUMBER} - 1) : $F{rmd}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="743" y="52" width="181" height="13" uuid="6de6219d-29c1-43bb-91be-718a93ee5e7b"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{naturezaOperacao}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="14" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="41" height="14" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
<textElement>
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="41" y="0" width="150" height="14" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f"/>
<textElement>
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="191" y="0" width="51" height="14" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
<textElement>
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="242" y="0" width="89" height="14" uuid="f8fbd690-36bd-4d69-9af4-1490ec205698"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="331" y="0" width="94" height="14" uuid="21f2b8f9-1acd-4e7d-bb27-643cfae50748"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{baseCalculo}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="425" y="0" width="42" height="14" uuid="565fe3d7-bce7-480f-829f-0238cf7d2d74"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="467" y="0" width="90" height="14" uuid="c07a3fa8-12c6-4a5b-8707-02c0524f943c"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="633" y="0" width="87" height="14" uuid="4f082fb1-15bc-41f6-985e-0f670459fceb"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="720" y="0" width="204" height="14" uuid="7c171d60-9889-4845-89d5-f656e34b1c37"/>
<textElement textAlignment="Center">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{obs}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="557" y="0" width="76" height="14" uuid="60865331-9449-4435-8b4a-664b747a90b3"/>
<textElement textAlignment="Right">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{isentos}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="150" splitType="Stretch">
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="242" y="0" width="89" height="17" uuid="e6c0383c-5062-4b22-989b-d1619add3ade"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_valorContabil}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="331" y="0" width="94" height="17" uuid="810c93ac-4d8b-4edb-800c-ec2753286bb1"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_baseCalculo}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="467" y="0" width="90" height="17" uuid="0a93d431-1b76-4590-aa1b-9af22283a5b3"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_icms}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="557" y="0" width="76" height="17" uuid="748316ed-feb8-4a2d-9103-764eeb74873d"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_isentos}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="633" y="0" width="87" height="17" uuid="66628be0-d424-4d61-96dc-aaf8652ded42"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_outros}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
<noData>
<band/>
</noData>
</jasperReport>

View File

@ -0,0 +1,225 @@
<?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="RelatorioImpressaoRMD" printOrder="Horizontal" pageWidth="948" pageHeight="765" columnWidth="923" leftMargin="11" rightMargin="14" topMargin="2" bottomMargin="19" uuid="d3d490c9-33e7-4eeb-97cc-1fa9be0f10d4">
<property name="ireport.zoom" value="0.9090909090909218"/>
<property name="ireport.x" value="83"/>
<property name="ireport.y" value="0"/>
<field name="empresa" class="java.lang.String"/>
<field name="enderecoEmpresa" class="java.lang.String"/>
<field name="cnpjEmpresa" class="java.lang.String"/>
<field name="ieEmpresa" class="java.lang.String"/>
<field name="rmd" class="java.lang.String"/>
<field name="naturezaOperacao" class="java.lang.String"/>
<field name="tipo" class="java.lang.String"/>
<field name="serie" class="java.lang.String"/>
<field name="numero" class="java.lang.String"/>
<field name="valorContabil" class="java.math.BigDecimal"/>
<field name="baseCalculo" class="java.math.BigDecimal"/>
<field name="aliquota" class="java.math.BigDecimal"/>
<field name="icms" class="java.math.BigDecimal"/>
<field name="isentos" class="java.math.BigDecimal"/>
<field name="outros" class="java.math.BigDecimal"/>
<field name="obs" class="java.lang.String"/>
<field name="folio" class="java.lang.String"/>
<variable name="sum_valorContabil" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
</variable>
<variable name="sum_baseCalculo" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{baseCalculo}]]></variableExpression>
</variable>
<variable name="sum_icms" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{icms}]]></variableExpression>
</variable>
<variable name="sum_isentos" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{isentos}]]></variableExpression>
</variable>
<variable name="sum_outros" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{outros}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band height="130" splitType="Stretch">
<textField>
<reportElement x="316" y="0" width="341" height="13" uuid="76bd1c26-ed5d-4155-916b-f90dbdb2b9dc"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="316" y="12" width="341" height="13" uuid="1bc67f62-16e9-4681-891c-4d2680466d91"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{enderecoEmpresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="316" y="24" width="341" height="13" uuid="fe223feb-b29e-4f97-b359-272aa857ce87"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{cnpjEmpresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="316" y="36" width="341" height="13" uuid="cc73dace-ff3e-40cf-8292-9519af0108d4"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{ieEmpresa}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="316" y="48" width="341" height="13" uuid="b716c82c-1944-4691-b907-1d194b41ecfd"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="742" y="0" width="181" height="36" uuid="1c447225-9f55-4f72-a269-d29c272ef2a4"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{folio} != null ? Integer.parseInt($F{folio}) + ($V{PAGE_NUMBER} - 1) : $F{rmd}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="742" y="48" width="181" height="13" uuid="6de6219d-29c1-43bb-91be-718a93ee5e7b"/>
<textElement>
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{naturezaOperacao}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="14" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="19" height="14" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
<textElement>
<font fontName="SansSerif" size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="19" y="0" width="97" height="14" isPrintWhenDetailOverflows="true" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f">
<printWhenExpression><![CDATA[$F{serie} != null]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="9" isStrikeThrough="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="116" y="0" width="53" height="14" isPrintWhenDetailOverflows="true" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
<textElement textAlignment="Right" rotation="None">
<font fontName="SansSerif" size="9"/>
<paragraph lineSpacing="Proportional"/>
</textElement>
<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="169" y="0" width="92" height="14" uuid="f8fbd690-36bd-4d69-9af4-1490ec205698"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="261" y="0" width="104" height="14" uuid="21f2b8f9-1acd-4e7d-bb27-643cfae50748"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{baseCalculo}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="365" y="0" width="40" height="14" uuid="565fe3d7-bce7-480f-829f-0238cf7d2d74"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="405" y="0" width="93" height="14" uuid="c07a3fa8-12c6-4a5b-8707-02c0524f943c"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="608" y="0" width="115" height="14" uuid="4f082fb1-15bc-41f6-985e-0f670459fceb"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="723" y="0" width="200" height="14" uuid="7c171d60-9889-4845-89d5-f656e34b1c37"/>
<textElement textAlignment="Center">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{obs}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="498" y="0" width="110" height="14" uuid="60865331-9449-4435-8b4a-664b747a90b3"/>
<textElement textAlignment="Right">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{isentos}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="150" splitType="Stretch">
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="169" y="0" width="92" height="18" uuid="e6c0383c-5062-4b22-989b-d1619add3ade"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="10"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_valorContabil}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="261" y="0" width="104" height="18" uuid="810c93ac-4d8b-4edb-800c-ec2753286bb1"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_baseCalculo}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="405" y="0" width="93" height="18" uuid="0a93d431-1b76-4590-aa1b-9af22283a5b3"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_icms}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="498" y="0" width="110" height="18" uuid="748316ed-feb8-4a2d-9103-764eeb74873d"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_isentos}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement x="608" y="0" width="115" height="18" uuid="66628be0-d424-4d61-96dc-aaf8652ded42"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="SansSerif" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$V{sum_outros}]]></textFieldExpression>
</textField>
</band>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
<noData>
<band/>
</noData>
</jasperReport>

View File

@ -18,6 +18,7 @@ import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.WrongValueException;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zkplus.databind.BindingListModelList;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.ComboitemRenderer;
import org.zkoss.zul.Datebox;
@ -26,7 +27,8 @@ import org.zkoss.zul.Radio;
import com.rjconsultores.ventaboletos.entidad.Aidf;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoRMD;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoRmd;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoRmdBpr;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.AidfService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
@ -72,6 +74,7 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
private MyComboboxEstandar cmbAidf;
private Radio radBPR;
private Checkbox tipoLayout;
@Override
public void doAfterCompose(Component comp) throws Exception {
@ -151,7 +154,7 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
List<ImpressaoRMD> list = null;
if (radBPR.isChecked()) {
list = fiscalService.getRegistroImpressaoRMDTipoDVB(datInicial.getValue(), datFinal.getValue(), empresa, estado, rmd, folio);
list = fiscalService.getRegistroImpressaoRMDTipoBPR(datInicial.getValue(), datFinal.getValue(), empresa, estado, rmd, folio);
} else {
list = fiscalService.getRegistroImpressaoRMDTipoECF(datInicial.getValue(), datFinal.getValue(), empresa, estado, rmd, folio);
}
@ -159,14 +162,26 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
if (isExecutarRmd)
fiscalService.gravarRMDBoleto(list, aidf, folio);
if (isCancelarRmd)
if (isCancelarRmd) {
fiscalService.cancelarRMDBoleto(datInicial.getValue(), datFinal.getValue(), empresa, estado, aidf, folio);
Messagebox.show(
Labels.getLabel("busquedaImpressaoRMDController.cancel.msg"),
Labels.getLabel("busquedaImpressaoRMDController.mnImpressaoRMD.label"),
Messagebox.OK, Messagebox.INFORMATION);
return;
}
if (!isCancelarRmd) {
Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("list", list);
Relatorio relatorio = new RelatorioImpressaoRMD(parametros, dataSourceRead.getConnection());
Relatorio relatorio = null;
if (tipoLayout.isChecked()) {
relatorio = new RelatorioImpressaoRmd(parametros, dataSourceRead.getConnection());
} else {
relatorio = new RelatorioImpressaoRmdBpr(parametros, dataSourceRead.getConnection());
}
Map args = new HashMap();
args.put("relatorio", relatorio);

View File

@ -6534,6 +6534,7 @@ busquedaImportacionFiscalController.btnExe.label = Executar Importação
busquedaExportacaoFiscalController.btnView.label = Visualização
busquedaExportacaoFiscalController.btnExe.label = Executar Exportação
busquedaExportacaoFiscalController.btnCancel.label = Cancelar/Inativar
busquedaImpressaoRMDController.cancel.msg = O Cancelamento/Inativação do folio foi realizado com sucesso.
editarRelgerencialEmpresaController.MSG.suscribirOK=Relatorio Gerencial gravado com sucesso!
editarRelgerencialEmpresaController.window.title=Impressão Fiscal :: Editar Relatorio Gerencial

View File

@ -59,22 +59,21 @@
model="@{winBusquedaImpressaoRMD$composer.lsAidf}" />
</row>
<row spans="1, 3">
<label
value="${c:l('busquedaImpressaoRMDController.labelRadio.tipo')}" />
<radiogroup Id="indTipo">
<row spans="1, 1, 2">
<label value="${c:l('busquedaImpressaoRMDController.labelRadio.tipo')}" />
<radiogroup id="indTipo" >
<radio id="radBPR"
label="${c:l('busquedaImpressaoRMDController.labelRadio.radBPR')}"
checked="true" />
<radio id="radECF"
label="${c:l('busquedaImpressaoRMDController.labelRadio.radECF')}" />
</radiogroup>
<checkbox id="tipoLayout" checked="false" label="Layout Novo"/>
</row>
<row>
<row spans="1, 3">
<label value="${c:l('busquedaImpressaoRMDController.labelfolio.RMD')}" />
<textbox id="folioInicial" width="90%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<textbox id="folioInicial" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>