Merge branch 'Test_IRC_Net10' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net10
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
commit
21136f1238
|
|
@ -930,8 +930,8 @@ public static class ExcelExportHelper
|
|||
|
||||
int sheetCount = workbook.Worksheets.Count;
|
||||
|
||||
if (sheetCount == 2)
|
||||
{
|
||||
//if (sheetCount == 2)
|
||||
//{
|
||||
if (inDto.IsEnglish)
|
||||
{
|
||||
workbook.Worksheet(1).Delete(); // 删除第一个工作表
|
||||
|
|
@ -940,7 +940,7 @@ public static class ExcelExportHelper
|
|||
{
|
||||
workbook.Worksheet(2).Delete(); // 删除第二个工作表
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -507,7 +507,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
List<string> sheetNames = new List<string>()
|
||||
{
|
||||
"各匹配片段测量值","MeasuredValue"
|
||||
"ROI测量值","ROI 测量值"
|
||||
};
|
||||
|
||||
if (sheetNames.Intersect(uploadInfo.SheetNames).Count() == 0)
|
||||
|
|
@ -768,9 +768,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
if (targetSegmentAnswer.IsNotNullOrEmpty())
|
||||
{
|
||||
var targetSegmentValues = targetSegmentAnswer.Replace(",", ",").Split(",").ToList();
|
||||
var targetSegmentValues = targetSegmentAnswer.Replace(" ", "").Replace(",", ",").Split(",").ToList();
|
||||
var targetSegmentdic = await _dictionaryRepository.Where(x => x.Parent.Code == "TargetSegment").ToListAsync();
|
||||
targetSegmentAnswer = JsonConvert.SerializeObject(targetSegmentdic.Where(x => targetSegmentValues.Contains(x.ValueCN)).Select(x => x.Code).ToList());
|
||||
targetSegmentAnswer = JsonConvert.SerializeObject(targetSegmentdic.Where(x => targetSegmentValues.Contains(x.ValueCN.Replace(" ", ""))).Select(x => x.Code).ToList());
|
||||
}
|
||||
|
||||
questionAnswers.Add(new ReadingTaskQuestionAnswer()
|
||||
|
|
@ -820,10 +820,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
if (plaqueTypeAnswer.IsNotNullOrEmpty())
|
||||
{
|
||||
var plaqueTypeAnswerValues = plaqueTypeAnswer.Replace(",", ",").Split(",").ToList();
|
||||
var plaqueTypeAnswerValues = plaqueTypeAnswer.Replace(" ", "").Replace(",", ",").Split(",").ToList();
|
||||
var plaqueTypeAnswerdic = await _dictionaryRepository.Where(x => x.Parent.Code == "PlaqueType").ToListAsync();
|
||||
plaqueTypeAnswer = JsonConvert.SerializeObject(plaqueTypeAnswerdic
|
||||
.Where(x => plaqueTypeAnswerValues.Any(val => x.ValueCN.Contains(val)))
|
||||
.Where(x => plaqueTypeAnswerValues.Any(val => x.ValueCN.Replace(" ", "").Contains(val)))
|
||||
.Select(x => x.Code)
|
||||
.ToList());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
List<string> sheetNames = new List<string>()
|
||||
{
|
||||
"FCT导入","FCT"
|
||||
"ROI测量值","ROI 测量值"
|
||||
};
|
||||
|
||||
if (sheetNames.Intersect(uploadInfo.SheetNames).Count() == 0)
|
||||
|
|
@ -740,9 +740,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
if (targetSegmentAnswer.IsNotNullOrEmpty())
|
||||
{
|
||||
var targetSegmentValues = targetSegmentAnswer.Replace(",", ",").Split(",").ToList();
|
||||
var targetSegmentValues = targetSegmentAnswer.Replace(" ", "").Replace(",", ",").Split(",").ToList();
|
||||
var targetSegmentdic = await _dictionaryRepository.Where(x => x.Parent.Code == "TargetSegment").ToListAsync();
|
||||
targetSegmentAnswer = JsonConvert.SerializeObject(targetSegmentdic.Where(x => targetSegmentValues.Contains(x.ValueCN)).Select(x => x.Code).ToList());
|
||||
targetSegmentAnswer = JsonConvert.SerializeObject(targetSegmentdic.Where(x => targetSegmentValues.Contains(x.ValueCN.Replace(" ", ""))).Select(x => x.Code).ToList());
|
||||
}
|
||||
|
||||
questionAnswers.Add(new ReadingTaskQuestionAnswer()
|
||||
|
|
@ -781,10 +781,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
|
||||
if (plaqueTypeAnswer.IsNotNullOrEmpty())
|
||||
{
|
||||
var plaqueTypeAnswerValues = plaqueTypeAnswer.Replace(",", ",").Split(",").ToList();
|
||||
var plaqueTypeAnswerValues = plaqueTypeAnswer.Replace(" ", "").Replace(",", ",").Split(",").ToList();
|
||||
var plaqueTypeAnswerdic = await _dictionaryRepository.Where(x => x.Parent.Code == "PlaqueType").ToListAsync();
|
||||
plaqueTypeAnswer = JsonConvert.SerializeObject(plaqueTypeAnswerdic
|
||||
.Where(x => plaqueTypeAnswerValues.Any(val => x.ValueCN.Contains(val)))
|
||||
.Where(x => plaqueTypeAnswerValues.Any(val => x.ValueCN.Replace(" ", "").Contains(val)))
|
||||
.Select(x => x.Code)
|
||||
.ToList());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue