|
@ -18,12 +18,13 @@ public class InspectJobEventHandler : |
|
|
, ILocalEventHandler<SfsUpdateEntitySummaryDetailEventData<InspectJob>> |
|
|
, ILocalEventHandler<SfsUpdateEntitySummaryDetailEventData<InspectJob>> |
|
|
{ |
|
|
{ |
|
|
private readonly IInspectNoteAppService _inspectNoteAppService; |
|
|
private readonly IInspectNoteAppService _inspectNoteAppService; |
|
|
|
|
|
private readonly InspectNoteManager _inspectNoteManager; |
|
|
|
|
|
|
|
|
public InspectJobEventHandler( |
|
|
public InspectJobEventHandler( |
|
|
IInspectNoteAppService inspectNoteAppService |
|
|
IInspectNoteAppService inspectNoteAppService, InspectNoteManager inspectNoteManager) |
|
|
) |
|
|
|
|
|
{ |
|
|
{ |
|
|
_inspectNoteAppService = inspectNoteAppService; |
|
|
_inspectNoteAppService = inspectNoteAppService; |
|
|
|
|
|
_inspectNoteManager = inspectNoteManager; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -90,7 +91,8 @@ public class InspectJobEventHandler : |
|
|
{ |
|
|
{ |
|
|
var entity = eventData.Entity; |
|
|
var entity = eventData.Entity; |
|
|
|
|
|
|
|
|
var inspectNote = await _inspectNoteAppService.GetByJobNumberAsync(entity.Number).ConfigureAwait(false); |
|
|
var inspectNote = await _inspectNoteManager.GetByJobNumberAsync(entity.Number); |
|
|
|
|
|
//var inspectNote = await _inspectNoteAppService.GetByJobNumberAsync(entity.Number).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
var jobSummaryDetail = entity.SummaryDetails.FirstOrDefault(); |
|
|
var jobSummaryDetail = entity.SummaryDetails.FirstOrDefault(); |
|
|
|
|
|
|
|
|