using System.Collections.Generic;
using Siger.Middlelayer.Repository.Paged;
using Siger.Middlelayer.IMSRepository.Entities;
using Siger.Middlelayer.IMSRepository.Response;

namespace Siger.Middlelayer.IMSRepository.Repositories.Interface
{
    public interface IToolLifeReplaceReturnRepository : IIMSRepositoryBase<siger_project_ims_tool_replace_return>
    {
        IPagedCollectionResult<ResponseGetReplaceReturn> GetPagedList(int workorder_id, string workorder_code, int material_id, int operate_mid
            , int starttime, int endtime, int page, int pagesize, int projectId, int toexcel);

        bool OutStock(IEnumerable<int> ReplaceIds, int projectId, int userId, int operator_mid);

        bool InStock(IEnumerable<siger_project_ims_tool_replace_return> returns, int storage_id, int projectId,
            int userId);

        int GetIdMax();
    }
}
