试卷打印

This commit is contained in:
李超 2023-06-28 15:57:23 +08:00
parent 48129fe367
commit cba6685973
1 changed files with 3 additions and 3 deletions

View File

@ -1514,7 +1514,7 @@
///多项选择题
var getMultipleItem = getTestItems.Where(x => x.TestType == "2").ToList();
sb.Append("<tr style=\"height: 30px\">");
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; font-weight: bold; \">{0}</td> ", "二、多项选择题 (每题"+ sysTestRule.MValue+ "分,共"+(getMultipleItem.Count * getMultipleItem.Count) +"分)");
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; font-weight: bold; \">{0}</td> ", "二、多项选择题 (每题"+ sysTestRule.MValue+ "分,共" +( sysTestRule.MValue * getMultipleItem.Count) +"分)");
sb.Append("</tr>");
@ -1557,7 +1557,7 @@
///判断题
var getIsTrueItem = getTestItems.Where(x => x.TestType == "3").ToList();
sb.Append("<tr style=\"height: 30px\">");
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; font-weight: bold;\">{0}</td> ", "三、判断题 (每题"+ sysTestRule.JValue + "分,共"+(sysTestRule.JValue+ getIsTrueItem.Count) + "分)");
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; font-weight: bold;\">{0}</td> ", "三、判断题 (每题"+ sysTestRule.JValue + "分,共"+(sysTestRule.JValue * getIsTrueItem.Count) + "分)");
sb.Append("</tr>");
if (getIsTrueItem.Count > 0)
@ -1576,7 +1576,7 @@
if (Avstracts.IndexOf("") > -1)
Avstracts = Avstracts.Replace("", "" + item.SelectedItem == "A" ? "(√" : "×");
}
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; \">{0}</td> ", num + "、" + Avstracts + "正确答案:"+ item.AnswerItems == "A" ? "√" : "×");
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; \">{0}</td> ", num + "、" + Avstracts + " 正确答案:"+ (item.AnswerItems == "A" ? "√" : "×"));
//sb.Append("</tr>");
//sb.Append("<tr style=\"height: 30px\">");
//sb.AppendFormat("<td align=\"right\" style=\"width:100%; \">正确答案:{0}</td> ", item.AnswerItems== "=="? "√" : "×");