打印试卷

This commit is contained in:
2023-05-06 15:16:02 +08:00
parent a159766763
commit 41df4714f5
4 changed files with 90 additions and 5 deletions
+6 -2
View File
@@ -1542,7 +1542,9 @@
str += "  D." + item.DItem;
}
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; \">{0}</td> ", str);
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; \">{0}</td> ", str);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 30px\">");
sb.AppendFormat("<td align=\"right\" style=\"width:100%; \">正确答案:{0}</td> ", item.AnswerItems);
sb.Append("</tr>");
num++;
@@ -1571,7 +1573,9 @@
Avstracts = Avstracts.Replace("", "" + item.SelectedItem == "A" ? "(√" : "(×");
}
sb.AppendFormat("<td align=\"left\" style=\"width: 100%; \">{0}</td> ", num + "、" + Avstracts);
sb.AppendFormat("<td align=\"right\" style=\"width:100%; \">正确答案:{0}</td> ", item.AnswerItems);
sb.Append("</tr>");
sb.Append("<tr style=\"height: 30px\">");
sb.AppendFormat("<td align=\"right\" style=\"width:100%; \">正确答案:{0}</td> ", item.AnswerItems== "=="? "√" : "×");
sb.Append("</tr>");
num++;
}