| | |
| | | using Autofac.Core; |
| | | using HslCommunication; |
| | | using Microsoft.AspNetCore.Components.Routing; |
| | | using Microsoft.AspNetCore.Hosting; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.RefAndLookup; |
| | |
| | | Dt_Task? currtask = _taskService.CurrtaskInfo(commonStackerCrane.CurrentTaskNum); |
| | | if(currtask != null) |
| | | { |
| | | string PalletCode = ""; |
| | | //夿任å¡ç±»å |
| | | if(currtask.TaskType== (int)TaskTypeEnum.Inventorybound) |
| | | if (currtask.TaskType== (int)TaskTypeEnum.Inventorybound) |
| | | { |
| | | //è¯»åæ¡ç ï¼è¿è¡é
对 |
| | | |
| | | |
| | | DeviceProDTO? deviceProDTO = commonStackerCrane.DeviceProDTOs.FirstOrDefault(x => x.DeviceProParamName == "SCBarcode"); |
| | | byte[] bytes = commonStackerCrane.Communicator.Read(deviceProDTO.DeviceProAddress, 64); |
| | | string result = Encoding.ASCII.GetString(bytes).Replace(" ", ""); |
| | | |
| | | bool pandianBort = false; |
| | | if(currtask.PalletCode== result) pandianBort= true; |
| | | |
| | | //读åçæçæ¡ç |
| | | PalletCode = Encoding.ASCII.GetString(bytes).Replace(" ", ""); |
| | | } |
| | | |
| | | WebResponseContent webResponse = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum); |
| | | WebResponseContent webResponse = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum, PalletCode); |
| | | if (webResponse.Status) |
| | | { |
| | | |
| | | bool ddjfk = commonStackerCrane.SetValue(StackerCraneDBName.WorkType, 5); |
| | | } |
| | | } |
| | |
| | | { |
| | | if (commonStackerCrane.StackerCraneWorkStatusValue == StackerCraneWorkStatus.Standby) |
| | | { |
| | | Console.WriteLine("è¿è¡è·åä»»å¡"); |
| | | |
| | | Dt_Task? task = GetTask(commonStackerCrane); |
| | | if (task != null) |
| | | { |
| | |
| | | |
| | | public string LaneModification(string Roadway,int SCRow) |
| | | { |
| | | if (Roadway == "F") |
| | | if (Roadway == "G") |
| | | { |
| | | return SCRow == 1 ? "3" : "4"; |
| | | }else if(Roadway == "C") |