TZPConsumerComplain.cshtml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. 
  2. @{
  3. Layout = null;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta name="viewport" content="width=device-width" />
  9. <title> 消费者投诉台账</title>
  10. <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
  11. <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
  12. <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
  13. <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
  14. <script src="~/Content/js/jquery.min.js"></script>
  15. <script src="~/Content/js/bootstrap.min.js"></script>
  16. <script src="~/easyui/jquery.easyui.min.js"></script>
  17. <script src="~/easyui/jquery.easyui.mobile.js"></script>
  18. <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
  19. <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
  20. <script src="~/Content/js/plugins/layer/layer.min.js"></script>
  21. <script src="~/js/Utils.js"></script>
  22. <script src="~/Content/js/FileSaver.js"></script>
  23. <link href="~/Content/css/Styles.css" rel="stylesheet" />
  24. @*<script src="~/Content/js/ExportExcel.js"></script>*@
  25. <script type="text/javascript" language="javascript">
  26. //self.moveTo(0,0);
  27. //self.resizeTo(screen.availWidth,screen.availHeight);
  28. function f_Close()
  29. {
  30. window.close();
  31. }
  32. //$(function () {
  33. // $('#dgTable').datagrid({
  34. // url:'/Reports/GetRptPMarketWrntDueExpire?WhereSql='+$('#hid_WhereSql').val()
  35. // })
  36. //})
  37. function expToExcel() {
  38. var content = $("#tblPrint").html();
  39. var blob = new Blob([content], { type: "text/plain;charset=utf-8" });
  40. saveAs(blob, " 消费者投诉台账.xls");
  41. }
  42. </script>
  43. <!--media=print 这个属性可以在打印时有效-->
  44. <style type="text/css" media="print">
  45. .Noprint {
  46. display: none;
  47. }
  48. .PageNext {
  49. page-break-after: always;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. @*<input type="hidden" id="hid_WhereSql" value="@ViewBag.Hid_WhereSql"/>*@
  55. <center class="Noprint" id="PrintCon" >
  56. <p style="display:@ViewBag.PrintVisible">
  57. <input type="button" value="打印" onclick="javascript:window.print();" class="but5" />
  58. <input type="button" value="导入到Excel" onclick="expToExcel()" class="but5" />
  59. </p>
  60. <hr align="center" width="90%" size="1" noshade="noshade" / >
  61. </center>
  62. <div id="tblPrint">
  63. <table align="center" id="tbl12" cellpadding="1" cellspacing="1" style="WIDTH: 880px; HEIGHT: auto ; border-collapse:collapse;">
  64. <tr>
  65. <td colspan="13" style="text-align: center"><strong><span style="font-size: 12pt"> 消费者投诉台账 </span></strong></td>
  66. </tr>
  67. <tr>
  68. <td colspan="2" style="width: 10% ; height: 14px; text-align: right;"><strong>单位:</strong></td>
  69. <td colspan="5" style="width: 50%;" id="TD1"> @ViewBag.MarketName</td>
  70. <td colspan="2" style="text-align: right; width: 10%;"><strong>填报人:</strong></td>
  71. <td colspan="4" style="width:30%" id="tdtbren"></td>
  72. </tr>
  73. </table>
  74. <table id="tblPrint" border="1" align="center" cellpadding="1" cellspacing="1" style="WIDTH: 880px; HEIGHT: auto ; border-collapse:collapse;">
  75. <tr>
  76. <td style="width: 68px; text-align: center;"><strong>日期</strong></td>
  77. <td style="width: 100px; text-align: center;"><strong>被投诉经营户</strong></td>
  78. <td style="width: 81px; text-align: center;"><strong>摊位号</strong></td>
  79. <td style="width: 139px; text-align: center;"><strong>投诉事项</strong></td>
  80. <td style="width: 114px; text-align: center;"><strong>处理结果</strong></td>
  81. <td style="width: 91px; text-align: center;"><strong>客户签字</strong></td>
  82. <td style="width: 95px; text-align: center;"><strong>联系电话</strong></td>
  83. <td style="width: 86px; text-align: center;"><strong>经营户签字</strong></td>
  84. <td style="width: 92px; text-align: center;"><strong>管理员签字</strong></td>
  85. </tr>
  86. @Html.Raw(ViewBag.TableMsg)
  87. </table>
  88. <br />
  89. <br />
  90. <br />
  91. <br />
  92. <br />
  93. <br />
  94. <br />
  95. <br />
  96. </div>
  97. </body>
  98. </html>