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

namespace Siger.Middlelayer.TlmRepository.Repositories.Interface
{
    public interface IToolLifeReplaceReturnRepository : ITlmRepositoryBase<siger_project_toollife_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_toollife_tool_replace_return> returns, int storage_id, int projectId,
            int userId);

        int GetIdMax();
    }
}
