using Kean.Application.Query.ViewModels; using Kean.Infrastructure.Utilities; using System.Collections.Generic; using System.Threading.Tasks; namespace Kean.Application.Query.Interfaces { /// /// 表示物料信息查询服务 /// public interface IMaterialService { /// /// 获取品类树 /// /// 结果视图 Task> GetCategoryTree(); /// /// 获取物料 /// /// ID /// 结果视图 Task GetMaterialItem(int id); /// /// 获取物料数量 /// /// 料号 /// 名称 /// 物料组 /// 品类 /// 结果 Task GetMaterialCount(string code, string name, string group, int[] category); /// /// 获取物料列表 /// /// 料号 /// 名称 /// 物料组 /// 品类 /// 排序 /// 偏移 /// 限制 /// 结果视图 Task> GetMaterialList(string code, string name, string group, int[] category, string sort, int? offset, int? limit); /// /// 获取安全库存数量 /// /// 料号 /// 名称 /// 库房 /// 结果 Task GetSafetyCount(string code, string name, int? warehouse); /// /// 获取安全库存列表 /// /// 料号 /// 名称 /// 库房 /// 排序 /// 偏移 /// 限制 /// 结果视图 Task> GetSafetyList(string code, string name, int? warehouse, string sort, int? offset, int? limit); ///////////////////////////////////////////////////////// /// /// 获取物料 /// Task GetMaterial(string Code, bool bLike); /// /// 获取品类列表 /// Task> GetCategorys(); } }