添加默认值
parent
c802b7cb1c
commit
bd998673f7
|
@ -5277,6 +5277,21 @@
|
||||||
病灶类型
|
病灶类型
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialOrganListInDto.PartEN">
|
||||||
|
<summary>
|
||||||
|
部位 英文
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialOrganListInDto.TULOCEN">
|
||||||
|
<summary>
|
||||||
|
TULOC 英文
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialOrganListInDto.TULATEN">
|
||||||
|
<summary>
|
||||||
|
位置 英文
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialOrganListOutDto.IsCanEditPosition">
|
<member name="P:IRaCIS.Core.Application.ViewModel.GetTrialOrganListOutDto.IsCanEditPosition">
|
||||||
<summary>
|
<summary>
|
||||||
是否可编辑位置
|
是否可编辑位置
|
||||||
|
|
|
@ -327,7 +327,8 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
private void GetDicomReadingAnswer(DicomReadingQuestionAnswer item, List<DicomReadingQuestionAnswer> questions, List<ReadingTaskQuestionAnswer> answers)
|
private void GetDicomReadingAnswer(DicomReadingQuestionAnswer item, List<DicomReadingQuestionAnswer> questions, List<ReadingTaskQuestionAnswer> answers)
|
||||||
{
|
{
|
||||||
item.Answer = answers.Where(x => x.ReadingQuestionTrialId == item.Id).Select(x => x.Answer).FirstIsNullReturnEmpty();
|
var answer = answers.Where(x => x.ReadingQuestionTrialId == item.Id).Select(x => x.Answer).FirstIsNullReturnEmpty();
|
||||||
|
item.Answer = answer.IsNullOrEmpty()?item.DefaultValue: answer;
|
||||||
item.Childrens = questions.Where(x => x.ParentId == item.Id || ((item.Type == ReadingQestionType.Group && x.Type != ReadingQestionType.Group && x.ParentId == null && x.GroupName == item.GroupName))).ToList();
|
item.Childrens = questions.Where(x => x.ParentId == item.Id || ((item.Type == ReadingQestionType.Group && x.Type != ReadingQestionType.Group && x.ParentId == null && x.GroupName == item.GroupName))).ToList();
|
||||||
if (item.Childrens != null && item.Childrens.Count > 0)
|
if (item.Childrens != null && item.Childrens.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue