Class NomenclatureLinkService

java.lang.Object
ru.bgcrm.plugin.arm.service.NomenclatureLinkService

public class NomenclatureLinkService extends Object
  • Constructor Details

    • NomenclatureLinkService

      public NomenclatureLinkService(NomenclatureLinkDao dao, ru.ufanet.tmc.EquipmentDAO eqDao)
  • Method Details

    • searchNomenclature

      public List<ru.ufanet.onec.ws.buh.client.model.StorageLeftover> searchNomenclature(String search)
    • getLinksAsList

      public List<NomenclatureLink> getLinksAsList(String nomenclatureId) throws BGException
      Throws:
      BGException
    • getLinks

      public void getLinks(SearchResult<NomenclatureLink> searchResult, String nomenclatureId) throws BGException
      Throws:
      BGException
    • getRuleGroups

      public void getRuleGroups(SearchResult<RuleGroup> searchResult) throws BGException
      Throws:
      BGException
    • updateLink

      public NomenclatureLink updateLink(NomenclatureLink link) throws BGException
      Throws:
      BGException
    • updateRuleGroup

      public RuleGroup updateRuleGroup(RuleGroup group) throws BGException
      Throws:
      BGException
    • deleteNomenclatureLink

      public void deleteNomenclatureLink(int nomenclatureId) throws BGException
      Throws:
      BGException
    • deleteGroupRule

      public void deleteGroupRule(int groupId) throws BGException
      Throws:
      BGException
    • getServices

      public List<Service> getServices() throws BGException
      Throws:
      BGException
    • getRentCosts

      public List<RentCost> getRentCosts(List<? extends ru.ufanet.onec.ws.buh.client.model.StorageLeftover> tmcList, int contractID)
      Получение цен аренды (абонплаты) для списка номенклатур. WARN: НЕ гарантируется что tmcList.size == return list.size
      Parameters:
      tmcList - - список номенклатур для определения цен за аренту (абонплата)
      contractID - - договор по тарифу которого определяется абонплата
      Returns:
      - список абонплат за номенклатуры
    • getRentCost

      public RentCost getRentCost(ru.ufanet.onec.ws.buh.client.model.StorageLeftoverMoving tmc, int contractID, int cityId)
    • getRules

      public com.fasterxml.jackson.databind.JsonNode getRules() throws BGException
      Throws:
      BGException