public class RSCMContractServiceManager
extends java.lang.Object
| Constructor and Description |
|---|
RSCMContractServiceManager(java.sql.Connection con,
int mid) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
checkBalanceForService(int contractId,
int serviceId,
long amount,
java.util.Calendar date)
Проверяет возможность добавление на договор с кодом cid услуги с кодом serviceId в размере
amount единиц на текущую дату.
|
void |
checkTariffsForService(int cid,
int serviceId,
java.util.Calendar date) |
void |
deleteContractService(int id,
int contractId,
java.util.Date month)
Удаление потребленной услуги договора.
|
RSCMContractService |
getContractService(int contractId,
int id)
Получение потребленной услуги договора.
|
RSCMContractService |
getContractService(int contractId,
int id,
java.util.Date date)
Deprecated.
|
java.util.List<RSCMContractService> |
getContractServiceList(int contractId,
java.util.Calendar month)
Список потребленных договором услуг.
|
java.util.List<RSCMContractService> |
getContractServiceList(int contractId,
Period period,
Page page,
boolean dateAscOrder) |
void |
hotCalc(int contractId,
java.util.Date date) |
void |
updateContractService(RSCMContractService contractService)
Изменение/добавление потребленной услуги.
|
public RSCMContractServiceManager(java.sql.Connection con,
int mid)
public java.lang.String checkBalanceForService(int contractId,
int serviceId,
long amount,
java.util.Calendar date)
throws ru.bitel.bgbilling.common.BGException
contractId - код договораserviceId - код услугиamount - количество единицdate - датаru.bitel.bgbilling.common.BGExceptionpublic void checkTariffsForService(int cid,
int serviceId,
java.util.Calendar date)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<RSCMContractService> getContractServiceList(int contractId, java.util.Calendar month) throws ru.bitel.bgbilling.common.BGException
contractId - код договораmonth - месяцru.bitel.bgbilling.common.BGExceptionpublic java.util.List<RSCMContractService> getContractServiceList(int contractId, Period period, Page page, boolean dateAscOrder) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void updateContractService(RSCMContractService contractService) throws ru.bitel.bgbilling.common.BGException
contractService - ru.bitel.bgbilling.common.BGExceptionpublic void deleteContractService(int id,
int contractId,
java.util.Date month)
throws ru.bitel.bgbilling.common.BGException
id - код записиcontractId - код договораmonth - месяцru.bitel.bgbilling.common.BGException@Deprecated public RSCMContractService getContractService(int contractId, int id, java.util.Date date) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic RSCMContractService getContractService(int contractId, int id) throws ru.bitel.bgbilling.common.BGException
contractId - код договораid - код записиru.bitel.bgbilling.common.BGExceptionpublic void hotCalc(int contractId,
java.util.Date date)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException