1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>南宁市城市计划供水节约用水办公室--季度用水计划调整受理通知书</title>
- <!--打印插件-->
- <script type="text/javascript" src="${ctx}/js/LodopFuncs.js"></script>
- <object id="LODOP_OB"
- classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0
- style="position: absolute; left: 0px; top: -10px;"></object>
- <object id="LODOP_EM" type="application/x-print-lodop" width=0 height=0
- style="position: absolute; left: 0px; top: -10px;"></object>
- <!--打印end-->
- <script type="text/javascript" src="${ctx}/qui/libs/js/jquery.js"></script>
- <script type="text/javascript">
- var LODOP; //声明为全局变量
- LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
- var myDate = new Date();
- var year=myDate.getFullYear();
- var month=myDate.getMonth();
- var day=myDate.getDate();
- month=parseInt(month);
- month=month+1;
- var length=${listLength!''}
- length=parseInt(length);
- function createPrintPage(orgName,contacts,contactNum,printDate,user,meterNumber) {
- LODOP.NewPage();
- LODOP.ADD_PRINT_SETUP_BKIMG("<img src='${ctx}/image/notices/season_water.jpg'>");
- LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",true);
-
- LODOP.ADD_PRINT_TEXTA("text01",285,103,593,25,orgName);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.ADD_PRINT_TEXTA("text02",502,249,375,25,contacts);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXTA("text03",532,249,375,25,contactNum);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_BARCODE(13,34,360,147,"Code39",printDate);
- LODOP.SET_PRINT_STYLEA(0,"Color","#0000FF");
- LODOP.ADD_PRINT_TEXTA("text06",625,249,375,25,user);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXTA("text07",697,386,160,125,meterNumber);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- }
- function printReplyNotice(){
- LODOP.PRINT_INITA(-17,-13,793,1061,"reply_notice");
- LODOP.SET_PRINT_PAGESIZE(1,"212mm","281mm","");//设置纸张高度
- //alert(length);
- for(var i=1;i<=length;i++){
- var orgName=$("#div_"+i).children("input[name='orgName']").val();
- var contacts=$("#div_"+i).children("input[name='contacts']").val();
- var contactNum=$("#div_"+i).children("input[name='contactNum']").val();
- var printDate=$("#div_"+i).children("input[name='id1']").val();
- var user=$("#div_"+i).children("input[name='user']").val();
- var meterNumber=$("#div_"+i).children("input[name='meterNumber']").val();
- //alert(meterNumber);
- createPrintPage(orgName,contacts,contactNum,printDate,user,meterNumber);
- }
- LODOP.PREVIEW();
- window.close();
- }
- window.onload=printReplyNotice;
- </script>
- </head>
- <body>
- <#assign size=1> <#list unit as u>
- <div id="div_${u_index+1 }">
- <input name="orgName" type="hidden" value="${u.orgName}" /> <input
- name="contacts" type="hidden" value="${u.contacts}" /> <input
- name="contactNum" type="hidden" value="${u.contactNum}" /> <input
- name="id1" type="hidden" value="${u.id}" /> <input name="user"
- type="hidden" value="${u.printUser}" /> <input name="meterNumber"
- type="hidden" value="${u.meterNum}" />
- </div>
- <#assign size=size+1> </#list>
- </body>
- </html>
|