You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

140 lines
4.1 KiB

  1. @{
  2. Layout = null;
  3. }
  4. @model Learun.Application.TwoDevelopment.EducationalAdministration.StuInfoFreshEntity
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  10. <meta name="renderer" content="webkit" />
  11. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
  12. <meta name="format-detection" content="telephone=no" />
  13. <title>学期成绩表</title>
  14. <meta name="keywords" content="学期成绩表" />
  15. <meta name="description" content="学期成绩表" />
  16. <script src="~/Content/js/jquery.js"></script>
  17. <script src="~/Content/Lodop/LodopFuncs.js"></script>
  18. <style id="style1">
  19. body,
  20. html {
  21. font-size: 13px;
  22. font-family: "微软雅黑";
  23. color: #333;
  24. overflow-x: hidden;
  25. }
  26. table {
  27. border-collapse: collapse;
  28. table-layout: fixed;
  29. }
  30. .title {
  31. font-size: 24px;
  32. text-align: center;
  33. }
  34. .table {
  35. width: 100%;
  36. font-size: 14px;
  37. border: 1px solid #000;
  38. margin-top: 10px;
  39. }
  40. .table td {
  41. border-top: 1px solid #000;
  42. border-left: 1px solid #000;
  43. padding: 8px 6px;
  44. line-height: 26px;
  45. width: 16.666667%;
  46. }
  47. .printTxt {
  48. font-size: 14px;
  49. line-height: 26px;
  50. }
  51. .btn {
  52. width: 300px;
  53. height: 40px;
  54. background: #7d7dec;
  55. text-align: center;
  56. line-height: 40px;
  57. border-radius: 4px;
  58. margin: 30px auto;
  59. color: #fff;
  60. cursor: pointer;
  61. }
  62. </style>
  63. </head>
  64. <body>
  65. <!-- / warpper -->
  66. <div class="printBox" style="overflow: hidden;">
  67. <div class="title">塔里木职业技术学院</div>
  68. <div class="title">2019年新生报到流程单</div>
  69. <table cellspacing="0" cellpadding="0" class="table">
  70. <tr>
  71. <td style="width:17%">姓名</td>
  72. <td style="width:23%">@Model.StuName</td>
  73. <td style="width:10%">专业</td>
  74. <td style="width:50%">@Model.MajorName</td>
  75. </tr>
  76. <tr>
  77. <td>身份证号</td>
  78. <td colspan="3">@Model.IdentityCardNo</td>
  79. </tr>
  80. <tr style="height:170px;">
  81. <td>招生就业处</td>
  82. <td colspan="3"></td>
  83. </tr>
  84. <tr style="height:170px;">
  85. <td>财务处</td>
  86. <td colspan="3"></td>
  87. </tr>
  88. <tr style="height:170px;">
  89. <td>辅导员</td>
  90. <td colspan="3"></td>
  91. </tr>
  92. </table>
  93. <div class="printTxt">此表由辅导员收齐交回招生就业处</div>
  94. </div>
  95. <!-- / warpper -->
  96. <div class="btn">打印</div>
  97. </body>
  98. <script>
  99. var html = $('.printBox').html();
  100. $('.btn').click(function () {
  101. AddPrintContent(html);
  102. });
  103. function AddPrintContent(html) {
  104. var myHtml = myHtml = html;
  105. var strBodyStyle = "<style>" + document.getElementById("style1").innerHTML + "</style>";
  106. var strFormHtml = strBodyStyle + "<body>" + myHtml + "</body>";
  107. LODOP = getLodop();
  108. LODOP.PRINT_INIT("个人授课表");
  109. LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A5"); //1 竖向 2横向
  110. LODOP.SET_PRINT_MODE("PRINT_DUPLEX", 2);
  111. LODOP.SET_PRINT_MODE("PRINT_DEFAULTSOURCE", 7);
  112. LODOP.ADD_PRINT_HTM(20, 17, '132mm', '200mm', strFormHtml);
  113. //打印预览
  114. // LODOP.PRINT_DESIGN()
  115. var TaskID1 = LODOP.PREVIEW();
  116. // 直接打印
  117. // var TaskID1=LODOP.PRINT();
  118. };
  119. </script>
  120. </html>