You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
923 B
34 lines
923 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Quartz;
|
|
|
|
namespace QMTask.DataDeal
|
|
{
|
|
/// <summary>
|
|
/// 定时执行任务超时提醒类
|
|
/// </summary>
|
|
public class OverTimeRemindJob : IJob
|
|
{
|
|
/// <summary>
|
|
/// 执行方法
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
public virtual void Execute(IJobExecutionContext context)
|
|
{
|
|
try
|
|
{
|
|
//调用服务端方法
|
|
QMAPP.ServicesAgent.ServiceAgent sa = new ServiceUtil().GetServiceAgent();
|
|
Object obj = sa.InvokeServiceFunction<Object>("OverTimeRemindBLL_CheckCurrenUserOverTime2Remind");
|
|
context.Result = "true";
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
context.Result = "false";
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|