| | |
| | | 锘縰sing Autofac.Core; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Components.Routing; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | |
| | | var axis = _packaxisRepository.QueryFirst(x => x.DeviceCode == item.StackerCraneCode && x.StationCode == stationPackInfo.StationCode && x.PackType== stationPackInfo.PackType); |
| | | if (axis != null) |
| | | { |
| | | //寮哄埗缁撴墭 |
| | | if (PackState == 2 && Convert.ToInt32(PackNum) < axis.PackNum) |
| | | { |
| | | WebResponseContent responseContent = _packaxisTaskService.BoxingInBound(item.StationCode); |
| | | if (responseContent.Status) |
| | | { |
| | | device.Communicator.Write<short>(device.DeviceProDTOs.FirstOrDefault(x => x.DeviceProParamName == GetPackSendEnum(item.StackerCraneStationCode).ToString()).DeviceProDataBlock, 2); |
| | | WriteInfo(item.StationName, $"{item.StationName}鍐欏叆宸ヤ綅寮哄埗缁撴墭淇″彿"); |
| | | } |
| | | else |
| | | { |
| | | WriteError(item.StationName, $"{responseContent.Message}"); |
| | | } |
| | | continue; |
| | | } |
| | | //杩涜缁撴墭 |
| | | if (Convert.ToInt32(PackNum) == axis.PackNum) |
| | | { |