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

39 lines
1.1 KiB

using System;
using Quartz;
namespace QMTask.DataDeal
{
/// <summary>
/// 查询中间表T_QT_EQUIPMENTINFO 然后根据1 模具 ,0 设备。比对Mould Machine两个表。
/// 没有更新插入。
/// </summary>
//并发限制
[DisallowConcurrentExecution]
public class SelectEquipmentInfoInsertMouldMachineJob : IJob
{
/// <summary>
/// 执行方法
/// </summary>
/// <param name="context"></param>
public virtual void Execute(IJobExecutionContext context)
{
try
{
//调用服务端方法
var sa = new ServiceUtil().GetServiceAgent();
sa.InvokeServiceFunction<Object>("MouldBLL_SelectEquipmentInfoInsertMouldMachine");
context.Result = "设备模具新增服务开始:" + DateTime.Now.ToString("yy-MM-dd HH:mm:ss");
}
catch (Exception ex)
{
context.Result = "设备模具新增服务失败" + ex;
throw;
}
}
}
}