Interface WarehouseService


public interface WarehouseService
  • Method Details

    • getWarehouseList

      List<Warehouse> getWarehouseList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getWarehouse

      Warehouse getWarehouse(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateWarehouse

      Warehouse updateWarehouse(Warehouse warehouse) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteWarehouse

      void deleteWarehouse(int warehouseId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getStockItemById

      StockItem getStockItemById(int stockItemId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateStockItem

      StockItem updateStockItem(StockItem stockItem) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getWarehouseItemsByType

      SearchResult<StockItem> getWarehouseItemsByType(int warehouseId, int stockItemTypeId, Page page) throws ru.bitel.bgbilling.common.BGException
      Вернёт список товаров для указанного склада.
      Parameters:
      warehouseId - ID склада
      stockItemTypeId - ID типа товаров указанного склада или invalid input: '<'=0, чтобы получить все товары склада всех типов
      page - null, если нужен весь список товаров склада
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteStockItem

      void deleteStockItem(int stockItemId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getStockItemType

      StockItemType getStockItemType(int stockItemTypeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getStockItemTypeTreeRoot

      StockItemType getStockItemTypeTreeRoot() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • stockItemTypeList

      List<StockItemType> stockItemTypeList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateStockItemType

      StockItemType updateStockItemType(StockItemType stockItemType) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteStockItemType

      void deleteStockItemType(int stockItemTypeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getStockItemTypesByWarehouse

      List<StockItemType> getStockItemTypesByWarehouse(int warehouseId) throws ru.bitel.bgbilling.common.BGException
      Returns:
      вернет список типов товара, которые есть на складе
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getAttributeKitList

      List<StockItemAttributeKit> getAttributeKitList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getAttributeKit

      StockItemAttributeKit getAttributeKit(int attributeKitId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateAttributeKit

      StockItemAttributeKit updateAttributeKit(StockItemAttributeKit attributeKit) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteAttributeKit

      void deleteAttributeKit(int attributeKitId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • updateAttribute

      StockItemAttribute updateAttribute(StockItemAttribute attribute) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getAttributeList

      List<StockItemAttribute> getAttributeList() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteAttribute

      void deleteAttribute(int attributeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getAttributeValuesByStockItem

      List<StockItemAttributeValue> getAttributeValuesByStockItem(int stockItemId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getCurrentUserId

      int getCurrentUserId() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • searchStockItems

      List<StockItem> searchStockItems(int warehouseId, int attributeId, String data) throws ru.bitel.bgbilling.common.BGException
      Поиск товаров на складе
      Parameters:
      warehouseId - id склада по которому будет поиск
      attributeId - id аттрибута в значении которого будем искать
      data - введённые пользователем данные для поиска
      Throws:
      ru.bitel.bgbilling.common.BGException