public class InvoiceManager extends AbstractManager
BILL_ALL, BILL_NEW, BILL_PAYED, con, contractManager, DT_CREATED, DT_PAYED, log, mid, moduleId, moduleSetup, setup, table, USER_ADMIN, USER_ALL, USER_USER, UT_ALL, UT_NOTUNLOADED, UT_UNLOADED
Constructor and Description |
---|
InvoiceManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
int |
addBillDoc(int userId,
BillDoc billDoc,
java.util.List<PositionValue> posList,
java.util.List<BillDoc> subList,
boolean checkPast) |
protected BillDoc |
getBillDoc(org.xml.sax.Attributes attributes) |
protected BillDoc |
getBillDoc(XMLUtils.BGXMLEventReader reader,
javax.xml.stream.events.StartElement element) |
BillDoc |
getInvoice(int id) |
java.util.List<Invoice> |
getInvoiceList(Page page,
int cid,
boolean onlyReady)
Возвращает список PayInvoice
|
java.util.List<Invoice> |
getInvoiceList(Page page,
int yy,
int mm,
java.util.Calendar from,
java.util.Calendar until,
int unloadType,
java.lang.String groups,
java.lang.String groupMode,
java.lang.String contractTitle,
java.lang.String billNumber,
boolean getXml,
java.lang.String type,
int packageParamId,
int packageId,
int addressSortParam,
java.lang.String nameSortParam,
int sortMode,
int secondarySortMode,
boolean forRegister) |
java.util.List<Invoice> |
getInvoiceList(java.lang.String idcids)
Возвращает список Invoice по id и contractID
|
protected void |
publishEvent(int userID,
BillDoc billDoc,
int billId) |
void |
setShowReady(java.lang.String ids,
boolean ready) |
void |
updateDocTypeId(java.util.List<java.lang.Integer> documentIds,
int documentTypeId) |
addBillDoc, addBillDocData, addBillDocs, addBillDocs, addNameCol, addNameJoin, addPackageFilterJoin, addSortMode, addStreetCol, addStreetJoin, close, delete, delete, delete, getBillDocInfo, getNextNumbers, getXMLData, getXMLData, setBankAccount, setOrganization, updateNumber, updatePositions, updatePositions, updatePositions
public BillDoc getInvoice(int id)
public java.util.List<Invoice> getInvoiceList(Page page, int yy, int mm, java.util.Calendar from, java.util.Calendar until, int unloadType, java.lang.String groups, java.lang.String groupMode, java.lang.String contractTitle, java.lang.String billNumber, boolean getXml, java.lang.String type, int packageParamId, int packageId, int addressSortParam, java.lang.String nameSortParam, int sortMode, int secondarySortMode, boolean forRegister)
public java.util.List<Invoice> getInvoiceList(java.lang.String idcids)
idcids
- строка "id:cid;id:cid..."public java.util.List<Invoice> getInvoiceList(Page page, int cid, boolean onlyReady)
cid
- - ContractIDpublic int addBillDoc(int userId, BillDoc billDoc, java.util.List<PositionValue> posList, java.util.List<BillDoc> subList, boolean checkPast)
addBillDoc
in class AbstractManager
public void setShowReady(java.lang.String ids, boolean ready)
public void updateDocTypeId(java.util.List<java.lang.Integer> documentIds, int documentTypeId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected BillDoc getBillDoc(org.xml.sax.Attributes attributes)
getBillDoc
in class AbstractManager
protected BillDoc getBillDoc(XMLUtils.BGXMLEventReader reader, javax.xml.stream.events.StartElement element)
getBillDoc
in class AbstractManager
protected void publishEvent(int userID, BillDoc billDoc, int billId) throws ru.bitel.bgbilling.common.BGException
publishEvent
in class AbstractManager
ru.bitel.bgbilling.common.BGException