Browse Source

优化打印前检查大众顺序号是否断号方法

master
lvzb 1 year ago
parent
commit
1acb8b7d13
  1. 11
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs

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

@ -872,8 +872,15 @@ namespace WY.NewJit.PrintTable
return new ListResultDto<string>(retLst);
}
//判断是否断号
ListResultDto<WaitPrint> tempLst = await GetMBReportDetailList(input, true); //-------------------
List<WaitPrint> billLst = tempLst.Item;
int printBillCnt = input.EndHostSN - input.BeginHostSN + 1;
List<WaitPrint> billLst = await _waitPrintRepository.Where(itm =>
itm.BusinessType == BusinessTypeEnum.MenBan
&& itm.ProductLine == input.ProductLine //生产线
&& itm.PrintType == PrintTypeEnum.OrderPrint //顺序打印
&& itm.HostSN2 >= minHostSN2)
.OrderBy(itm => itm.HostSN2)
.Take(printBillCnt).ToListAsync();
bool isBreakNum = billLst.Any(itm => itm.BillStatus == BillStatusEnum.BreakNum);
if (isBreakNum)
{

Loading…
Cancel
Save