Class ProcObterDFe

java.lang.Object
org.compiere.process.SvrProcess
org.brerp.sped.nfe.process.ProcObterDFe
All Implemented Interfaces:
ProcessCall

public class ProcObterDFe extends SvrProcess
Consulta de Cadastro
Version:
$Id: ProcObterDFe.java, v1.0 2017/11/30 20:00:32 AM, muriloht Exp $
Author:
Murilo H. Torquato (devCoffee, www.devcoffee.com.br)
  • Constructor Details

    • ProcObterDFe

      public ProcObterDFe()
  • Method Details

    • prepare

      protected void prepare()
      Prepare - e.g., get Parameters.
      Specified by:
      prepare in class SvrProcess
    • doIt

      protected String doIt() throws Exception
      Perform process.
      Specified by:
      doIt in class SvrProcess
      Returns:
      Message (variables are parsed)
      Throws:
      Exception - if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
    • doIt

      public static br.inf.portalfiscal.nfe.schema.retdistdfeint.RetDistDFeInt doIt(MOrgInfo oi, String lastNSU) throws Exception
      Consulta o Parceiro de Negócios na SeFaz
      Parameters:
      oi - Organization Info
      CNPJ -
      CPF -
      IE -
      UF -
      Returns:
      Throws:
      Exception
      XmlException
    • processResult

      public static void processResult(int adOrgId, Properties ctx, br.inf.portalfiscal.nfe.schema.retdistdfeint.RetDistDFeInt.LoteDistDFeInt lote, org.brerp.sped.nfe.process.Counter count) throws Exception
      Process results
      Parameters:
      lote -
      countNFe -
      countEvent -
      Throws:
      Exception
    • readGZIP

      public static StringBuilder readGZIP(InputStream gzis) throws IOException
      Read GZIP File
      Parameters:
      gzis -
      Returns:
      Throws:
      IOException
    • readGZIP

      public static StringBuilder readGZIP(GZIPInputStream gzis) throws IOException
      Read GZIP File
      Parameters:
      gzis -
      Returns:
      Throws:
      IOException