ShowPaper.cshtml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <div class="practice-contont">
  16. <div id="questionContent">
  17. </div>
  18. </div>
  19. <div class="practice-button">
  20. @Html.Button(new ButtonOptions() { ID = "btnClose", Text = "关闭页面" })
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. @section scripts{
  26. <script type="text/javascript" src="~/Scripts/Examinee/jquery-jtemplates_uncompressed.js"></script>
  27. <script type="text/javascript" src="~/Scripts/Business/student.parctite.js"></script>
  28. <script type="text/javascript" src="~/Scripts/NewEMIS.Comm.js"></script>
  29. <script type="text/javascript" src="~/Scripts/Business/paperBuilder.js"></script>
  30. <script type="text/jscript">
  31. var paperInfo = @Html.Raw(ViewBag.questions);
  32. $(function () {
  33. $("#questionContent").setTemplateURL('@Url.Content("~/Scripts/Business/ViewPaperTemplate.htm")?v=1111.111ss', null, { filter_data: false });
  34. $("#questionContent").processTemplate(paperInfo);
  35. //showScore(paperInfo.data);
  36. $('input').attr("disabled", true);
  37. $('.easyui-panel').panel('resize');
  38. $('#btnClose').click(function(){
  39. location.href = "@Url.Content("~/PaperSetting/PaperList")";
  40. })
  41. // $('body').removeClass('panel-noscroll');
  42. })
  43. function showScore(data){
  44. $('#lbscore').html(data.score);
  45. $('#lbstudentscore').text(data.studentscore);
  46. $('#lbquestionnumber').text(data.questionnumber);
  47. $('#lbrightnumber').text(data.rightnumber);
  48. $('#lberrornumber').text(data.errornumber);
  49. $('#lbunquestion').text(data.unquestion);
  50. }
  51. </script>
  52. }