修改一致性分析规则和稽查

This commit is contained in:
2022-12-06 11:16:55 +08:00
parent e9e0e37694
commit caba07deb3
6 changed files with 215 additions and 143 deletions
+9 -1
View File
@@ -91,4 +91,12 @@ go
update ReadingQuestionCriterionTrial set DigitPlaces=DigitPlaces-1 where DigitPlaces is not null
update ReadingQuestionCriterionTrial set DigitPlaces=-1 where DigitPlaces=3
update ReadingQuestionCriterionTrial set DigitPlaces=-1 where DigitPlaces=3
--阅片标准维护
update DataInspection set ObjectRelationParentId3 = (select top 1 TrialReadingCriterionId from SubjectUser where Id =DataInspection.GeneralId) where EntityName='SubjectUser'
update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadingPeriodSet where Id =DataInspection.GeneralId) where EntityName='ReadingPeriodSet'
update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadModule where Id =DataInspection.GeneralId) where EntityName='ReadModule'
update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from TaskConsistentRule where Id =DataInspection.GeneralId) where EntityName='TaskConsistentRule'
update DataInspection set ObjectRelationParentId3 = (select top 1 TrialReadingCriterionId from VisitTask where Id =DataInspection.GeneralId) where EntityName='VisitTask'
+7 -4
View File
@@ -121,10 +121,6 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public string Identification { get; set; } = string.Empty;
///// <summary>
///// 访视计划ID
///// </summary>
//public Guid? VisitStageId { get; set; }
/// <summary>
/// 稽查的对象Id
@@ -146,10 +142,17 @@ namespace IRaCIS.Core.Domain.Models
public Guid? ObjectRelationParentId2 { get; set; }
public Guid? ObjectRelationParentId3 { get; set; }
public string EntityName { get; set; }
public Guid? TrialReadingCriterionId { get; set; }
public Guid? DoctorUserId { get; set; }
}