Uat_Study
			
			
		
		
							parent
							
								
									3bac8fc9e2
								
							
						
					
					
						commit
						4165afcc12
					
				| 
						 | 
				
			
			@ -213,20 +213,36 @@ namespace IRaCIS.Core.Application.Service
 | 
			
		|||
                        // 找到表格问题
 | 
			
		||||
                        var otherLesionTableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == otherLesionQuestion.Id).ToListAsync();
 | 
			
		||||
 | 
			
		||||
                        // 找到病灶状态
 | 
			
		||||
                        var newstateQuestionId = newLesionTableQuestionList.Where(x => x.QuestionMark == QuestionMark.State).Select(x=>x.Id).FirstOrDefault();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                        var stateAnswers = new List<string>() {
 | 
			
		||||
                            NewLesionState.Loss.GetEnumInt(),
 | 
			
		||||
                            NewLesionState.Suspected.GetEnumInt(),
 | 
			
		||||
                            NewLesionState.UnableEvaluate.GetEnumInt()
 | 
			
		||||
                        };
 | 
			
		||||
 | 
			
		||||
                      var needRowIds=  tableAnswer.Where(x => x.TableQuestionId == newstateQuestionId && stateAnswers.Contains(x.Answer)).Select(x => x.RowId).Distinct().ToList();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                     
 | 
			
		||||
 | 
			
		||||
                        addrowInfo.ForEach(x =>
 | 
			
		||||
                        {
 | 
			
		||||
 | 
			
		||||
                            if (x.QuestionId == newLesionQuestion.Id)
 | 
			
		||||
                            if (needRowIds.Contains(x.Id))
 | 
			
		||||
                            {
 | 
			
		||||
                                x.QuestionId = otherLesionQuestion.Id;
 | 
			
		||||
                                x.OrderMark = otherLesionQuestion.OrderMark;
 | 
			
		||||
                                x.RowMark = otherLesionQuestion.OrderMark+x.RowIndex.GetLesionMark();
 | 
			
		||||
                                x.RowMark = otherLesionQuestion.OrderMark + x.RowIndex.GetLesionMark();
 | 
			
		||||
                            }
 | 
			
		||||
 | 
			
		||||
                              
 | 
			
		||||
                        });
 | 
			
		||||
 | 
			
		||||
                        tableAnswer.ForEach(x =>
 | 
			
		||||
                        {
 | 
			
		||||
                            if (x.QuestionId == newLesionQuestion.Id)
 | 
			
		||||
                            if (needRowIds.Contains(x.RowId))
 | 
			
		||||
                            {
 | 
			
		||||
                                x.QuestionId = otherLesionQuestion.Id;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue