Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/safety/EducationVisitorView.jsp

148 lines
7.4 KiB
Plaintext
Raw Normal View History

2026-01-16 14:13:44 +08:00
<!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" %>
<style type="text/css">
.select2-container .select2-selection--single {
height: 34px;
line-height: 34px;
}
.select2-selection__arrow {
margin-top: 3px;
}
.form-horizontal{
padding-top: 20px;
padding-left: 60px;
}
</style>
<script type="text/javascript">
$(function () {
});
var fileSelected = function () {
var filename = $('#file').val();
$('#fileName').val(filename);
$('#fileId').val('');
};
var fileDownload = function () {
/*window.location.href = ext.contextPath + '/safety/SafetyFiles/download.do?fileId=${bean.fileId}';*/
var url = ext.contextPath+'/safety/SafetyFiles/toFindImgById?fileId=${bean.fileId}';
layer.open({
type: 1,
title: false,
closeBtn: 0,
area: ['60%', '80%'],
skin: 'layui-layer-nobg', //没有背景色
shadeClose: true,
content: '<img style="width: 100%;height: 100%" src="'+url+'"/>'
});
}
$("#viewForm").bootstrapValidator({
live: 'disabled',//验证时机enabled是内容有变化就验证默认disabled和submitted是提交再验证
fields: {
educationCode: {
validators: {
notEmpty: {
message: '培训记录编号不能为空。'
}
}
},
}
});
</script>
<div class="modal fade" id="subModal">
<div class="modal-dialog" style="width:53%;">
<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">培训记录详情</h4>
</div>
<div class="modal-body">
<!-- 新增界面formid强制为viewForm -->
<form class="form-horizontal" id="viewForm" enctype="multipart/form-data" >
<div id="alertDiv"></div>
<%-- <input type="hidden" name="id" value="${user.id }" />--%>
<!-- 界面提醒div强制id为alertdiv -->
<div class="col-md-26">
<div class="form-group">
<label class="col-sm-2 control-label" > 培训记录编号:</label>
<div class="col-sm-6">
<input type="hidden" name="id" value="${bean.id}"/>
<input type="text" name="educationCode" class="form-control" placeholder="" readonly
style="background-color: #ffffff;border: none" value="${bean.educationCode}"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"> 培训日期:</label>
<div class="col-sm-4">
<div class="input-group date">
<input type="text" class="form-control" id="educationDate" name="educationDate"
style="background-color: #ffffff;border: none" placeholder="请选择.." readonly value="${bean.educationDate.substring(0,10)}"/>
</div>
</div>
<label class="col-sm-2 control-label"> 接洽人:</label>
<div class="col-sm-4">
<input type="text" id="usherName" name="usherName" class="form-control" placeholder="请选择.." readonly value="${bean.usherName}" style="background-color: #ffffff;border: none">
<input type="hidden" id="usherId" name="usherId" class="form-control" placeholder="请选择.." readonly value="${bean.usherId}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"> 访客单位名称:</label>
<div class="col-sm-4">
<input type="text" name="visitorCompany" class="form-control" placeholder="请输入.." readonly value="${bean.visitorCompany}" style="background-color: #ffffff;border: none">
</div>
<label class="col-sm-2 control-label"> 访客数量:</label>
<div class="col-sm-4">
<input type="number" name="vistorNum" class="form-control" placeholder="请输入.." readonly value="${bean.vistorNum}" style="background-color: #ffffff;border: none" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"> 来访时间:</label>
<div class="col-sm-4">
<div class="input-group date">
<input type="text" class="form-control" id="accessTime" name="accessTime"
placeholder="请选择" readonly value="${bean.accessTime.substring(0,16)}" style="background-color: #ffffff;border: none"/>
</div>
</div>
<label class="col-sm-2 control-label"> 离开时间:</label>
<div class="col-sm-4">
<div class="input-group date">
<input type="text" class="form-control" id="leaveTime" name="leaveTime"
placeholder="请选择" readonly value="${bean.leaveTime.substring(0,16)}" style="background-color: #ffffff;border: none"/>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label ">附件资料:</label>
<div class="col-sm-4">
<a><p name="fileName" id="fileName" readonly onclick="fileDownload()" style="margin-top: 8px;cursor:pointer;">${fileName}</p></a>
</div>
<div class="col-sm-2" style="display: flex">
<input type="file" id="file" name ="file" onclick="fileSelected()" style="display: none"/>
<input type="hidden" id="fileId" name ="fileId" value="${bean.fileId}"/>
</div>
</div>
</div>
</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>