| | |
| | | { |
| | | public partial class TaskService |
| | | { |
| | | /// <summary> |
| | | /// åéAGVä»»å¡ |
| | | /// </summary> |
| | | /// <param name="taskModel"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent AgvSendTask(AgvTaskDTO taskModel, APIEnum SendTask = APIEnum.Agv_CSJSendTask) |
| | | public WebResponseContent AgvSendTask(AgvTaskSendDTO taskModel, APIEnum SendTask = APIEnum.AgvSendTask) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | |
| | | return content; |
| | | } |
| | | /// <summary> |
| | | /// å®å
¨ä¿¡å·ç³è¯· AGV-WCS |
| | | /// AGVç¡®è®¤å®ææ¥å£(åæ¾) |
| | | /// </summary> |
| | | public AgvResponseContent AgvSecureApply(AgvSecureApplyDTO secureApplyModel) |
| | | /// <param name="agvFinishDTO"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent AGVFinish(AgvFinishDTO agvFinishDTO) |
| | | { |
| | | return new AgvResponseContent(); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | string? apiAddress = apiInfos.FirstOrDefault(x => x.ApiCode == APIEnum.AgvFinish.ToString())?.ApiAddress; |
| | | if (string.IsNullOrEmpty(apiAddress)) |
| | | return WebResponseContent.Instance.Error($"æªæ¾å°åéAGV任塿¥å£,è¯·æ£æ¥æ¥å£é
ç½®"); |
| | | string response = HttpHelper.Post(apiAddress, agvFinishDTO.Serialize()); |
| | | AgvFinishResponse agvContent = response.DeserializeObject<AgvFinishResponse>(); |
| | | if (agvContent.Success) |
| | | { |
| | | content.OK(); |
| | | } |
| | | else |
| | | { |
| | | content.Error(agvContent.Content); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content.Error(ex.Message); |
| | | } |
| | | return content; |
| | | } |
| | | /// <summary> |
| | | /// å®å
¨ä¿¡å·åå¤ WCS-AGV //AGVä»»å¡ç»§ç»æ§è¡ |