Files
2026-01-16 14:13:44 +08:00

195 lines
7.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.sipai.entity.base.ServerObject" %>
<%@ 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" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
<%String serverPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();%>
<%String contextPath = request.getContextPath();%>
<!DOCTYPE html>
<!-- <html lang="zh-CN"> -->
<!-- BEGIN HEAD -->
<head>
<title><%= ServerObject.atttable.get("TOPTITLE")%>
</title>
<!-- 引用页头及CSS页-->
<jsp:include page="/jsp/inc.jsp"></jsp:include>
<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>
<script type="text/javascript">
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();
// $('#printContext').hide();
}
</script>
</head>
<body>
<div class="wrapper">
<!-- 引用top -->
<%-- <jsp:include page="/jsp/top.jsp"></jsp:include> --%>
<!-- 菜单栏 -->
<%-- <jsp:include page="/jsp/left.jsp"></jsp:include> --%>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1 id="head_title"></h1>
<ol class="breadcrumb">
<li><a id='head_firstlevel' href="#"><i class="fa fa-dashboard"></i> </a></li>
<!-- <li class="active">Here</li> -->
</ol>
</section>
<!-- Main content -->
<section class="content container-fluid">
<div id="mainAlertdiv"></div>
<div id="subDiv"></div>
<div id="menu4SelectDiv"></div>
<div>
<div class="form-group form-inline" style="padding:0;height: 15px;">
<div class="form-group orm-inline">
<div class="input-group input-group-sm " style="padding: 0px 10px">
<div class="wyb-excel" id="printContext" style="width:100%;margin: 0 auto;">
<table class="sampling">
<tr>
<th colspan="16">
采样单
</th>
</tr>
<tr>
<td colspan="4" class="title">采样单编号</td>
<td colspan="4" class="indent">${id}</td>
<td colspan="4" class="title">采样类型</td>
<td colspan="4" class="indent">${type}</td>
</tr>
<tr>
<td colspan="4" class="title">计划采样日期</td>
<td colspan="4" class="indent">${planDate}</td>
<td colspan="4" class="title">要求报告日期</td>
<td colspan="4" class="indent">${date}</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="${list}" var="item">
<tr>
<td class="content" colspan="1" width="6.25%">${item.id}</td>
<td class="content" colspan="3" width="18.75%">${item.name}</td>
<td class="indent" colspan="2" width="12.5%">${item.address}</td>
<td class="content" colspan="2"
width="12.5%">${item.status ? '√' : '×'}</td>
<td class="indent" colspan="4" width="25%">${item.content}</td>
<td class="content" colspan="2" width="12.5%">${item.user}</td>
<td class="content" colspan="2" width="12.5%">${item.date}</td>
</tr>
</c:forEach>
</table>
</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>
</div>
</div>
</div>
</section>
<!-- /.content -->
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
</div>
</body>
<!-- 引入daterangepicker-->
<link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.css"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/moment.min.js"
charset="utf-8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/plugins/bootstrap-daterangepicker/daterangepicker.js"
charset="utf-8"></script>
</html>