20220516 实名制定时器优化、考勤导入、考试接口调整
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
namespace FineUIPro.Web
|
||||
{
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
using BLL;
|
||||
using Model;
|
||||
using System.Timers;
|
||||
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
@@ -39,11 +40,15 @@
|
||||
|
||||
////实名制同步定时器
|
||||
try
|
||||
{
|
||||
{
|
||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||
if (ConfigurationManager.AppSettings["EnableRealName"] == "True")
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitor();
|
||||
var getProjects = SynchroSetService.GetRealNameProject();
|
||||
foreach (var item in getProjects)
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitor(item.JTproCode);
|
||||
}
|
||||
}
|
||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "实名制同步定时器启动成功!");
|
||||
|
||||
@@ -409,16 +409,20 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
foreach (var item in viewCheckings)
|
||||
{
|
||||
Model.SitePerson_Checking newChecking = new Model.SitePerson_Checking
|
||||
var getCheck = Funs.DB.SitePerson_Checking.FirstOrDefault(x => x.CheckingId == item.CheckingId);
|
||||
if (getCheck == null)
|
||||
{
|
||||
CheckingId = item.CheckingId,
|
||||
ProjectId = item.ProjectId,
|
||||
IdentityCard = item.IdentityCard,
|
||||
IntoOutTime = item.IntoOutTime,
|
||||
IntoOut = item.IntoOut,
|
||||
PersonId = item.PersonId
|
||||
};
|
||||
BLL.SitePerson_CheckingService.AddPersonInfo(newChecking);
|
||||
Model.SitePerson_Checking newChecking = new Model.SitePerson_Checking
|
||||
{
|
||||
CheckingId = item.CheckingId,
|
||||
ProjectId = item.ProjectId,
|
||||
IdentityCard = item.IdentityCard,
|
||||
IntoOutTime = item.IntoOutTime,
|
||||
IntoOut = item.IntoOut,
|
||||
PersonId = item.PersonId
|
||||
};
|
||||
BLL.SitePerson_CheckingService.AddPersonInfo(newChecking);
|
||||
}
|
||||
}
|
||||
//int a = viewCheckings.Count();
|
||||
//for (int i = 0; i < a; i++)
|
||||
|
||||
@@ -888,7 +888,7 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=3.0&ak=mGX1cqaDru89SYm6Pmbj0oxxghc1otuv"></script>
|
||||
<script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=3.0&ak=Lma56vCk88x46KEXSyc2cIXk6kT2W7KB"></script>
|
||||
<script type="text/javascript">
|
||||
function randomData() {
|
||||
return Math.round(Math.random() * 1000);
|
||||
|
||||
Reference in New Issue
Block a user