using System; 
 | 
using System.Collections.Generic; 
 | 
using System.Linq; 
 | 
using System.Text; 
 | 
using System.Threading.Tasks; 
 | 
using WIDESEA_Core; 
 | 
using WIDESEA_Core.BaseServices; 
 | 
using WIDESEA_DTO.Basic; 
 | 
using WIDESEA_DTO.ERP; 
 | 
using WIDESEA_IBasicRepository; 
 | 
using WIDESEA_Model.Models; 
 | 
  
 | 
namespace WIDESEA_IBasicService 
 | 
{ 
 | 
    public interface IMaterielInfoService : IService<Dt_MaterielInfo> 
 | 
    { 
 | 
        IMaterielInfoRepository Repository { get; } 
 | 
  
 | 
        /// <summary> 
 | 
        /// 判断物料是否存在 
 | 
        /// </summary> 
 | 
        /// <param name="materielCode">物料编号</param> 
 | 
        /// <returns></returns> 
 | 
        bool ExsitMateriel(string materielCode); 
 | 
  
 | 
        /// <summary> 
 | 
        /// 判断物料是否存在 
 | 
        /// </summary> 
 | 
        /// <param name="materielCodes">物料编号集合</param> 
 | 
        /// <returns></returns> 
 | 
        bool ExsitMateriels(List<string> materielCodes); 
 | 
  
 | 
        /// <summary> 
 | 
        /// 获取物料信息 
 | 
        /// </summary> 
 | 
        /// <param name="materielCode">物料编号</param> 
 | 
        /// <returns></returns> 
 | 
        Dt_MaterielInfo GetMaterielInfo(string materielCode); 
 | 
  
 | 
        /// <summary> 
 | 
        /// 查询物料信息 
 | 
        /// </summary> 
 | 
        /// <param name="materielCodes"></param> 
 | 
        /// <returns></returns> 
 | 
        List<Dt_MaterielInfo> GetMaterielInfos(List<string> materielCodes); 
 | 
        WebResponseContent GetWarehouseMaterielInfos(int warehouseId); 
 | 
  
 | 
        /// <summary> 
 | 
        /// 接收ERP物料信息 
 | 
        /// </summary> 
 | 
        /// <param name="model"></param> 
 | 
        /// <returns></returns> 
 | 
        WebResponseContent ReceiveMaterial(MaterielInfoDTO model); 
 | 
    } 
 | 
} 
 |