| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Reflection.Metadata; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common; |
| | |
| | | WriteError(conveyorLine.DeviceCode, $"{station.PickStationCode}æ£éç³è¯·ä¸º{PickRequest}æ¡ç 为空å¼"); |
| | | } |
| | | } |
| | | |
| | | //æé®ç³è¯· |
| | | bool DownRequest = conveyorLine.GetValue<ConveyorLineDBName, bool>(ConveyorLineDBName.R_DownRequest, station.StationCode); |
| | | if (DownRequest) |
| | | { |
| | | string PickBarCode = conveyorLine.GetValue<ConveyorLineDBName, string>(ConveyorLineDBName.R_PickBarCode, station.StationCode).Trim(); |
| | | //䏿¥WMSæç®±å°è¾¾ |
| | | if (PickBarCode.IsNotEmptyOrNull()) |
| | | { |
| | | ContainerFlowDTO containerFlowDTO = new ContainerFlowDTO() |
| | | { |
| | | SlotCode = station.PickStationCode, |
| | | ContainerCode = PickBarCode, |
| | | Direction="100" |
| | | }; |
| | | WebResponseContent responseContent = _taskService.ContainerFlow(containerFlowDTO, station.StationDeviceCode, station.PickStationCode); |
| | | if (responseContent.Status) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.W_PickToHode, (short)containerFlowDTO.Direction.ObjToInt(), station.StationCode); |
| | | } |
| | | else |
| | | { |
| | | WriteError(conveyorLine.DeviceCode, $"{station.PickStationCode}æé®ç³è¯·é误{PickBarCode}ï¼ä¿¡æ¯{responseContent.Message}"); |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | WriteError(conveyorLine.DeviceCode, $"{station.PickStationCode}æé®ç³è¯·ä¸º{DownRequest}æ¡ç 为空å¼"); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |