284 lines
11 KiB
Plaintext
284 lines
11 KiB
Plaintext
<%--<%String serverPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();%>--%>
|
||
<%--<%String contextPath = request.getContextPath();%>--%>
|
||
|
||
|
||
<!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();%>
|
||
<style type="text/css">
|
||
table.wTable {
|
||
margin-top: 15px;
|
||
/*border-collapse:collapse;*/
|
||
/*border:1px solid #aaa;*/
|
||
width: 100%;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
table.wTable th {
|
||
vertical-align: baseline;
|
||
padding: 5px 15px 5px 6px;
|
||
background-color: #3F3F3F;
|
||
border: 1px solid #3F3F3F;
|
||
text-align: left;
|
||
color: #fff;
|
||
}
|
||
|
||
table.wTable td {
|
||
vertical-align: text-top;
|
||
padding: 6px 15px 6px 6px;
|
||
border: 1px solid #aaa;
|
||
}
|
||
|
||
table.wTable tr:nth-child(odd) {
|
||
background-color: #F5F5F5;
|
||
}
|
||
|
||
table.wTable tr:nth-child(even) {
|
||
background-color: #fff;
|
||
}
|
||
|
||
</style>
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
|
||
|
||
});
|
||
|
||
function updateSaveFun() {
|
||
console.log(11111)
|
||
|
||
var paramString = ""
|
||
// paramString = "liquidWasteType=" + $('#typeCondition').val()
|
||
paramString = "liquidWasteType=" + "全部";
|
||
// var status = $('#statusCondition').val();
|
||
var status = 1;
|
||
if (status != null) {
|
||
paramString = "&status=" + status
|
||
}
|
||
// var likeString = "$('#likeString').val();"
|
||
var likeString = "";
|
||
if (likeString != null && likeString != '') {
|
||
paramString = "&likeString=" + likeString
|
||
}
|
||
// 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=1550,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();
|
||
wind.close();
|
||
*/
|
||
|
||
var win = window.open('', 'printwindow', "width=1550,height=565,top=80,left=80,toolbar=no,scrollbars=yes,menubar=no");
|
||
win.document.write('<html><head><link rel="stylesheet" type="text/css" href="<%=serverPath%><%=contextPath%>/plugins/bootstrap-ext/dist/bootstrap.min.css"></head><body>');
|
||
win.document.write($("#printContext").html());
|
||
win.document.write('</body></html>');
|
||
win.print();
|
||
win.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">
|
||
.main-header {
|
||
display: none;
|
||
}
|
||
|
||
/*.content-header{display:none;}*/
|
||
.main-footer {
|
||
display: none;
|
||
}
|
||
|
||
.select2-container .select2-selection--single {
|
||
height: 34px;
|
||
line-height: 34px;
|
||
}
|
||
|
||
/*.select2-selection__arrow{*/
|
||
/*margin-top:3px;*/
|
||
/*}*/
|
||
|
||
|
||
.sampling {
|
||
margin: 0 auto;
|
||
border-collapse: collapse;
|
||
/* border: 0.5px solid black; */
|
||
width: 1000px;
|
||
}
|
||
|
||
.sampling th {
|
||
text-align: center;
|
||
font-size: 32px;
|
||
line-height: 80px;
|
||
}
|
||
|
||
.sampling td {
|
||
border: 0.5px solid black;
|
||
line-height: 2em;
|
||
word-wrap: break-word;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.sampling .content {
|
||
text-align: center;
|
||
}
|
||
|
||
.sampling .title {
|
||
font-weight: bold;
|
||
}
|
||
|
||
.sampling .indent {
|
||
/* text-indent: 1em; */
|
||
padding: 2px 5px;
|
||
}
|
||
</style>
|
||
|
||
|
||
<div class="modal-body">
|
||
<%-- --%>
|
||
<h2 style="text-align: center">${data.header}</h2>
|
||
<h3 style="text-align: center">采样单</h3>
|
||
<h4 style="text-align: right;padding-right: 8em">编号:${data.sn}</h4>
|
||
<table>
|
||
<table class="sampling">
|
||
<tr>
|
||
<td colspan="4" class="title">采样单编号</td>
|
||
<td colspan="4" class="indent">${bean.code}</td>
|
||
<td colspan="4" class="hidden" style="display: none;">${bean.id}</td>
|
||
<td colspan="4" class="title">采样类型</td>
|
||
<td colspan="4" class="indent">${bean.sampleTypeName}</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4" class="title">计划采样日期</td>
|
||
<td colspan="4" class="indent">${bean.date.substring(0,10)}</td>
|
||
<td colspan="4" class="title">要求报告日期</td>
|
||
<td colspan="4" class="indent">${bean.reportDate.substring(0,10)}</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="4" class="title">采样人</td>
|
||
<td colspan="4" class="indent">${data.samplingUserNameStr}</td>
|
||
<td colspan="4" class="title">收样人</td>
|
||
<td colspan="4" class="indent">${bean.acceptUserName}</td>
|
||
</tr>
|
||
<tr class="content title">
|
||
<td colspan="1">序号</td>
|
||
<td colspan="3">样品编号</td>
|
||
<td colspan="2">地点</td>
|
||
<td colspan="2">是否检测</td>
|
||
<td colspan="4">检测项目</td>
|
||
<%-- <td colspan="2">采样人</td>--%>
|
||
<td colspan="2">采样日期</td>
|
||
</tr>
|
||
|
||
|
||
<c:forEach items="${taskList}" var="item" varStatus="status">
|
||
<tr>
|
||
<td class="content" colspan="1" width="6.25%">${status.count}</td>
|
||
<td class="content" colspan="3" width="18.75%">${item.sampleCode}</td>
|
||
<td class="indent" colspan="2" width="12.5%">${item.sampleAddress}</td>
|
||
<td class="content" colspan="2"
|
||
width="12.5%">${item.isTest ? '√' : '×'}</td>
|
||
<td class="indent" colspan="4" width="25%">${item.testItemIds}</td>
|
||
<%-- <td class="content" colspan="2" width="12.5%">${item.samplingUserName}</td>--%>
|
||
<td class="content" colspan="2"
|
||
width="12.5%">${item.samplingTime.substring(0,10)}</td>
|
||
</tr>
|
||
</c:forEach>
|
||
|
||
|
||
</table>
|
||
|
||
<table class="sampling" id="wTable" bordercolor="black"
|
||
border="1" cellpadding="0" cellpadding="2" width="70%" style="border-top: none">
|
||
<%-- <thead>--%>
|
||
<%-- <tr>--%>
|
||
<%-- <th><h4 style="text-align: left;"> 备注:</h4></th>--%>
|
||
<%-- </tr>--%>
|
||
<%-- </thead>--%>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<div contenteditable="true">${data.remark}</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</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="printSaveFun('printContext')">打印
|
||
</button>
|
||
</div>
|
||
</div>
|
||
<!-- /.modal-content -->
|
||
</div>
|
||
<!-- /.modal-dialog -->
|
||
</div>
|
||
|
||
|
||
|
||
|