Class DialUpSessionUtils
java.lang.Object
ru.bitel.bgbilling.modules.dialup.server.bean.DialUpSessionUtils
Менеджер работы с сессиями Dialup
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSessionAccountAndDetailById(int sessionId, Date month) static floatgetPart(Calendar periodFrom, Calendar periodTo, int sid, Map<Integer, List<DialUpSessionUtils.ServiceRange>> ranges) getServiceRangeMap(int contractId, String sids) Возвращает карту "код услуги"-"список диапазонов услуги на договоре"voidsetContractAccountFromSessionAccount(Calendar time, int contractId) Устанавливает наработку договору по наработке за сессииvoidsetSessionAccount(Calendar date, int sessionId, int serviceId, float sum, int cid) Устанавливает наработку за сессию
-
Constructor Details
-
DialUpSessionUtils
-
-
Method Details
-
setSessionAccount
Устанавливает наработку за сессию- Parameters:
date- датаsessionId- код сессииserviceId- код услугиsum- суммаcid- код договора
-
setContractAccountFromSessionAccount
Устанавливает наработку договору по наработке за сессии- Parameters:
time- датаcontractId- код договора
-
getServiceRangeMap
public Map<Integer,List<DialUpSessionUtils.ServiceRange>> getServiceRangeMap(int contractId, String sids) Возвращает карту "код услуги"-"список диапазонов услуги на договоре"- Parameters:
contractId- код договораsids- коды услуг- Returns:
-
getPart
-
deleteSessionAccountAndDetailById
public void deleteSessionAccountAndDetailById(int sessionId, Date month) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-