20211208 定时器优化,当日人数定时校正方法开放
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
protected void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
Application["OnlineUserCount"] = 0;
|
||||
Model.Sys_User sysUser = new Sys_User();
|
||||
try
|
||||
{
|
||||
Funs.RootPath = Server.MapPath("~/");
|
||||
@@ -27,6 +28,8 @@
|
||||
Funs.SGGLUrl = ConfigurationManager.AppSettings["SGGLUrl"];
|
||||
Funs.RealNameApiUrl = ConfigurationManager.AppSettings["RealNameApiUrl"];
|
||||
Funs.ControlApiUrl = ConfigurationManager.AppSettings["ControlApiUrl"];
|
||||
|
||||
sysUser = UserService.GetUserByUserId(Const.sysglyId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -43,6 +46,7 @@
|
||||
BLL.RealNameMonitorService.StartMonitor();
|
||||
}
|
||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "实名制同步定时器启动成功!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -54,38 +58,52 @@
|
||||
BLL.MonitorService.StartMonitor();
|
||||
BLL.MonitorService.StartMonitorEve();
|
||||
BLL.MonitorService.StartPersonQuarterCheck();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "通用定时器启动成功!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("通用定时器!", ex);
|
||||
ErrLogInfo.WriteLog("通用定时器启动失败!", ex);
|
||||
}
|
||||
////员工考核定时器
|
||||
//try
|
||||
//{
|
||||
// BLL.MonitorService.StartPersonQuarterCheck();
|
||||
// BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "员工考核定时器启动成功!");
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// ErrLogInfo.WriteLog("员工考核定时器启动失败!", ex);
|
||||
//}
|
||||
////从集团获取数据定时器
|
||||
try
|
||||
{
|
||||
BLL.MCSWebService.StartMonitor();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "从材料软件获取数据定时器启动成功!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("材料软件定时器!", ex);
|
||||
ErrLogInfo.WriteLog("材料软件定时器启动失败!", ex);
|
||||
}
|
||||
////从集团获取数据定时器
|
||||
try
|
||||
{
|
||||
BLL.CNCECHSSEMonitorService.StartMonitor();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "从集团获取数据定时器启动成功!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从集团获取数据定时器!", ex);
|
||||
ErrLogInfo.WriteLog("从集团获取数据定时器启动失败!", ex);
|
||||
}
|
||||
|
||||
////从博晟获取培训考试数据定时器
|
||||
try
|
||||
{
|
||||
BLL.BOSHENGMonitorService.StartMonitor();
|
||||
BLL.LogService.AddSys_Log(sysUser, string.Empty, string.Empty, string.Empty, "从博晟获取培训考试数据定时器启动成功!");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从博晟获取培训考试数据定时器!", ex);
|
||||
ErrLogInfo.WriteLog("从博晟获取培训考试数据定时器启动失败!", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user