Class GenCNAB
java.lang.Object
org.brerp.bancosbrasileiros.apps.form.GenCNAB
- Direct Known Subclasses:
WGenCNAB
Common class for CNAB generation
- Version:
- $Id: GenCNAB.java, v1.0 23/09/2014 17:13:16, muriloht Exp $
- Author:
- muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br)
-
Field Summary
Modifier and TypeFieldDescriptionstatic CLogger
LoggerOrg IDint
C_BPartner_IDint
COF_C_BankIntegration_IDFormatboolean
boolean
CNAB Geradoint
LBR_DocFiscal_IDint
Number of selected rowsboolean
int
int
int
Window Nostatic int
static int
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateSelection
(IMiniTable miniTable) Calculate selected rows. - add up selected rowscreateDetail
(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, PO document, MCOFTitulo titulo, Integer C_PaySchedule_ID, String trxName) Create Detail CNAB RecordGenerate CNABcreateHeader
(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, String trxName) Create Header CNAB recordcreateTrailler
(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, String trxName) Create Trailler CNAB recordstatic boolean
Delete folderGet Bank AccountsgetLine
(MCOFCCNABConfigLine line, MCOFTitulo titulo, MCOFCBankIntegration bi, Map<String, Object> summarized) void
loadTableInfo
(IMiniTable miniTable, int sitTitulo, int sitDocumento, String bordernoName, Timestamp dateFrom, Timestamp dateTo, Timestamp dueDateFrom, Timestamp dueDateTo) Query and create TableInfovoid
prepareTable
(IMiniTable miniTable) Prepare Table
-
Field Details
-
MINITABLE_DOCUMENT_ID
public static int MINITABLE_DOCUMENT_ID -
MINITABLE_PAYSCHEDULENO
public static int MINITABLE_PAYSCHEDULENO -
MINITABLE_TOTALAMT
public static int MINITABLE_TOTALAMT -
MINITABLE_TIPO_DOCUMENTO
public static int MINITABLE_TIPO_DOCUMENTO -
m_WindowNo
public int m_WindowNoWindow No -
m_format
Format -
m_noSelected
public int m_noSelectedNumber of selected rows -
m_COF_C_BankIntegration_ID
public int m_COF_C_BankIntegration_IDCOF_C_BankIntegration_ID -
m_AD_Org_ID
Org ID -
m_C_BPartner_ID
public int m_C_BPartner_IDC_BPartner_ID -
m_LBR_DocFiscal_ID
public int m_LBR_DocFiscal_IDLBR_DocFiscal_ID -
m_isCNABGerado
public boolean m_isCNABGeradoCNAB Gerado -
m_OnlyAutNF
public boolean m_OnlyAutNF -
m_User1_ID
public int m_User1_ID -
m_GenerateCNAB
public boolean m_GenerateCNAB -
m_User2_ID
public int m_User2_ID -
log
Logger -
itensAProcessar
-
todosItensAProcessar
-
-
Constructor Details
-
GenCNAB
public GenCNAB()
-
-
Method Details
-
getBankIntegrationData
Get Bank Accounts- Returns:
-
prepareTable
Prepare Table- Parameters:
miniTable
-
-
loadTableInfo
public void loadTableInfo(IMiniTable miniTable, int sitTitulo, int sitDocumento, String bordernoName, Timestamp dateFrom, Timestamp dateTo, Timestamp dueDateFrom, Timestamp dueDateTo) Query and create TableInfo -
calculateSelection
Calculate selected rows. - add up selected rows -
deleteDir
Delete folder- Parameters:
dir
-- Returns:
-
createFile
Generate CNAB- Throws:
Exception
-
createHeader
public String createHeader(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, String trxName) throws bsh.EvalError Create Header CNAB record- Parameters:
cfg
-bi
-- Returns:
- Throws:
bsh.EvalError
-
createDetail
public String createDetail(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, PO document, MCOFTitulo titulo, Integer C_PaySchedule_ID, String trxName) throws Exception, bsh.EvalError Create Detail CNAB Record- Parameters:
cfg
-C_InvoicePaySchedule_ID
-bi
-- Returns:
- Throws:
bsh.EvalError
Exception
-
createTrailler
public String createTrailler(MCOFCBankIntegration bankIntegration, MCOFCCNABConfig cfg, String trxName) throws bsh.EvalError Create Trailler CNAB record- Parameters:
cfg
-bi
-- Returns:
- Throws:
bsh.EvalError
-
getLine
public String getLine(MCOFCCNABConfigLine line, MCOFTitulo titulo, MCOFCBankIntegration bi, Map<String, Object> summarized) throws bsh.EvalError- Throws:
bsh.EvalError
-