|
|
@ -52,6 +52,7 @@ namespace ICS.Application.Business.Service |
|
|
|
|
|
|
|
private readonly IIcsMo2LotManager _icsMo2LotManager; |
|
|
|
private readonly IRepository<IcsMo2Lot, long> _repository; |
|
|
|
private readonly IRepository<IcsLotRoute2Op, long> _lotRoute2OpRepository; |
|
|
|
private readonly IRepository<IcsLotNoSplitLog, long> _lotNoSplitLogRepository; |
|
|
|
private readonly IRepository<IcsLotNoStopLog, long> _lotNoStopLogRepository; |
|
|
|
private readonly IRepository<IcsMo, long> _moRepository; |
|
|
@ -89,6 +90,7 @@ namespace ICS.Application.Business.Service |
|
|
|
, IRepository<IcsMainCategoryCode, long> mainCategoryRepository |
|
|
|
, IPublicBusinessAppService publishService |
|
|
|
, IRepository<IcsLotNoStopLog, long> lotNoStopLogRepository |
|
|
|
, IRepository<IcsLotRoute2Op, long> lotRoute2OpRepository |
|
|
|
, IRepository<IcsMo2Lot, long> repository) |
|
|
|
{ |
|
|
|
_icsMo2LotManager = icsMo2LotManager; |
|
|
@ -109,6 +111,7 @@ namespace ICS.Application.Business.Service |
|
|
|
_mainCategoryRepository = mainCategoryRepository; |
|
|
|
_publishService = publishService; |
|
|
|
_lotNoStopLogRepository = lotNoStopLogRepository; |
|
|
|
_lotRoute2OpRepository = lotRoute2OpRepository; |
|
|
|
} |
|
|
|
|
|
|
|
[AbpAuthorize(IcsMo2LotPermissions.IcsMo2Lot_Query)] |
|
|
@ -258,7 +261,7 @@ namespace ICS.Application.Business.Service |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("只能删除状态为新建的产品跟踪单"); |
|
|
|
} |
|
|
|
|
|
|
|
_lotRoute2OpRepository.Delete(x => x.LotNo == entity.Lotno); |
|
|
|
#endregion
|
|
|
|
|
|
|
|
await _icsMo2LotManager.DeleteAsync(input.Id); |
|
|
@ -279,6 +282,7 @@ namespace ICS.Application.Business.Service |
|
|
|
{ |
|
|
|
throw new UserFriendlyException("只能删除状态为新建的产品跟踪单"); |
|
|
|
} |
|
|
|
_lotRoute2OpRepository.Delete(x => x.LotNo == item.Lotno); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|