Class InvoiceManager

java.lang.Object
ru.bitel.bgbilling.modules.bill.server.bean.AbstractManager
ru.bitel.bgbilling.modules.bill.server.bean.InvoiceManager
All Implemented Interfaces:
AutoCloseable

public class InvoiceManager extends AbstractManager
  • Constructor Details

    • InvoiceManager

      public InvoiceManager(Connection con, int moduleId)
  • Method Details

    • getInvoice

      public BillDoc getInvoice(int id)
    • getInvoiceList

      public List<Invoice> getInvoiceList(Page page, int yy, int mm, Calendar from, Calendar until, int unloadType, String contractLabels, String labelMode, String contractTitle, String billNumber, boolean getXml, String type, int packageParamId, int packageId, int addressSortParam, String nameSortParam, int sortMode, int secondarySortMode, boolean forRegister)
    • getInvoiceList

      public List<Invoice> getInvoiceList(String idcids)
      Возвращает список Invoice по id и contractID
      Parameters:
      idcids - строка "id:cid;id:cid..."
      Returns:
      List
    • getInvoiceList

      public List<Invoice> getInvoiceList(Page page, int cid, boolean onlyReady)
      Возвращает список PayInvoice
      Parameters:
      cid - - ContractID
      Returns:
    • addBillDoc

      public int addBillDoc(int userId, BillDoc billDoc, List<PositionValue> posList, List<BillDoc> subList, boolean checkPast)
      Specified by:
      addBillDoc in class AbstractManager
    • setShowReady

      public void setShowReady(String ids, boolean ready)
    • updateDocTypeId

      public void updateDocTypeId(List<Integer> documentIds, int documentTypeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getBillDoc

      protected BillDoc getBillDoc(Attributes attributes)
      Specified by:
      getBillDoc in class AbstractManager
    • getBillDoc

      protected BillDoc getBillDoc(XMLUtils.BGXMLEventReader reader, StartElement element)
      Specified by:
      getBillDoc in class AbstractManager
    • publishEvent

      protected void publishEvent(int userID, BillDoc billDoc, int billId) throws ru.bitel.bgbilling.common.BGException
      Specified by:
      publishEvent in class AbstractManager
      Throws:
      ru.bitel.bgbilling.common.BGException