ShowPaper.cshtml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Entities;
  3. @using EMISOnline.Web.Controls;
  4. @{
  5. ViewBag.Title = "";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative; overflow:auto;">
  8. @Html.Position()
  9. <div class="p_SearchTitle">
  10. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  11. 查询条件</div>
  12. </div>
  13. <div class="search_list">
  14. <div class="practice-container">
  15. <table>
  16. <tr>
  17. <th align="center">
  18. 试题总分
  19. </th>
  20. <th align="center">
  21. 你的得分
  22. </th>
  23. <th align="center">
  24. 试题总数
  25. </th>
  26. <th align="center">
  27. 答对题数
  28. </th>
  29. <th align="center">
  30. 答错题数
  31. </th>
  32. <th align="center">
  33. 未答题数
  34. </th>
  35. </tr>
  36. <tr>
  37. <th align="center" id="lbscore">
  38. </th>
  39. <th align="center" id="lbstudentscore">
  40. </th>
  41. <th align="center" id="lbquestionnumber">
  42. </th>
  43. <th align="center" id="lbrightnumber">
  44. </th>
  45. <th align="center" id="lberrornumber">
  46. </th>
  47. <th align="center" id="lbunquestion">
  48. </th>
  49. </tr>
  50. </table>
  51. <div class="practice-contont">
  52. <div id="questionContent">
  53. </div>
  54. </div>
  55. <div class="practice-button">
  56. @Html.Button(new ButtonOptions() { ID = "btnClose", Text = "关闭页面" })
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. @section scripts{
  62. <script type="text/javascript" src="~/Scripts/Examinee/jquery-jtemplates_uncompressed.js"></script>
  63. <script type="text/javascript" src="~/Scripts/Business/student.parctite.js"></script>
  64. <script type="text/javascript" src="~/Scripts/NewEMIS.Comm.js"></script>
  65. <script type="text/javascript" src="~/Scripts/Business/paperBuilder.js"></script>
  66. <script type="text/jscript">
  67. var paperInfo = @Html.Raw(ViewBag.questions);
  68. $(function () {
  69. $("#questionContent").setTemplateURL('@Url.Content("~/Scripts/Business/PaperTemplate.htm")?v=1111.111ss', null, { filter_data: false });
  70. $("#questionContent").processTemplate(paperInfo.result);
  71. showScore(paperInfo.data);
  72. $('input').attr("disabled", true);
  73. $('.easyui-panel').panel('resize');
  74. $('#btnClose').click(function(){
  75. location.href = "@Url.Content("~/Coursework/Review")?workid=@(ViewBag.workid)";
  76. })
  77. // $('body').removeClass('panel-noscroll');
  78. })
  79. function showScore(data){
  80. $('#lbscore').html(data.score);
  81. $('#lbstudentscore').text(data.studentscore);
  82. $('#lbquestionnumber').text(data.questionnumber);
  83. $('#lbrightnumber').text(data.rightnumber);
  84. $('#lberrornumber').text(data.errornumber);
  85. $('#lbunquestion').text(data.unquestion);
  86. }
  87. </script>
  88. }