| | |
| | | if (flag && value != null && value is STK commonStackerCrane) |
| | | { |
| | | List<string> childCodes = commonStackerCrane.DeviceProDTOs.GroupBy(d => d.DeviceChildCode).Select(g => g.Key).ToList(); |
| | | childCodes = new List<string> { "SC01", "SC03", "SC05", "SC07" }; //æµè¯ä½¿ç¨ |
| | | Parallel.For(0, childCodes.Count, (i, state) => |
| | | { |
| | | //ConsoleHelper.WriteColorLine($"ã{childCodes[i]}ãæ¶é´ã{DateTime.Now}ããã{Thread.CurrentThread.ManagedThreadId}ã", ConsoleColor.Magenta); |
| | |
| | | |
| | | Thread.Sleep(500); |
| | | WebResponseContent responseContent = SendStackerTask(commonStackerCrane, task, childCodes[i]); |
| | | if(responseContent.Status) |
| | | if (responseContent.Status) |
| | | { |
| | | _taskService.UpdateTaskStatusToNext(task.TaskNum); |
| | | } |
| | |
| | | { |
| | | //return task; |
| | | |
| | | var stationList = _stationManagerRepository.QueryData(x => x.stationType == 2 && x.Roadway == task.Roadway); |
| | | //var stationList = _stationManagerRepository.QueryData(x => x.stationType == 2 && x.Roadway == task.Roadway); |
| | | |
| | | //foreach (var item in stationList) |
| | | //{ |
| | |
| | | { |
| | | return responseContent.Error(ex.Message); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |