|
|
@ -65,6 +65,7 @@ public class CountJobManager : SfsJobManagerBase<CountJob, CountJobDetail>, ICou |
|
|
|
job.AddDetails(newDetails); |
|
|
|
} |
|
|
|
await _repository.UpdateManyAsync(joblist).ConfigureAwait(false); |
|
|
|
await _noteRepository.DeleteAsync(r => numbers.Contains(r.CountJobNumber)).ConfigureAwait(false); |
|
|
|
await LocalEventBus.PublishAsync(new SfsSubmittedEntityEventData<List<CountJob>>(joblist), false).ConfigureAwait(false); |
|
|
|
return joblist; |
|
|
|
} |
|
|
@ -74,7 +75,7 @@ public class CountJobManager : SfsJobManagerBase<CountJob, CountJobDetail>, ICou |
|
|
|
CountJobDetail newDetail = new CountJobDetail(); |
|
|
|
newDetail.SetIdAndNumber(GuidGenerator, job.Id, job.Number); |
|
|
|
newDetail.CountPlanNumber = job.CountPlanNumber; |
|
|
|
newDetail.CountLabel = GuidGenerator.Create().ToString(); |
|
|
|
newDetail.CountLabel = job.CountLabel; |
|
|
|
newDetail.InventoryQty = job.InventoryQty; |
|
|
|
newDetail.InventoryStage = job.InventoryStage+1; |
|
|
|
newDetail.Uom = job.Uom; |
|
|
@ -205,7 +206,7 @@ public class CountJobManager : SfsJobManagerBase<CountJob, CountJobDetail>, ICou |
|
|
|
if (entityDetail == null || entityDetail.Id == Guid.Empty) |
|
|
|
{ |
|
|
|
|
|
|
|
var jobDetail = ObjectMapper.Map<CountJobDetail, CountJobDetail>(detail); |
|
|
|
var jobDetail = ObjectMapper.Map<CountJobDetail, CountJobDetail>(detail); |
|
|
|
entity.AddDetail(jobDetail); |
|
|
|
} |
|
|
|
else |
|
|
|