Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/cqbytSampleValue/showYtsj.jsp

238 lines
11 KiB
Plaintext
Raw Normal View History

2026-01-16 14:13:44 +08:00
<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<style type="text/css">
.select2-container .select2-selection--single{
height:34px;
line-height: 34px;
}
.select2-selection__arrow{
margin-top:3px;
}
</style>
<script type="text/javascript">
// function doupdate() {
// $('#subForm').data('bootstrapValidator')
// .updateStatus('happenDate', 'NOT_VALIDATED',null)
// .validateField('happenDate');
// $('#subForm').data('bootstrapValidator')
// .updateStatus('accidentTypeName', 'NOT_VALIDATED',null)
// .validateField('accidentTypeName');
// $("#subForm").bootstrapValidator('validate');//提交验证
// if ($("#subForm").data('bootstrapValidator').isValid()) {//获取验证结果,如果成功,执行下面代码
// $.post(ext.contextPath + "/accident/accident/doupdate.do", $("#subForm").serialize(), function(data) {
// if (data.code == 1){
// showAlert('s','保存成功');
// closeModal('subModal')
// $("#table").bootstrapTable('refresh');
// }else if(data.code == 0){
// showAlert('d','保存失败');
// }else{
// showAlert('d',data.msg);
// }
// },'json');
// }
// }
// $("#subForm").bootstrapValidator({
// live: 'disabled',//验证时机enabled是内容有变化就验证默认disabled和submitted是提交再验证
// fields: {
// happenDate: {
// validators: {
// notEmpty: {
// message: '日期不能为空'
// }
// }
// },
// happenPlace: {
// validators: {
// notEmpty: {
// message: '地点不能为空'
// }
// }
// },
// accidentTypeName: {
// validators: {
// notEmpty: {
// message: '事故分类不能为空'
// }
// }
// },
// emergencyPlanTrue: {
// validators: {
// notEmpty: {
// message: '是否响应应急预案不能为空'
// }
// }
// },
// }
// });
// $(function(){
// $("#emergencyPlanTrue").select2({ minimumResultsForSearch: 10 }).val("${accident.emergencyPlanTrue}").trigger("change");
// $("#happenDate").datetimepicker({
// // startDate: date,
// language:'zh-CN',
// format: 'yyyy-mm-dd',
// startView: "month", //初始化视图是‘年’
// minView: 2,
// maxView: "year",
// autoclose: true
// // todayBtn: "linked"
// });
// })
// //选择设备根据厂区id和工艺段id选择厂内设备可多选
// var showEquipment4SelectsFun = function(formId,hiddenId,textId) {
// $.post(ext.contextPath + '/accident/accidentType/showAccidentType4Select4Use.do', { formId: formId, hiddenId: hiddenId, textId: textId }, function (data) {
// $("#equ4SelectDiv").html(data);
// openModal("equipment4SelectModal");
// });
// };
</script>
<div class="modal fade" id="subModal">
<div class="modal-dialog modal-xlg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">${param.name}点位</h4>
</div>
<div class="modal-body" style="overflow:scroll;>
<!-- 新增界面formid强制为subForm -->
<form class="form-horizontal" id="subForm">
<!-- 界面提醒div强制id为alertDiv -->
<div id="alertDiv"></div>
<%-- <!-- <div class="form-group">
<label class="col-sm-2 control-label">*日期</label>
<div class="col-sm-4">
<input class="form-control" type="text" id="happenDate" name ="happenDate" value="${accident.happenDate.substring(0,10)}">
</div>
<label class="col-sm-2 control-label">*地点</label>
<div class="col-sm-4">
<input class="form-control" type="text" id="happenPlace" name ="happenPlace" value="${accident.happenPlace}">
</div>
</div> --> --%>
<table border="2" align="center" cellspacing="0" cellpadding="8">
<!--标题-->
<!--表格头部-->
<thead>
<tr>
<th rowspan="2">点位</th>
<c:forEach items="${stringlist}" var="str">
<th colspan="4">${str}</th>
</c:forEach>
</tr>
<tr>
<c:forEach items="${stringlist}" var="str">
<th width="150" >时间</th><th width="100">值</th>
<th width="100">因子名称</th><th width="100">数值类型</th>
</c:forEach>
</tr>
</thead>
<td></td>
<c:forEach items="${stringlist}" var="str" varStatus="status2">
<td colspan="4">
<table border="1" align="center" cellspacing="0">
<c:if test="${status2.index==0}">
<c:forEach items="${list0}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==1}">
<c:forEach items="${list1}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==2}">
<c:forEach items="${list2}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==3}">
<c:forEach items="${list3}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==4}">
<c:forEach items="${list4}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==5}">
<c:forEach items="${list5}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==6}">
<c:forEach items="${list6}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==7}">
<c:forEach items="${list7}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==8}">
<c:forEach items="${list8}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
<c:if test="${status2.index==9}">
<c:forEach items="${list9}" var="str" end="100">
<tr>
<td width="150" >${fn:substring(str.tstamp,0,16)}</td><td width="100">${str.pollutantvalue}</td><td width="100">${str.factorname}</td><td width="100">${str.valuetype}</td>
</tr>
</c:forEach>
</c:if>
</table></td>
</c:forEach>
</table>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>