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.

PrintView.cshtml 3.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. @{
  2. ViewBag.Title = "打印";
  3. Layout = "~/Views/Shared/_SimpleForm.cshtml";
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title></title>
  10. <style>
  11. table,
  12. tr,
  13. td {
  14. padding: 0;
  15. margin: 0;
  16. border-collapse: collapse;
  17. }
  18. table {
  19. /* table-layout: fixed; */
  20. font-size: 13px;
  21. }
  22. .tableBox {
  23. width: 90%;
  24. margin: 30px auto;
  25. }
  26. .table {
  27. width: 100%;
  28. border-top: 1px solid #000;
  29. border-right: 1px solid #000;
  30. }
  31. .table th{
  32. font-size: 18px;
  33. border-left: 1px solid #000;
  34. padding: 5px 0;
  35. }
  36. .table tr {
  37. border-bottom: 1px solid #000;
  38. }
  39. .table td {
  40. border-left: 1px solid #000;
  41. line-height: 20px;
  42. padding: 5px 5px;
  43. }
  44. .tableT {
  45. text-align: center;
  46. font-size: 18px;
  47. margin-bottom: 5px;
  48. letter-spacing: 4px;
  49. }
  50. .tableTxt1,.tableTxt2{
  51. border-left: 1px solid #000;
  52. border-right: 1px solid #000;
  53. border-bottom: 1px solid #000;
  54. padding: 5px 10px;
  55. }
  56. .tableTxt1:first-child{
  57. border-top: 1px solid #000;
  58. }
  59. .tableTxt2{
  60. text-align: right;
  61. }
  62. .btn {
  63. width: 100px;
  64. height: 34px;
  65. line-height: 34px;
  66. text-align: center;
  67. margin: 30px auto;
  68. border: 1px solid #ccc;
  69. cursor: pointer;
  70. border-radius: 4px;
  71. }
  72. </style>
  73. </head>
  74. <body>
  75. <div id="table">
  76. <div class="tableBox">
  77. <div class="tableT">北京金隅科技学校</div>
  78. <div class="tableT">收文处理专用纸(收文登记)</div>
  79. <table class="table">
  80. <tr>
  81. <td style="width: 80px;">收文</td>
  82. <td id="RReceiveUnit"></td>
  83. <td style="width: 80px;">字第</td>
  84. <td id="swz"></td>
  85. <td style="width: 80px;">号</td>
  86. <td>收文日期</td>
  87. <td id="RReceiveTime"></td>
  88. </tr>
  89. <tr>
  90. <td>来文</td>
  91. <td id="RSourceUnit"></td>
  92. <td>字第</td>
  93. <td id="lwz"></td>
  94. <td>号</td>
  95. <td></td>
  96. <td></td>
  97. </tr>
  98. <tr>
  99. <td>收文标题</td>
  100. <td colspan="6" id="RTitle"></td>
  101. </tr>
  102. <tr>
  103. <td>处理意见</td>
  104. <td colspan="6" id="yj1"></td>
  105. </tr>
  106. <tr>
  107. <td>领导批示</td>
  108. <td colspan="6">
  109. <div class="tableTxt1" id="yj2"></div>
  110. <div class="tableTxt2" id="xiaozhanginfo"></div>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td>部门处理情况</td>
  115. <td colspan="6" id="yj3">
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>经办人</td>
  120. <td colspan="4" id="SenderId"></td>
  121. <td>办结日期</td>
  122. <td id="overDate"></td>
  123. </tr>
  124. </table>
  125. </div>
  126. </div>
  127. <div class="btn">打印</div>
  128. <script src="js/jquery-1.4.4.min.js"></script>
  129. <script src="js/jquery.jqprint-0.3.js"></script>
  130. <script>
  131. $('.btn').click(function(){
  132. $('.tableBox').jqprint();
  133. })
  134. </script>
  135. </body>
  136. </html>
  137. @Html.AppendJsFile("/Areas/EducationalAdministration/Views/Sys_SendFile/PrintView.js")