123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <!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>关于征收2014年上半年超计划用水加价水费的通知</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-->
- <!--打印插件-->
- <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 quarter=${quarter!''};
- var length=${listLength!''};
- var pay_time=${payTime!''};
- var p_year=${printYear!''};
- var p_month=${printMonth!''};
- var p_day=${printDay!''};
- var print_time=p_year+"年"+p_month+"月"+p_day+"日";
- pay_time=getYear(pay_time);
- length=parseInt(length);
- function getYear(year){
- year=year+"";
- var time;
- var y=year.substring(0,4);
- var m=year.substring(4,6);
- var d=year.substring(6,8);
- time=y+"-"+m+"-"+d;
- return time;
- }
- function createPrintPage(orgName,planUseWater1,actualWater1,exceedUseWater1,amountReceivable1,
- planUseWater2,actualWater2,exceedUseWater2,amountReceivable2,totalAmount,meterNumber) {
-
- LODOP.NewPage(); //强制分页
- var pic="<img border='0' src='${ctx}/image/notices/add_price.png'>";
- if(quarter=='2'){
- pic="<img border='0' src='${ctx}/image/notices/add_price_second.png'>";
- }
- LODOP.ADD_PRINT_SETUP_BKIMG(pic);
- LODOP.SET_SHOW_MODE("BKIMG_IN_PREVIEW",true); //true代表打印预览时背景图可见
- LODOP.ADD_PRINT_TEXT(253,104,682,25,orgName);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.ADD_PRINT_TEXT(544,196,128,25,planUseWater1);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(544,323,128,25,actualWater1);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(544,449,128,25,exceedUseWater1);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(544,574,128,25,amountReceivable1);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(574,197,128,25,planUseWater2);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(574,323,128,25,actualWater2);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(574,448,128,25,exceedUseWater2);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(574,574,128,25,amountReceivable2);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(608,306,132,25,totalAmount);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(608,512,184,25,pay_time);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
- LODOP.ADD_PRINT_TEXT(421,239,546,60,meterNumber);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.ADD_PRINT_TEXT(970,534,158,25,print_time);
- LODOP.SET_PRINT_STYLEA(0,"FontName","仿宋");
- LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
- LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
- }
- function printAddWaterNotice(){
- LODOP.PRINT_INITA(-17,-12,793,1061,"add_water_notice"); //打印初始化
- LODOP.SET_PRINT_PAGESIZE(1,"210mm","280.8mm","");//设置纸张高度
- for(var i=1;i<=length;i++){
-
- var orgName=$("#div_"+i).children("input[name='orgName']").val();
- var planUseWater1=$("#div_"+i).children("input[name='planUseWater1']").val();
- var actualWater1=$("#div_"+i).children("input[name='actualWater1']").val();
- var exceedUseWater1=$("#div_"+i).children("input[name='exceedUseWater1']").val();
- var amountReceivable1=$("#div_"+i).children("input[name='amountReceivable1']").val();
- var planUseWater2=$("#div_"+i).children("input[name='planUseWater2']").val();
- var actualWater2=$("#div_"+i).children("input[name='actualWater2']").val();
- var exceedUseWater2=$("#div_"+i).children("input[name='exceedUseWater2']").val();
- var amountReceivable2=$("#div_"+i).children("input[name='amountReceivable2']").val();
- var meterNumber=$("#div_"+i).children("input[name='meterNumber']").val();
-
- var totalAmount=Number(amountReceivable1)+Number(amountReceivable2);
- if(isNaN(totalAmount)){
- totalAmount="";
- }
- if(!isNaN(totalAmount)&&typeof(amountReceivable2)=="undefined"){
- totalAmount=amountReceivable1;
- }
- if(!isNaN(totalAmount)&&typeof(amountReceivable1)=="undefined"){
- totalAmount=amountReceivable2;
- }
-
- if(typeof(amountReceivable1)=="undefined"){
- planUseWater1="-";
- actualWater1="-";
- exceedUseWater1="-";
- amountReceivable1="-";
- }
- if(typeof(amountReceivable2)=="undefined"){
- planUseWater2="-";
- actualWater2="-";
- exceedUseWater2="-";
- amountReceivable2="-";
- }
-
- createPrintPage(orgName,planUseWater1,actualWater1,exceedUseWater1,amountReceivable1,
- planUseWater2,actualWater2,exceedUseWater2,amountReceivable2,totalAmount,meterNumber);
- }
- LODOP.PREVIEW(); //打印预览
- window.close();
- top.Dialog.close(); //关闭窗口
- }
- window.onload=printAddWaterNotice;
- </script>
- </head>
- <body>
- <#if notices??> <#list notices as u> <#if u??> <#list u as us>
- <div id="div_${us_index+1 }">
- <input name="orgName" type="hidden" value="${us.orgName!''}" /> <input
- name="meterNumber" type="hidden" value="${us.meterNumber!''}" />
- <#if us.halfYearMap??> <#assign up=us.halfYearMap> <#list up?keys as
- k> <input name="${k}" type="hidden" value="${up[k]}" /> </#list>
- </#if>
- </div>
- </#list> </#if> </#list> </#if>
- </body>
- </html>
|