| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.IO; |
| | | using System.Text; |
| | | using WIDESEA_External.Model; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | |
| | | // WebResponseContent responseContent = Service.ContainerFlow(containerFlowDTO, stationManger.StationDeviceCode, stationManger.PickStationCode); |
| | | // if (!responseContent.Status) throw new Exception(responseContent.Message); |
| | | //} |
| | | WriteLog.Write_Log("䏿容卿µå¨å
¥åºæ¥å£", "ä»»å¡ä¿¡æ¯", $"è¿åè¾é线{stationManger.PickStationCode}", $"è¿åç»è¾é线çä»»å¡ä¿¡æ¯ï¼{containerFlowDTO.ToJson()}"); |
| | | commonConveyorLine.Communicator.Write("22", (containerFlowDTO.Direction == "100" ? new byte[] { 1, 0 } : new byte[] { 2, 0 })); |
| | | } |
| | | else |
| | |
| | | throw new Exception($"ä¼ å
¥æç®±ç {containerFlowDTO.ContainerCode}ï¼è¾éæç¶æï¼{W_PickToHode}ï¼ä¸æ»¡è¶³å
¥åºæ¡ä»¶"); |
| | | } |
| | | } |
| | | WriteLog.Write_Log("äºæå®¹å¨æµå¨å
¥åºæ¥å£", "ä»»å¡ä¿¡æ¯", $"è¿åè¾é线{stationManger.PickStationCode}", $"è¿åç»è¾é线çä»»å¡ä¿¡æ¯ï¼{containerFlowDTO.ToJson()}"); |
| | | commonConveyorLine.SetValue(ConveyorLineDBName.W_PickToHode, (short)containerFlowDTO.Direction.ObjToInt(), stationManger.StationCode); |
| | | } |
| | | content.OK(); |