From cba66859735b1742ddfc61b7fb1315869bdad86b Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Wed, 28 Jun 2023 15:57:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/Common/PrinterDocService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SGGL/BLL/Common/PrinterDocService.cs b/SGGL/BLL/Common/PrinterDocService.cs index 61aaf6fa..729b2b68 100644 --- a/SGGL/BLL/Common/PrinterDocService.cs +++ b/SGGL/BLL/Common/PrinterDocService.cs @@ -1514,7 +1514,7 @@ ///多项选择题 var getMultipleItem = getTestItems.Where(x => x.TestType == "2").ToList(); sb.Append(""); - sb.AppendFormat("{0} ", "二、多项选择题 (每题"+ sysTestRule.MValue+ "分,共"+(getMultipleItem.Count * getMultipleItem.Count) +"分)"); + sb.AppendFormat("{0} ", "二、多项选择题 (每题"+ sysTestRule.MValue+ "分,共" +( sysTestRule.MValue * getMultipleItem.Count) +"分)"); sb.Append(""); @@ -1557,7 +1557,7 @@ ///判断题 var getIsTrueItem = getTestItems.Where(x => x.TestType == "3").ToList(); sb.Append(""); - sb.AppendFormat("{0} ", "三、判断题 (每题"+ sysTestRule.JValue + "分,共"+(sysTestRule.JValue+ getIsTrueItem.Count) + "分)"); + sb.AppendFormat("{0} ", "三、判断题 (每题"+ sysTestRule.JValue + "分,共"+(sysTestRule.JValue * getIsTrueItem.Count) + "分)"); sb.Append(""); if (getIsTrueItem.Count > 0) @@ -1576,7 +1576,7 @@ if (Avstracts.IndexOf("(") > -1) Avstracts = Avstracts.Replace("(", "(" + item.SelectedItem == "(A" ? "(√" : "(×"); } - sb.AppendFormat("{0} ", num + "、" + Avstracts + "正确答案:"+ item.AnswerItems == "A" ? "√" : "×"); + sb.AppendFormat("{0} ", num + "、" + Avstracts + " 正确答案:"+ (item.AnswerItems == "A" ? "√" : "×")); //sb.Append(""); //sb.Append(""); //sb.AppendFormat("正确答案:{0} ", item.AnswerItems== "=="? "√" : "×");