34 lines
846 B
C#
34 lines
846 B
C#
using Quartz;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WX.CRM.CRMServices.AutoRpt
|
|
{
|
|
public class ScheduleExecuteJob : IJob
|
|
{
|
|
static bool _isAutoPrtSchedule = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (_isAutoPrtSchedule)
|
|
return;
|
|
_isAutoPrtSchedule = true;
|
|
try
|
|
{
|
|
// Common.LogHelper.Error("自动报表调度开始");
|
|
new ScheduleExecute().Execute();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
WX.CRM.Common.LogHelper.Error("自动报表调度: " + e);
|
|
}
|
|
finally
|
|
{
|
|
_isAutoPrtSchedule = false;
|
|
}
|
|
}
|
|
}
|
|
}
|