Test.EIImageViewer
			
			
		
		
							parent
							
								
									5ba7edeb6c
								
							
						
					
					
						commit
						2629d0dbd4
					
				|  | @ -775,39 +775,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common | |||
|                 }); | ||||
|             } | ||||
| 
 | ||||
|             //一致性核查 | ||||
|             foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(CheckChallengeDialog))) | ||||
|             { | ||||
|                 type = _userInfo.UserTypeShortName + "/" + type; | ||||
|                 var entity = item.Entity as CheckChallengeDialog; | ||||
|                 var subjectvisit = await _dbContext.SubjectVisit.Where(x => x.Id == entity.SubjectVisitId).FirstOrDefaultAsync(); | ||||
|                 subjectvisit = subjectvisit ?? new SubjectVisit(); | ||||
|                 var reason = string.Empty; | ||||
| 
 | ||||
|                 switch (GetRequestUrl().ToLower()) | ||||
|                 { | ||||
|                     case "qcoperation/closecheckchallenge": | ||||
|                         reason = entity.TalkContent.Substring(entity.TalkContent.LastIndexOf(':') + 1); | ||||
|                         break; | ||||
|                 } | ||||
|                 await InsertInspection<CheckChallengeDialog>(item, type, x => new DataInspection() | ||||
|                 { | ||||
|                     GeneralId = entity.SubjectVisitId, | ||||
|                     TrialId = subjectvisit.TrialId, | ||||
|                     SubjectVisitId = x.SubjectVisitId, | ||||
|                     SiteId = subjectvisit.SiteId, | ||||
|                     SubjectId = subjectvisit.SubjectId, | ||||
|                     SubjectVisitName = subjectvisit.VisitName, | ||||
|                     BlindName = subjectvisit.BlindName, | ||||
|                     Reason = reason, | ||||
|                 }, new | ||||
|                 { | ||||
|                     CheckState = subjectvisit.CheckState, | ||||
|                     RequestBackState = subjectvisit.RequestBackState, | ||||
|                     CheckChallengeState = subjectvisit.CheckChallengeState, | ||||
|                 }); | ||||
|             } | ||||
| 
 | ||||
|             | ||||
|             //Qc 问题 | ||||
|             foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(QCQuestion))) | ||||
|             { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue