Files
lux/EgwCoreLib.Lux.Data/Repository/Items/IItemRepository.cs
T
2026-03-17 11:17:27 +01:00

31 lines
957 B
C#

using EgwCoreLib.Lux.Core.RestPayload;
using EgwCoreLib.Lux.Data.DbModel.Items;
using static EgwCoreLib.Lux.Core.Enums;
namespace EgwCoreLib.Lux.Data.Repository.Items
{
public interface IItemRepository : IBaseRepository
{
#region Public Methods
Task<bool> AddAsync(ItemModel entity);
Task<bool> DeleteAsync(ItemModel entity);
Task<ItemModel?> GetByIdAsync(int recId);
Task<List<ItemModel>> GetAltAsync(int recId);
Task<List<ItemModel>> GetFiltAsync(string CodGroup, ItemClassType ItemType);
Task<List<ItemModel>> GetSearchAsync(string term);
Task<bool> MassUpdateAsync(List<BomItemDTO> list2upd, double setCost, double defMargin, double defQtyMax, string defUM, int roundVal = 0, double scaleFactor = 1_000_000.0);
Task<bool> UpdateAsync(ItemModel entity);
Task<bool> UpsertFromBomAsync(List<BomItemDTO> bomList);
#endregion Public Methods
}
}