using Quartz;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading;
|
using System.Threading.Tasks;
|
using WIDESEA_Common.Tools;
|
|
namespace WIDESEA_WCS
|
{
|
/// <summary>
|
/// 负极
|
/// </summary>
|
[DisallowConcurrentExecution]
|
public class JobF_0925 : IJob
|
{
|
private static int lockObj1 = 0;
|
public Task Execute(IJobExecutionContext context)
|
{
|
if (lockObj1 == 0)
|
{
|
try
|
{
|
lockObj1 = 1;
|
Task task = Task.Run(() =>
|
{
|
while (true)
|
{
|
try
|
{
|
WriteLog.GetLog().Write($"开始时间负极:{DateTime.Now} --------------", $"负极调度");
|
StackerExecutor.F_BCK_Task();//负极箔材
|
|
StackerExecutor.F_GFSB_UpTask();//负极辊分上料任务
|
StackerExecutor.F_GFSB_DownTask();//负极辊分下料任务
|
|
StackerExecutor.F_TBSB_DownTask(); //负极涂布下料任务
|
StackerExecutor.F_TBSB_UpTask();//负极涂布上料任务
|
|
StackerExecutor.F_TSJ_DownTask();//负极提升机下料任务
|
WriteLog.GetLog().Write($"结束时间负极:{DateTime.Now} --------------", $"负极调度");
|
}
|
catch { }
|
|
Thread.Sleep(200);
|
}
|
});
|
}
|
catch (Exception ex)
|
{
|
lockObj1 = 0;
|
throw new Exception(ex.Message);
|
}
|
}
|
return Task.CompletedTask;
|
}
|
}
|
}
|