33 lines
759 B
C#
33 lines
759 B
C#
using Quartz;
|
|
using System;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.CRMServices.Res;
|
|
|
|
namespace WX.CRM.CRMServices.CRMJobs
|
|
{
|
|
public class GetResByAgentIdJob : IJob
|
|
{
|
|
#region IJob
|
|
static bool bRunning = false;
|
|
public void Execute(JobExecutionContext context)
|
|
{
|
|
if (bRunning)
|
|
return;
|
|
bRunning = true;
|
|
try
|
|
{
|
|
new GetResByAgentId().Execute();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
LogHelper.Error(string.Concat("GetResByAgentIdJob.Execute ", e.Message + "|" + e.StackTrace));
|
|
}
|
|
finally
|
|
{
|
|
bRunning = false;
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|