public final class TicketManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TicketManager.ErrorCode |
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_BILL |
static int |
STATUS_BILL_CHECK |
static int |
STATUS_CANCELED |
static int |
STATUS_CHECK |
static int |
STATUS_OK |
static int |
STATUS_OVERDUE |
Constructor and Description |
---|
TicketManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
Ticket |
getTicket(int id,
int cid,
java.util.Calendar now) |
Ticket |
getTicketForStatus(Agent agent,
Contract contract,
java.lang.String pin,
int transId,
java.util.Date date) |
java.util.List<Ticket> |
getTicketList(int cid,
java.util.Date date1,
java.util.Date date2) |
bitel.billing.server.util.PagedList<Ticket> |
getTicketList(int agentId,
java.util.Date date1,
java.util.Date date2,
int id,
int transId,
java.lang.String pin,
Page page) |
java.util.List<Ticket> |
getTicketList(int cid,
int yy,
int mm) |
Ticket |
ticketBill(Setup setup,
Agent agent,
int transId,
Contract contract,
float summ,
java.lang.String comment,
java.lang.String descr,
int daysValid)
Выписка счета, делает агент
|
Ticket |
ticketBillCheck(int id,
int cid,
java.util.Calendar date)
Пришедший счет переводим в состояние чек, т.е теперь система может окончить транзакцию
|
void |
ticketCancel(int id,
int cid,
java.util.Calendar date) |
void |
ticketCancelTask(java.util.Calendar now) |
Ticket |
ticketCheck(Setup setup,
Contract contract,
float sum,
int daysValid)
Выписка "чека"
|
Ticket |
ticketCheckDraft(Agent agent,
Contract contract,
java.lang.String pin,
int transId,
float summ,
java.lang.String comment,
java.util.Map<?,?> requestParams)
Проведение выписанного чека
|
public static final int STATUS_BILL
public static final int STATUS_BILL_CHECK
public static final int STATUS_CHECK
public static final int STATUS_OK
public static final int STATUS_CANCELED
public static final int STATUS_OVERDUE
public Ticket getTicket(int id, int cid, java.util.Calendar now)
public Ticket getTicketForStatus(Agent agent, Contract contract, java.lang.String pin, int transId, java.util.Date date) throws TicketException
TicketException
public Ticket ticketBill(Setup setup, Agent agent, int transId, Contract contract, float summ, java.lang.String comment, java.lang.String descr, int daysValid) throws TicketException
agent
- contract
- summ
- comment
- TicketException
public Ticket ticketBillCheck(int id, int cid, java.util.Calendar date) throws TicketException
cid
- id
- TicketException
public Ticket ticketCheck(Setup setup, Contract contract, float sum, int daysValid) throws TicketException
setup
- contract
- sum
- daysValid
- TicketException
public Ticket ticketCheckDraft(Agent agent, Contract contract, java.lang.String pin, int transId, float summ, java.lang.String comment, java.util.Map<?,?> requestParams) throws TicketException, ru.bitel.bgbilling.common.BGException
agent
- contract
- pin
- comment
- TicketException
ru.bitel.bgbilling.common.BGException
public void ticketCancelTask(java.util.Calendar now)
public void ticketCancel(int id, int cid, java.util.Calendar date) throws TicketException
TicketException
public java.util.List<Ticket> getTicketList(int cid, int yy, int mm)
public java.util.List<Ticket> getTicketList(int cid, java.util.Date date1, java.util.Date date2)