175 lines
6.8 KiB
Plaintext
175 lines
6.8 KiB
Plaintext
|
|
<%@page import="com.bonus.core.DateTimeHelper"%>
|
||
|
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
||
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||
|
|
<!DOCTYPE html >
|
||
|
|
<html lang="en">
|
||
|
|
<meta name="renderer" content="webkit">
|
||
|
|
<head>
|
||
|
|
<%@include file="../baseset.jsp" %>
|
||
|
|
<%@include file="../systemset.jsp" %>
|
||
|
|
</head>
|
||
|
|
<style type="text/css">
|
||
|
|
.widget-toolbar a{
|
||
|
|
vertical-align:middle;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<body>
|
||
|
|
<div class="page-content" >
|
||
|
|
<div class="row-fluid">
|
||
|
|
<div class="col-xs-12">
|
||
|
|
<!-- <form id="baseForm" class="form-inline" method="POST" onsubmit="return false;">
|
||
|
|
<div class="widget-header widget-header-large" style="padding:10px;">
|
||
|
|
<div class="widget-main customBtn" >
|
||
|
|
<input id="keyWord" type="text" name="keyWord" placeholder="试卷名称关键字查询" />
|
||
|
|
<input style="width: 10%;" placeholder="选择开始时间" readonly="readonly" class="t" id="startTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'',maxDate:''})" name="startTime" type="text">-
|
||
|
|
-<input style="width: 10%;" placeholder="选择结束时间" readonly="readonly" class="t" id="endTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'',maxDate:''})" name="endTime" type="text">
|
||
|
|
<button class="btn btn-success btn-sm" onclick="getbaseList()" id="searchBtn" title="查询" type="button">查询</button>
|
||
|
|
</div>
|
||
|
|
<div class="widget-toolbar customBtn">
|
||
|
|
<a href="#" title="新增" id="addBtn" class="lrspace3"><i class="icon-plus-sign color bigger-180"></i></a>
|
||
|
|
<a title="打印" onclick="print()" class="lrspace3" ><i class='icon-print color-green bigger-180'></i></a>
|
||
|
|
<a href="#" title="刷新" onclick="getbaseList(1)" class="lrspace3" ><i class='icon-refresh bigger-180 orange'></i></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</form> -->
|
||
|
|
<table id="baseTable">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th style="width:10%"class="center">人员</th>
|
||
|
|
<th style="width:10%" class="center">考试场次</th>
|
||
|
|
<th style="width:10%" class="center">是否到场</th>
|
||
|
|
<th style="width:10%" class="center">是否为本场考试人员</th>
|
||
|
|
<th style="width:10%" class="center">操作</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${yLists.size() > 0 || nLists.size() > 0 || fLists.size() > 0}">
|
||
|
|
<c:forEach items="${yLists}" var="user" varStatus="idx">
|
||
|
|
<tr style="background-color: #8fc48f">
|
||
|
|
<th valign="middle" class="center">${user.name}</th>
|
||
|
|
<th valign="middle" class="center">${user.times}</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
到
|
||
|
|
</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
是
|
||
|
|
</th>
|
||
|
|
<th style="vertical-align:middle;" class="center">
|
||
|
|
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</c:forEach>
|
||
|
|
<c:forEach items="${fLists}" var="user" varStatus="idx">
|
||
|
|
<tr style="background-color: #e3b0b0">
|
||
|
|
<th valign="middle" class="center">${user.name}</th>
|
||
|
|
<th valign="middle" class="center">${user.times}</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
到
|
||
|
|
</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
不是
|
||
|
|
</th>
|
||
|
|
<th style="vertical-align:middle;" class="center">
|
||
|
|
<c:if test="${gradeis.isActive!=2}">
|
||
|
|
<c:choose>
|
||
|
|
<c:when test="${yLists eq '[]' }">
|
||
|
|
<button onclick="agreeExam(`${user.idcard}`,`${user.name}`,`${times}`, `${user.specialty}`, `${examId }`)">同意参加</button>
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<button onclick="agreeExam(`${user.idcard}`,`${user.name}`,`${times}`, `${user.specialty}`, `${examId }`)">同意参加</button>
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
<button onclick="rejectExam(`${user.idcard}`,`${user.name}`)">拒绝参加</button>
|
||
|
|
</c:if>
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</c:forEach>
|
||
|
|
<c:forEach items="${nLists}" var="user" varStatus="idx">
|
||
|
|
<tr style="background-color: #c0c0c0">
|
||
|
|
<th valign="middle" class="center">${user.name}</th>
|
||
|
|
<th valign="middle" class="center">${user.times}</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
未到
|
||
|
|
</th>
|
||
|
|
<th valign="middle" class="center">
|
||
|
|
是
|
||
|
|
</th>
|
||
|
|
<th style="vertical-align:middle;" class="center">
|
||
|
|
|
||
|
|
</th>
|
||
|
|
</tr>
|
||
|
|
</c:forEach>
|
||
|
|
</c:when>
|
||
|
|
<c:otherwise>
|
||
|
|
<tr><td colspan='6' class='center'>暂无人员</td></tr>
|
||
|
|
</c:otherwise>
|
||
|
|
</c:choose>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script type="text/javascript">
|
||
|
|
function agreeExam(id, name, times, specialty, examId) {
|
||
|
|
var indexMsg = layer.confirm("<h4 style='color:red'>您确定让"+name+"参加本场考试吗?</h4>", {btn: ['同意','取消']},function(){
|
||
|
|
layer.close(indexMsg);
|
||
|
|
var idx = layer.msg('正在提交数据,请稍等...', {
|
||
|
|
icon: 16
|
||
|
|
,shade: 0.01
|
||
|
|
,time:'-1'
|
||
|
|
});
|
||
|
|
$.ajax({
|
||
|
|
type:"POST",
|
||
|
|
url:bonuspath +'/backstage/registration/toUpdateTimes',
|
||
|
|
data: {
|
||
|
|
idcard:id,
|
||
|
|
name:name,
|
||
|
|
times:times,
|
||
|
|
specialty:specialty,
|
||
|
|
examId:examId
|
||
|
|
},
|
||
|
|
dataType:"json",
|
||
|
|
success:function(data) {
|
||
|
|
layer.close(idx);
|
||
|
|
showMsgAndReload(data.resMsg);
|
||
|
|
},
|
||
|
|
error:function(data){
|
||
|
|
layer.close(idx);
|
||
|
|
var indexMsg = layer.confirm('请求发送失败', {btn: ['关闭']},function(){
|
||
|
|
layer.close(indexMsg);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
})
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
function rejectExam(id,name) {
|
||
|
|
var indexMsg = layer.confirm("<h4 style='color:red'>您确认拒绝"+name+"参加本场考试吗?</h4>", {btn: ['拒绝','取消']},function(){
|
||
|
|
layer.close(indexMsg);
|
||
|
|
var idx = layer.msg('正在提交数据,请稍等...', {
|
||
|
|
icon: 16
|
||
|
|
,shade: 0.01
|
||
|
|
,time:'-1'
|
||
|
|
});
|
||
|
|
$.ajax({
|
||
|
|
type:"POST",
|
||
|
|
url:bonuspath +'/backstage/registration/toUpdateIsActive',
|
||
|
|
data: {idcard:id,name:name},
|
||
|
|
dataType:"json",
|
||
|
|
success:function(data) {
|
||
|
|
layer.close(idx);
|
||
|
|
showMsgAndReload(data.resMsg);
|
||
|
|
},
|
||
|
|
error:function(data){
|
||
|
|
layer.close(idx);
|
||
|
|
var indexMsg = layer.confirm('请求发送失败', {btn: ['关闭']},function(){
|
||
|
|
layer.close(indexMsg);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
})
|
||
|
|
});
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|