23 lines
1.0 KiB
C#
23 lines
1.0 KiB
C#
using CPRNIMS.Infrastructure.Dto.Inventory;
|
|
using CPRNIMS.Infrastructure.Dto.Inventory.Request;
|
|
using CPRNIMS.Infrastructure.Entities.Inventory;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CPRNIMS.Domain.Contracts.Inventory
|
|
{
|
|
public interface IMRS
|
|
{
|
|
Task<MRSPagedResult> GetPagedAsync(MRSFilterDto filter, CancellationToken ct,int? departmentId = null, string? userName = "");
|
|
Task<IReadOnlyList<RISSearchResultDto>> SearchRISForReturnAsync(string? risNoQuery, int? projectCodeId, CancellationToken ct);
|
|
Task<IReadOnlyList<ProjectCodeOptionDto>> GetProjectsWithOpenRISAsync(string? nameQuery, CancellationToken ct);
|
|
Task<MRS?> GetByIdAsync(long mrsId, CancellationToken ct);
|
|
Task<MRS> CreateAsync(CreateMRSRequest dto, string createdBy, CancellationToken ct);
|
|
Task ApproveAsync(long mrsId, string approvedBy, CancellationToken ct);
|
|
Task CancelAsync(CancelMRSRequest request, string canceledBy, CancellationToken ct);
|
|
}
|
|
}
|