Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
f10b62c548
|
@ -716,6 +716,10 @@ namespace IRaCIS.Core.Application.Service.RC
|
||||||
criterion.ImageDownloadEnum = ReadingImageDownload.Subejct;
|
criterion.ImageDownloadEnum = ReadingImageDownload.Subejct;
|
||||||
criterion.ImageUploadEnum = ReadingImageUpload.IRReadingSubejctEnable;
|
criterion.ImageUploadEnum = ReadingImageUpload.IRReadingSubejctEnable;
|
||||||
break;
|
break;
|
||||||
|
case CriterionType.Forrest:
|
||||||
|
|
||||||
|
criterion.ReadingTool = ReadingTool.NoDicom;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -342,6 +342,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> SubmitCustomTag(ReadingCustomTagDto inDto)
|
public async Task<IResponseOutput> SubmitCustomTag(ReadingCustomTagDto inDto)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (inDto.Id == null&&inDto.MarkId!=null)
|
||||||
|
{
|
||||||
|
var oldMark = await _readingTaskQuestionMarkRepository.Where(x => x.MarkId == inDto.MarkId && x.QuestionId == null).FirstOrDefaultAsync();
|
||||||
|
if( oldMark != null)
|
||||||
|
{
|
||||||
|
inDto.Id = oldMark.Id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var entity = await _readingTaskQuestionMarkRepository.InsertOrUpdateAsync(inDto, true);
|
var entity = await _readingTaskQuestionMarkRepository.InsertOrUpdateAsync(inDto, true);
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -3300,14 +3300,35 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var mark = entitys.Where(x => x.Entity.GetType() == typeof(ReadingTaskQuestionMark)).Select(x => x.Entity as ReadingTaskQuestionMark).FirstOrDefault();
|
var markList = entitys.Where(x => x.Entity.GetType() == typeof(ReadingTaskQuestionMark)).Select(x => x.Entity as ReadingTaskQuestionMark).ToList();
|
||||||
|
|
||||||
|
var questionids = taskQuestionAnswerList.Select(x => x.ReadingQuestionTrialId as Guid?).ToList();
|
||||||
|
var mark= markList.Where(x=> questionids.Contains(x.QuestionId)).FirstOrDefault();
|
||||||
var markName = string.Empty;
|
var markName = string.Empty;
|
||||||
if (mark != null)
|
if (mark != null)
|
||||||
{
|
{
|
||||||
markName = mark.OrderMarkName;
|
markName = mark.OrderMarkName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string picturePath = mark != null ? mark.PicturePath : string.Empty;
|
||||||
|
|
||||||
|
if (_userInfo.AuditIdentification== "DeleteMark")
|
||||||
|
{
|
||||||
|
markName = string.Empty;
|
||||||
|
picturePath = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 这里本来就批量展示问题的 现在又需要单个展示
|
||||||
|
var thisQuestinonAnswer = entitys.Where(x => x.Entity.GetType() == typeof(ReadingTaskQuestionAnswer)).Select(x => x.Entity as ReadingTaskQuestionAnswer).FirstOrDefault();
|
||||||
|
|
||||||
|
string questionName = string.Empty;
|
||||||
|
string questionAnswer = string.Empty;
|
||||||
|
if (thisQuestinonAnswer != null)
|
||||||
|
{
|
||||||
|
questionName = await _dbContext.ReadingQuestionTrial.Where(x => x.Id == thisQuestinonAnswer.ReadingQuestionTrialId).Select(x => _userInfo.IsEn_Us ? x.QuestionEnName : x.QuestionName).FirstOrDefaultAsync();
|
||||||
|
questionAnswer = thisQuestinonAnswer.Answer;
|
||||||
|
}
|
||||||
|
|
||||||
await InsertInspection<ReadingTaskQuestionAnswer>(cloneEntity, type, x => new InspectionConvertDTO()
|
await InsertInspection<ReadingTaskQuestionAnswer>(cloneEntity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
VisitTaskId = x.VisitTaskId,
|
VisitTaskId = x.VisitTaskId,
|
||||||
|
@ -3324,7 +3345,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
{
|
{
|
||||||
|
|
||||||
MarkName = markName,
|
MarkName = markName,
|
||||||
PicturePath = mark != null ? mark.PicturePath : string.Empty,
|
PicturePath = picturePath,
|
||||||
|
QuestinonAnswer = questionAnswer,
|
||||||
|
QuestionName = questionName,
|
||||||
QuestionAnswerList = taskQuestionAnswerList.Join(quesionList,
|
QuestionAnswerList = taskQuestionAnswerList.Join(quesionList,
|
||||||
t => t.ReadingQuestionTrialId,
|
t => t.ReadingQuestionTrialId,
|
||||||
u => u.QuestionId,
|
u => u.QuestionId,
|
||||||
|
@ -3363,6 +3386,18 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
var generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.RowId.ToString(), entity.TableQuestionId.ToString(), "ReadingTableQuestionAnswer");
|
var generalId = IdentifierHelper.CreateGuid(entity.VisitTaskId.ToString(), entity.QuestionId.ToString(), entity.RowId.ToString(), entity.TableQuestionId.ToString(), "ReadingTableQuestionAnswer");
|
||||||
var rowMark = await _dbContext.ReadingTableAnswerRowInfo.Where(x => x.Id == entity.RowId).Select(x => x.RowMark).FirstOrDefaultAsync();
|
var rowMark = await _dbContext.ReadingTableAnswerRowInfo.Where(x => x.Id == entity.RowId).Select(x => x.RowMark).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
||||||
|
var markList = entitys.Where(x => x.Entity.GetType() == typeof(ReadingTaskQuestionMark)).Select(x => x.Entity as ReadingTaskQuestionMark).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
var mark = markList.Where(x => x.RowId== entity.RowId&&x.TableQuestionId==entity.TableQuestionId).FirstOrDefault();
|
||||||
|
var markName = string.Empty;
|
||||||
|
if (mark != null)
|
||||||
|
{
|
||||||
|
markName = mark.OrderMarkName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
await InsertInspection<ReadingTableQuestionAnswer>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<ReadingTableQuestionAnswer>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
VisitTaskId = entity.VisitTaskId,
|
VisitTaskId = entity.VisitTaskId,
|
||||||
|
@ -3372,6 +3407,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
|
MarkName = markName,
|
||||||
|
PicturePath = mark != null ? mark.PicturePath : string.Empty,
|
||||||
QuestionName = questionName,
|
QuestionName = questionName,
|
||||||
RowMark = rowMark,
|
RowMark = rowMark,
|
||||||
TableQuestionName = tableQuestionName,
|
TableQuestionName = tableQuestionName,
|
||||||
|
|
Loading…
Reference in New Issue