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