| | |
| | | expertTestTopicanwserDTOs = _expertTestTopicService.GetListanwser(id); |
| | | if (dto.Topictype=="03") |
| | | { |
| | | expertTestTopicanwserDTOs = expertTestTopicanwserDTOs.OrderByDescending(x=>x.Anwserno).ToList(); |
| | | expertTestTopicanwserDTOs = expertTestTopicanwserDTOs.OrderBy(x=>x.Anwserno).ToList(); |
| | | } |
| | | if (expertTestTopicanwserDTOs.Count == 0) |
| | | { |
| | |
| | | expertTestTopicanwserDTO.Anwserno = "√"; |
| | | expertTestTopicanwserDTOs.Add(expertTestTopicanwserDTO); |
| | | var expertTestTopicanwserDTO1 = new ExpertTestTopicanwserDTO(); |
| | | expertTestTopicanwserDTO1.Anwserno = "×"; |
| | | expertTestTopicanwserDTO1.Anwserno = "x"; |
| | | expertTestTopicanwserDTOs.Add(expertTestTopicanwserDTO1); |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | foreach (var sysCodeDtl in sysCodeDtls) |
| | | { |
| | | |
| | | var shuliang = expertTestTopicDTOs1.Count(x => x.Topictype == sysCodeDtl.CodeSn); |
| | | var expertTestTopicDTO = new ExpertTestTopicDTO(); |
| | | expertTestTopicDTO.Shuliang = shuliang; |
| | | expertTestTopicDTO.ZhishitypeName = "合计"; |
| | | |
| | | expertTestTopicDTO.Zhishitype = ""; |
| | | expertTestTopicDTO.Topictype = sysCodeDtl.CodeSn; |
| | | expertTestTopicDTOs.Add(expertTestTopicDTO); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //ViewBag.topictype = sysCodeDtls; |
| | | |