现场考勤——当前现场总人数
This commit is contained in:
parent
134f759589
commit
c54c470818
|
|
@ -179,14 +179,17 @@
|
||||||
padding: 20px 0px;
|
padding: 20px 0px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.base-wrap {
|
.base-wrap {
|
||||||
padding: 15px 10px;
|
padding: 15px 10px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.base-wrap .base-tit {
|
.base-wrap .base-tit {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.base-wrap .base-txt-wrap {
|
.base-wrap .base-txt-wrap {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
background-color: #0B508B;
|
background-color: #0B508B;
|
||||||
|
|
@ -196,23 +199,28 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
.base-wrap .base-txt-wrap .num-1 {
|
.base-wrap .base-txt-wrap .num-1 {
|
||||||
background-color: #2A759C;
|
background-color: #2A759C;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1 {
|
.yj-info-1 {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1-list {
|
.yj-info-1-list {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1 .telbg {
|
.yj-info-1 .telbg {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 85px;
|
width: 85px;
|
||||||
background: url(../res/index/images/tel.png) center center no-repeat;
|
background: url(../res/index/images/tel.png) center center no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1-list-item {
|
.yj-info-1-list-item {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
background-color: #2A759C;
|
background-color: #2A759C;
|
||||||
|
|
@ -221,15 +229,18 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1-list-item:last-child {
|
.yj-info-1-list-item:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1-list-item .telnum {
|
.yj-info-1-list-item .telnum {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.yj-info-1-info {
|
.yj-info-1-info {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #2A759C;
|
background-color: #2A759C;
|
||||||
|
|
@ -248,7 +259,7 @@
|
||||||
<div class="item flex1">
|
<div class="item flex1">
|
||||||
<div class="bw-b-bottom">
|
<div class="bw-b-bottom">
|
||||||
<div class="bw-b-bottom-up">
|
<div class="bw-b-bottom-up">
|
||||||
<div class="bw-item-content pd0">
|
<div class="bw-item-content pd0 js-hover" data-type="SitePersonNum">
|
||||||
<div class="base-wrap flex flexV">
|
<div class="base-wrap flex flexV">
|
||||||
<div class="base-tit">当前现场总人数</div>
|
<div class="base-tit">当前现场总人数</div>
|
||||||
<div class="base-txt-wrap flex flex1">
|
<div class="base-txt-wrap flex flex1">
|
||||||
|
|
@ -296,6 +307,26 @@
|
||||||
<script type="text/javascript" src="../res/index/js/jquery-3.4.1.min.js"></script>
|
<script type="text/javascript" src="../res/index/js/jquery-3.4.1.min.js"></script>
|
||||||
<script type="text/javascript" src="../res/index/js/swiper-3.4.2.jquery.min.js"></script>
|
<script type="text/javascript" src="../res/index/js/swiper-3.4.2.jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="../res/index/js/echarts.min.js"></script>
|
<script type="text/javascript" src="../res/index/js/echarts.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
initClick();
|
||||||
|
})
|
||||||
|
|
||||||
|
function initClick() {
|
||||||
|
$(".js-hover").click(function () {
|
||||||
|
var htmlContent = GetClickHtml(this);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function GetClickHtml(obj) {
|
||||||
|
var $this = $(obj), type = $this.attr('data-type');
|
||||||
|
if (type == 'SitePersonNum') {
|
||||||
|
$('iframe').attr('src', '../DataShow/ProjectSitePerson.aspx') //项目当前现场人员
|
||||||
|
window.open("../DataShow/ProjectSitePerson.aspx")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function category_Two(id, xArr, data) {
|
function category_Two(id, xArr, data) {
|
||||||
// 基于准备好的dom,初始化echarts实例
|
// 基于准备好的dom,初始化echarts实例
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
|
using FineUIPro.Web.DataShow;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
@ -8,10 +9,32 @@ namespace FineUIPro.Web.common
|
||||||
{
|
{
|
||||||
public partial class mainMenu_PDigData : PageBase
|
public partial class mainMenu_PDigData : PageBase
|
||||||
{
|
{
|
||||||
|
#region 定义项
|
||||||
|
/// <summary>
|
||||||
|
/// 项目主键
|
||||||
|
/// </summary>
|
||||||
|
public string ProjectId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["ProjectId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["ProjectId"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
|
this.ProjectId = string.Empty;
|
||||||
|
if (this.CurrUser != null && !string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||||
|
{
|
||||||
|
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
|
}
|
||||||
getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
|
getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
|
||||||
getAllPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).ToList();
|
getAllPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).ToList();
|
||||||
getPersons = getAllPersons.Where(x => x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now)).ToList();
|
getPersons = getAllPersons.Where(x => x.IsUsed == true && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now)).ToList();
|
||||||
|
|
@ -26,7 +49,13 @@ namespace FineUIPro.Web.common
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void getSitePerson()
|
private void getSitePerson()
|
||||||
{
|
{
|
||||||
var AllCount = getEmployInOutRecords.Count();
|
//var AllCount = getEmployInOutRecords.Count();
|
||||||
|
|
||||||
|
//var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.ProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
|
||||||
|
// int AllCount = getEmployInOutRecords.Count();
|
||||||
|
|
||||||
|
var getallin = APIPageDataService.getPersonNum(this.ProjectId, DateTime.Now);
|
||||||
|
int AllCount = getallin.Count();
|
||||||
if (AllCount > 0)
|
if (AllCount > 0)
|
||||||
{
|
{
|
||||||
////总人数
|
////总人数
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<UseIISExpress>true</UseIISExpress>
|
<UseIISExpress>true</UseIISExpress>
|
||||||
<Use64BitIISExpress />
|
<Use64BitIISExpress />
|
||||||
<IISExpressSSLPort />
|
<IISExpressSSLPort />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue