<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%
|
if isDepartment("070120")=0 Then Response.Redirect "/"
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="keywords" content="">
|
<meta name="description" content="">
|
<meta name="author" content="">
|
<link rel="icon" href="assets/images/favicon.png" type="image/png">
|
<title>消杀记录</title>
|
|
<!-- BEGIN PAGE LEVEL STYLES -->
|
<link href="assets/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet"/>
|
<link href="assets/plugins/full-calendar/fullcalendar.css" rel="stylesheet" type="text/css" />
|
<!-- END PAGE LEVEL STYLES -->
|
|
<link href="assets/css/icons.css" rel="stylesheet">
|
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
|
<link href="assets/css/style.css" rel="stylesheet">
|
<link href="assets/css/responsive.css" rel="stylesheet">
|
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
<!--[if lt IE 9]>
|
<script src="js/html5shiv.min.js"></script>
|
<script src="js/respond.min.js"></script>
|
<![endif]-->
|
|
</head>
|
|
<body class="sticky-header">
|
|
|
<!--Start left side Menu-->
|
<div class="left-side sticky-left-side">
|
|
<!--logo-->
|
<div class="logo">
|
<a href="/"><img src="assets/images/logo.png" alt=""></a>
|
</div>
|
|
<div class="logo-icon text-center">
|
<a href="/"><img src="assets/images/logo-icon.png" alt=""></a>
|
</div>
|
<!--logo-->
|
|
<div class="left-side-inner">
|
<!--Sidebar nav-->
|
<!--#include virtual="/Report_menu_left_new.gds"-->
|
<!--End sidebar nav-->
|
|
</div>
|
</div>
|
<!--End left side menu-->
|
|
|
|
<!-- main content start-->
|
<div class="main-content" >
|
|
<!-- header section start-->
|
<div class="header-section">
|
|
<a class="toggle-btn"><i class="fa fa-bars"></i></a>
|
<!--
|
<form class="searchform">
|
<input type="text" class="form-control" name="keyword" placeholder="Search here..." />
|
</form>
|
-->
|
<!--notification menu start -->
|
<div class="menu-right">
|
<ul class="notification-menu"><li class="btn-default dropdown-toggle">消杀记录</li></ul>
|
</div>
|
<!--notification menu end -->
|
|
</div>
|
<!-- header section end-->
|
|
|
|
<!--body wrapper start-->
|
<div class="wrapper">
|
<div class="page-title-box">
|
<h4 class="page-title">消杀记录 </h4>
|
<ol class="breadcrumb">
|
<li>
|
<a href="Report_Sterilize_Excel.php">导出</a>
|
</li>
|
</ol>
|
<div class="clearfix"></div>
|
</div>
|
|
|
|
<!-- Start row-->
|
<div class="row">
|
<div class="calendar-layout clearfix white-box">
|
<div class="col-md-10">
|
<div class="white-box">
|
<div id='calendar'></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<!-- End row-->
|
<div class="white-box">
|
<%
|
sql="select top 1000 Sterilize_CarLicense,Sterilize_Mode,Sterilize_Time,OA_Name,DispatchOrdTraVia,DispatchOrdTraEnd from OA_User,OA_Sterilize LEFT JOIN DispatchOrd on DispatchOrdID=Sterilize_DispatchOrdID where OA_User_ID=Sterilize_OAID order by Sterilize_Time desc"
|
rs.open sql,objConn,1,1
|
if not rs.eof then%>
|
<table class="table table-hover">
|
<thead>
|
<tr style="white-space: nowrap;">
|
<th>消杀日期</th>
|
<th>车辆</th>
|
<th>消杀地点</th>
|
<th>行程</th>
|
<th>人员</th>
|
</tr>
|
</thead>
|
<tbody>
|
<%do while not rs.Eof
|
Sterilize_Name=rs("OA_Name")
|
Sterilize_Time=rs("Sterilize_Time")
|
Sterilize_CarLicense=rs("Sterilize_CarLicense")
|
Sterilize_Mode=rs("Sterilize_Mode")
|
OrdTraVia=rs("DispatchOrdTraVia")
|
OrdTraEnd=rs("DispatchOrdTraEnd")
|
|
If OrdTraEnd<>"" Then
|
Sterilize_OrdTra=OrdTraVia& " 至 " &OrdTraEnd
|
Else
|
Sterilize_OrdTra="--"
|
End If
|
%>
|
<tr style="white-space: nowrap;">
|
|
<td><%=Sterilize_Time%></td>
|
<td><%=Sterilize_CarLicense%></td>
|
<td><%=Sterilize_Mode%></td>
|
<td><%=Sterilize_OrdTra%></td>
|
<td><%=Sterilize_Name%></td>
|
</tr>
|
<%rs.movenext
|
Loop%>
|
</tbody>
|
</table>
|
<%End If
|
rs.close()%>
|
</div>
|
<!-- End Wrapper-->
|
|
|
|
</div>
|
<!--End main content -->
|
|
|
|
<!--Begin core plugin -->
|
<script src="assets/js/jquery.min.js"></script>
|
<script src="assets/js/bootstrap.min.js"></script>
|
<script src="assets/plugins/moment/moment.js"></script>
|
<script src="assets/js/jquery.slimscroll.js "></script>
|
<script src="assets/js/jquery.nicescroll.js"></script>
|
<script src="assets/js/functions.js"></script>
|
<!-- End core plugin -->
|
|
<!-- BEGIN PAGE LEVEL SCRIPTS -->
|
<script type="text/javascript" src="assets/plugins/jquery-ui/jquery-ui.min.js"></script>
|
<script type="text/javascript" src="assets/plugins/moment/moment.js"></script>
|
<script type="text/javascript" src="assets/plugins/full-calendar/fullcalendar.js"></script>
|
<script src="assets/plugins/sweetalert/sweet-alert.js"></script>
|
<script>
|
|
$(document).ready(function() {
|
|
$('#external-events .fc-event').each(function() {
|
// store data so the calendar knows to render an event upon drop
|
$(this).data('event', {
|
title: $.trim($(this).text()), // use the element's text as the event title
|
color: '#FFBD4A',
|
stick: true // maintain when user navigates (see docs on the renderEvent method)
|
});
|
|
// make the event draggable using jQuery UI
|
$(this).draggable({
|
zIndex: 999,
|
revert: true, // will cause the event to go back to its
|
revertDuration: 0 // original position after the drag
|
});
|
|
});
|
|
|
/* initialize the calendar
|
-----------------------------------------------------------------*/
|
$('#calendar').fullCalendar({
|
defaultView: 'month',
|
header: {
|
left: 'prev,next today',
|
center: 'title',
|
right:''
|
},
|
monthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
monthNamesShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
|
dayNames: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
dayNamesShort: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
today: ["今天"],
|
firstDay: 7,
|
buttonText: {
|
today: '今天',
|
month: '月',
|
week: '周',
|
day: '日',
|
prev: '上一月',
|
next: '下一月'
|
},
|
defaultDate: '<%=date()%>',
|
TrueDate: '<?php echo $DayDate;?>',
|
editable: false,
|
droppable: false,
|
eventLimit: true,
|
eventLimitClick: 'day',
|
/*
|
eventClick: function(event, jsEvent, view) {
|
//点击删除事件
|
console.log("点击 "+event.id);
|
//"removeEvents",event.id
|
if (confirm("是否删除"+event.title)) {
|
$('#calendar').fullCalendar('removeEvents', event.id);
|
}
|
},
|
eventAfterRender: function(event, jsEvent) {
|
//事件移动拖动之后触发
|
//console.log(event.title + "显示至 " + event.start.format());
|
},
|
eventDrop: function(event, delta, revertFunc) {
|
//事件移动另一项目时
|
console.log(event.id + "移动至 " + event.start.format());
|
if (!confirm("是否移动?")) {
|
revertFunc();
|
}
|
},
|
*/
|
|
<%
|
sql="select top 1000 CONVERT(varchar(10),Sterilize_Time,111),OA_Name from OA_Sterilize,OA_User where OA_User_ID=Sterilize_OAID GROUP BY CONVERT(varchar(10),Sterilize_Time,111),OA_Name order by CONVERT(varchar(10),Sterilize_Time,111) desc"
|
rs.open sql,objConn,1,1
|
if not rs.eof then%>
|
events: [
|
<%i=0
|
do while not rs.Eof
|
i=i+1%>
|
{
|
id:<%=i%>,
|
title: '<%=rs("OA_Name")%>',
|
start: '<%=year(rs(0)) & "-" & right("0"&month(rs(0)), 2) & "-" & right("0"&day(rs(0)), 2)%>',
|
color: '#81c868'
|
},
|
<%rs.movenext
|
Loop%>
|
]
|
<%End If
|
rs.close()%>
|
});
|
|
});
|
|
//--按钮操作--BEGIN
|
//新建任务单
|
$('.SterilizeApp').click(function(){
|
console.log("1");
|
swal({
|
title: "确定核酸登记?",
|
text: "检测日期:<%=date()%>",
|
type: "warning",
|
showCancelButton: true,
|
confirmButtonColor: "#DD6B55",
|
cancelButtonText: "取消",
|
confirmButtonText: "确认",
|
closeOnConfirm: false
|
}, function(){
|
$.ajax({
|
type: "POST",
|
url: "admin_save.gds",//需要跳转到的界面 the page you want to post data
|
data: {
|
//要传给后台的数据 the data you should send to background
|
admin_save:'135_json'
|
},
|
dataType:'json',
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
//console.log(data);
|
if (data!='')
|
{
|
if (data.result==1)
|
{
|
swal({
|
title : "登记完成",
|
text : "",
|
type : "success",
|
}, function() {
|
window.location.href="AdminUser_Sterilize.gds"
|
});
|
}else{
|
swal("保存失败", "代码:"+data.errcode, "error");
|
}
|
}else{swal("操作失败", "网络通信失败,请重试", "error");}
|
}
|
})
|
});
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|