Commit a4a1a933 authored by 徐州's avatar 徐州

Merge branch 'master' of http://gitlab.house365.com/xuzhou/njzsb

* 'master' of http://gitlab.house365.com/xuzhou/njzsb:
  enter 事件
  打印页面
parents a12b5213 a8b13977
......@@ -72,7 +72,7 @@
<body validform="true">
<div class="page_dialog">
<div class="inner6px">
<form name="myform1" method="post" enctype="multipart/form-data">
<form name="myform1" method="post" onsubmit="return false" enctype="multipart/form-data">
<s:token />
<input class="hflag" type="hidden" name="flag" value="${flag}">
<input class="hid" type="hidden" name="fstzsXm.id" value="${fstzsXm.id}">
......
<%@page language="java" pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common/header.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>打印非税通知书</title>
<%@include file="/common/jsLib.jsp"%>
<style>
.title {
font-family : Arial,Vernada,Tahoma, sans-serif;
font-size: 30px;
color : #00008B;
background-color : White; text-decoration:underline
}
.normal{
font-family : Arial,Vernada, Tahoma, Helvetica, sans-serif;
font-size: 14px;
color: #444444;
text-decoration: none;
line-height: 180%;
}
.normalsize{
font-size: 14.8px;
}
/*缴款人全称*/
.f1 {
left: 290px;
top: 220px;
font-size: 14.8px;
}
/*缴款人账号*/
.f2 {
left: 290px;
top: 270px;
font-size: 14.8px;
}
/*缴款人开户银行*/
.f3 {
left: 290px;
top: 310px;
font-size: 14.8px;
}
/*合计金额小写*/
.f4 {
left: 290px;
top: 355px;
font-size: 14.8px;
}
/*合计金额大写*/
.f5 {
left: 710px;
top: 355px;
font-size: 14.8px;
}
/*备注*/
.f6 {
left: 290px;
top: 405px;
font-size: 14.8px;
}
/*项目编码*/
.f7 {
left: 140px;
top: 490px;
font-size: 14.8px;
}
/*数量*/
.f8{
left: 630px;
top: 490px;
font-size: 14.8px;
}
/*金额*/
.f9 {
left: 810px;
top: 490px;
font-size: 14.8px;
}
#page1 DIV {
position: absolute
}
.only_for_print{display: none}
.table-line-td>td{
width: 240%;
display: inline-block;
border-top: none;
border-bottom: none;
border-right: none;
}
.add-table {
width: 90% !important;
float: right;
}
.add-table,
.add-table td {
border: 1px solid #d9d9d9;
border-collapse: collapse;
text-align: center;
}
.add-table td {
width: 15%;
}
.add-table th {
text-align: center;
padding: 0;
}
</style>
<title>Title</title>
<%@include file="/common/jsLib.jsp"%>
<script type="text/javascript" src="${ctx}/webResources/js/jatoolPrinter.js"></script>
<script>
.db-input {
display: none;
width: 80%;
$(function(){
doPrint()
parent.close_win('win_fstzs')
})
function doPrint() {
var numSz = 2
myDoc = {
settings: {
pageWidth: 2100,
pageHeight: 1400,
orientation: numSz},
documents: document,
marginIgnored:true,
dragDesigner: {viewSource:true},
settingsID: 'mydoc3',
classesReplacedWhenPrint: new Array('.only_for_print{display:block}'),
copyrights: "杰创软件拥有版权 www.jatools.com"
}
var jatoolsPrinter = document.getElementById("jatoolsPrinter")
jatoolsPrinter.printPreview(myDoc);
.db-num {
width: 100%;
height: 20px;
display: inline-block;
}
.add-title{
display: inline-block;
text-align: right;
width: 69px;
color: #000;
font-size: 12px;
font-weight: bold;
}
.fu-advice{
position: relative;
top: 20px;
}
.fu-advice,.fu-advice td{
border: none !important;
}
.ta-tb tbody{
display: inherit;
width: 100%;
}
</style>
</script>
</head>
<body validform="true">
<body>
<form name="myform" method="post">
<div class="page_dialog">
<div class="inner6px">
<form name="myform1" method="post" enctype="multipart/form-data">
<s:token />
<input class="hid" type="hidden" name="fstzsXm.id" value="${fstzsXm.id}">
<div class="cell" style="width: 100%">
<table width="100%" border="0" class="ta-tb">
<tr class="table-line-td">
<th width="15%">建设单位</th>
<td width="35%">
<input id="jsdw" name="fstzsXm.jsdwmc" style="width:96%;margin-top: 6px;" value="${fstzsXm.jsdwmc}" disabled/>
</td>
</tr>
<div class="cell" style="width: ${tableWidth}">
<table width="100%">
<tr>
<th width="15">工程项目名称</th>
<td width="35%">
<input id="gcxmmc" name="fstzsXm.gcxmmc" style="width:90%" value="${fstzsXm.gcxmmc}" disabled/>
</td>
<th width="15">缴款人手机号</th>
<td width="35%">
<input id="mobile" name="fstzsXm.mobile" style="width:90%" value="${fstzsXm.mobile}" disabled/>
</td>
</tr>
<tr>
<th width="15">缴款人账号</th>
<td width="35%">
<input id="zhanghao" name="fstzsXm.zhanghao" style="width:90%" value="${fstzsXm.zhanghao}" disabled/>
</td>
<th width="15">缴款人开户银行</th>
<td width="35%">
<input id="khh" name="fstzsXm.khh" style="width:90%" value="${fstzsXm.khh}" disabled/>
</td>
</tr>
<tr>
<th width="15">缴款方式</th>
<td width="35%">
<input style="width:90%" value="直接解缴" disabled/>
</td>
<th width="15">缴款人类型</th>
<td width="35%">
<input style="width:90%" value="单位" disabled/>
</td>
</tr>
<tr>
<th width="15">应缴总面积(平方米)</th>
<td width="35%">
<input id="csmj" name="fstzsXm.paymentItemPending.csmj" style="width:90%" value="${fstzsXm.paymentItemPending.csmj}" disabled/>
</td>
<th width="15">收费标准(元)</th>
<td width="35%">
<input style="width:90%" value="150" disabled/>
<td colspan="4" height="100px" style="text-align:center">
<a href="#" class="btn_01" onclick="doPrint()">打印预览<b></b></a>
<a href="#" class="btn_01" onclick="parent.close_win('win_paymentVoucher');">关闭<b></b></a>
</td>
</tr>
<tr>
<th width="15">征收单位名称</th>
<td width="35%">
<input id="zsdw" name="fstzsXm.kpsjgl.zsdw" style="width:90%" value="${fstzsXm.kpsjgl.zsdw}" disabled/>
</td>
<th width="15">征收单位编码</th>
<td width="35%">
<input id="zsdwbm" name="fstzsXm.kpsjgl.zsdwbm" style="width:90%" value="${fstzsXm.kpsjgl.zsdwbm}" disabled/>
</td>
</tr>
<tr>
<th width="15">区划码</th>
<td width="35%">
<input id="qhm" name="fstzsXm.kpsjgl.qhm" style="width:90%" value="${fstzsXm.kpsjgl.qhm}" disabled/>
</td>
<th width="15">收款人全称</th>
<td width="35%">
<input id="krqc" name="fstzsXm.kpsjgl.krqc" style="width:90%" value="${fstzsXm.kpsjgl.krqc}" disabled/>
</td>
</tr>
<tr>
<th width="15">收款人账号</th>
<td width="35%">
<input id="skrzh" name="fstzsXm.kpsjgl.skrzh" style="width:90%" value="${fstzsXm.kpsjgl.skrzh}" disabled/>
</td>
<th width="15">收款人开户行</th>
<td width="35%">
<input id="skrkhh" name="fstzsXm.kpsjgl.skrkhh" style="width:90%" value="${fstzsXm.kpsjgl.skrkhh}" disabled/>
</td>
</tr>
<tr>
<th width="15">项目编码</th>
<td width="35%">
<input id="xmbm" name="fstzsXm.kpsjgl.xmbm" style="width:90%" value="${fstzsXm.kpsjgl.xmbm}" disabled/>
</td>
<th width="15">收入项目名称</th>
<td width="35%">
<input id="srxmmc" name="fstzsXm.kpsjgl.srxmmc" style="width:90%" value="${fstzsXm.kpsjgl.srxmmc}" disabled/>
</td>
</tr>
<tr>
<th width="15">配套费应缴金额(元)</th>
<td width="35%">
<input id="yjje" name="fstzsXm.yjje" style="width:90%" value="${fstzsXm.yjje}" disabled/>
</td>
<th width="15">配套费应缴金额大写</th>
<td width="35%">
<input id="yjjedx" name="fstzsXm.yjjedx" style="width:90%" value="${fstzsXm.yjjedx}" disabled/>
</td>
</tr>
<tr class="table-line-td">
<th width="15">备注(限25字以内)</th>
<td width="35%">
<input id="beizhu" name="fstzsXm.beizhu" style="width:96%;margin-top: 6px;" value="${fstzsXm.beizhu}" disabled/>
</td>
</tr>
</table>
<div style="margin-top: 20px;">
<div class="add-title">配套费</div>
<table class="add-table">
<thead>
<tr>
<th>序号</th>
<th>缴款人</th>
<th>计量单位</th>
<th>收费标准</th>
<th>应缴面积</th>
<th>应缴金额</th>
</tr>
</thead>
<tbody class="add-tr">
<c:forEach items="${fstzsList}" var="result" varStatus="userStatus">
<tr class="">
<td class="line-one line-xh">${userStatus.count}</td>
<td class=" line-input"><span class="db-num db-num-text">${result.jkr}</span></td>
<td class="line-one"></td>
<td class="line-one">150</td>
<td class="line-one line-yjmj">${result.yjmj}</td>
<td class="line-input"><span class="db-num db-nums">${result.yjje}</span></td>
</tr>
</c:forEach>
</tbody>
<tr>
<td class="line-one">合计</td>
<td class="line-input"></td>
<td class="line-one"></td>
<td class="line-one"></td>
<td class="line-one yjmj-hj"></td>
<td class="line-one yjje-hj"></td>
</tr>
</table>
</div>
<table width="100%" border="0" class="fu-advice">
<tr >
<td width="0%" style="width: 0%"><div class="add-title">复核意见</div></td>
<td width="100%">
<textarea id="fhyj" name="fstzsXm.fhyj" style="width:96%;margin-top: 6px;" value="${fstzsXm.fhyj}"></textarea>
</td>
</tr>
<tr>
<td colspan="4" align="center" style="position: relative;top: 20px;">
<a href="###" class="btn_01" onclick="review(0);" >通过<b></b></a>&nbsp;
</div>
</div>
</form>
<a href="###" class="btn_01" onclick="review(1);" >退回<b></b></a>&nbsp;
</td>
</tr>
</table>
<div id="page1" class='only_for_print pagestyle' style='width:210mm;height:140mm;position:relative;'>
<img class='screen-only' src="${ctx}/images/img/cw.jpg" style="position:absolute;width:100%;height:100%"/>
<div id='f1' draggable='true'
class='f1'>缴款人全称
</div>
</form>
<div id='f2' draggable='true'
class='f2'>缴款人账号
</div>
<div id='f3' draggable='true'
class='f3'>缴款人开户银行
</div>
<div id='f4' draggable='true'
class='f4'>合计金额小写
</div>
<div id='f5' draggable='true'
class='f5'>合计金额大写
</div>
<div id='f6' draggable='true'
class='f6'>备注
</div>
<div id='f7' draggable='true'
class='f7'>项目编码
</div>
<div id='f8' draggable='true'
class='f8'>数量
</div>
<div id='f9' draggable='true'
class='f9'>金额
</div>
</div>
<script type="text/javascript">
$(function () {
//应缴金额
var nums = document.getElementsByClassName('db-nums')
var money = 0
for (var i = 0; i < nums.length; i++) {
money += Number($(nums[i]).text())
}
$('.yjje-hj').append(money)
//应缴面积
var numsje = document.getElementsByClassName('line-yjmj')
var mj = 0
for (var i = 0; i < numsje.length; i++) {
mj += Number($(numsje[i]).text())
}
$('.yjmj-hj').append(mj)
})
function review(flag) {
var id = $("input[name='fstzsXm.id']").val();
$.ajax({
async: false,
url: "${ctx}/jsp/fstzs/checkReviewFstzs.action?flag=" + flag,
type: 'post',
dataType: 'json',
async: false,
data: {
'fstzsXm.id':id,
flag:flag
},
error: function (data) {
$.messager.alert('错误', data.message);
},
success: function (data) {
if (data.result) {
document.myform1.action = "reviewFstzs.action?flag=" + flag;
document.myform1.submit();
} else {
$.messager.alert('错误', '验证失败,'+data.message);
return;
}
}
});
}
</script>
<OBJECT ID="jatoolsPrinter" CLASSID="CLSID:B43D3361-D075-4BE2-87FE-057188254255"
codebase="/njzsb/plugin/jatoolsPrinter.cab#version=8,6,0,0" width="0" height="0">
</OBJECT>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment