|
@ -817,7 +817,36 @@ namespace WY.NewJit.PrintTable |
|
|
return new PagedResultDto<WaitPrintDto>(0, new List<WaitPrintDto>()); |
|
|
return new PagedResultDto<WaitPrintDto>(0, new List<WaitPrintDto>()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 已打印列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="input">输入查询条件</param>
|
|
|
|
|
|
/// <returns>返回符合条件的排序分页列表</returns>
|
|
|
|
|
|
[HttpGet] |
|
|
|
|
|
[UnitOfWork(false)] |
|
|
|
|
|
[Route("already-print-list")] |
|
|
|
|
|
public virtual async Task<PagedResultDto<AlreadyPrintDto>> GetAlreadyPrintListAsync(QueryAlreadyPrintDto input) |
|
|
|
|
|
{ |
|
|
|
|
|
_logger.LogDebug(_errorMessagePrefix + "GetAlreadyPrintListAsync 进入"); |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
PagedResultDto<AlreadyPrintDto> ret = new PagedResultDto<AlreadyPrintDto>(); |
|
|
|
|
|
string where = GetWhere(input); |
|
|
|
|
|
ret.TotalCount = await GetEntityCountAsync("FisAlreadyPrint", where); |
|
|
|
|
|
//计算分页
|
|
|
|
|
|
int skipNum = input.SkipCount; |
|
|
|
|
|
int takeNum = input.MaxResultCount; |
|
|
|
|
|
var lst = await GetEntityListFromToAsync<AlreadyPrintDto>("FisAlreadyPrint", where, "HostSN2", skipNum, takeNum); |
|
|
|
|
|
ret.Items = lst; |
|
|
|
|
|
return ret; |
|
|
|
|
|
} |
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
{ |
|
|
|
|
|
string errMsg = _errorMessagePrefix + "GetAlreadyPrintListAsync 执行出错:" + ex.Message; |
|
|
|
|
|
_logger.LogError(errMsg); |
|
|
|
|
|
return new PagedResultDto<AlreadyPrintDto>(0, new List<AlreadyPrintDto>()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 打印前检查大众顺序号是否断号
|
|
|
/// 打印前检查大众顺序号是否断号
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|