天津投入产出系统后端
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.
 
 
 
 
 
 

37 lines
1021 B

using System;
using Quartz;
namespace QMTask.DataDeal
{
/// <summary>
/// 安东呼叫发送报警消息和邮件
/// </summary>
//并发限制
[DisallowConcurrentExecution]
public class SendMsgAndMailForServerJob : IJob
{
/// <summary>
/// 执行方法
/// </summary>
/// <param name="context"></param>
public virtual void Execute(IJobExecutionContext context)
{
try
{
//调用服务端方法
var sa = new ServiceUtil().GetServiceAgent();
sa.InvokeServiceFunction<Object>("AndonCallBLL_SendMsgAndMailForServer");
context.Result = "安东呼叫发送报警消息和邮件服务开始:" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss");
}
catch (Exception ex)
{
context.Result = "安东呼叫发送报警消息和邮件服务失败" + ex;
throw;
}
}
}
}