package com.jwipc.supplier.logic;

import com.jwipc.page.PageView;
import com.jwipc.supplier.dto.*;
import com.jwipc.supplier.model.query.SupplierAvlQuery;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p> </p>
 *
 * @author BOGON
 * @version 1.0
 * @since JDK 1.8
 */
public interface SupplierAvlLogic {
    PageView getList(SupplierAvlQuery query);

    void saveOrUpdate(SupplierAvlSaveDTO saveDTO);

    void remove(List<String> idList);

    void pushAvlToMes(List<String> idList);

    SupplierAvlBaseDTO getDetail(Long id);

    List<SupplierAvlBaseDTO> listAll(SupplierAvlQuery supplierAvlQuery);

    void avlImportData (MultipartFile fileId);

    List<SupplierAvlBaseDTO> getMPN(String supplierCode, String materialCode, String manufacturer);

    SupplierAvlItemBaseDTO getAvlItems(String materialCode);
}