Print.aspx 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <%@ Page Language="C#" Debug=true EnableEventValidation="false" AutoEventWireup="true" CodeFile="Print.aspx.cs" Inherits="Print" %>
  2. <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head runat="server">
  6. <title></title>
  7. <script language="javascript">
  8. function preview() {
  9. bdhtml = window.document.body.innerHTML;
  10. sprnstr = "<!--startprint-->";
  11. eprnstr = "<!--endprint-->";
  12. prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
  13. prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
  14. window.document.body.innerHTML = prnhtml;
  15. window.print();
  16. //prnform.htext.value=prnhtml;
  17. //prnform.submit();
  18. //alert(prnhtml);
  19. }
  20. </script>
  21. <style type="text/css">
  22. table {
  23. font-size: 14px;
  24. color: #063E7B;
  25. }
  26. .Input3 {
  27. font-family: "宋体";
  28. font-size: 9pt;
  29. color: #0066CC;
  30. text-decoration: none;
  31. border-top-width: 1px;
  32. border-right-width: 1px;
  33. border-bottom-width: 1px;
  34. border-left-width: 1px;
  35. border-top-style: solid;
  36. border-right-style: solid;
  37. border-bottom-style: solid;
  38. border-left-style: solid;
  39. border-top-color: #FFFFFF;
  40. border-right-color: #FFFFFF;
  41. border-bottom-color: #0066CC;
  42. border-left-color: #FFFFFF;
  43. }
  44. input {
  45. background-color: #EEFAFF;
  46. border-top-color: #C6DCFB;
  47. border-right-color: #C6DCFB;
  48. border-bottom-color: #C6DCFB;
  49. border-left-color: #C6DCFB;
  50. border-top-style: solid;
  51. border-right-style: double;
  52. border-bottom-style: double;
  53. border-left-style: solid;
  54. }
  55. Select {
  56. font-family: "Tahoma", "宋体";
  57. font-size: 9pt;
  58. color: #0066cc;
  59. border: 1px #c8e4ff solid;
  60. background-color: #e8f4ff;
  61. font-style: normal
  62. }
  63. #XQ
  64. {
  65. width: 148px;
  66. }
  67. #JC
  68. {
  69. width: 132px;
  70. }
  71. textarea{
  72. font-family: "Tahoma", "宋体";
  73. font-size: 9pt;
  74. font-color:#0066cc;
  75. color: #0066cc;
  76. background-color: #ffffff;
  77. font-style: normal;
  78. border-top: 1px solid #93BEE2;
  79. border-right: 1px solid #93BEE2;
  80. border-bottom: 1px solid #93BEE2;
  81. border-left: 1px solid #93BEE2;
  82. }
  83. #WebBrowser
  84. {
  85. height: 1px;
  86. width: 9px;
  87. }
  88. </style>
  89. </head>
  90. <body>
  91. <form id="form1" runat="server">
  92. <div>
  93. <div align="center">
  94. <OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2>&nbsp;</OBJECT>
  95. <input type="button" name="print" value="预览并打印" onclick="preview()">
  96. <input onclick="document.all.WebBrowser.ExecWB(7,1)" type="button" value="打印预览" />
  97. <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="导出为WORD文档" />
  98. <!--startprint-->
  99. <div style="margin: 0 auto;" id="mainContent">
  100. <div class=WordSection1>
  101. <p align=center style='text-align:center'><b style='mso-bidi-font-weight:normal'><span style='font-size:14.0pt;font-family:黑体'>教学督导记录</span></b></p>
  102. <table align="center" border=1 cellspacing=0 cellpadding=0>
  103. <tr height="30">
  104. <td width="110"><p style='text-align:center'>姓名(督导)</p></td>
  105. <td width="160"><asp:Literal ID="DDXM" runat="server"></asp:Literal></td>
  106. <td width="110"><p style='text-align:center'>督导时间</p></td>
  107. <td width="160" colspan=2><asp:Literal ID="ZJ" runat="server"></asp:Literal></td>
  108. <td width="110"><p style='text-align:center'>督导地</p></td>
  109. <td width="150" colspan=2><asp:Literal ID="DD" runat="server"></asp:Literal></td>
  110. </tr>
  111. <tr height="30">
  112. <td width="110"><p style='text-align:center'>教师姓名</p></td>
  113. <td width="160"><asp:Literal ID="JSXM" runat="server"></asp:Literal></td>
  114. <td width="110"><p style='text-align:center'>授课班级</p></td>
  115. <td width="160" colspan=2><asp:Literal ID="BJ" runat="server"></asp:Literal></td>
  116. <td width="110"><p style='text-align:center'>课程名称</p></td>
  117. <td width="150" colspan=2><asp:Literal ID="KM" runat="server"></asp:Literal></td>
  118. </tr>
  119. <tr height="30">
  120. <td width="110"><p style='text-align:center'>所在部门</p>
  121. </td>
  122. <td width="110"> <asp:Literal ID="XB" runat="server"></asp:Literal></td>
  123. <td width="80"><p style='text-align:center'>星期<asp:Literal ID="XQ" runat="server"></asp:Literal></p></td>
  124. <td width="80"><p style='text-align:center'>节次</p></td>
  125. <td width="110"><asp:Literal ID="JC" runat="server"></asp:Literal></td>
  126. <td width="80"><p style='text-align:center'>评分</p></td>
  127. <td width="70"><asp:Literal ID="PF" runat="server"></asp:Literal></td>
  128. </tr>
  129. <tr height="250">
  130. <td width="100%" colspan=8 align="left" valign="top"><p ><span style='font-size:14px'><b>督导情况记录</b></span></p></td>
  131. </tr>
  132. <tr height="30">
  133. <td colspan=2 align="left" valign="middle" ><b>督导签名:</b><asp:Literal ID="DDXM1" runat="server"></asp:Literal></td>
  134. <td colspan=6 align="right"><asp:Literal ID="ZJ1" runat="server"></asp:Literal></td>
  135. </tr>
  136. <tr>
  137. <tr height="180">
  138. <td width="100%" colspan=8 align="left" valign="top"><p><span style='font-size:10.5pt'><b>督导建议和意见:</b></span><br />
  139. <asp:Literal ID="PJ" runat="server"></asp:Literal></p>
  140. </td>
  141. </tr>
  142. <tr height="30">
  143. <td colspan=2 align="left" valign=督导签名:</b><asp:Literal ID="DDXM2" runat="server"></asp:Literal></td>
  144. <td colspan=6 align="right"> <asp:Literal ID="ZJ2" runat="server"></asp:Literal></td>
  145. </tr>
  146. <tr height="10">
  147. <td width="100%" colspan=8 style="border-bottom-style: inset; border-bottom-width: 1px; border-bottom-color: #ECEFF0" >裁:裁</td>
  148. </tr>
  149. <tr height="10">
  150. <td width="100%" colspan=8>&nbsp;</td>
  151. </tr>
  152. <tr height="180">
  153. <td width="100%" colspan=8 align="left" valign="top"><p ><span style='font-size:14px'><b>督导建议和意见(此栏反馈给督导对象):见(此栏反馈给督导对象):</b></span></p>
  154. <asp:Literal ID="Literal3" runat="server"></asp:Literal></asp:Literal></td>
  155. </tr>
  156. <tr height="30">
  157. <td colspan=2 align="left" valign="middle" ><b>督导签名:</b><asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
  158. <td colspan=6 align="right">年&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 日&nbsp;&nbsp;&nbsp;&nbsp;</td>
  159. </tr>
  160. </table>
  161. </div>
  162. </div>
  163. <!--endprint-->
  164. </div>
  165. </form>
  166. </body>
  167. </html>