| | |
| | | R_ConveyorLineYLInfo conveyorLineInfoRead = device.Communicator.ReadCustomer<R_ConveyorLineYLInfo>(deviceProRead.DeviceProAddress); |
| | | if (conveyorLineInfoRead != null && item.StationType == StationTypeEnum.StationType_InStartAndOutEnd.ObjToInt() && conveyorLineInfoRead.WR_ToHode <= 0 && conveyorLineInfoRead.WR_Request == 86 && !string.IsNullOrEmpty(conveyorLineInfoRead.WR_TMID)) //èåç³è¯·å
¥åº |
| | | { |
| | | WebResponseContent content = _taskService.YLPurchaseBoxing(conveyorLineInfoRead.WR_TMID); |
| | | WebResponseContent content = _taskService.YLPurchaseBoxing(conveyorLineInfoRead.WR_TMID, weight: conveyorLineInfoRead.WR_Weight, thickness: conveyorLineInfoRead.WR_Height, wide: conveyorLineInfoRead.WR_Width, stationCode: item.StationCode); |
| | | if (content.Status) |
| | | { |
| | | device.SetValue(WR_CLineYLDB.WR_Reresult, 86, item.StationCode); |
| | |
| | | { |
| | | WriteError(item.StationCode, $"请æ±éæå¤±è´¥ï¼{content.Message}"); |
| | | } |
| | | }else if (conveyorLineInfoRead != null && item.StationType == StationTypeEnum.StationType_InStartAndOutEnd.ObjToInt() && conveyorLineInfoRead.WR_ToHode <= 0 && conveyorLineInfoRead.WR_Request == 98 && !string.IsNullOrEmpty(conveyorLineInfoRead.WR_TMID)) //èåç³è¯·åºåº |
| | | { |
| | | Dt_Task task = _taskRepository.QueryFirst(x => _taskService.TaskOutboundTypes.Contains(x.TaskType) && x.TaskState == TaskStatusEnum.Line_Executing.ObjToInt() && x.DeviceCode == device.DeviceCode && x.RfidCode == conveyorLineInfoRead.WR_TMID); |
| | | if (task != null) |
| | | { |
| | | //ä»»å¡åå¤ |
| | | device.SetValue(WR_CLineYLDB.WR_Reresult, 98, item.StationCode); |
| | | _taskService.TaskCompleted(task.TaskNum); |
| | | WriteInfo(item.StationCode, $"ä»»å¡å·:{task.TaskNum}ï¼RIFD{conveyorLineInfoRead.WR_TMID}èåæ¿å®æ"); |
| | | } |
| | | else |
| | | { |
| | | WriteError(item.StationCode, $"{conveyorLineInfoRead.WR_TMID}对åºRFIDä»»å¡ä¸åå¨"); |
| | | } |
| | | } |
| | | } |
| | | else |