diff --git a/CHANGELOG.md b/CHANGELOG.md index 3283c24a..3c4d0c3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Notas de versão -- Atualizado CACERT -- Correcao QrCode NFC-e V3 -- Removido Ini4J (Vunerabilidade) \ No newline at end of file +- Alterado URLs Consulta Cadastro AM +- Alterado URLs QRCode GO +- Alterado URLs ConsultaNFCe RN +- Atualizado Layout RT com Nota Técnica 2025.002.v.1.20 +- Adicionado Impressao de NFe, NFCe e CCe : https://github.com/Samuel-Oliveira/Java_NFe/wiki/14-:-Impressao \ No newline at end of file diff --git a/README.md b/README.md index 4ba1b085..0e8f5847 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.40/jar) +# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.41/jar) Biblioteca Java para consumo do WebService de NFe/NFCe ### Powered by @@ -22,7 +22,7 @@ Para Iniciar : br.com.swconsultoria java-nfe - 4.00.40 + 4.00.41 ``` @@ -34,7 +34,7 @@ repositories { } } dependencies { - implementation "br.com.swconsultoria:java-nfe:4.00.40" + implementation "br.com.swconsultoria:java-nfe:4.00.41" } ``` @@ -83,7 +83,7 @@ Esse arquivo deve ser **extraído na mesma pasta dos schemas atuais**, sobrescre ## 💼 Consultoria Especializada Estamos com uma equipe dedicada exclusivamente à **Reforma Tributária**. -A partir de **Agosto de 2025**, estaremos oferecendo serviços de **consultoria personalizada** para apoiar empresas na migração de seus sistemas para o novo layout. +A partir de **Setembro de 2025**, estaremos oferecendo serviços de **consultoria personalizada** para apoiar empresas na migração de seus sistemas para o novo layout. --- @@ -97,6 +97,13 @@ ________________________________________________________________________________ # Historico de Versões +## v4.00.41 - 31/07/2025 - Schemas PL.009p1 e PL.010b +- Alterado URLs Consulta Cadastro AM +- Alterado URLs QRCode GO +- Alterado URLs ConsultaNFCe RN +- Atualizado Layout RT com Nota Técnica 2025.002.v.1.20 +- Adicionado Impressao de NFe, NFCe e CCe : https://github.com/Samuel-Oliveira/Java_NFe/wiki/14-:-Impressao + ## v4.00.40 - 06/07/2025 - Schemas PL.009p1 e PL.010b - Atualizado CACERT - Correcao QrCode NFC-e V3 diff --git a/pom-base.xml b/pom-base.xml index 95308da3..15acc523 100644 --- a/pom-base.xml +++ b/pom-base.xml @@ -2,7 +2,7 @@ 4.0.0 br.com.swconsultoria java-nfe - 4.00.40-${versao}-SNAPSHOT + 4.00.41-${versao}-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -40,6 +40,10 @@ 1.49 5.13.3 1.18.38 + 6.20.6 + 1.3.30 + 1.5-beta1 + 3.2.1 3.14.0 0.8.0 3.7.1 @@ -179,6 +183,41 @@ ${lombok.version} provided + + net.sf.jasperreports + jasperreports + ${jasper.version} + provided + + + net.sf.jasperreports + jasperreports-fonts + ${jasper.version} + provided + + + net.sourceforge.barbecue + barbecue + ${barbecue.version} + provided + + + com.google.zxing + core + ${zxing.version} + provided + + + com.google.zxing + javase + ${zxing.version} + provided + + + com.github.librepdf + openpdf + ${openpdf.version} + diff --git a/pom.xml b/pom.xml index 794ffd52..4101e6ab 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ br.com.swconsultoria java-nfe - 4.00.40 + 4.00.41 Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -41,6 +41,9 @@ 1.49 5.13.3 1.18.38 + 6.20.6 + 1.5-beta1 + 3.2.1 3.14.0 0.8.0 3.2.8 @@ -172,6 +175,36 @@ ${lombok.version} provided + + net.sf.jasperreports + jasperreports + ${jasper.version} + provided + + + net.sf.jasperreports + jasperreports-fonts + ${jasper.version} + provided + + + net.sourceforge.barbecue + barbecue + ${barbecue.version} + provided + + + com.google.zxing + core + ${zxing.version} + provided + + + com.google.zxing + javase + ${zxing.version} + provided + diff --git a/schemas_rt.zip b/schemas_rt.zip index 5b08b0b8..74b59fea 100644 Binary files a/schemas_rt.zip and b/schemas_rt.zip differ diff --git a/schemas_rt/DFeTiposBasicos_v1.00.xsd b/schemas_rt/DFeTiposBasicos_v1.00.xsd index 430314d8..2b485997 100644 --- a/schemas_rt/DFeTiposBasicos_v1.00.xsd +++ b/schemas_rt/DFeTiposBasicos_v1.00.xsd @@ -551,202 +551,237 @@ Monofasia - - - - Quantidade tributada na monofasia - - - - - Alíquota ad rem do IBS - - - - - Alíquota ad rem da CBS - - - - - Valor do IBS monofásico - - - - - Valor da CBS monofásica - - - - - - - Quantidade tributada sujeita a retenção. - - - - - Alíquota ad rem do IBS sujeito a retenção - - - - - Valor do IBS monofásico sujeito a retenção - - - - - Alíquota ad rem da CBS sujeita a retenção - - - - - Valor da CBS monofásica sujeita a retenção - - - - - - - Quantidade tributada retida anteriormente - - - - - Alíquota ad rem do IBS retido anteriormente - - - - - Valor do IBS retido anteriormente - - - - - Alíquota ad rem da CBS retida anteriormente - - - - - Valor da CBS retida anteriormente - - - - - - - Percentual do diferimento do imposto monofásico - - - - - Valor do IBS monofásico diferido - - - - - Percentual do diferimento do imposto monofásico - - - - - Valor da CBS monofásica diferida - - - - - - Total de IBS monofásico do item - - - - - Total da CBS monofásica do item - - - - - - - Tipo CBS IBS Completo - - - - IBS / CBS - - + - Valor do BC + Grupo de informações da Tributação Monofásica padrão + + + + + Quantidade tributada na monofasia + + + + + Alíquota ad rem do IBS + + + + + Alíquota ad rem da CBS + + + + + Valor do IBS monofásico + + + + + Valor da CBS monofásica + + + + - + - Grupo de informações do IBS na UF + Grupo de informações da Tributação Monofásica sujeita a retenção - + - Aliquota do IBS de competência das UF + Quantidade tributada sujeita a retenção. - + - Grupo de campos do Diferimento + Alíquota ad rem do IBS sujeito a retenção - + - Grupo de Informações da devolução de tributos + Valor do IBS monofásico sujeito a retenção - + - Grupo de campos da redução de aliquota + Alíquota ad rem da CBS sujeita a retenção - + - Valor do IBS de competência das UF + Valor da CBS monofásica sujeita a retenção - + - Grupo de Informações do IBS no Município + Grupo de informações da Tributação Monofásica retida anteriormente - + - Aliquota do IBS Municipal + Quantidade tributada retida anteriormente - + - Grupo de campos do Diferimento + Alíquota ad rem do IBS retido anteriormente - + - Grupo de Informações da devolução de tributos + Valor do IBS retido anteriormente - + - Grupo de campos da redução de aliquota + Alíquota ad rem da CBS retida anteriormente - + - Valor do IBS Municipal + Valor da CBS retida anteriormente + + + Grupo de informações do diferimento da Tributação Monofásica + + + + + + Percentual do diferimento do imposto monofásico + + + + + Valor do IBS monofásico diferido + + + + + Percentual do diferimento do imposto monofásico + + + + + Valor da CBS monofásica diferida + + + + + + + + Total de IBS monofásico do item + + + + + Total da CBS monofásica do item + + + + + + + Tipo CBS IBS Completo + + + + IBS / CBS + + + + Valor do BC + + + + + + Grupo de informações do IBS na UF + + + + + + Aliquota do IBS de competência das UF + + + + + Grupo de campos do Diferimento + + + + + Grupo de Informações da devolução de tributos + + + + + Grupo de campos da redução de aliquota + + + + + Valor do IBS de competência das UF + + + + + + + + Grupo de Informações do IBS no Município + + + + + + Aliquota do IBS Municipal + + + + + Grupo de campos do Diferimento + + + + + Grupo de Informações da devolução de tributos + + + + + Grupo de campos da redução de aliquota + + + + + Valor do IBS Municipal + + + + + + + + Valor do IBS + + + Grupo de Tributação da CBS diff --git a/schemas_rt/leiauteNFe_v4.00.xsd b/schemas_rt/leiauteNFe_v4.00.xsd index 4cd671de..f0d7e082 100644 --- a/schemas_rt/leiauteNFe_v4.00.xsd +++ b/schemas_rt/leiauteNFe_v4.00.xsd @@ -1,5 +1,5 @@ - + @@ -19,8 +19,8 @@ + xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe" + elementFormDefault="qualified" attributeFormDefault="unqualified"> @@ -5521,7 +5521,7 @@ Substituição Tributaria; Valores totais da NF com IBS / CBS - + Valor Total da NF considerando os impostos por fora IBS, CBS e IS @@ -7556,4 +7556,4 @@ alterado para tamanho variavel 1-4. (NT2011/004) - + \ No newline at end of file diff --git a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java index c7219c05..7d7fffde 100644 --- a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java +++ b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java @@ -109,8 +109,8 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn log.info(String.format("JAVA-NFE | Samuel Oliveira | samuel@swconsultoria.com.br " + "| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s", - "4.00.40", - "06/07/2025", + "4.00.41", + "31/07/2025", pastaSchemas, ambiente, estado.getNome().toUpperCase())); diff --git a/src/main/java/br/com/swconsultoria/nfe/exception/DanfeException.java b/src/main/java/br/com/swconsultoria/nfe/exception/DanfeException.java new file mode 100644 index 00000000..b3dc9a64 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/exception/DanfeException.java @@ -0,0 +1,16 @@ +package br.com.swconsultoria.nfe.exception; + +public class DanfeException extends RuntimeException { + + public DanfeException(String message) { + super(message); + } + + public DanfeException(String message, Throwable cause) { + super(message, cause); + } + + public DanfeException(Throwable cause) { + super(cause); + } +} diff --git a/src/main/java/br/com/swconsultoria/nfe/exception/NfeException.java b/src/main/java/br/com/swconsultoria/nfe/exception/NfeException.java index 37bcd367..72bb86e1 100644 --- a/src/main/java/br/com/swconsultoria/nfe/exception/NfeException.java +++ b/src/main/java/br/com/swconsultoria/nfe/exception/NfeException.java @@ -7,54 +7,15 @@ */ public class NfeException extends Exception { - private static final long serialVersionUID = -5054900660251852366L; - - String message; - - /** - * Construtor da classe. - * - * @param e - */ - public NfeException(Throwable e) { - super(e); - } - - - /** - * Construtor da classe. - * - * @param message - */ public NfeException(String message) { - this((Throwable) null); - this.message = message; + super(message); } - /** - * Construtor da classe. - * - * @param message - * @param cause - */ public NfeException(String message, Throwable cause) { - this(cause); - this.message = message; + super(message, cause); } - /** - * @return the message - */ - public String getMessage() { - return message; + public NfeException(Throwable cause) { + super(cause); } - - /** - * @param message the message to set - */ - public void setMessage(String message) { - this.message = message; - } - - } \ No newline at end of file diff --git a/src/main/java/br/com/swconsultoria/nfe/exception/NfeValidacaoException.java b/src/main/java/br/com/swconsultoria/nfe/exception/NfeValidacaoException.java index 4f20ccd3..b321cd39 100644 --- a/src/main/java/br/com/swconsultoria/nfe/exception/NfeValidacaoException.java +++ b/src/main/java/br/com/swconsultoria/nfe/exception/NfeValidacaoException.java @@ -7,42 +7,15 @@ */ public class NfeValidacaoException extends NfeException { - private static final long serialVersionUID = 2224963351733125955L; - String message; - - /** - * Construtor da classe. - * - * @param e - */ public NfeValidacaoException(Throwable e) { super(e); } - - /** - * Construtor da classe. - * - * @param message - */ public NfeValidacaoException(String message) { - this((Throwable) null); - this.message = message; + super(message); } - /** - * @return the message - */ - public String getMessage() { - return message; + public NfeValidacaoException(String message, Throwable cause) { + super(message, cause); } - - /** - * @param message the message to set - */ - public void setMessage(String message) { - this.message = message; - } - - } \ No newline at end of file diff --git a/src/main/java/br/com/swconsultoria/nfe/impressao/ConstantesImpressaoNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/impressao/ConstantesImpressaoNfeUtil.java new file mode 100644 index 00000000..86d38ecb --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/impressao/ConstantesImpressaoNfeUtil.java @@ -0,0 +1,16 @@ +package br.com.swconsultoria.nfe.impressao; + +public class ConstantesImpressaoNfeUtil { + private ConstantesImpressaoNfeUtil() {} + + //PATHS + public static final String PATH_NFE = "/nfeProc/NFe/infNFe/det"; + public static final String PATH_NFCE = "/"; + public static final String PATH_CCE = "/procEventoNFe"; + //PARAM LOGO + public static final String PARAM_LOGO_NFE = "Logo"; + public static final String PARAM_LOGO_NFCE = "Logo"; + //PATH LOGO + public static final String PATH_LOGO_NFE = "/img/nfe.png"; + public static final String PATH_LOGO_NFCE = "/img/nfce.png"; +} diff --git a/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoDTO.java b/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoDTO.java new file mode 100644 index 00000000..0d3aad63 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoDTO.java @@ -0,0 +1,48 @@ +package br.com.swconsultoria.nfe.impressao; + +import net.sf.jasperreports.engine.JasperReport; + +import java.util.HashMap; +import java.util.Map; + +/** + * Model resposnsavel por armazenar as informações da Impressao + */ +public class ImpressaoDTO { + + private String xml; + private JasperReport jasper; + private String pathExpression; + private Map parametros; + + public String getXml() { + return xml; + } + + public void setXml(String xml) { + this.xml = xml; + } + + public JasperReport getJasper() { + return jasper; + } + + public void setJasper(JasperReport jasper) { + this.jasper = jasper; + } + + public String getPathExpression() { + return pathExpression; + } + + public void setPathExpression(String pathExpression) { + this.pathExpression = pathExpression; + } + + public Map getParametros() { + if (this.parametros == null) { + this.parametros = new HashMap<>(); + } + return parametros; + } +} diff --git a/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoNfeUtil.java b/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoNfeUtil.java new file mode 100644 index 00000000..70b22992 --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/impressao/ImpressaoNfeUtil.java @@ -0,0 +1,246 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.exception.DanfeException; +import net.sf.jasperreports.engine.*; +import net.sf.jasperreports.engine.data.JRXmlDataSource; +import net.sf.jasperreports.engine.export.JRPrintServiceExporter; +import net.sf.jasperreports.engine.util.JRLoader; +import net.sf.jasperreports.export.SimpleExporterInput; +import net.sf.jasperreports.export.SimplePrintServiceExporterConfiguration; +import net.sf.jasperreports.view.JasperViewer; +import org.w3c.dom.Document; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; + +import javax.print.PrintService; +import javax.print.PrintServiceLookup; +import javax.print.attribute.HashPrintRequestAttributeSet; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import java.awt.print.PrinterException; +import java.awt.print.PrinterJob; +import java.io.IOException; +import java.io.InputStream; +import java.io.StringReader; + +import static br.com.swconsultoria.nfe.impressao.ConstantesImpressaoNfeUtil.*; + +/** + * Classe responsavel por armazenar os metodos uteis + */ +public class ImpressaoNfeUtil { + + private ImpressaoNfeUtil() { + } + + /** + * Cria a impressão no caminho definido e no formato PDF + * @param impressao + * @param destinoPdf + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + */ + public static void impressaoPdfArquivo(ImpressaoDTO impressao, String destinoPdf) throws JRException, ParserConfigurationException, IOException, SAXException { + JasperPrint jasperPrint = geraImpressao(impressao); + JasperExportManager.exportReportToPdfFile(jasperPrint, destinoPdf); + } + + /** + * Cria a impressão Retornando o byte[] + * @param impressao + * @return + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + */ + public static byte[] impressaoPdfByte(ImpressaoDTO impressao) throws JRException, ParserConfigurationException, IOException, SAXException { + JasperPrint jasperPrint = geraImpressao(impressao); + return JasperExportManager.exportReportToPdf(jasperPrint); + } + + /** + * Cria a impressão no caminho definido e no formato HTML + * @param impressao + * @param destinoHtml + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + */ + public static void impressaoHtml(ImpressaoDTO impressao, String destinoHtml) throws JRException, ParserConfigurationException, IOException, SAXException { + JasperPrint jasperPrint = geraImpressao(impressao); + JasperExportManager.exportReportToHtmlFile(jasperPrint, destinoHtml); + } + + /** + * Cria a impressão em um preview, use setVisible(true) para mostrar a janela + * @param impressao + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + */ + public static JasperViewer impressaoPreview(ImpressaoDTO impressao) throws JRException, ParserConfigurationException, IOException, SAXException { + JasperPrint jasperPrint = geraImpressao(impressao); + return new JasperViewer(jasperPrint, true); + } + + /** + * Cria a impressão direta na impressora padrão + * @param impressao + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + * @throws PrinterException + */ + public static void impressaoDireta(ImpressaoDTO impressao) throws JRException, ParserConfigurationException, IOException, SAXException, PrinterException { + PrintService impressoraPadrao = PrintServiceLookup.lookupDefaultPrintService(); + impressaoDireta(impressao, impressoraPadrao, null); + } + + /** + * Cria a impressão direta na impressora padrão passando configuration + * @param impressao + * @param configuration + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + * @throws PrinterException + */ + public static void impressaoDireta(ImpressaoDTO impressao, SimplePrintServiceExporterConfiguration configuration) throws JRException, ParserConfigurationException, IOException, SAXException, PrinterException { + PrintService impressoraPadrao = PrintServiceLookup.lookupDefaultPrintService(); + impressaoDireta(impressao, impressoraPadrao, configuration); + } + + /** + * Cria a impressão direta na impressora informada + * @param impressao + * @param impressora + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + * @throws PrinterException + */ + public static void impressaoDireta(ImpressaoDTO impressao, PrintService impressora) throws JRException, ParserConfigurationException, IOException, SAXException, PrinterException { + SimplePrintServiceExporterConfiguration configuration = new SimplePrintServiceExporterConfiguration(); + configuration.setPrintRequestAttributeSet(new HashPrintRequestAttributeSet()); + configuration.setDisplayPageDialog(false); + configuration.setDisplayPrintDialog(false); + + impressaoDireta(impressao, impressora, configuration); + } + + /** + * Cria a impressão direta na impressora informada + * @param impressao + * @param impressora + * @throws JRException + * @throws ParserConfigurationException + * @throws IOException + * @throws SAXException + * @throws PrinterException + */ + public static void impressaoDireta(ImpressaoDTO impressao, PrintService impressora, SimplePrintServiceExporterConfiguration configuration) throws JRException, ParserConfigurationException, IOException, SAXException, PrinterException { + JasperPrint jasperPrint = geraImpressao(impressao); + if (impressora == null) { + throw new DanfeException("Impressora não encontrada"); + } + + if (configuration == null) { + configuration = new SimplePrintServiceExporterConfiguration(); + configuration.setPrintRequestAttributeSet(new HashPrintRequestAttributeSet()); + configuration.setDisplayPageDialog(false); + configuration.setDisplayPrintDialog(false); + } + + // Configurações de impressão + PrinterJob printerJob = PrinterJob.getPrinterJob(); + printerJob.setPrintService(impressora); + + // Crie uma impressão Jasper a partir do objeto JasperPrint + JRPrintServiceExporter exporter = new JRPrintServiceExporter(); + exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); + configuration.setPrintService(impressora); + exporter.setConfiguration(configuration); + + // Exportar e imprimir + exporter.exportReport(); + } + + /** + * Cria a impressão + * @param impressao + * @return + * @throws IOException + * @throws SAXException + * @throws ParserConfigurationException + * @throws JRException + */ + public static JasperPrint geraImpressao(ImpressaoDTO impressao) throws IOException, SAXException, ParserConfigurationException, JRException { + DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + Document document = docBuilder.parse(new InputSource(new StringReader(impressao.getXml()))); + JRDataSource xmlDataSource = new JRXmlDataSource(document, impressao.getPathExpression()); + return JasperFillManager.fillReport(impressao.getJasper(), impressao.getParametros(), xmlDataSource); + } + + public static JasperReport carregaJasperResources(String caminhoJasper) { + try (InputStream in = ImpressaoNfeUtil.class.getResourceAsStream(caminhoJasper)) { + if (in == null) { + throw new DanfeException(String.format("Jasper não encontrado %s", caminhoJasper)); + } + return (JasperReport) JRLoader.loadObject(in); + } catch (IOException | JRException e) { + throw new DanfeException(String.format("Erro ao carregar Jasper %s", caminhoJasper), e); + } + } + + /** + * Gera Objeto padrão para impressão da NFe + * + * @return + */ + public static ImpressaoDTO impressaoPadraoNFe(String xml) { + ImpressaoDTO impressaoNFe = new ImpressaoDTO(); + impressaoNFe.setXml(xml); + impressaoNFe.setPathExpression(PATH_NFE); + impressaoNFe.setJasper(JasperNFeEnum.NFE.getJasper()); + impressaoNFe.getParametros().put(PARAM_LOGO_NFE, ImpressaoNfeUtil.class.getResourceAsStream(PATH_LOGO_NFE)); + impressaoNFe.getParametros().put("SUBREPORT", JasperNFeEnum.NFE_FATURA.getJasper()); + return impressaoNFe; + } + + /** + * Gera Objeto padrão para impressão da NFCe + * + * @return + */ + public static ImpressaoDTO impressaoPadraoNFCe(String xml, String urlConsulta) { + ImpressaoDTO impressaoNFCe = new ImpressaoDTO(); + impressaoNFCe.setXml(xml); + impressaoNFCe.setPathExpression(PATH_NFCE); + impressaoNFCe.setJasper(JasperNFeEnum.NFCE.getJasper()); + impressaoNFCe.getParametros().put(PARAM_LOGO_NFCE, ImpressaoNfeUtil.class.getResourceAsStream(PATH_LOGO_NFCE)); + impressaoNFCe.getParametros().put("UrlConsulta", urlConsulta); + return impressaoNFCe; + } + /** + * Gera Objeto padrão para impressão da CCe + * + * @return + */ + public static ImpressaoDTO impressaoPadraoCCe(String xml) { + ImpressaoDTO impressaoCCe = new ImpressaoDTO(); + impressaoCCe.setXml(xml); + impressaoCCe.setPathExpression(PATH_CCE); + impressaoCCe.setJasper(JasperNFeEnum.CCE.getJasper()); + return impressaoCCe; + } + +} diff --git a/src/main/java/br/com/swconsultoria/nfe/impressao/JasperNFeEnum.java b/src/main/java/br/com/swconsultoria/nfe/impressao/JasperNFeEnum.java new file mode 100644 index 00000000..3605850d --- /dev/null +++ b/src/main/java/br/com/swconsultoria/nfe/impressao/JasperNFeEnum.java @@ -0,0 +1,22 @@ +package br.com.swconsultoria.nfe.impressao; + +import net.sf.jasperreports.engine.JasperReport; + +public enum JasperNFeEnum { + + NFE("/nfe/danfe"), + NFE_FATURA("/nfe/danfe_fatura"), + NFCE("/nfce/danfce"), + CCE("/cce/cce"); + + private final String caminho; + + JasperNFeEnum(String caminho) { + this.caminho = caminho; + } + + public JasperReport getJasper() { + String caminhoJasper = "/jasper" + caminho + ".jasper"; + return ImpressaoNfeUtil.carregaJasperResources(caminhoJasper); + } +} diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/ObjectFactory.java b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/ObjectFactory.java index 3c84f291..4c7b9109 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/ObjectFactory.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/ObjectFactory.java @@ -10,7 +10,7 @@ /** * This object contains factory methods for each * Java content interface and Java element interface - * generated in the br.com.swconsultoria.nfe.schema_rt.enviNFe package. + * generated in the br.com.swconsultoria.nfe.schema_rt.nfe package. *

An ObjectFactory allows you to programatically * construct new instances of the Java representation * for XML content. The Java representation of XML @@ -25,7 +25,7 @@ public class ObjectFactory { private final static QName _Signature_QNAME = new QName("http://www.w3.org/2000/09/xmldsig#", "Signature"); - private final static QName _EnviNFe_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "enviNFe"); + private final static QName _NFe_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "NFe"); private final static QName _TNFeInfNFeDetImpostoICMS_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "ICMS"); private final static QName _TNFeInfNFeDetImpostoPISST_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "PISST"); private final static QName _TNFeInfNFeDetImpostoCOFINSST_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "COFINSST"); @@ -40,7 +40,7 @@ public class ObjectFactory { private final static QName _TNFeInfNFeDetImpostoPIS_QNAME = new QName("http://www.portalfiscal.inf.br/nfe", "PIS"); /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema_rt.enviNFe + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: br.com.swconsultoria.nfe.schema_rt.nfe * */ public ObjectFactory() { @@ -62,6 +62,78 @@ public SignedInfoType createSignedInfoType() { return new SignedInfoType(); } + /** + * Create an instance of {@link TIBSCBSMonoTot } + * + */ + public TIBSCBSMonoTot createTIBSCBSMonoTot() { + return new TIBSCBSMonoTot(); + } + + /** + * Create an instance of {@link TIBSCBSMonoTot.GIBS } + * + */ + public TIBSCBSMonoTot.GIBS createTIBSCBSMonoTotGIBS() { + return new TIBSCBSMonoTot.GIBS(); + } + + /** + * Create an instance of {@link TRetEnviNFe } + * + */ + public TRetEnviNFe createTRetEnviNFe() { + return new TRetEnviNFe(); + } + + /** + * Create an instance of {@link TIBSCBSTot } + * + */ + public TIBSCBSTot createTIBSCBSTot() { + return new TIBSCBSTot(); + } + + /** + * Create an instance of {@link TIBSCBSTot.GIBS } + * + */ + public TIBSCBSTot.GIBS createTIBSCBSTotGIBS() { + return new TIBSCBSTot.GIBS(); + } + + /** + * Create an instance of {@link TProtNFe } + * + */ + public TProtNFe createTProtNFe() { + return new TProtNFe(); + } + + /** + * Create an instance of {@link TMonofasia } + * + */ + public TMonofasia createTMonofasia() { + return new TMonofasia(); + } + + /** + * Create an instance of {@link TCIBS } + * + */ + public TCIBS createTCIBS() { + return new TCIBS(); + } + + /** + * Create an instance of {@link TIpi } + * + */ + public TIpi createTIpi() { + return new TIpi(); + } + /** * Create an instance of {@link TNFe } * @@ -254,78 +326,6 @@ public TNFe.InfNFe.Ide.NFref createTNFeInfNFeIdeNFref() { return new TNFe.InfNFe.Ide.NFref(); } - /** - * Create an instance of {@link TIBSCBSMonoTot } - * - */ - public TIBSCBSMonoTot createTIBSCBSMonoTot() { - return new TIBSCBSMonoTot(); - } - - /** - * Create an instance of {@link TIBSCBSMonoTot.GIBS } - * - */ - public TIBSCBSMonoTot.GIBS createTIBSCBSMonoTotGIBS() { - return new TIBSCBSMonoTot.GIBS(); - } - - /** - * Create an instance of {@link TRetEnviNFe } - * - */ - public TRetEnviNFe createTRetEnviNFe() { - return new TRetEnviNFe(); - } - - /** - * Create an instance of {@link TIBSCBSTot } - * - */ - public TIBSCBSTot createTIBSCBSTot() { - return new TIBSCBSTot(); - } - - /** - * Create an instance of {@link TIBSCBSTot.GIBS } - * - */ - public TIBSCBSTot.GIBS createTIBSCBSTotGIBS() { - return new TIBSCBSTot.GIBS(); - } - - /** - * Create an instance of {@link TProtNFe } - * - */ - public TProtNFe createTProtNFe() { - return new TProtNFe(); - } - - /** - * Create an instance of {@link TCIBS } - * - */ - public TCIBS createTCIBS() { - return new TCIBS(); - } - - /** - * Create an instance of {@link TIpi } - * - */ - public TIpi createTIpi() { - return new TIpi(); - } - - /** - * Create an instance of {@link TEnviNFe } - * - */ - public TEnviNFe createTEnviNFe() { - return new TEnviNFe(); - } - /** * Create an instance of {@link TCompraGov } * @@ -383,11 +383,11 @@ public TCredPresIBSZFM createTCredPresIBSZFM() { } /** - * Create an instance of {@link TMonofasia } + * Create an instance of {@link TEnviNFe } * */ - public TMonofasia createTMonofasia() { - return new TMonofasia(); + public TEnviNFe createTEnviNFe() { + return new TEnviNFe(); } /** @@ -614,6 +614,150 @@ public SignedInfoType.SignatureMethod createSignedInfoTypeSignatureMethod() { return new SignedInfoType.SignatureMethod(); } + /** + * Create an instance of {@link TIBSCBSMonoTot.GCBS } + * + */ + public TIBSCBSMonoTot.GCBS createTIBSCBSMonoTotGCBS() { + return new TIBSCBSMonoTot.GCBS(); + } + + /** + * Create an instance of {@link TIBSCBSMonoTot.GMono } + * + */ + public TIBSCBSMonoTot.GMono createTIBSCBSMonoTotGMono() { + return new TIBSCBSMonoTot.GMono(); + } + + /** + * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSUF } + * + */ + public TIBSCBSMonoTot.GIBS.GIBSUF createTIBSCBSMonoTotGIBSGIBSUF() { + return new TIBSCBSMonoTot.GIBS.GIBSUF(); + } + + /** + * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSMun } + * + */ + public TIBSCBSMonoTot.GIBS.GIBSMun createTIBSCBSMonoTotGIBSGIBSMun() { + return new TIBSCBSMonoTot.GIBS.GIBSMun(); + } + + /** + * Create an instance of {@link TRetEnviNFe.InfRec } + * + */ + public TRetEnviNFe.InfRec createTRetEnviNFeInfRec() { + return new TRetEnviNFe.InfRec(); + } + + /** + * Create an instance of {@link TIBSCBSTot.GCBS } + * + */ + public TIBSCBSTot.GCBS createTIBSCBSTotGCBS() { + return new TIBSCBSTot.GCBS(); + } + + /** + * Create an instance of {@link TIBSCBSTot.GIBS.GIBSUF } + * + */ + public TIBSCBSTot.GIBS.GIBSUF createTIBSCBSTotGIBSGIBSUF() { + return new TIBSCBSTot.GIBS.GIBSUF(); + } + + /** + * Create an instance of {@link TIBSCBSTot.GIBS.GIBSMun } + * + */ + public TIBSCBSTot.GIBS.GIBSMun createTIBSCBSTotGIBSGIBSMun() { + return new TIBSCBSTot.GIBS.GIBSMun(); + } + + /** + * Create an instance of {@link TProtNFe.InfProt } + * + */ + public TProtNFe.InfProt createTProtNFeInfProt() { + return new TProtNFe.InfProt(); + } + + /** + * Create an instance of {@link TMonofasia.GMonoPadrao } + * + */ + public TMonofasia.GMonoPadrao createTMonofasiaGMonoPadrao() { + return new TMonofasia.GMonoPadrao(); + } + + /** + * Create an instance of {@link TMonofasia.GMonoReten } + * + */ + public TMonofasia.GMonoReten createTMonofasiaGMonoReten() { + return new TMonofasia.GMonoReten(); + } + + /** + * Create an instance of {@link TMonofasia.GMonoRet } + * + */ + public TMonofasia.GMonoRet createTMonofasiaGMonoRet() { + return new TMonofasia.GMonoRet(); + } + + /** + * Create an instance of {@link TMonofasia.GMonoDif } + * + */ + public TMonofasia.GMonoDif createTMonofasiaGMonoDif() { + return new TMonofasia.GMonoDif(); + } + + /** + * Create an instance of {@link TCIBS.GIBSUF } + * + */ + public TCIBS.GIBSUF createTCIBSGIBSUF() { + return new TCIBS.GIBSUF(); + } + + /** + * Create an instance of {@link TCIBS.GIBSMun } + * + */ + public TCIBS.GIBSMun createTCIBSGIBSMun() { + return new TCIBS.GIBSMun(); + } + + /** + * Create an instance of {@link TCIBS.GCBS } + * + */ + public TCIBS.GCBS createTCIBSGCBS() { + return new TCIBS.GCBS(); + } + + /** + * Create an instance of {@link TIpi.IPITrib } + * + */ + public TIpi.IPITrib createTIpiIPITrib() { + return new TIpi.IPITrib(); + } + + /** + * Create an instance of {@link TIpi.IPINT } + * + */ + public TIpi.IPINT createTIpiIPINT() { + return new TIpi.IPINT(); + } + /** * Create an instance of {@link TNFe.InfNFeSupl } * @@ -1246,118 +1390,6 @@ public TNFe.InfNFe.Ide.NFref.RefECF createTNFeInfNFeIdeNFrefRefECF() { return new TNFe.InfNFe.Ide.NFref.RefECF(); } - /** - * Create an instance of {@link TIBSCBSMonoTot.GCBS } - * - */ - public TIBSCBSMonoTot.GCBS createTIBSCBSMonoTotGCBS() { - return new TIBSCBSMonoTot.GCBS(); - } - - /** - * Create an instance of {@link TIBSCBSMonoTot.GMono } - * - */ - public TIBSCBSMonoTot.GMono createTIBSCBSMonoTotGMono() { - return new TIBSCBSMonoTot.GMono(); - } - - /** - * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSUF } - * - */ - public TIBSCBSMonoTot.GIBS.GIBSUF createTIBSCBSMonoTotGIBSGIBSUF() { - return new TIBSCBSMonoTot.GIBS.GIBSUF(); - } - - /** - * Create an instance of {@link TIBSCBSMonoTot.GIBS.GIBSMun } - * - */ - public TIBSCBSMonoTot.GIBS.GIBSMun createTIBSCBSMonoTotGIBSGIBSMun() { - return new TIBSCBSMonoTot.GIBS.GIBSMun(); - } - - /** - * Create an instance of {@link TRetEnviNFe.InfRec } - * - */ - public TRetEnviNFe.InfRec createTRetEnviNFeInfRec() { - return new TRetEnviNFe.InfRec(); - } - - /** - * Create an instance of {@link TIBSCBSTot.GCBS } - * - */ - public TIBSCBSTot.GCBS createTIBSCBSTotGCBS() { - return new TIBSCBSTot.GCBS(); - } - - /** - * Create an instance of {@link TIBSCBSTot.GIBS.GIBSUF } - * - */ - public TIBSCBSTot.GIBS.GIBSUF createTIBSCBSTotGIBSGIBSUF() { - return new TIBSCBSTot.GIBS.GIBSUF(); - } - - /** - * Create an instance of {@link TIBSCBSTot.GIBS.GIBSMun } - * - */ - public TIBSCBSTot.GIBS.GIBSMun createTIBSCBSTotGIBSGIBSMun() { - return new TIBSCBSTot.GIBS.GIBSMun(); - } - - /** - * Create an instance of {@link TProtNFe.InfProt } - * - */ - public TProtNFe.InfProt createTProtNFeInfProt() { - return new TProtNFe.InfProt(); - } - - /** - * Create an instance of {@link TCIBS.GIBSUF } - * - */ - public TCIBS.GIBSUF createTCIBSGIBSUF() { - return new TCIBS.GIBSUF(); - } - - /** - * Create an instance of {@link TCIBS.GIBSMun } - * - */ - public TCIBS.GIBSMun createTCIBSGIBSMun() { - return new TCIBS.GIBSMun(); - } - - /** - * Create an instance of {@link TCIBS.GCBS } - * - */ - public TCIBS.GCBS createTCIBSGCBS() { - return new TCIBS.GCBS(); - } - - /** - * Create an instance of {@link TIpi.IPITrib } - * - */ - public TIpi.IPITrib createTIpiIPITrib() { - return new TIpi.IPITrib(); - } - - /** - * Create an instance of {@link TIpi.IPINT } - * - */ - public TIpi.IPINT createTIpiIPINT() { - return new TIpi.IPINT(); - } - /** * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} * @@ -1368,12 +1400,12 @@ public JAXBElement createSignature(SignatureType value) { } /** - * Create an instance of {@link JAXBElement }{@code <}{@link TEnviNFe }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link TNFe }{@code >}} * */ - @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "enviNFe") - public JAXBElement createEnviNFe(TEnviNFe value) { - return new JAXBElement(_EnviNFe_QNAME, TEnviNFe.class, null, value); + @XmlElementDecl(namespace = "http://www.portalfiscal.inf.br/nfe", name = "NFe") + public JAXBElement createNFe(TNFe value) { + return new JAXBElement(_NFe_QNAME, TNFe.class, null, value); } /** diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TCIBS.java b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TCIBS.java index 2d539342..59cfa67e 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TCIBS.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TCIBS.java @@ -20,36 +20,39 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="vBC" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="gIBSUF"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> - * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> - * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </element> - * <element name="gIBSMun"> - * <complexType> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <sequence> - * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> - * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> - * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> - * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> - * </restriction> - * </complexContent> - * </complexType> - * </element> + * <sequence> + * <element name="gIBSUF"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="pIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> + * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> + * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> + * <element name="vIBSUF" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gIBSMun"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="pIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="gDif" type="{http://www.portalfiscal.inf.br/nfe}TDif" minOccurs="0"/> + * <element name="gDevTrib" type="{http://www.portalfiscal.inf.br/nfe}TDevTrib" minOccurs="0"/> + * <element name="gRed" type="{http://www.portalfiscal.inf.br/nfe}TRed" minOccurs="0"/> + * <element name="vIBSMun" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="vIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> * <element name="gCBS"> * <complexType> * <complexContent> @@ -82,6 +85,7 @@ "vbc", "gibsuf", "gibsMun", + "vibs", "gcbs", "gTribRegular", "gibsCredPres", @@ -96,6 +100,8 @@ public class TCIBS { protected TCIBS.GIBSUF gibsuf; @XmlElement(name = "gIBSMun", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected TCIBS.GIBSMun gibsMun; + @XmlElement(name = "vIBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibs; @XmlElement(name = "gCBS", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected TCIBS.GCBS gcbs; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") @@ -179,6 +185,30 @@ public void setGIBSMun(TCIBS.GIBSMun value) { this.gibsMun = value; } + /** + * Obtém o valor da propriedade vibs. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBS() { + return vibs; + } + + /** + * Define o valor da propriedade vibs. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBS(String value) { + this.vibs = value; + } + /** * Obtém o valor da propriedade gcbs. * diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TMonofasia.java b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TMonofasia.java index bc4c31aa..cb5a5ca2 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TMonofasia.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TMonofasia.java @@ -19,33 +19,65 @@ * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> - * <sequence minOccurs="0"> - * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> - * <sequence minOccurs="0"> - * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> - * <sequence minOccurs="0"> - * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> - * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> - * <sequence minOccurs="0"> - * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> - * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> - * </sequence> + * <element name="gMonoPadrao" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> + * <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gMonoReten" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> + * <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gMonoRet" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/> + * <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> + * <element name="gMonoDif" minOccurs="0"> + * <complexType> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/> + * <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + * </element> * <element name="vTotIBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> * <element name="vTotCBSMonoItem" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/> * </sequence> @@ -58,527 +90,122 @@ */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TMonofasia", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = { - "qbcMono", - "adRemIBS", - "adRemCBS", - "vibsMono", - "vcbsMono", - "qbcMonoReten", - "adRemIBSReten", - "vibsMonoReten", - "adRemCBSReten", - "vcbsMonoReten", - "qbcMonoRet", - "adRemIBSRet", - "vibsMonoRet", - "adRemCBSRet", - "vcbsMonoRet", - "pDifIBS", - "vibsMonoDif", - "pDifCBS", - "vcbsMonoDif", + "gMonoPadrao", + "gMonoReten", + "gMonoRet", + "gMonoDif", "vTotIBSMonoItem", "vTotCBSMonoItem" }) public class TMonofasia { - @XmlElement(name = "qBCMono", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String qbcMono; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemIBS; + protected TMonofasia.GMonoPadrao gMonoPadrao; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemCBS; - @XmlElement(name = "vIBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vibsMono; - @XmlElement(name = "vCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vcbsMono; - @XmlElement(name = "qBCMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String qbcMonoReten; + protected TMonofasia.GMonoReten gMonoReten; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemIBSReten; - @XmlElement(name = "vIBSMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vibsMonoReten; + protected TMonofasia.GMonoRet gMonoRet; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemCBSReten; - @XmlElement(name = "vCBSMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vcbsMonoReten; - @XmlElement(name = "qBCMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String qbcMonoRet; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemIBSRet; - @XmlElement(name = "vIBSMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vibsMonoRet; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String adRemCBSRet; - @XmlElement(name = "vCBSMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vcbsMonoRet; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String pDifIBS; - @XmlElement(name = "vIBSMonoDif", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vibsMonoDif; - @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe") - protected String pDifCBS; - @XmlElement(name = "vCBSMonoDif", namespace = "http://www.portalfiscal.inf.br/nfe") - protected String vcbsMonoDif; + protected TMonofasia.GMonoDif gMonoDif; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vTotIBSMonoItem; @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) protected String vTotCBSMonoItem; /** - * Obtém o valor da propriedade qbcMono. - * - * @return - * possible object is - * {@link String } - * - */ - public String getQBCMono() { - return qbcMono; - } - - /** - * Define o valor da propriedade qbcMono. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setQBCMono(String value) { - this.qbcMono = value; - } - - /** - * Obtém o valor da propriedade adRemIBS. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAdRemIBS() { - return adRemIBS; - } - - /** - * Define o valor da propriedade adRemIBS. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAdRemIBS(String value) { - this.adRemIBS = value; - } - - /** - * Obtém o valor da propriedade adRemCBS. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAdRemCBS() { - return adRemCBS; - } - - /** - * Define o valor da propriedade adRemCBS. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAdRemCBS(String value) { - this.adRemCBS = value; - } - - /** - * Obtém o valor da propriedade vibsMono. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVIBSMono() { - return vibsMono; - } - - /** - * Define o valor da propriedade vibsMono. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVIBSMono(String value) { - this.vibsMono = value; - } - - /** - * Obtém o valor da propriedade vcbsMono. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCBSMono() { - return vcbsMono; - } - - /** - * Define o valor da propriedade vcbsMono. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCBSMono(String value) { - this.vcbsMono = value; - } - - /** - * Obtém o valor da propriedade qbcMonoReten. - * - * @return - * possible object is - * {@link String } - * - */ - public String getQBCMonoReten() { - return qbcMonoReten; - } - - /** - * Define o valor da propriedade qbcMonoReten. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setQBCMonoReten(String value) { - this.qbcMonoReten = value; - } - - /** - * Obtém o valor da propriedade adRemIBSReten. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAdRemIBSReten() { - return adRemIBSReten; - } - - /** - * Define o valor da propriedade adRemIBSReten. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAdRemIBSReten(String value) { - this.adRemIBSReten = value; - } - - /** - * Obtém o valor da propriedade vibsMonoReten. + * Obtém o valor da propriedade gMonoPadrao. * * @return * possible object is - * {@link String } + * {@link TMonofasia.GMonoPadrao } * */ - public String getVIBSMonoReten() { - return vibsMonoReten; + public TMonofasia.GMonoPadrao getGMonoPadrao() { + return gMonoPadrao; } /** - * Define o valor da propriedade vibsMonoReten. + * Define o valor da propriedade gMonoPadrao. * * @param value * allowed object is - * {@link String } + * {@link TMonofasia.GMonoPadrao } * */ - public void setVIBSMonoReten(String value) { - this.vibsMonoReten = value; + public void setGMonoPadrao(TMonofasia.GMonoPadrao value) { + this.gMonoPadrao = value; } /** - * Obtém o valor da propriedade adRemCBSReten. + * Obtém o valor da propriedade gMonoReten. * * @return * possible object is - * {@link String } + * {@link TMonofasia.GMonoReten } * */ - public String getAdRemCBSReten() { - return adRemCBSReten; + public TMonofasia.GMonoReten getGMonoReten() { + return gMonoReten; } /** - * Define o valor da propriedade adRemCBSReten. + * Define o valor da propriedade gMonoReten. * * @param value * allowed object is - * {@link String } + * {@link TMonofasia.GMonoReten } * */ - public void setAdRemCBSReten(String value) { - this.adRemCBSReten = value; + public void setGMonoReten(TMonofasia.GMonoReten value) { + this.gMonoReten = value; } /** - * Obtém o valor da propriedade vcbsMonoReten. + * Obtém o valor da propriedade gMonoRet. * * @return * possible object is - * {@link String } + * {@link TMonofasia.GMonoRet } * */ - public String getVCBSMonoReten() { - return vcbsMonoReten; + public TMonofasia.GMonoRet getGMonoRet() { + return gMonoRet; } /** - * Define o valor da propriedade vcbsMonoReten. + * Define o valor da propriedade gMonoRet. * * @param value * allowed object is - * {@link String } + * {@link TMonofasia.GMonoRet } * */ - public void setVCBSMonoReten(String value) { - this.vcbsMonoReten = value; + public void setGMonoRet(TMonofasia.GMonoRet value) { + this.gMonoRet = value; } /** - * Obtém o valor da propriedade qbcMonoRet. + * Obtém o valor da propriedade gMonoDif. * * @return * possible object is - * {@link String } + * {@link TMonofasia.GMonoDif } * */ - public String getQBCMonoRet() { - return qbcMonoRet; + public TMonofasia.GMonoDif getGMonoDif() { + return gMonoDif; } /** - * Define o valor da propriedade qbcMonoRet. + * Define o valor da propriedade gMonoDif. * * @param value * allowed object is - * {@link String } + * {@link TMonofasia.GMonoDif } * */ - public void setQBCMonoRet(String value) { - this.qbcMonoRet = value; - } - - /** - * Obtém o valor da propriedade adRemIBSRet. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAdRemIBSRet() { - return adRemIBSRet; - } - - /** - * Define o valor da propriedade adRemIBSRet. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAdRemIBSRet(String value) { - this.adRemIBSRet = value; - } - - /** - * Obtém o valor da propriedade vibsMonoRet. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVIBSMonoRet() { - return vibsMonoRet; - } - - /** - * Define o valor da propriedade vibsMonoRet. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVIBSMonoRet(String value) { - this.vibsMonoRet = value; - } - - /** - * Obtém o valor da propriedade adRemCBSRet. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAdRemCBSRet() { - return adRemCBSRet; - } - - /** - * Define o valor da propriedade adRemCBSRet. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAdRemCBSRet(String value) { - this.adRemCBSRet = value; - } - - /** - * Obtém o valor da propriedade vcbsMonoRet. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCBSMonoRet() { - return vcbsMonoRet; - } - - /** - * Define o valor da propriedade vcbsMonoRet. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCBSMonoRet(String value) { - this.vcbsMonoRet = value; - } - - /** - * Obtém o valor da propriedade pDifIBS. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPDifIBS() { - return pDifIBS; - } - - /** - * Define o valor da propriedade pDifIBS. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPDifIBS(String value) { - this.pDifIBS = value; - } - - /** - * Obtém o valor da propriedade vibsMonoDif. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVIBSMonoDif() { - return vibsMonoDif; - } - - /** - * Define o valor da propriedade vibsMonoDif. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVIBSMonoDif(String value) { - this.vibsMonoDif = value; - } - - /** - * Obtém o valor da propriedade pDifCBS. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPDifCBS() { - return pDifCBS; - } - - /** - * Define o valor da propriedade pDifCBS. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPDifCBS(String value) { - this.pDifCBS = value; - } - - /** - * Obtém o valor da propriedade vcbsMonoDif. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVCBSMonoDif() { - return vcbsMonoDif; - } - - /** - * Define o valor da propriedade vcbsMonoDif. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVCBSMonoDif(String value) { - this.vcbsMonoDif = value; + public void setGMonoDif(TMonofasia.GMonoDif value) { + this.gMonoDif = value; } /** @@ -629,4 +256,644 @@ public void setVTotCBSMonoItem(String value) { this.vTotCBSMonoItem = value; } + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="pDifIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vIBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *         <element name="pDifCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *         <element name="vCBSMonoDif" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "pDifIBS", + "vibsMonoDif", + "pDifCBS", + "vcbsMonoDif" + }) + public static class GMonoDif { + + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String pDifIBS; + @XmlElement(name = "vIBSMonoDif", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsMonoDif; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String pDifCBS; + @XmlElement(name = "vCBSMonoDif", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsMonoDif; + + /** + * Obtém o valor da propriedade pDifIBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPDifIBS() { + return pDifIBS; + } + + /** + * Define o valor da propriedade pDifIBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPDifIBS(String value) { + this.pDifIBS = value; + } + + /** + * Obtém o valor da propriedade vibsMonoDif. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSMonoDif() { + return vibsMonoDif; + } + + /** + * Define o valor da propriedade vibsMonoDif. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSMonoDif(String value) { + this.vibsMonoDif = value; + } + + /** + * Obtém o valor da propriedade pDifCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPDifCBS() { + return pDifCBS; + } + + /** + * Define o valor da propriedade pDifCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPDifCBS(String value) { + this.pDifCBS = value; + } + + /** + * Obtém o valor da propriedade vcbsMonoDif. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSMonoDif() { + return vcbsMonoDif; + } + + /** + * Define o valor da propriedade vcbsMonoDif. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSMonoDif(String value) { + this.vcbsMonoDif = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="qBCMono" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/>
+     *         <element name="adRemIBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="adRemCBS" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vIBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *         <element name="vCBSMono" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qbcMono", + "adRemIBS", + "adRemCBS", + "vibsMono", + "vcbsMono" + }) + public static class GMonoPadrao { + + @XmlElement(name = "qBCMono", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qbcMono; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemIBS; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemCBS; + @XmlElement(name = "vIBSMono", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsMono; + @XmlElement(name = "vCBSMono", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsMono; + + /** + * Obtém o valor da propriedade qbcMono. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQBCMono() { + return qbcMono; + } + + /** + * Define o valor da propriedade qbcMono. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQBCMono(String value) { + this.qbcMono = value; + } + + /** + * Obtém o valor da propriedade adRemIBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemIBS() { + return adRemIBS; + } + + /** + * Define o valor da propriedade adRemIBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemIBS(String value) { + this.adRemIBS = value; + } + + /** + * Obtém o valor da propriedade adRemCBS. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemCBS() { + return adRemCBS; + } + + /** + * Define o valor da propriedade adRemCBS. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemCBS(String value) { + this.adRemCBS = value; + } + + /** + * Obtém o valor da propriedade vibsMono. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSMono() { + return vibsMono; + } + + /** + * Define o valor da propriedade vibsMono. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSMono(String value) { + this.vibsMono = value; + } + + /** + * Obtém o valor da propriedade vcbsMono. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSMono() { + return vcbsMono; + } + + /** + * Define o valor da propriedade vcbsMono. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSMono(String value) { + this.vcbsMono = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="qBCMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/>
+     *         <element name="adRemIBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vIBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *         <element name="adRemCBSRet" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vCBSMonoRet" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qbcMonoRet", + "adRemIBSRet", + "vibsMonoRet", + "adRemCBSRet", + "vcbsMonoRet" + }) + public static class GMonoRet { + + @XmlElement(name = "qBCMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qbcMonoRet; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemIBSRet; + @XmlElement(name = "vIBSMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsMonoRet; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemCBSRet; + @XmlElement(name = "vCBSMonoRet", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsMonoRet; + + /** + * Obtém o valor da propriedade qbcMonoRet. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQBCMonoRet() { + return qbcMonoRet; + } + + /** + * Define o valor da propriedade qbcMonoRet. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQBCMonoRet(String value) { + this.qbcMonoRet = value; + } + + /** + * Obtém o valor da propriedade adRemIBSRet. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemIBSRet() { + return adRemIBSRet; + } + + /** + * Define o valor da propriedade adRemIBSRet. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemIBSRet(String value) { + this.adRemIBSRet = value; + } + + /** + * Obtém o valor da propriedade vibsMonoRet. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSMonoRet() { + return vibsMonoRet; + } + + /** + * Define o valor da propriedade vibsMonoRet. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSMonoRet(String value) { + this.vibsMonoRet = value; + } + + /** + * Obtém o valor da propriedade adRemCBSRet. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemCBSRet() { + return adRemCBSRet; + } + + /** + * Define o valor da propriedade adRemCBSRet. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemCBSRet(String value) { + this.adRemCBSRet = value; + } + + /** + * Obtém o valor da propriedade vcbsMonoRet. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSMonoRet() { + return vcbsMonoRet; + } + + /** + * Define o valor da propriedade vcbsMonoRet. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSMonoRet(String value) { + this.vcbsMonoRet = value; + } + + } + + + /** + *

Classe Java de anonymous complex type. + * + *

O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="qBCMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_1104Op"/>
+     *         <element name="adRemIBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vIBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *         <element name="adRemCBSReten" type="{http://www.portalfiscal.inf.br/nfe}TDec_0302_04"/>
+     *         <element name="vCBSMonoReten" type="{http://www.portalfiscal.inf.br/nfe}TDec1302"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "qbcMonoReten", + "adRemIBSReten", + "vibsMonoReten", + "adRemCBSReten", + "vcbsMonoReten" + }) + public static class GMonoReten { + + @XmlElement(name = "qBCMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String qbcMonoReten; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemIBSReten; + @XmlElement(name = "vIBSMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vibsMonoReten; + @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String adRemCBSReten; + @XmlElement(name = "vCBSMonoReten", namespace = "http://www.portalfiscal.inf.br/nfe", required = true) + protected String vcbsMonoReten; + + /** + * Obtém o valor da propriedade qbcMonoReten. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQBCMonoReten() { + return qbcMonoReten; + } + + /** + * Define o valor da propriedade qbcMonoReten. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQBCMonoReten(String value) { + this.qbcMonoReten = value; + } + + /** + * Obtém o valor da propriedade adRemIBSReten. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemIBSReten() { + return adRemIBSReten; + } + + /** + * Define o valor da propriedade adRemIBSReten. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemIBSReten(String value) { + this.adRemIBSReten = value; + } + + /** + * Obtém o valor da propriedade vibsMonoReten. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVIBSMonoReten() { + return vibsMonoReten; + } + + /** + * Define o valor da propriedade vibsMonoReten. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVIBSMonoReten(String value) { + this.vibsMonoReten = value; + } + + /** + * Obtém o valor da propriedade adRemCBSReten. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdRemCBSReten() { + return adRemCBSReten; + } + + /** + * Define o valor da propriedade adRemCBSReten. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdRemCBSReten(String value) { + this.adRemCBSReten = value; + } + + /** + * Obtém o valor da propriedade vcbsMonoReten. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVCBSMonoReten() { + return vcbsMonoReten; + } + + /** + * Define o valor da propriedade vcbsMonoReten. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVCBSMonoReten(String value) { + this.vcbsMonoReten = value; + } + + } + } diff --git a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TNFe.java b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TNFe.java index d2a5f5cb..4930135a 100644 --- a/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TNFe.java +++ b/src/main/java/br/com/swconsultoria/nfe/schema_rt/nfe/TNFe.java @@ -3049,7 +3049,7 @@ * </element> * <element name="ISTot" type="{http://www.portalfiscal.inf.br/nfe}TISTot" minOccurs="0"/> * <element name="IBSCBSTot" type="{http://www.portalfiscal.inf.br/nfe}TIBSCBSMonoTot" minOccurs="0"/> - * <element name="vNFTot" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> + * <element name="vNFTot" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302Opc" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -6907,7 +6907,7 @@ public void setSignature(SignatureType value) { * </element> * <element name="ISTot" type="{http://www.portalfiscal.inf.br/nfe}TISTot" minOccurs="0"/> * <element name="IBSCBSTot" type="{http://www.portalfiscal.inf.br/nfe}TIBSCBSMonoTot" minOccurs="0"/> - * <element name="vNFTot" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> + * <element name="vNFTot" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302Opc" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -14764,18 +14764,18 @@ public void setNItem(String value) { public static class Imposto { @XmlElementRefs({ - @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "vTotTrib", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "II", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ISSQN", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "ICMS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), @XmlElementRef(name = "IS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "IPI", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PISST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), - @XmlElementRef(name = "COFINS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) + @XmlElementRef(name = "IBSCBS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ICMSUFDest", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "COFINSST", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false), + @XmlElementRef(name = "PIS", namespace = "http://www.portalfiscal.inf.br/nfe", type = JAXBElement.class, required = false) }) protected List> content; @@ -14785,8 +14785,8 @@ public static class Imposto { *

* Você está obtendo esta propriedade "catch-all" pelo seguinte motivo: * O nome do campo "IPI" é usado por duas partes diferentes de um esquema. Consulte: - * linha 4337 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd - * linha 4305 de file:/D:/Workspace/Java_NFe/schemas/leiauteNFe_v4.00.xsd + * linha 4337 de file:/D:/Workspace/Java_NFe/schemas_rt/leiauteNFe_v4.00.xsd + * linha 4305 de file:/D:/Workspace/Java_NFe/schemas_rt/leiauteNFe_v4.00.xsd *

* Para eliminar esta propriedade, aplique uma personalização de propriedade a uma * das seguintes declarações, a fim de alterar seus nomes: @@ -14807,18 +14807,18 @@ public static class Imposto { * *

* Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} - * {@link JAXBElement }{@code <}{@link TTribNFe }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.II }{@code >} - * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} - * {@link JAXBElement }{@code <}{@link TIS }{@code >} - * {@link JAXBElement }{@code <}{@link TIpi }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ISSQN }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PISST }{@code >} + * {@link JAXBElement }{@code <}{@link TIpi }{@code >} * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINS }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMS }{@code >} + * {@link JAXBElement }{@code <}{@link TIS }{@code >} + * {@link JAXBElement }{@code <}{@link TTribNFe }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.ICMSUFDest }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.COFINSST }{@code >} + * {@link JAXBElement }{@code <}{@link TNFe.InfNFe.Det.Imposto.PIS }{@code >} * * */ @@ -38038,7 +38038,7 @@ public void setIdTermPag(String value) { * </element> * <element name="ISTot" type="{http://www.portalfiscal.inf.br/nfe}TISTot" minOccurs="0"/> * <element name="IBSCBSTot" type="{http://www.portalfiscal.inf.br/nfe}TIBSCBSMonoTot" minOccurs="0"/> - * <element name="vNFTot" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> + * <element name="vNFTot" type="{http://www.portalfiscal.inf.br/nfe}TDec_1302Opc" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> diff --git a/src/main/resources/WebServicesNfe.ini b/src/main/resources/WebServicesNfe.ini index 8f718318..49518e7c 100644 --- a/src/main/resources/WebServicesNfe.ini +++ b/src/main/resources/WebServicesNfe.ini @@ -18,7 +18,7 @@ Usar=NFe_SVRS_P Usar=NFe_SVRS_H [NFe_AM_P] -NfeConsultaCadastro_4.00=https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2 +NfeConsultaCadastro_4.00=https://nfe.sefaz.am.gov.br/services2/services/CadConsultaCadastro4 NfeConsultaProtocolo_4.00=https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4 NfeStatusServico_4.00=https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4 NfeInutilizacao_4.00=https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4 @@ -28,7 +28,7 @@ RecepcaoEvento_4.00=https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvent [NFe_AM_H] -NfeConsultaCadastro_4.00=https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2 +NfeConsultaCadastro_4.00=https://homnfe.sefaz.am.gov.br/services2/services/CadConsultaCadastro4 NfeConsultaProtocolo_4.00=https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4 NfeStatusServico_4.00=https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4 NfeInutilizacao_4.00=https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4 @@ -464,7 +464,7 @@ NfeStatusServico_4.00=https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4 NfeConsultaCadastro_4.00=https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl NFeAutorizacao_4.00=https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl NFeRetAutorizacao_4.00=https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl -URL-QRCode=http://nfe.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe +URL-QRCode=https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe URL-ConsultaNFCe=http://www.sefaz.go.gov.br/nfce/consulta [NFCe_GO_H] @@ -475,7 +475,7 @@ NfeStatusServico_4.00=https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServ NfeConsultaCadastro_4.00=https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl NFeAutorizacao_4.00=https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl NFeRetAutorizacao_4.00=https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl -URL-QRCode=http://homolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe +URL-QRCode=https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe URL-ConsultaNFCe=http://www.sefaz.go.gov.br/nfce/consulta [NFCe_MA_P] @@ -625,12 +625,12 @@ URL-ConsultaNFCe=www.fazenda.rj.gov.br/nfce/consulta [NFCe_RN_P] Usar=NFCe_SVRS_P URL-QRCode=http://nfce.set.rn.gov.br/consultarNFCe.aspx -URL-ConsultaNFCe=www.set.rn.gov.br/nfce/consulta +URL-ConsultaNFCe=https://nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx [NFCe_RN_H] Usar=NFCe_SVRS_H URL-QRCode=http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx -URL-ConsultaNFCe=www.set.rn.gov.br/nfce/consulta +URL-ConsultaNFCe=https://nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx [NFCe_RO_P] Usar=NFCe_SVRS_P diff --git a/src/main/resources/img/nfce.png b/src/main/resources/img/nfce.png new file mode 100644 index 00000000..47f47066 Binary files /dev/null and b/src/main/resources/img/nfce.png differ diff --git a/src/main/resources/img/nfe.png b/src/main/resources/img/nfe.png new file mode 100644 index 00000000..a9a2607a Binary files /dev/null and b/src/main/resources/img/nfe.png differ diff --git a/src/main/resources/jasper/cce/cce.jasper b/src/main/resources/jasper/cce/cce.jasper new file mode 100644 index 00000000..1b7df44e Binary files /dev/null and b/src/main/resources/jasper/cce/cce.jasper differ diff --git a/src/main/resources/jasper/cce/cce.jrxml b/src/main/resources/jasper/cce/cce.jrxml new file mode 100644 index 00000000..e7a452a6 --- /dev/null +++ b/src/main/resources/jasper/cce/cce.jrxml @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="7"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + diff --git a/src/main/resources/jasper/nfce/danfce.jasper b/src/main/resources/jasper/nfce/danfce.jasper new file mode 100644 index 00000000..4cd33914 Binary files /dev/null and b/src/main/resources/jasper/nfce/danfce.jasper differ diff --git a/src/main/resources/jasper/nfce/danfce.jrxml b/src/main/resources/jasper/nfce/danfce.jrxml new file mode 100644 index 00000000..9ddb17b6 --- /dev/null +++ b/src/main/resources/jasper/nfce/danfce.jrxml @@ -0,0 +1,894 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="33" splitType="Immediate"> + <textField pattern="" isBlankWhenNull="true"> + <reportElement key="textField-7" mode="Transparent" x="37" y="0" width="163" height="11" uuid="b4c16ac9-2760-43f0-9ed8-9d1e1dc392c6"> + <property name="local_mesure_unitwidth" value="pixel"/> + <property name="com.jaspersoft.studio.unit.width" value="px"/> + </reportElement> + <textElement textAlignment="Center" verticalAlignment="Middle" markup="html"> + <font fontName="Arial" size="8" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA[$F{emitenteRazaoSocial}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement key="textField-18" mode="Transparent" x="37" y="10" width="163" height="9" uuid="a6ad7021-b399-4eb1-9896-b1e7d5670a1b"/> + <textElement textAlignment="Center" verticalAlignment="Middle"> + <font fontName="Arial" size="7" isBold="false"/> + </textElement> + <textFieldExpression><![CDATA["CNPJ:"+$F{emitenteCnpj}.substring(0, 2) + "." + $F{emitenteCnpj}.substring(2, 5) + "." + $F{emitenteCnpj}.substring(5, 8) + "/" + $F{emitenteCnpj}.substring(8, 12) + "-" + $F{emitenteCnpj}.substring(12,14) + " - IE: " +$F{emitenteInscricaoEstadual}]]></textFieldExpression> + </textField> + <textField pattern="" isBlankWhenNull="true"> + <reportElement key="textField-9" mode="Transparent" x="37" y="18" width="164" height="8" uuid="e01c231d-29be-4f1f-a2b6-ca57210cae86"> + <property name="local_mesure_unity" value="pixel"/> + <property name="com.jaspersoft.studio.unit.y" value="px"/> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + </reportElement> + <textElement textAlignment="Center" verticalAlignment="Middle" markup="html"> + <font fontName="Arial" size="6" isBold="false"/> + </textElement> + <textFieldExpression><![CDATA[$F{emitenteEndereco}+", "+$F{emitenteEnderecoNro} ++ " - " + $F{emitenteBairro} + ", " + +$F{emitenteMunicipio} + " / " + $F{emitenteUf} + ".............................................."]]></textFieldExpression> + </textField> + <line> + <reportElement x="-1" y="32" width="200" height="1" uuid="426f7310-5d03-4935-9bbc-86b91efc0080"/> + <graphicElement> + <pen lineStyle="Dotted"/> + </graphicElement> + </line> + <textField textAdjust="StretchHeight" pattern="" isBlankWhenNull="true"> + <reportElement key="textField-9" mode="Transparent" x="37" y="25" width="164" height="8" uuid="af21c7b1-edaa-4c84-925d-1031f9fb007b"> + <property name="local_mesure_unity" value="pixel"/> + <property name="com.jaspersoft.studio.unit.y" value="px"/> + <property name="local_mesure_unitheight" value="pixel"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + </reportElement> + <textElement textAlignment="Center" verticalAlignment="Middle" markup="html"> + <font fontName="Arial" size="6" isBold="false"/> + </textElement> + <textFieldExpression><![CDATA["CEP: " + $F{emitenteCep} + ($F{emitenteTelefone} !=null ? " - Tel: " + $F{emitenteTelefone} : "")]]></textFieldExpression> + </textField> + <image onErrorType="Blank"> + <reportElement stretchType="ElementGroupHeight" x="1" y="-1" width="36" height="32" uuid="6c210994-e210-4692-8b18-875027a3d656"> + <property name="com.jaspersoft.studio.unit.y" value="px"/> + <property name="com.jaspersoft.studio.unit.height" value="px"/> + </reportElement> + <imageExpression><![CDATA[$P{Logo}]]></imageExpression> + </image> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/jasper/nfe/danfe.jasper b/src/main/resources/jasper/nfe/danfe.jasper new file mode 100644 index 00000000..0e556d56 Binary files /dev/null and b/src/main/resources/jasper/nfe/danfe.jasper differ diff --git a/src/main/resources/jasper/nfe/danfe.jrxml b/src/main/resources/jasper/nfe/danfe.jrxml new file mode 100644 index 00000000..680cb8fc --- /dev/null +++ b/src/main/resources/jasper/nfe/danfe.jrxml @@ -0,0 +1,1937 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <band height="35"> + <frame> + <reportElement x="0" y="0" width="565" height="35" uuid="e43d99df-0597-40ed-ba4b-f596b72b62eb"/> + <rectangle radius="3"> + <reportElement style="borda" mode="Transparent" x="0" y="12" width="115" height="20" uuid="76919e34-f80f-4087-b9c5-fd9aea6a7286"/> + </rectangle> + <rectangle radius="3"> + <reportElement style="borda" mode="Transparent" x="115" y="12" width="361" height="20" uuid="43b852fa-5bc6-464a-8779-7486ec03cb0d"/> + </rectangle> + <rectangle radius="3"> + <reportElement style="borda" mode="Transparent" x="478" y="0" width="87" height="32" uuid="2bb67b0f-9f90-4022-b75b-9a35a5808602"/> + </rectangle> + <rectangle radius="3"> + <reportElement mode="Transparent" x="0" y="0" width="476" height="12" uuid="4609f788-e688-446d-99dc-f2ba50339e42"/> + <graphicElement> + <pen lineWidth="0.25"/> + </graphicElement> + </rectangle> + <line> + <reportElement x="1" y="33" width="564" height="1" uuid="e7f7f06f-1d76-4fc8-8c93-05a95a65c492"/> + <graphicElement> + <pen lineWidth="0.5" lineStyle="Dashed"/> + </graphicElement> + </line> + <staticText> + <reportElement x="479" y="1" width="83" height="6" uuid="18710516-0333-4978-aec2-8e8be86a023c"/> + <textElement textAlignment="Center"> + <font fontName="Verdana" size="4"/> + </textElement> + <text><![CDATA[NF-e]]></text> + </staticText> + <staticText> + <reportElement style="campoPequeno" x="2" y="13" width="111" height="6" uuid="a3fbe3f9-a782-4faa-83ac-ce01d8b85ac7"/> + <textElement> + <font fontName="Verdana" size="4"/> + </textElement> + <text><![CDATA[DATA DE RECEBIMENTO]]></text> + </staticText> + <staticText> + <reportElement style="campoPequeno" x="117" y="13" width="359" height="6" uuid="0b926995-ea6d-4183-8acc-d0c3e83d697a"/> + <textElement> + <font fontName="Verdana" size="4"/> + </textElement> + <text><![CDATA[IDENTIFICAÇÃO E ASSINATURA DO RECEBEDOR]]></text> + </staticText> + <textField> + <reportElement style="dados" x="479" y="7" width="84" height="11" uuid="86db3347-b31e-4a35-8a95-df4b34702a13"/> + <textElement textAlignment="Center"> + <font fontName="Verdana" size="7" isBold="true"/> + </textElement> + <textFieldExpression><![CDATA["Nº " + $F{NumeroNF}]]></textFieldExpression> + </textField> + <textField> + <reportElement style="dados" x="479" y="18" width="84" height="14" uuid="f6acc4b6-d665-4e42-9d82-a070f3638ecd"/> + <textElement textAlignment="Center"> + <font fontName="Verdana" size="7"/> + </textElement> + <textFieldExpression><![CDATA["SÉRIE: " + $F{Serie}]]></textFieldExpression> + </textField> + <textField> + <reportElement style="campoPequeno" x="2" y="1" width="474" height="11" uuid="11f74971-d2bd-4af8-804b-596c477123a3"/> + <textElement> + <font fontName="Verdana" size="4"/> + </textElement> + <textFieldExpression><![CDATA["RECEBEMOS DE " + $F{Emi_Nome}.toUpperCase() + " OS PRODUTOS CONSTANTES NA NOTA FISCAL INDICADA AO LADO."]]></textFieldExpression> + </textField> + </frame> + </band> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =203]]> + + + + + + + + + + = 235]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/jasper/nfe/danfe_fatura.jasper b/src/main/resources/jasper/nfe/danfe_fatura.jasper new file mode 100644 index 00000000..0d1d50ce Binary files /dev/null and b/src/main/resources/jasper/nfe/danfe_fatura.jasper differ diff --git a/src/main/resources/jasper/nfe/danfe_fatura.jrxml b/src/main/resources/jasper/nfe/danfe_fatura.jrxml new file mode 100644 index 00000000..055e6cc7 --- /dev/null +++ b/src/main/resources/jasper/nfe/danfe_fatura.jrxml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoCCe.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoCCe.java new file mode 100644 index 00000000..aa49abc0 --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoCCe.java @@ -0,0 +1,23 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoCCe { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/cce.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoCCe(xml); + + //Faz a impressão em pdf File + ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "d:/teste/teste-cce.pdf"); + System.out.println("Impressão Pdf Arquivo OK"); + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoHtml.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoHtml.java new file mode 100644 index 00000000..b3495ed8 --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoHtml.java @@ -0,0 +1,23 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoHtml { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/nfe.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); + + //Faz a impressão em pdf File passando o caminho do Arquivo + ImpressaoNfeUtil.impressaoHtml(impressao, "d:/teste/teste-nfe.html"); + + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoJasperPreview.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoJasperPreview.java new file mode 100644 index 00000000..f85a02e8 --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoJasperPreview.java @@ -0,0 +1,26 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; +import net.sf.jasperreports.view.JasperViewer; + +public class TesteImpressaoJasperPreview { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("D:\\teste\\nfe.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); + + //Faz a impressão e retorna um Jasper Preview + JasperViewer jasperViewer = ImpressaoNfeUtil.impressaoPreview(impressao); + + //PAra mostrar o Preview + jasperViewer.setVisible(true); + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFCe.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFCe.java new file mode 100644 index 00000000..c523135d --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFCe.java @@ -0,0 +1,26 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoNFCe { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/nfce.xml"); + + //Informe a Url de Consulta do NFCe de seu Estado + String urlConsulta = "www.sefaznet.ac.gov.br/nfce/consulta"; + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFCe(xml, urlConsulta); + + //Faz a impressão em pdf File + ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "d:/teste/teste-nfce.pdf"); + System.out.println("Impressão Pdf Arquivo OK"); + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } + +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFe.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFe.java new file mode 100644 index 00000000..bb8d4500 --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoNFe.java @@ -0,0 +1,23 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoNFe { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/nfe.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); + + //Faz a impressão em pdf File + ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "d:/teste/teste-nfe.pdf"); + System.out.println("Impressão Pdf Arquivo OK"); + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfArquivo.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfArquivo.java new file mode 100644 index 00000000..614e35d7 --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfArquivo.java @@ -0,0 +1,23 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoPdfArquivo { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/nfe.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); + + //Faz a impressão em pdf File passando o caminho do Arquivo + ImpressaoNfeUtil.impressaoPdfArquivo(impressao, "/d/teste/teste-nfe.pdf"); + + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfByte.java b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfByte.java new file mode 100644 index 00000000..ffcdfeab --- /dev/null +++ b/src/test/java/br/com/swconsultoria/nfe/impressao/TesteImpressaoPdfByte.java @@ -0,0 +1,23 @@ +package br.com.swconsultoria.nfe.impressao; + +import br.com.swconsultoria.nfe.util.XmlNfeUtil; + +public class TesteImpressaoPdfByte { + + public static void main(String[] args) { + try { + //Faça a leitura do Arquivo + String xml = XmlNfeUtil.leXml("d:/teste/nfe.xml"); + + //Aqui está pegando o Layout Padrão + ImpressaoDTO impressao = ImpressaoNfeUtil.impressaoPadraoNFe(xml); + + //Faz a impressão em pdf File passando o caminho do Arquivo + byte[] bytes = ImpressaoNfeUtil.impressaoPdfByte(impressao); + + } catch (Exception e) { + //Trate seus erros aqui + e.printStackTrace(); + } + } +} \ No newline at end of file