| | |
| | | Platform platform = _platFormRepository.QueryFirst(x => x.DeviceCode == conveyorLine.DeviceCode && x.PlatCode == childDeviceCode && x.Status == "Active"); |
| | | if (platform != null && !string.IsNullOrEmpty(platform.Location)) |
| | | { |
| | | if (platform.PlatCode == "2040" || platform.PlatCode == "2036" || platform.PlatCode == "2032" || platform.PlatCode == "2028" || platform.PlatCode == "2024") |
| | | if (platform.PlatCode == "1299" || platform.PlatCode == "1295" || platform.PlatCode == "1291" || platform.PlatCode == "1287" || platform.PlatCode == "1283") |
| | | { |
| | | Platform platformJZ = _platFormRepository.QueryFirst(x => x.PlatCode == "10086" && x.Status == "Active"); |
| | | if (platformJZ != null) |
| | |
| | | } |
| | | } |
| | | } |
| | | //else |
| | | //{ |
| | | // //ConsoleHelper.WriteErrorLine("静置空托不允许出料"); |
| | | //} |
| | | } |
| | | else |
| | | { |
| | |
| | | // 如果已有任务数量小于指定索引 |
| | | if (tasks.Count < Location.Count) |
| | | { |
| | | ConsoleHelper.WriteSuccessLine($"{childDeviceCode}"); |
| | | return childDeviceCode; |
| | | } |
| | | else |