public class BillManager 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 |
---|
BillManager(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
int |
addBillDoc(int userId,
BillDoc doc,
java.util.List<PositionValue> posList,
java.util.List<BillDoc> subList,
boolean checkPast) |
int |
deleteBill(int cid,
int id,
boolean admin) |
Bill |
getBill(int id) |
protected BillDoc |
getBillDoc(org.xml.sax.Attributes attributes) |
protected BillDoc |
getBillDoc(XMLUtils.BGXMLEventReader reader,
javax.xml.stream.events.StartElement element) |
java.util.List<Bill> |
getBillList(Page page,
int cid)
Возвращает список PayBill
|
java.util.List<Bill> |
getBillList(Page page,
int yy,
int mm,
java.util.Calendar from,
java.util.Calendar until,
int dateType,
int payedType,
int userType,
int unloadType,
int accountId,
java.lang.String groups,
java.lang.String groupMode,
java.lang.String contractTitle,
java.lang.String billNumber,
boolean getXml,
int type,
int packageParamId,
int packageId,
int addressSortParam,
java.lang.String nameSortParam,
int sortMode,
int secondarySortMode,
boolean forRegister)
Deprecated.
|
java.util.List<Bill> |
getBillList(Page page,
int yy,
int mm,
Period period,
int dateType,
int payedType,
int userType,
int unloadType,
int accountId,
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) |
protected void |
publishEvent(int userID,
BillDoc billDoc,
int billId) |
void |
setPayed(java.lang.String ids,
int userID,
boolean pay,
boolean value,
java.util.Date date,
java.lang.String summComment) |
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 java.util.List<Bill> getBillList(Page page, int yy, int mm, Period period, int dateType, int payedType, int userType, int unloadType, int accountId, 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)
@Deprecated public java.util.List<Bill> getBillList(Page page, int yy, int mm, java.util.Calendar from, java.util.Calendar until, int dateType, int payedType, int userType, int unloadType, int accountId, java.lang.String groups, java.lang.String groupMode, java.lang.String contractTitle, java.lang.String billNumber, boolean getXml, int type, int packageParamId, int packageId, int addressSortParam, java.lang.String nameSortParam, int sortMode, int secondarySortMode, boolean forRegister)
public void setPayed(java.lang.String ids, int userID, boolean pay, boolean value, java.util.Date date, java.lang.String summComment) throws java.lang.Exception
java.lang.Exception
public void updateDocTypeId(java.util.List<java.lang.Integer> documentIds, int documentTypeId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Bill> getBillList(Page page, int cid)
cid
- - ContractIDpublic Bill getBill(int id)
public int deleteBill(int cid, int id, boolean admin)
public int addBillDoc(int userId, BillDoc doc, java.util.List<PositionValue> posList, java.util.List<BillDoc> subList, boolean checkPast)
addBillDoc
in class AbstractManager
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