| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Core; |
| | |
| | | { |
| | | return Service.GetImportData(fileInput); |
| | | } |
| | | |
| | | [HttpPost, Route("AddAfterDeviceProtocol"), AllowAnonymous] |
| | | public WebResponseContent AddDeviceProtocol(int DeviceID,string DeviceChildCode, decimal DeviceProOffset) |
| | | { |
| | | return Service.AddAfterDeviceProtocol(DeviceID, DeviceChildCode, DeviceProOffset); |
| | | } |
| | | |
| | | [HttpPost, Route("AddBeforeDeviceProtocol"), AllowAnonymous] |
| | | public WebResponseContent AddBeforeDeviceProtocol(int DeviceID, string DeviceChildCode, decimal DeviceProOffsetRead, decimal DeviceProOffsetWrite) |
| | | { |
| | | return Service.AddBeforeDeviceProtocol(DeviceID, DeviceChildCode, DeviceProOffsetRead, DeviceProOffsetWrite); |
| | | } |
| | | [HttpPost, Route("AddBeforReadDeviceProtocol"), AllowAnonymous] |
| | | public WebResponseContent AddBeforReadDeviceProtocol(int DeviceID, string DeviceChildCode, decimal DeviceProOffsetRead) |
| | | { |
| | | return Service.AddBeforReadDeviceProtocol(DeviceID, DeviceChildCode, DeviceProOffsetRead); |
| | | } |
| | | } |
| | | } |