You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.Application.Dtos;
|
|
using Volo.Abp.AspNetCore.Mvc;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
|
|
namespace Win_in.Sfs.Wms.Pda.Controllers.BaseDatas;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route($"{PdaHostConst.ROOT_ROUTE}shift")]
|
|
public class ShiftController : AbpController
|
|
{
|
|
private readonly IShiftAppService _shiftAppService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="shiftAppService"></param>
|
|
public ShiftController(IShiftAppService shiftAppService)
|
|
{
|
|
_shiftAppService = shiftAppService;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="pageSize"></param>
|
|
/// <param name="pageIndex"></param>
|
|
/// <param name="sorting"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("list")]
|
|
public virtual async Task<PagedResultDto<ShiftDTO>> GetListAsync(int pageSize, int pageIndex, string sorting)
|
|
{
|
|
var request = new SfsBaseDataRequestInputBase
|
|
{
|
|
MaxResultCount = pageSize,
|
|
SkipCount = (pageIndex - 1) * pageSize,
|
|
Sorting = sorting
|
|
};
|
|
|
|
var list = await _shiftAppService.GetPagedListByFilterAsync(request, false).ConfigureAwait(false);
|
|
return list;
|
|
}
|
|
}
|
|
|