分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-03-05 db6156a92cc59467bde608a00c76952ebc75e488
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_WCS.Jobs;
using WIDESEA_WCS.JobsPart.Common;
using WIDESEA_WCS.WCSClient;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;
 
namespace WIDESEA_WCS
{
    [DisallowConcurrentExecution]
    public class AutoTaskJob : JobBase, IJob
    {
        /// <summary>
        /// 自动任务
        /// </summary>
        Createplcinfodetail Creation = new Createplcinfodetail();
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                ExecuteJob(context, DoAction);
            }
            catch { }
            return Task.CompletedTask;
        }
 
        private void DoAction(IJobExecutionContext context)
        {
            //throw new NotImplementedException();
            //Creation.HCJCreation();
            //Creation.PLCinfodetail();
 
            StationTask.CreateTask();
 
        }
    }
}