Browse Source

添加获取已打印数据方法

master
lvzb 1 year ago
parent
commit
c94b0427d7
  1. 1
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs
  2. 31
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
  3. 7
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml

1
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Interfaces/IWaitPrintAppService.cs

@ -11,6 +11,7 @@ namespace WY.NewJit.PrintTable
{
public interface IWaitPrintAppService
{
Task<PagedResultDto<AlreadyPrintDto>> GetAlreadyPrintListAsync(QueryAlreadyPrintDto input);
Task<PagedResultDto<WaitPrintDto>> GetReplenishPrintListAsync(QueryReplenishPrintDto input);
Task<PagedResultDto<WaitPrintDto>> GetReplenishPrintZHBListAsync(QueryReplenishPrintDto input);

31
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs

@ -817,7 +817,36 @@ namespace WY.NewJit.PrintTable
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>

7
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml

@ -1996,6 +1996,13 @@
<param name="input">输入查询条件</param>
<returns>返回符合条件的排序分页列表</returns>
</member>
<member name="M:WY.NewJit.PrintTable.WaitPrintAppService.GetAlreadyPrintListAsync(WY.NewJit.PrintTable.Dtos.QueryAlreadyPrintDto)">
<summary>
已打印列表
</summary>
<param name="input">输入查询条件</param>
<returns>返回符合条件的排序分页列表</returns>
</member>
<member name="M:WY.NewJit.PrintTable.WaitPrintAppService.CheckMBHostSNBreakNum(WY.NewJit.Extends.MenBanPrintInputDto)">
<summary>
打印前检查大众顺序号是否断号

Loading…
Cancel
Save