1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>单位年度计划供水表列表</title>
- <!--框架必需start-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="${ctx}/qui/libs/js/framework.js"></script>
- <link href="${ctx}/qui/libs/css/import_basic.css" rel="stylesheet"
- type="text/css" />
- <link rel="stylesheet" type="text/css" id="skin" prePath="${ctx}/qui/" />
- <link rel="stylesheet" type="text/css" id="customSkin" />
- <!--框架必需end-->
- <style media=print type="text/css">
- .noprint {
- visibility: hidden
- }
- </style>
- </head>
- <script type="text/javascript" language="JavaScript">
- function doPrint() {
- /// 隐藏不需要打印的内容
- try
- {
- PageSetup_Null();
- }
- catch(e)
- {
- var errorMsg = e.message+"\r"+"请设置:IE选项->安全->Internet->"+"ActiveX控件和插件"+"\r"+"对未标记为可安全执行脚本的ActiveX的控件初始化并执行脚本->允许/提示";
- alert(errorMsg);
- return;
- }
- window.print();
- }
- var HKEY_Root,HKEY_Path,HKEY_Key;
- HKEY_Root="HKEY_CURRENT_USER";
- HKEY_Path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
- //设置网页打印的页眉页脚为空
- function PageSetup_Null()
- {
- var Wsh=new ActiveXObject("WScript.Shell");
- HKEY_Key="header";
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
- HKEY_Key="footer";
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
- HKEY_Key="margin_left"
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0"); //键值设定--左边边界
- HKEY_Key="margin_top"
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0"); //键值设定--上边边界
- HKEY_Key="margin_right"
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0"); //键值设定--右边边界
- HKEY_Key="margin_bottom"
- Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0"); //键值设定--下边边界
- }
- </script>
- <body>
- <div class="noprint"
- style="padding-top: 10px; padding-right: 200px; text-align: right;">
- <input type="button" value="打印" onclick="doPrint();">
- </div>
- <table class="tableStyle" mode="list"
- style="width: 1200px; font-size: 16px;" align="center">
- <tr>
- <td>单位名称</td>
- <td>单位地址</td>
- <td>邮编</td>
- <td>水表户号</td>
- <td>年度</td>
- <td style="width: 20px;">上一年实际用水量(m³)</td>
- <td>一季度</td>
- <td>二季度</td>
- <td>三季度</td>
- <td>四季度</td>
- <td>全年</td>
- </tr>
- <#list plan as p>
- <tr>
- <td>${p.orgName!''}</td>
- <td>${p.orgAddress!'' }</td>
- <td>${p.orgEmail!'' }</td>
- <td>${p.orgMeterNumber!'' }</td>
- <td>${p.year!'' }</td>
- <td>${p.priYearUseWater!'0' }</td>
- <td>${p.firstQuarterReply!'0' }</td>
- <td>${p.secondQuarterReply!'0' }</td>
- <td>${p.thirdQuarterReply!'0' }</td>
- <td>${p.fourthQuarterReply!'0' }</td>
- <td>${p.replyOfWater!'0' }</td>
- </tr>
- </#list>
- </table>
- </body>
- </html>
|