Package org.brerp.sped.nfe.process
Class ProcObterDFe
java.lang.Object
org.compiere.process.SvrProcess
org.brerp.sped.nfe.process.ProcObterDFe
- All Implemented Interfaces:
ProcessCall
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)
-
Field Summary
Fields inherited from class org.compiere.process.SvrProcess
MSG_InvalidArguments, MSG_SaveErrorRowNotFound, PROCESS_INFO_CTX_KEY, PROCESS_UI_CTX_KEY, processUI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoIt()Perform process.static br.inf.portalfiscal.nfe.schema.retdistdfeint.RetDistDFeIntConsulta o Parceiro de Negócios na SeFazprotected voidprepare()Prepare - e.g., get Parameters.static voidprocessResult(int adOrgId, Properties ctx, br.inf.portalfiscal.nfe.schema.retdistdfeint.RetDistDFeInt.LoteDistDFeInt lote, org.brerp.sped.nfe.process.Counter count) Process resultsstatic StringBuilderreadGZIP(InputStream gzis) Read GZIP Filestatic StringBuilderreadGZIP(GZIPInputStream gzis) Read GZIP FileMethods inherited from class org.compiere.process.SvrProcess
addBufferLog, addLog, addLog, addLog, commit, commitEx, doIt, get_TrxName, getAD_Client_ID, getAD_PInstance_ID, getAD_User_ID, getCtx, getName, getParameter, getProcessInfo, getRecord_ID, getRecord_IDs, getRecord_UU, getRecord_UUs, getTable_ID, isLocked, lockObject, postProcess, rollback, saveProgress, saveStatus, setProcessUI, startProcess, statusUpdate, unlockObject, updateProgress
-
Constructor Details
-
ProcObterDFe
public ProcObterDFe()
-
-
Method Details
-
prepare
protected void prepare()Prepare - e.g., get Parameters.- Specified by:
preparein classSvrProcess- See Also:
-
doIt
Perform process.- Specified by:
doItin classSvrProcess- 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 InfoCNPJ-CPF-IE-UF-- Returns:
- Throws:
ExceptionXmlException
-
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
Read GZIP File- Parameters:
gzis-- Returns:
- Throws:
IOException
-
readGZIP
Read GZIP File- Parameters:
gzis-- Returns:
- Throws:
IOException
-