255 lines
10 KiB
Plaintext
255 lines
10 KiB
Plaintext
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<%@ page language="java" pageEncoding="utf-8" %>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%String serverPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();%>
|
|
<%String contextPath = request.getContextPath();%>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
|
|
|
|
});
|
|
|
|
function updateSaveFun() {
|
|
console.log(11111)
|
|
|
|
var paramString ="";
|
|
// paramString = "liquidWasteType=" + $('#typeCondition').val()
|
|
paramString = "status=${disposeQuery.status}&likeString=${disposeQuery.likeString}&liquidWasteType=${disposeQuery.liquidWasteType}";
|
|
/*// var status = $('#statusCondition').val();
|
|
var status = 1;
|
|
if (status != null) {
|
|
paramString =paramString+ "&status=" + status
|
|
}
|
|
// var likeString = "$('#likeString').val();"
|
|
var likeString = "";
|
|
if (likeString != null && likeString != '') {
|
|
paramString = paramString+"&likeString=" + likeString
|
|
}*/
|
|
|
|
console.log(paramString,${disposeQuery.liquidWasteType})
|
|
window.open(ext.contextPath + "/whp/liquidWasteDispose/WhpLiquidWasteDispose/export.do?" + paramString);
|
|
|
|
|
|
|
|
/*$.ajax({
|
|
url: ext.contextPath + '/whp/liquidWasteDispose/WhpLiquidWasteDispose/export.do?' + paramString,
|
|
type: 'POST',
|
|
|
|
async: false,
|
|
cache: false,
|
|
contentType: false,
|
|
processData: false,
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
console.log(data)
|
|
if (data.code == 1) {
|
|
$("#table").bootstrapTable('refresh');
|
|
closeModal('subModal');
|
|
} else {
|
|
showAlert('d', '保存失败!' + data.msg);
|
|
}
|
|
},
|
|
error: function (data) {
|
|
}
|
|
});*/
|
|
|
|
}
|
|
|
|
function printSaveFun(myDiv) {
|
|
$('#printContext').show();
|
|
var printHtml = document.getElementById(myDiv).innerHTML;
|
|
var wind = window.open("", "newwin", "width=1650,height=565,top=80,left=80,toolbar=no,scrollbars=yes,menubar=no");
|
|
var link = document.createElement('link');
|
|
link.type = 'text/css';
|
|
link.rel = 'stylesheet';
|
|
link.href = '<%=serverPath%><%=contextPath%>/plugins/bootstrap-ext/dist/bootstrap.min.css';
|
|
wind.document.head.appendChild(link);
|
|
wind.document.body.innerHTML = printHtml;
|
|
wind.print(/*{scale:0.5}*/);
|
|
wind.close();
|
|
// $('#printContext').hide();
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
<div class="modal fade" id="subModal">
|
|
<div class="modal-dialog" style="width: 85%">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title">处置单预览</h4>
|
|
</div>
|
|
<div id="printContext">
|
|
|
|
<style type="text/css">
|
|
.select2-container .select2-selection--single {
|
|
height: 34px;
|
|
line-height: 34px;
|
|
}
|
|
|
|
.select2-selection__arrow {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.foot {
|
|
display: flex;
|
|
padding-left: 50px;
|
|
}
|
|
|
|
/*.layout{*/
|
|
/* display: flex;*/
|
|
/* padding-left: 15px;*/
|
|
/*}*/
|
|
.form-horizontal {
|
|
padding-top: 20px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single {
|
|
border: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
|
|
border: none;
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
|
border: none;
|
|
border-style: unset
|
|
}
|
|
|
|
.select2-container--default.select2-container--disabled .select2-selection--single {
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.right {
|
|
margin-left: 50px;
|
|
}
|
|
|
|
.sampling {
|
|
margin: 0 auto;
|
|
border-collapse: collapse;
|
|
/* border: 0.5px solid black; */
|
|
width: 1000px;
|
|
}
|
|
|
|
.sampling th {
|
|
text-align: center;
|
|
font-size: 30px;
|
|
line-height: 80px;
|
|
}
|
|
|
|
.sampling td {
|
|
border: 0.5px solid black;
|
|
line-height: 2em;
|
|
word-wrap: break-word;
|
|
word-break: break-all;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.sampling .content {
|
|
text-align: center;
|
|
}
|
|
|
|
.sampling .title {
|
|
font-weight: bold;
|
|
}
|
|
.content .title{
|
|
|
|
|
|
}
|
|
|
|
.sampling .indent {
|
|
/* text-indent: 1em; */
|
|
padding: 2px 5px;
|
|
}
|
|
</style>
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
<table>
|
|
<table class="sampling" style="width:1050px;">
|
|
<tr>
|
|
<th colspan="16">
|
|
白龙港污水处理厂化验室危废储存记录表
|
|
</th>
|
|
</tr>
|
|
<tr>
|
|
<td style="border: 0 solid white" colspan="8">
|
|
废物代码及名称:${liquidWasteTypeNameLIN} </td>
|
|
<%-- liquidWasteTypeName--%>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="8" class="indent" style="text-align: center">入库情况</td>
|
|
|
|
<td colspan="8" class="indent" style="text-align: center">转移情况</td>
|
|
</tr>
|
|
|
|
<tr class="content title">
|
|
<td colspan="1">入库日期</td>
|
|
<td colspan="1">废物来源</td>
|
|
<td colspan="1">数量</td>
|
|
<td colspan="1">容器材质</td>
|
|
<td colspan="1">容量</td>
|
|
<td colspan="1">废物存<br/>放位置</td>
|
|
<td colspan="1">废物运<br/>送经办</td>
|
|
<td colspan="1">废物贮<br/>存经办</td>
|
|
<td colspan="1">转移日期</td>
|
|
<td colspan="1">数量</td>
|
|
<td colspan="2">废物去向</td>
|
|
<td colspan="2">废物贮<br/>存经办</td>
|
|
<td colspan="2">废物转<br/>移经办</td>
|
|
</tr>
|
|
|
|
|
|
<c:forEach items="${bean}" var="item">
|
|
<tr>
|
|
<td class="content" colspan="1" width="8%">${fn:substring(item.inputTime,0,10)}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.source}</td>
|
|
<td class="content" colspan="1" width="5%">${item.number}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.containerType}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.capacity}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.location}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.transportUserName}</td>
|
|
<td class="content" colspan="1" width="6.25%">${item.repositionUserName}</td>
|
|
<td class="content" colspan="1" width="8%">${fn:substring(item.ouputDate,0,10)}</td>
|
|
<td class="content" colspan="1" width="5%">${item.disposeNumber}</td>
|
|
<td class="content" colspan="2" width="12.5%">${item.outputLocation}</td>
|
|
<td class="content" colspan="2" width="8%">${item.outputRepositionUserName}</td>
|
|
<td class="content" colspan="2" width="6.25%">${item.outputUserName}</td>
|
|
</tr>
|
|
</c:forEach>
|
|
|
|
|
|
</table>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default " data-dismiss="modal">关闭
|
|
</button>
|
|
<button type="button" class="btn btn-primary " style="margin-left: 10px"
|
|
onclick="updateSaveFun()">保存文件
|
|
</button>
|
|
<button type="button" class="btn btn-primary " style="margin-left: 10px"
|
|
onclick="printSaveFun('printContext')">打印
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|
|
|
|
|
|
|
|
|