191 lines
9.4 KiB
Plaintext
191 lines
9.4 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="VRS.Management.Main" %>
|
|
|
|
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
<title></title>
|
|
<link href="../Assets/layui/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="../Assets/layui/css/materialdesignicons.min.css" rel="stylesheet" />
|
|
<link href="../Assets/layui/css/style.min.css" rel="stylesheet" />
|
|
|
|
<!--START-必要的引用部分-->
|
|
<link href="../Assets/layui-v2.5.7/css/layui.css" type="text/css" rel="stylesheet" />
|
|
<script type="text/javascript" src="../Scripts/jquery-1.11.3.min.js"></script>
|
|
<script type="text/javascript" src="../Scripts/layui-v2.5.7/layui.js"></script>
|
|
<!--END-必要的引用部分-->
|
|
</head>
|
|
<script type="text/javascript">
|
|
function OpenInCheck() {
|
|
var oWnd = radopen("InCheck.aspx", "RadWindowManager1");
|
|
oWnd.setSize(480, 200);
|
|
oWnd.center();
|
|
}
|
|
|
|
function OpenOutCheck() {
|
|
var oWnd = radopen("OutCheck.aspx", "RadWindowManager1");
|
|
oWnd.setSize(480, 200);
|
|
oWnd.center();
|
|
}
|
|
|
|
function OnDataDelete(Id) {
|
|
if (confirm("确定删除数据吗?")) {
|
|
$("#IdInput").val(Id);
|
|
$("#btnDelete").click();
|
|
}
|
|
}
|
|
|
|
function OnImport() {
|
|
var oWnd = radopen("../Util/Import.aspx?cmd=ImportUsers", "RadWindowManager1");
|
|
oWnd.setSize(480, 280);
|
|
oWnd.center();
|
|
}
|
|
|
|
function refreshGrid(args, msg) {
|
|
if (!args) {
|
|
//$("#btnSelect").click();
|
|
window.location.href = window.location.href;
|
|
}
|
|
}
|
|
</script>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
|
|
<Scripts>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
|
|
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
|
|
</Scripts>
|
|
</telerik:RadScriptManager>
|
|
<div class="container-fluid p-t-15" id="app">
|
|
|
|
<div class="row">
|
|
<div class="col-sm-6 col-md-3">
|
|
<div class="card bg-primary">
|
|
<div class="card-body clearfix">
|
|
<div class="pull-right">
|
|
<p class="h6 text-white m-t-0">今日访客(入厂)</p>
|
|
<p class="h3 text-white m-b-0">0</p>
|
|
</div>
|
|
<div class="pull-left"><span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-3">
|
|
<div class="card bg-danger">
|
|
<div class="card-body clearfix">
|
|
<div class="pull-right">
|
|
<p class="h6 text-white m-t-0">今日访客(出厂)</p>
|
|
<p class="h3 text-white m-b-0">0</p>
|
|
</div>
|
|
<div class="pull-left"><span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-3">
|
|
<div class="card bg-success">
|
|
<div class="card-body clearfix">
|
|
<div class="pull-right">
|
|
<p class="h6 text-white m-t-0">今日访客申请</p>
|
|
<p class="h3 text-white m-b-0">0</p>
|
|
</div>
|
|
<div class="pull-left"><span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-arrow-down-bold fa-1-5x"></i></span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-3">
|
|
<div class="card bg-purple">
|
|
<div class="card-body clearfix">
|
|
<div class="pull-right">
|
|
<p class="h6 text-white m-t-0">累计访客数量</p>
|
|
<p class="h3 text-white m-b-0">0</p>
|
|
</div>
|
|
<div class="pull-left"><span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-comment-outline fa-1-5x"></i></span></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4>今日访客</h4>
|
|
|
|
<input type="button" value="离场验证" class="layui-btn layui-btn-checked" style="float: right" onclick="OpenOutCheck()" /><span style="float: right"> </span>
|
|
<input type="button" value="入场验证" class="layui-btn" style="float: right" onclick="OpenInCheck()" />
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>预约编号</th>
|
|
<th>受访人(工号)</th>
|
|
<th>受访电话</th>
|
|
<th>受访部门</th>
|
|
<th>来访类型</th>
|
|
<th>访客姓名</th>
|
|
<th>访客单位</th>
|
|
<th>访客电话</th>
|
|
<th>车牌号</th>
|
|
<th>到访时间</th>
|
|
<th>离开时间</th>
|
|
<th>健康状况</th>
|
|
<th>访问状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<%
|
|
var models = new DataService.BLL.admin_log().GetModelList(" InTime >= '" + DateTime.Now.ToString("yyyy-MM-dd") + "' OR OutTime >= '" + DateTime.Now.ToString("yyyy-MM-dd") + "' ");
|
|
int index = 1;
|
|
models.ForEach(model =>
|
|
{
|
|
%>
|
|
<tr>
|
|
<td><%=index++ %></td>
|
|
<%-- <td><%=model.Id %></td>
|
|
<td><%=model.VisitName %>(<%=model.VisitId %>)</td>
|
|
<td><%=model.VisitPhone%></td>
|
|
<td><%=model.VisitDepartment%></td>
|
|
<td><%=model.ReqType%></td>
|
|
<td><%=model.ReqName%></td>
|
|
<td><%=model.Company%></td>
|
|
<td><%=model.ReqPhone%></td>
|
|
<td><%=model.ReqCarplant%></td>
|
|
<td><%=model.InTime%></td>
|
|
<td><%=model.OutTime%></td>
|
|
<td><span class="label label-warning"><%=model.HealthState%></span></td>
|
|
<td><%=model.ReqState%></td>--%>
|
|
</tr>
|
|
<%});%>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<script type="text/javascript" src="../Assets/layui/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="../Assets/layui/js/main.min.js"></script>
|
|
|
|
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="Resize, Close, Move, Reload"
|
|
Modal="True" Skin="Bootstrap">
|
|
<Localization Cancel="取消" Close="关闭" Maximize="最大化" Minimize="最小化" Reload="刷新" />
|
|
</telerik:RadWindowManager>
|
|
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ></telerik:RadAjaxManager>
|
|
</form>
|
|
</body>
|
|
</html>
|