IRC_NewDev
he 2024-03-18 10:44:53 +08:00
parent 57911cf567
commit 968264fe9a
2 changed files with 4 additions and 4 deletions

View File

@ -30,9 +30,9 @@ namespace IRaCIS.Core.Application.ViewModel
public decimal AllPPD { get; set; }
public decimal AllMajorAxis { get; set; }
public decimal AllLDi { get; set; }
public decimal AllshortAxis { get; set; }
public decimal AllSDi { get; set; }
}
public class GetSplitPPdInDto

View File

@ -1170,8 +1170,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
RowId = answerList.Where(x => x.RowIndex == i).Select(x => x.RowId).FirstOrDefault(),
RowIndex = answerList.Where(x => x.RowIndex == i).Select(x => x.RowIndex).FirstOrDefault().ToString(),
AllPPD = answerList.Where(x=>x.QuestionMark== QuestionMark.PPD).Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
AllMajorAxis = answerList.Where(x => x.QuestionMark == QuestionMark.MajorAxis).Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
AllshortAxis = answerList.Where(x => x.QuestionMark == QuestionMark.ShortAxis).Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
AllLDi = answerList.Where(x => x.QuestionMark == QuestionMark.MajorAxis).Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
AllSDi = answerList.Where(x => x.QuestionMark == QuestionMark.ShortAxis).Where(x => x.RowIndex > i && x.RowIndex < (i + 1)).Sum(x => x.Answer),
});
}
}