fixes bug #9608
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72741 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
870a08a9c1
commit
8785fef893
|
@ -0,0 +1,124 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.impressaormd.vo.FolioRMD;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFolioRmd extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioFolioRmd.class);
|
||||
List<FolioRMD> listdata = null;
|
||||
private static final String DATE_FORMAT_FISCAL = "yyyyMMdd";
|
||||
|
||||
public RelatorioFolioRmd(final Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
try {
|
||||
Empresa empresa = (Empresa) parametros.get("empresa");
|
||||
Estado estado = (Estado) parametros.get("estado");
|
||||
Aidf aidf = (Aidf) parametros.get("aidf");
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), getSqlRMDReporte());
|
||||
stmt.setInt("empresaId", empresa.getEmpresaId());
|
||||
stmt.setInt("estadoId", estado.getEstadoId());
|
||||
stmt.setLong("rmdId", aidf.getAidfId());
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
listdata = new ArrayList<FolioRMD>();
|
||||
while (rset.next()) {
|
||||
FolioRMD item = new FolioRMD();
|
||||
|
||||
item.setFoliormd(rset.getString("foliormd"));
|
||||
item.setStatus(rset.getString("status"));
|
||||
item.setFechorfolio(rset.getString("fechorfolio"));
|
||||
item.setEmpresa(rset.getString("empresa"));
|
||||
item.setUf(rset.getString("uf"));
|
||||
item.setEstado(rset.getString("estado"));
|
||||
item.setDoc(rset.getString("doc"));
|
||||
item.setTipo(rset.getString("tipo"));
|
||||
item.setFechorfolioDate(DateUtil.getDateFromString(item.getFechorfolio(), DATE_FORMAT_FISCAL));
|
||||
|
||||
listdata.add(item);
|
||||
}
|
||||
|
||||
if (!getConexao().isClosed())
|
||||
getConexao().close();
|
||||
|
||||
} catch (SQLException e) {
|
||||
log.error("", e);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(listdata));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSqlRMDReporte() {
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("select foliormd as foliormd, ");
|
||||
sql.append(" 'IMPRESSO' as status, ");
|
||||
sql.append(" coalesce(r4.datamov, to_char(b.fechorventa, 'yyyymmdd')) as fechorfolio, ");
|
||||
sql.append(" e.nombempresa as empresa, ");
|
||||
sql.append(" eo.cveestado as uf, ");
|
||||
sql.append(" eo.nombestado as estado, ");
|
||||
sql.append(" ai.docfiscal as doc, ");
|
||||
sql.append(" case when b.tipoventa_id <> 3 then 'ECF' else 'BPR' end as tipo ");
|
||||
sql.append("from boleto b ");
|
||||
sql.append(" left join fiscal_r4 r4 on r4.boleto_id = b.boleto_id ");
|
||||
sql.append(" inner join aidf ai on b.rmd_id = ai.aidf_id and ai.aidfesp_id = 3 ");
|
||||
sql.append(" inner join marca m on b.marca_id = m.marca_id and ai.empresa_id = m.empresa_id ");
|
||||
sql.append(" inner join empresa e on e.empresa_id = m.empresa_id ");
|
||||
sql.append(" inner join parada po on po.parada_id = b.origen_id ");
|
||||
sql.append(" inner join ciudad co on co.ciudad_id = po.ciudad_id and co.estado_id = ai.estado_id ");
|
||||
sql.append(" join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append("where ai.empresa_id = :empresaId and ai.aidf_id = :rmdId and ai.estado_id = :estadoId ");
|
||||
sql.append("group by foliormd, ");
|
||||
sql.append("coalesce( r4.datamov, to_char(b.fechorventa, 'yyyymmdd')), e.nombempresa, eo.cveestado,eo.nombestado, ");
|
||||
sql.append("ai.docfiscal, case when b.tipoventa_id <> 3 then 'ECF' else 'BPR' end ");
|
||||
sql.append(" ");
|
||||
sql.append("union ");
|
||||
sql.append(" ");
|
||||
sql.append("select f.folio as foliormd, ");
|
||||
sql.append(" case when f.indcancelacion = 1 then 'CANCELADO' else 'INATIVO' end as status, ");
|
||||
sql.append(" to_char(f.fechorfolio, 'yyyymmdd') as fechorfolio, ");
|
||||
sql.append(" e.nombempresa as empresa, ");
|
||||
sql.append(" eo.cveestado as uf, ");
|
||||
sql.append(" eo.nombestado as estado, ");
|
||||
sql.append(" ai.docfiscal as doc, ");
|
||||
sql.append(" case when f.indecf = 1 then 'ECF' else 'BPR' end as tipo ");
|
||||
sql.append("from folio_consumo_rmd f ");
|
||||
sql.append("inner join aidf ai on f.rmd_id = ai.aidf_id and ai.aidfesp_id = 3 ");
|
||||
sql.append("inner join empresa e on e.empresa_id = f.empresa_id ");
|
||||
sql.append("join estado eo on eo.estado_id = f.estado_id ");
|
||||
sql.append("where f.empresa_id = :empresaId and f.rmd_id = :rmdId and f.estado_id = :estadoId ");
|
||||
sql.append(" ");
|
||||
sql.append("order by foliormd ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -0,0 +1,2 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
Binary file not shown.
|
@ -0,0 +1,157 @@
|
|||
<?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="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2903c33e-d004-46d3-99c9-7dfec3f64338">
|
||||
<property name="ireport.zoom" value="1.3310000000000004"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<field name="foliormd" class="java.lang.String"/>
|
||||
<field name="status" class="java.lang.String"/>
|
||||
<field name="empresa" class="java.lang.String"/>
|
||||
<field name="uf" class="java.lang.String"/>
|
||||
<field name="estado" class="java.lang.String"/>
|
||||
<field name="tipo" class="java.lang.String"/>
|
||||
<field name="fechorfolioDate" class="java.util.Date"/>
|
||||
<field name="doc" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band splitType="Stretch"/>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="22" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="55" y="0" width="145" height="20" uuid="08211bcb-938a-45dc-bc8d-f7949cba2b40"/>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="263" y="0" width="205" height="20" uuid="11a38e24-adf7-460b-9317-84a2bb20a807"/>
|
||||
<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="55" height="20" uuid="42c3227b-dd03-4608-9782-444f00f86c9e"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Empresa: "]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="200" y="0" width="104" height="20" uuid="2582c65d-c581-4ac0-8d79-0b281dcb80eb"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Estado: "]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="468" y="0" width="87" height="20" uuid="d9ec9e88-51cb-49ee-b6e9-d9c609ad4003"/>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="20" width="555" height="1" uuid="11aeccc9-f124-4217-8368-84051bd902cb"/>
|
||||
</line>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="24" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement x="0" y="2" width="77" height="20" uuid="a5929d31-7b3e-4257-838b-7916384c27a6"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[AIDF]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="200" y="2" width="166" height="20" uuid="09d68628-bd69-424c-9eb1-f769cc8b4ae9"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Formulário]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="77" y="2" width="67" height="20" uuid="41a7f367-2a10-4f2b-8910-58a4f8727d42"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Status]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="366" y="2" width="129" height="20" uuid="114387e1-aeef-4899-bf1c-fa8c9718ba6d"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Data de Movimentação]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="144" y="2" width="56" height="20" uuid="26a3ec90-6fc3-4c59-abf3-d6af29f30f34"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tipo]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="495" y="2" width="60" height="20" uuid="b1aa1ffb-686e-443e-9cbf-dd533a06af13"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[UF]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="0" y="22" width="555" height="1" uuid="34e35420-09fa-4350-a88c-920e34c524a7"/>
|
||||
</line>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="16" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="77" height="15" uuid="ca492969-41b6-4fd1-9f1c-77282109fad9"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{doc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="200" y="0" width="166" height="15" uuid="90541675-b80e-4c3f-aee9-3091b3e7aba6"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{foliormd}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="77" y="0" width="67" height="15" uuid="a88bd2ed-cd2f-4550-b0f0-0222bb063a6f"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="366" y="0" width="129" height="15" uuid="1155c32f-88ba-4f22-980e-aa822e235e97"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{fechorfolioDate}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="144" y="0" width="56" height="15" uuid="ff342a7e-c811-4e9f-bbf2-af164535e72f"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="495" y="0" width="60" height="15" uuid="73ff2293-3998-48a6-9d4d-c5a10913bcac"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
</jasperReport>
|
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="RelatorioImpressaoRMD" printOrder="Horizontal" pageWidth="948" pageHeight="730" columnWidth="922" leftMargin="20" rightMargin="6" topMargin="0" bottomMargin="19" uuid="d3d490c9-33e7-4eeb-97cc-1fa9be0f10d4">
|
||||
<property name="ireport.zoom" value="1.1000000000000052"/>
|
||||
<property name="ireport.x" value="85"/>
|
||||
<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"/>
|
||||
|
@ -43,49 +43,49 @@
|
|||
<textField>
|
||||
<reportElement x="319" y="0" width="401" height="15" uuid="76bd1c26-ed5d-4155-916b-f90dbdb2b9dc"/>
|
||||
<textElement>
|
||||
<font size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="319" y="15" width="401" height="15" uuid="1bc67f62-16e9-4681-891c-4d2680466d91"/>
|
||||
<textElement>
|
||||
<font size="10" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="10" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{enderecoEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="319" y="45" width="401" height="15" uuid="fe223feb-b29e-4f97-b359-272aa857ce87"/>
|
||||
<textElement>
|
||||
<font size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{ieEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="319" y="30" width="401" height="15" uuid="cc73dace-ff3e-40cf-8292-9519af0108d4"/>
|
||||
<textElement>
|
||||
<font size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cnpjEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="319" y="60" width="401" height="15" uuid="b716c82c-1944-4691-b907-1d194b41ecfd"/>
|
||||
<textElement>
|
||||
<font size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="739" y="22" width="185" height="39" uuid="1c447225-9f55-4f72-a269-d29c272ef2a4"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="14" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{folio} != null ? Integer.parseInt($F{folio}) + ($V{PAGE_NUMBER} - 1) : $F{rmd}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="739" y="67" width="181" height="20" uuid="6de6219d-29c1-43bb-91be-718a93ee5e7b"/>
|
||||
<textElement>
|
||||
<font size="13" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="13" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{naturezaOperacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -98,72 +98,72 @@
|
|||
<detail>
|
||||
<band height="18" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="41" height="18" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
|
||||
<reportElement x="0" y="0" width="29" height="18" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
|
||||
<textElement>
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="41" y="0" width="150" height="18" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f"/>
|
||||
<reportElement x="29" y="0" width="162" height="18" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f"/>
|
||||
<textElement>
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="191" y="0" width="51" height="18" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
|
||||
<textElement>
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="242" y="0" width="89" height="18" uuid="f8fbd690-36bd-4d69-9af4-1490ec205698"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="331" y="0" width="94" height="18" uuid="21f2b8f9-1acd-4e7d-bb27-643cfae50748"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="425" y="0" width="42" height="18" uuid="565fe3d7-bce7-480f-829f-0238cf7d2d74"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="467" y="0" width="90" height="18" uuid="c07a3fa8-12c6-4a5b-8707-02c0524f943c"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="633" y="0" width="87" height="18" uuid="4f082fb1-15bc-41f6-985e-0f670459fceb"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="720" y="0" width="204" height="18" uuid="7c171d60-9889-4845-89d5-f656e34b1c37"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{obs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="557" y="0" width="76" height="18" uuid="60865331-9449-4435-8b4a-664b747a90b3"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -174,35 +174,35 @@
|
|||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="242" y="0" width="89" height="45" uuid="e6c0383c-5062-4b22-989b-d1619add3ade"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="331" y="0" width="94" height="45" uuid="810c93ac-4d8b-4edb-800c-ec2753286bb1"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="467" y="0" width="90" height="45" uuid="0a93d431-1b76-4590-aa1b-9af22283a5b3"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="557" y="0" width="76" height="45" uuid="748316ed-feb8-4a2d-9103-764eeb74873d"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="633" y="0" width="87" height="45" uuid="66628be0-d424-4d61-96dc-aaf8652ded42"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="Monospaced" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
|
Binary file not shown.
|
@ -43,49 +43,49 @@
|
|||
<textField>
|
||||
<reportElement x="316" y="0" width="407" height="15" uuid="76bd1c26-ed5d-4155-916b-f90dbdb2b9dc"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="316" y="15" width="407" height="15" uuid="1bc67f62-16e9-4681-891c-4d2680466d91"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="10" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="10" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{enderecoEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="316" y="30" width="407" height="15" uuid="fe223feb-b29e-4f97-b359-272aa857ce87"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cnpjEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="316" y="45" width="407" height="15" uuid="cc73dace-ff3e-40cf-8292-9519af0108d4"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{ieEmpresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="316" y="60" width="407" height="15" uuid="b716c82c-1944-4691-b907-1d194b41ecfd"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="11" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="742" y="22" width="181" height="30" uuid="1c447225-9f55-4f72-a269-d29c272ef2a4"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{folio} != null ? Integer.parseInt($F{folio}) + ($V{PAGE_NUMBER} - 1) : $F{rmd}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="742" y="67" width="181" height="28" uuid="6de6219d-29c1-43bb-91be-718a93ee5e7b"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
|
||||
<font fontName="SansSerif" size="13" pdfFontName="Courier-Oblique" isPdfEmbedded="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{naturezaOperacao}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -98,27 +98,27 @@
|
|||
<detail>
|
||||
<band height="18" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="20" height="18" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="36" height="18" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
|
||||
<textElement>
|
||||
<font fontName="SansSerif" size="10" isItalic="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" isItalic="false" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
<paragraph leftIndent="-10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="20" y="0" width="99" height="18" isPrintWhenDetailOverflows="true" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f">
|
||||
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="36" y="0" width="60" height="18" isPrintWhenDetailOverflows="true" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f">
|
||||
<printWhenExpression><![CDATA[$F{serie} != null]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="12" isItalic="false" isStrikeThrough="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" isItalic="false" isStrikeThrough="false" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
<paragraph rightIndent="-25"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="119" y="0" width="50" height="18" isPrintWhenDetailOverflows="true" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
|
||||
<reportElement stretchType="RelativeToTallestObject" x="96" y="0" width="73" height="18" isPrintWhenDetailOverflows="true" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
|
||||
<textElement textAlignment="Right" rotation="None">
|
||||
<font fontName="SansSerif" size="12" isItalic="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" isItalic="false" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Proportional" leftIndent="-25"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
|
||||
|
@ -126,49 +126,49 @@
|
|||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="169" y="0" width="92" height="18" uuid="f8fbd690-36bd-4d69-9af4-1490ec205698"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="261" y="0" width="104" height="18" uuid="21f2b8f9-1acd-4e7d-bb27-643cfae50748"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="365" y="0" width="40" height="18" uuid="565fe3d7-bce7-480f-829f-0238cf7d2d74"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="405" y="0" width="93" height="18" uuid="c07a3fa8-12c6-4a5b-8707-02c0524f943c"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="608" y="0" width="115" height="18" uuid="4f082fb1-15bc-41f6-985e-0f670459fceb"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement x="723" y="0" width="200" height="18" uuid="7c171d60-9889-4845-89d5-f656e34b1c37"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{obs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="498" y="0" width="110" height="18" uuid="60865331-9449-4435-8b4a-664b747a90b3"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -179,35 +179,35 @@
|
|||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="169" y="0" width="92" height="45" uuid="e6c0383c-5062-4b22-989b-d1619add3ade"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_valorContabil}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="261" y="0" width="104" height="45" uuid="810c93ac-4d8b-4edb-800c-ec2753286bb1"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_baseCalculo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="405" y="0" width="93" height="45" uuid="0a93d431-1b76-4590-aa1b-9af22283a5b3"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_icms}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="498" y="0" width="110" height="45" uuid="748316ed-feb8-4a2d-9103-764eeb74873d"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_isentos}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="608" y="0" width="115" height="45" uuid="66628be0-d424-4d61-96dc-aaf8652ded42"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
|
||||
<font fontName="SansSerif" size="12" pdfFontName="Courier-Oblique" isPdfEmbedded="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_outros}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
|
|
@ -28,6 +28,7 @@ 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.RelatorioFolioRmd;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoRmd;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioImpressaoRmdBpr;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
|
@ -75,6 +76,7 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
|
|||
private MyComboboxEstandar cmbAidf;
|
||||
|
||||
private Radio radBPR;
|
||||
private Radio radECF;
|
||||
private Checkbox tipoLayout;
|
||||
|
||||
@Override
|
||||
|
@ -118,9 +120,12 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
public void onSelect$cmbAidf(Event ev) {
|
||||
|
||||
Empresa empresa = cmbEmpresa.getSelectedItem() == null ? null : (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
Estado estado = cmbEstado.getSelectedItem() == null ? null : (Estado) cmbEstado.getSelectedItem().getValue();
|
||||
Aidf aidf = cmbAidf.getSelectedItem() == null ? null : (Aidf) cmbAidf.getSelectedItem().getValue();
|
||||
if (aidf != null) {
|
||||
String ultimoRmdUtilizado = aidfService.buscaUltimoAidfRMDUtilizado(aidf.getAidfId());
|
||||
String ultimoRmdUtilizado = aidfService.buscaUltimoAidfRMDUtilizado(aidf.getAidfId(), empresa.getEmpresaId(), estado.getEstadoId());
|
||||
if (StringUtils.isNotBlank(ultimoRmdUtilizado)) {
|
||||
folioInicial.setValue(ultimoRmdUtilizado);
|
||||
} else {
|
||||
|
@ -130,7 +135,7 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executarImpressao(boolean isView, boolean isExecutarRmd, boolean isCancelarRmd) throws InterruptedException {
|
||||
private void executarImpressao(boolean isView, boolean isExecutarRmd, boolean isCancelarRmd, boolean isInativarRmd) throws InterruptedException {
|
||||
|
||||
Empresa empresa = cmbEmpresa.getSelectedItem() == null ? null : (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
Estado estado = cmbEstado.getSelectedItem() == null ? null : (Estado) cmbEstado.getSelectedItem().getValue();
|
||||
|
@ -158,17 +163,20 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
List<ImpressaoRMD> list = null;
|
||||
if (radBPR.isChecked()) {
|
||||
list = fiscalService.getRegistroImpressaoRMDTipoBPR(datInicial.getValue(), datFinal.getValue(), empresa, estado, rmd, folio);
|
||||
} else {
|
||||
list = fiscalService.getRegistroImpressaoRMDTipoECF(datInicial.getValue(), datFinal.getValue(), empresa, estado, rmd, folio);
|
||||
if (!isCancelarRmd && !isInativarRmd && radBPR.isChecked()) {
|
||||
list = fiscalService.getRegistroImpressaoRMDTipoBPR(datInicial.getValue(), datFinal.getValue(),
|
||||
empresa, estado, rmd, folio);
|
||||
} else if (!isCancelarRmd && !isInativarRmd && radECF.isChecked()) {
|
||||
list = fiscalService.getRegistroImpressaoRMDTipoECF(datInicial.getValue(), datFinal.getValue(),
|
||||
empresa, estado, rmd, folio);
|
||||
}
|
||||
|
||||
if (isExecutarRmd)
|
||||
fiscalService.gravarRMDBoleto(list, aidf, folio);
|
||||
|
||||
if (isCancelarRmd) {
|
||||
fiscalService.cancelarRMDBoleto(datInicial.getValue(), datFinal.getValue(), empresa, estado, aidf, folio);
|
||||
if (isCancelarRmd || isInativarRmd) {
|
||||
fiscalService.cancelarRMDBoleto(datInicial.getValue(), datFinal.getValue(), empresa, estado, aidf, folio,
|
||||
isCancelarRmd, isInativarRmd, radECF.isChecked(), radBPR.isChecked());
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("busquedaImpressaoRMDController.cancel.msg"),
|
||||
|
@ -211,16 +219,41 @@ public class BusquedaImpressaoRMDController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void onClick$btnReporte(Event ev) throws SQLException, Exception {
|
||||
|
||||
Empresa empresa = cmbEmpresa.getSelectedItem() == null ? null : (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||
Estado estado = cmbEstado.getSelectedItem() == null ? null : (Estado) cmbEstado.getSelectedItem().getValue();
|
||||
Aidf aidf = cmbAidf.getSelectedItem() == null ? null : (Aidf) cmbAidf.getSelectedItem().getValue();
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("empresa", empresa);
|
||||
parametros.put("estado", estado);
|
||||
parametros.put("aidf", aidf);
|
||||
|
||||
Relatorio relatorio = new RelatorioFolioRmd(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("indexController.mnImpressaoRMD.label"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$btnView(Event ev) throws InterruptedException {
|
||||
executarImpressao(true, false, false);
|
||||
executarImpressao(true, false, false, false);
|
||||
}
|
||||
|
||||
public void onClick$btnExecutar(Event ev) throws InterruptedException {
|
||||
executarImpressao(false, true, false);
|
||||
executarImpressao(false, true, false, false);
|
||||
}
|
||||
|
||||
public void onClick$btnCancelar(Event ev) throws InterruptedException {
|
||||
executarImpressao(false, false, true);
|
||||
executarImpressao(false, false, true, false);
|
||||
}
|
||||
|
||||
public void onClick$btnInativar(Event ev) throws InterruptedException {
|
||||
executarImpressao(false, false, false, true);
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
|
|
|
@ -6496,7 +6496,12 @@ busquedaImportacionFiscalController.btnExe.label = Ejecutar Importación
|
|||
#busquedaImportacionFiscalController.btnExeNaoFiscal.label = Importación No Fiscal
|
||||
#busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label = Importación Fiscal Reducción Z
|
||||
|
||||
busquedaExportacaoFiscalController.btnExe.label = Executar Exportação
|
||||
busquedaExportacaoFiscalController.btnView.label = Visualização
|
||||
busquedaExportacaoFiscalController.btnExe.label = Executar Exportação
|
||||
busquedaExportacaoFiscalController.btnCancel.label = Cancelar
|
||||
busquedaExportacaoFiscalController.btnInativar.label = Inativar
|
||||
busquedaImpressaoRMDController.cancel.msg = O Cancelamento/Inativação do folio foi realizado com sucesso.
|
||||
busquedaExportacaoFiscalController.btnReporte.label = Relatório de Formulários
|
||||
|
||||
#corridaServiceImpl
|
||||
corridaServiceImpl.geracaoCorrida.dataMenorQueAtual=El periodo informado es invalido
|
||||
|
|
|
@ -6758,8 +6758,10 @@ busquedaImportacionFiscalController.btnExe.label = Executar Importação
|
|||
|
||||
busquedaExportacaoFiscalController.btnView.label = Visualização
|
||||
busquedaExportacaoFiscalController.btnExe.label = Executar Exportação
|
||||
busquedaExportacaoFiscalController.btnCancel.label = Cancelar/Inativar
|
||||
busquedaExportacaoFiscalController.btnCancel.label = Cancelar
|
||||
busquedaExportacaoFiscalController.btnInativar.label = Inativar
|
||||
busquedaImpressaoRMDController.cancel.msg = O Cancelamento/Inativação do folio foi realizado com sucesso.
|
||||
busquedaExportacaoFiscalController.btnReporte.label = Relatório de Formulários
|
||||
|
||||
editarRelgerencialEmpresaController.MSG.suscribirOK=Relatorio Gerencial gravado com sucesso!
|
||||
editarRelgerencialEmpresaController.window.title=Impressão Fiscal :: Editar Relatorio Gerencial
|
||||
|
|
|
@ -60,20 +60,24 @@
|
|||
</row>
|
||||
|
||||
<row spans="1, 1, 2">
|
||||
<label value="${c:l('busquedaImpressaoRMDController.labelRadio.tipo')}" />
|
||||
<radiogroup id="indTipo" >
|
||||
<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"/>
|
||||
<checkbox id="tipoLayout" checked="false"
|
||||
label="Layout Novo" />
|
||||
</row>
|
||||
|
||||
|
||||
<row spans="1, 3">
|
||||
<label value="${c:l('busquedaImpressaoRMDController.labelfolio.RMD')}" />
|
||||
<textbox id="folioInicial" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
<label
|
||||
value="${c:l('busquedaImpressaoRMDController.labelfolio.RMD')}" />
|
||||
<textbox id="folioInicial"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
|
@ -82,12 +86,19 @@
|
|||
<toolbar>
|
||||
<button id="btnView" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaExportacaoFiscalController.btnView.label')}" />
|
||||
|
||||
|
||||
<button id="btnExecutar" image="/gui/img/enginer.png"
|
||||
label="${c:l('busquedaExportacaoFiscalController.btnExe.label')}" />
|
||||
|
||||
<button id="btnCancelar" image="/gui/img/enginer.png"
|
||||
|
||||
<button id="btnCancelar" image="/gui/img/close_icon_inactive.png"
|
||||
label="${c:l('busquedaExportacaoFiscalController.btnCancel.label')}" />
|
||||
|
||||
<button id="btnInativar" image="/gui/img/edit.png"
|
||||
label="${c:l('busquedaExportacaoFiscalController.btnInativar.label')}" />
|
||||
|
||||
<button id="btnReporte" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaExportacaoFiscalController.btnReporte.label')}" />
|
||||
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue