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
1004 B
37 lines
1004 B
using System;
|
|
using Quartz;
|
|
|
|
namespace QMTask.DataDeal
|
|
{
|
|
/// <summary>
|
|
/// 设备合模次数同步服务
|
|
/// </summary>
|
|
//并发限制
|
|
[DisallowConcurrentExecution]
|
|
public class selectMesMouldIntoMaximoMouldCounterJob : IJob
|
|
{
|
|
/// <summary>
|
|
/// 执行方法
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
|
|
public virtual void Execute(IJobExecutionContext context)
|
|
{
|
|
|
|
try
|
|
{
|
|
//调用服务端方法
|
|
var sa = new ServiceUtil().GetServiceAgent();
|
|
sa.InvokeServiceFunction<Object>("MouldBLL_selectMesMouldIntoMaximoMouldCounter");
|
|
|
|
context.Result = "设备合模次数同步服务开始:" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
context.Result = "设备合模次数同步服务失败" + ex;
|
|
throw;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|