20220926
This commit is contained in:
@@ -36,83 +36,91 @@
|
||||
ErrLogInfo.WriteLog(string.Empty, ex);
|
||||
//AppDomain.Unload(AppDomain.CurrentDomain);
|
||||
}
|
||||
///实名制出入记录去重
|
||||
try
|
||||
|
||||
|
||||
if (ConfigurationManager.AppSettings["EnableRealName"] == "True")
|
||||
{
|
||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制出入记录去重定时器启动失败!", ex);
|
||||
}
|
||||
////实名制同步定时器
|
||||
try
|
||||
{
|
||||
if (ConfigurationManager.AppSettings["EnableRealName"] == "True")
|
||||
{
|
||||
////实名制同步定时器
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitor();
|
||||
SynchroSetService.InsertRealNamePushLog(null, null, "实名制定时器开始启动", "sucess", "200", null, "成功", null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex);
|
||||
}
|
||||
///实名制出入记录去重
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartInOutMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制出入记录去重定时器启动失败!", ex);
|
||||
}
|
||||
|
||||
///实名制日志清理定时器
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitorDeletePushLog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制日志清理定时器启动失败!", ex);
|
||||
}
|
||||
///考勤记录清理定时器
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitorCleanAttendance();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("考勤记录清理定时器定时器启动失败!", ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制同步定时器启动失败!", ex);
|
||||
}
|
||||
////通用定时器
|
||||
try
|
||||
{
|
||||
BLL.MonitorService.StartMonitor();
|
||||
BLL.MonitorService.StartMonitorEve();
|
||||
BLL.MonitorService.StartPersonQuarterCheck();
|
||||
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("通用定时器启动失败!", ex);
|
||||
}
|
||||
///实名制日志清理定时器
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitorDeletePushLog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制日志清理定时器启动失败!", ex);
|
||||
}
|
||||
///考勤记录清理定时器
|
||||
try
|
||||
{
|
||||
BLL.RealNameMonitorService.StartMonitorCleanAttendance();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("实名制日志清理定时器启动失败!", ex);
|
||||
}
|
||||
////从集团获取数据定时器
|
||||
try
|
||||
{
|
||||
BLL.MCSWebService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("材料软件定时器启动失败!", ex);
|
||||
}
|
||||
////从集团获取数据定时器
|
||||
try
|
||||
{
|
||||
BLL.CNCECHSSEMonitorService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从集团获取数据定时器启动失败!", ex);
|
||||
}
|
||||
////从博晟获取培训考试数据定时器
|
||||
try
|
||||
{
|
||||
BLL.BOSHENGMonitorService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从博晟获取培训考试数据定时器启动失败!", ex);
|
||||
else
|
||||
{
|
||||
////通用定时器
|
||||
try
|
||||
{
|
||||
BLL.MonitorService.StartMonitor();
|
||||
BLL.MonitorService.StartMonitorEve();
|
||||
// BLL.MonitorService.StartPersonQuarterCheck();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("通用定时器启动失败!", ex);
|
||||
}
|
||||
////材料软件定时
|
||||
try
|
||||
{
|
||||
BLL.MonitorService.StartGetPipelineWeldingQuantities();
|
||||
BLL.MCSWebService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("材料软件定时器启动失败!", ex);
|
||||
}
|
||||
|
||||
////从博晟获取培训考试数据定时器
|
||||
try
|
||||
{
|
||||
BLL.BOSHENGMonitorService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从博晟获取培训考试数据定时器启动失败!", ex);
|
||||
}
|
||||
////从集团获取数据定时器
|
||||
try
|
||||
{
|
||||
BLL.CNCECHSSEMonitorService.StartMonitor();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ErrLogInfo.WriteLog("从集团获取数据定时器启动失败!", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user