public class NomenclatureLinkService
extends java.lang.Object
Constructor and Description |
---|
NomenclatureLinkService(NomenclatureLinkDao dao,
ru.ufanet.tmc.EquipmentDAO eqDao) |
Modifier and Type | Method and Description |
---|---|
void |
deleteGroupRule(int groupId) |
void |
deleteNomenclatureLink(int nomenclatureId) |
void |
getLinks(SearchResult<NomenclatureLink> searchResult,
java.lang.String nomenclatureId) |
java.util.List<NomenclatureLink> |
getLinksAsList(java.lang.String nomenclatureId) |
RentCost |
getRentCost(StorageLeftoverMoving tmc,
int contractID,
int cityId) |
java.util.List<RentCost> |
getRentCosts(java.util.List<? extends StorageLeftover> tmcList,
int contractID)
Получение цен аренды (абонплаты) для списка номенклатур.
|
void |
getRuleGroups(SearchResult<RuleGroup> searchResult) |
JsonNode |
getRules() |
java.util.List<Service> |
getServices() |
java.util.List<StorageLeftover> |
searchNomenclature(java.lang.String search) |
NomenclatureLink |
updateLink(NomenclatureLink link) |
RuleGroup |
updateRuleGroup(RuleGroup group) |
public NomenclatureLinkService(NomenclatureLinkDao dao, ru.ufanet.tmc.EquipmentDAO eqDao)
public java.util.List<StorageLeftover> searchNomenclature(java.lang.String search)
public java.util.List<NomenclatureLink> getLinksAsList(java.lang.String nomenclatureId) throws BGException
BGException
public void getLinks(SearchResult<NomenclatureLink> searchResult, java.lang.String nomenclatureId) throws BGException
BGException
public void getRuleGroups(SearchResult<RuleGroup> searchResult) throws BGException
BGException
public NomenclatureLink updateLink(NomenclatureLink link) throws BGException
BGException
public RuleGroup updateRuleGroup(RuleGroup group) throws BGException
BGException
public void deleteNomenclatureLink(int nomenclatureId) throws BGException
BGException
public void deleteGroupRule(int groupId) throws BGException
BGException
public java.util.List<Service> getServices() throws BGException
BGException
public java.util.List<RentCost> getRentCosts(java.util.List<? extends StorageLeftover> tmcList, int contractID)
tmcList
- - список номенклатур для определения цен за аренту (абонплата)contractID
- - договор по тарифу которого определяется абонплатаpublic RentCost getRentCost(StorageLeftoverMoving tmc, int contractID, int cityId)
public JsonNode getRules() throws BGException
BGException