Class GenBilling

java.lang.Object
org.brerp.bancosbrasileiros.apps.form.GenBilling
Direct Known Subclasses:
WGenBilling

public class GenBilling extends Object
Common class for billing generation
Version:
$Id: GenBilling.java, v1.0 23/09/2014 17:13:24, muriloht Exp $
Author:
muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br), Gabriel Schneider (gabriel.schneider@devcoffee.com.br, https://www.devcoffee.com.br)
  • Field Details

    • m_WindowNo

      public int m_WindowNo
      Window No
    • m_format

      public DecimalFormat m_format
      Format
    • m_noSelected

      public int m_noSelected
      Number of selected rows
    • m_AD_Org_ID

      public Object m_AD_Org_ID
      Org ID
    • m_DocType_ID

      public Object m_DocType_ID
      TdD
    • m_C_BPartner_ID

      public int m_C_BPartner_ID
      C_BPartner_ID
    • m_LBR_DocFiscal_ID

      public int m_LBR_DocFiscal_ID
      LBR_DocFiscal_ID
    • m_OnlyAutNF

      public boolean m_OnlyAutNF
      Apenas NFs Autorizadas
    • log

      public static CLogger log
      Logger
    • m_User1_ID

      public int m_User1_ID
    • m_User2_ID

      public int m_User2_ID
    • m_CreateCNAB

      public boolean m_CreateCNAB
    • itensAProcessar

      public ArrayList<String> itensAProcessar
  • Constructor Details

    • GenBilling

      public GenBilling()
  • Method Details

    • getBankIntegrationData

      public ArrayList<KeyNamePair> getBankIntegrationData()
      Get Bank Integration Configurations
      Returns:
    • getPrinterData

      public ArrayList<ValueNamePair> getPrinterData()
      Get printer list (Only for SWING client)
      Returns:
    • prepareTable

      public void prepareTable(IMiniTable miniTable)
      Prepare Table
      Parameters:
      miniTable -
    • loadTableInfo

      public void loadTableInfo(KeyNamePair bi, Timestamp dateFrom, Timestamp dateTo, boolean isPrinted, boolean isBillingBlocked, IMiniTable miniTable, Timestamp dueDateFrom, Timestamp dueDateTo)
      Query and create TableInfo
    • calculateSelection

      public String calculateSelection(IMiniTable miniTable)
      Calculate selected rows. - add up selected rows
      Parameters:
      miniTable -
      Returns:
    • exportBilling

      public List<File> exportBilling(int COF_C_BankIntegration_ID, String FilePath) throws Exception
      Export Billing
      Parameters:
      miniTable -
      COF_C_BankIntegration_ID -
      FilePath -
      Returns:
      Throws:
      IOException
      Exception
    • printBilling

      public File printBilling(int COF_C_BankIntegration_ID) throws Exception
      Generate PaySelection
      Throws:
      Exception
    • generateBilling

      public List<org.jrimum.bopepo.Boleto> generateBilling(int COF_C_BankIntegration_ID) throws Exception
      Gera os Boletos - Controle por Transação
      Parameters:
      miniTable -
      COF_C_BankIntegration_ID -
      Returns:
      Throws:
      Exception
    • deleteDir

      public static boolean deleteDir(File dir)
      Delete folder
      Parameters:
      dir -
      Returns:
    • getTituloGeradoBoleto

      public MCOFTitulo getTituloGeradoBoleto(org.jrimum.bopepo.Boleto boleto, int integracaoBancaria, int fatura, int programacaoFatura, String trxName)
    • sendEmail

      public void sendEmail(int COF_BankIntegration_ID, int AD_Org_ID) throws Exception
      Throws:
      Exception