1
huangxiaoqiang
10 天以前 8e49faa42ff419efa0641478702ce7d5f8455bd9
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.StackerHandTask;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_Model.Models;
using WIDESEAWCS_QuartzJob.DTO;
using WIDESEAWCS_QuartzJob.Models;
using WIDESEAWCS_QuartzJob.Service;
 
namespace WIDESEAWCS_WCSServer.Controllers.QuartzJob
{
    [Route("api/DeviceInfo")]
    [ApiController]
    public class DeviceInfoController : ApiBaseController<DeviceInfoService, Dt_DeviceInfo>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public DeviceInfoController(DeviceInfoService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }
 
        [HttpPost, Route("GetDeviceProInfos"), AllowAnonymous]
        public async Task<List<DeviceInfoDTO>> GetDeviceProInfos()
        {
            return await Service.QueryDeviceProInfos();
        }
 
        [HttpPost, Route("StackerHandTask"), AllowAnonymous]
        public WebResponseContent StackerHandTask([FromBody] HandTask stackerhand)
        {
            return Service.StackerHandTask(stackerhand);
        }
 
        [HttpPost, Route("StackerReset"), AllowAnonymous]
        public WebResponseContent StackerReset(string DeviceCode)
        {
            return Service.StackerReset(DeviceCode);
        }
 
        [HttpPost, Route("StackerEmergencyStop"), AllowAnonymous]
        public WebResponseContent StackerEmergencyStop(string DeviceCode)
        {
            return Service.StackerEmergencyStop(DeviceCode);
        }
 
        [HttpPost, Route("GetConveyorLineInfo"), AllowAnonymous]
        public WebResponseContent GetConveyorLineInfo(string DeviceChildCode)
        {
            return Service.GetConveyorLineInfo(DeviceChildCode);
        }
 
        [HttpPost, Route("ConveyorLineHandTask"), AllowAnonymous]
        public WebResponseContent ConveyorLineHandTask([FromBody] HandTask ConveyorLinehand)
        {
            return Service.ConveyorLineHandTask(ConveyorLinehand);
        }
 
        [HttpPost, Route("ConveyorLineReset"), AllowAnonymous]
        public WebResponseContent ConveyorLineReset(string DeviceChildCode)
        {
            return Service.ConveyorLineReset(DeviceChildCode);
        }
 
        [HttpPost, Route("ConveyorLineEmergencyStop"), AllowAnonymous]
        public WebResponseContent ConveyorLineEmergencyStop(string DeviceChildCode)
        {
            return Service.ConveyorLineEmergencyStop(DeviceChildCode);
        }
 
        [HttpPost, Route("ConveyorLineReturn"), AllowAnonymous]
        public WebResponseContent ConveyorLineReturn(string DeviceChildCode)
        {
            return Service.ConveyorLineReturn(DeviceChildCode);
        }
 
        [HttpPost, Route("ConveyorLineCancel"), AllowAnonymous]
        public WebResponseContent ConveyorLineCancel(string DeviceChildCode)
        {
            return Service.ConveyorLineCancel(DeviceChildCode);
        }
 
        [HttpPost, Route("ConveyorLineInitialize"), AllowAnonymous]
        public WebResponseContent ConveyorLineInitialize(string DeviceChildCode)
        {
            return Service.ConveyorLineInitialize(DeviceChildCode);
        }
 
        [HttpPost, Route("RGVHandTask"), AllowAnonymous]
        public WebResponseContent RGVHandTask([FromBody] HandTask RGVhand)
        {
            return Service.RGVHandTask(RGVhand);
        }
 
        [HttpPost, Route("RGVReset"), AllowAnonymous]
        public WebResponseContent RGVReset(string DeviceCode)
        {
            return Service.RGVReset(DeviceCode);
        }
 
        [HttpPost, Route("RGVEmergencyStop"), AllowAnonymous]
        public WebResponseContent RGVEmergencyStop(string DeviceCode)
        {
            return Service.RGVEmergencyStop(DeviceCode);
        }
 
        [HttpPost, Route("RGVCancel"), AllowAnonymous]
        public WebResponseContent RGVCancel(string DeviceCode)
        {
            return Service.RGVCancel(DeviceCode);
        }
 
        [HttpPost, Route("RGVInitialize"), AllowAnonymous]
        public WebResponseContent RGVInitialize(string DeviceCode)
        {
            return Service.RGVInitialize(DeviceCode);
        }
 
        [HttpPost, Route("RGVPause"), AllowAnonymous]
        public WebResponseContent RGVPause(string DeviceCode)
        {
            return Service.RGVPause(DeviceCode);
        }
    }
}