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.
38 lines
954 B
38 lines
954 B
4 years ago
|
using System;
|
||
|
using Quartz;
|
||
|
|
||
|
namespace QMTask.DataDeal
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 报警数据插入
|
||
|
/// </summary>
|
||
|
//并发限制
|
||
|
[DisallowConcurrentExecution]
|
||
|
public class TempAlarmInsertTableJob : IJob
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 执行方法
|
||
|
/// </summary>
|
||
|
/// <param name="context"></param>
|
||
|
|
||
|
public virtual void Execute(IJobExecutionContext context)
|
||
|
{
|
||
|
|
||
|
try
|
||
|
{
|
||
|
//调用服务端方法
|
||
|
var sa = new ServiceUtil().GetServiceAgent();
|
||
|
sa.InvokeServiceFunction<Object>("TempProductBLL_TempAlarmInsertTable");
|
||
|
|
||
|
context.Result = "报警数据插入服务开始:" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss");
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
context.Result = "报警数据插入服务失败" + ex;
|
||
|
throw;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|