From 0c7b13e91cd472e21e4a620355e6fcabc11f695a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 04 一月 2022 13:56:24 +0800
Subject: [PATCH] 计件登记,汇总,打印

---
 zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
index 78ff070..5845414 100644
--- a/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/ExpertTest/ExpertTestTopicController.cs
@@ -93,6 +93,9 @@
             ViewBag.zhongdian = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             ViewBag.jiexi_status = _liaotianService.GetSYScode("expert_test_topic", "jiexi_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
             ViewBag.shenpi_status = _liaotianService.GetSYScode("expert_test_topic", "shenpi_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
+            ViewBag.Falv = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList();
+
+
             var areaDTOs = _areaService.GetList().Where(x => x.ParentId == "0     ").ToList();
             foreach (var areaDTO in areaDTOs)
             {
@@ -139,7 +142,7 @@
                 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)
                 {
@@ -169,7 +172,7 @@
                     expertTestTopicanwserDTO.Anwserno = "鈭�";
                     expertTestTopicanwserDTOs.Add(expertTestTopicanwserDTO);
                     var expertTestTopicanwserDTO1 = new ExpertTestTopicanwserDTO();
-                    expertTestTopicanwserDTO1.Anwserno = "脳";
+                    expertTestTopicanwserDTO1.Anwserno = "x";
                     expertTestTopicanwserDTOs.Add(expertTestTopicanwserDTO1);
                     
 
@@ -909,6 +912,23 @@
                 }
             }
 
+            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;
 

--
Gitblit v1.9.1