| | |
| | | int putPoZ = OPositions.HPositions[putPositions[0]].PositionZ - Convert.ToInt32(putPositions[3]) * 1000; |
| | | |
| | | int putPoR = 0; |
| | | |
| | | int oriTakePoX = takePoX; |
| | | int oriTakePoY = takePoY; |
| | | int oriTakePoZ = takePoZ; |
| | | int oriPutPoX = putPoX; |
| | | int oriPutPoY = putPoY; |
| | | int oriPutPoZ = putPoZ; |
| | | #endregion |
| | | |
| | | #region åæ ä¹ä»¥1000å¤ç,2#é¾é¨æ¶åå(ä¹ä»¥-1000) |
| | |
| | | { |
| | | putPoX = putPoX - (orderContainer.MaxWidth - container.ContainerWidth) / 2 * temp; |
| | | } |
| | | |
| | | if (putPositions[0] == "C016" && containerItem.ItemWidth > 600) |
| | | { |
| | | putPoX = putPoX - (container.ContainerWidth - 600) / 2 * temp; |
| | | } |
| | | #endregion |
| | | |
| | | #region åæ èå´å¤æ |
| | |
| | | |
| | | if (putPoX < minX || putPoX > maxX) |
| | | { |
| | | WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}-åæ ", $"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}"); |
| | | if (task.ExceptionMessage?.Contains($"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}") ?? true) |
| | | if (putPoX < minX) |
| | | { |
| | | task.ExceptionMessage = $"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}"; |
| | | _taskRepository.UpdateData(task); |
| | | int tempX = minX - putPoX; |
| | | takePoX -= tempX; |
| | | putPoX = minX; |
| | | } |
| | | if (LightStatusStorage.LightStatusDic.ContainsKey(putPositions[0])) |
| | | if (takePoX < minX || takePoX > maxX) |
| | | { |
| | | LightStatusStorage.LightStatusDic[putPositions[0]] = LightStatusEnum.LightError; |
| | | WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}-åæ ", $"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}"); |
| | | if (task.ExceptionMessage?.Contains($"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}") ?? true) |
| | | { |
| | | task.ExceptionMessage = $"Xæ¾è´§åæ è¶
åºèå´,åè´§åæ ï¼{putPoX},æå¤§å¼ï¼{maxX},æå°å¼ï¼{minX}"; |
| | | _taskRepository.UpdateData(task); |
| | | } |
| | | if (LightStatusStorage.LightStatusDic.ContainsKey(putPositions[0])) |
| | | { |
| | | LightStatusStorage.LightStatusDic[putPositions[0]] = LightStatusEnum.LightError; |
| | | } |
| | | return Task.CompletedTask; |
| | | } |
| | | return Task.CompletedTask; |
| | | } |
| | | |
| | | if (takePoY < minY || takePoY > maxY) |