From 12c199cd7ec7fd6f6e3cb63a98b3a2c25f2c4942 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 25 Apr 2022 18:04:33 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=B2=E7=AA=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Triggers/TrialVisitPlanConfirmTrigger.cs | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 IRaCIS.Core.Application/Triggers/TrialVisitPlanConfirmTrigger.cs
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