diff --git a/IRaCIS.Core.Application/Triggers/TrialVisitPlanConfirmTrigger.cs b/IRaCIS.Core.Application/Triggers/TrialVisitPlanConfirmTrigger.cs new file mode 100644 index 000000000..bc90253c5 --- /dev/null +++ b/IRaCIS.Core.Application/Triggers/TrialVisitPlanConfirmTrigger.cs @@ -0,0 +1,40 @@ +using EntityFrameworkCore.Triggered; +using IRaCIS.Core.Domain.Share; +using IRaCIS.Core.Infrastructure; + +namespace IRaCIS.Core.Application.Triggers +{ + /// + /// 处理 访视 末次评估 会影响Subject 状态 + /// + public class TrialVisitPlanConfirmTrigger : IAfterSaveTrigger + { + private readonly IRepository _subjectVisitRepository; + private readonly IRepository _subjectRepository; + + public TrialVisitPlanConfirmTrigger(IRepository subjectVisitRepository, IRepository subjectRepository) + { + _subjectVisitRepository = subjectVisitRepository; + _subjectRepository = subjectRepository; + } + + public async Task AfterSave(ITriggerContext context, CancellationToken cancellationToken) + { + + var trial = context.Entity; + + + if (context.ChangeType == ChangeType.Modified) + { + + + + } + + + + } + + + } +} \ No newline at end of file