wanshenmean
2025-04-08 413b51f88d342dc90d92ebfa2e500b8f660db09c
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
42
43
44
using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Common.Tools;
using WIDESEA_Core.Utilities;
using WIDESEA_WCS.Jobs;
using WIDESEA_WCS.SchedulerExecute.AGV;
using WIDESEA_WCS.WCSClient;
 
namespace WIDESEA_WCS
{
    [DisallowConcurrentExecution]
    public class AGVJob : JobBase, IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                //return Task.Run(() =>
                //{
                   
                //});
                //var executeLog = ExecuteJob(context, () => Run(context));
            }
            catch (Exception)
            {
 
            }
            return Task.FromResult(string.Empty);
        }
 
        public string Run(IJobExecutionContext context)
        {
            JobDataMap data = context.JobDetail.JobDataMap;
            PLCClient client = data.Get("JobParams") as PLCClient;
          
            AGVSchedulerExecute.SendAGVTask1(client);
            AGVSchedulerExecute.UpdateState(client);
            return "";
        }
    }
}