| | |
| | | if (dt_Task != null) |
| | | { |
| | | var ShuttleCar = QueryCode(dt_Task.ShuttleCarCode); |
| | | ShuttleCar.ShuttleCarPosition = dt_Task.TargetAddress; |
| | | ShuttleCar.ShuttleCarPosition = dt_Task.CurrentAddress; |
| | | string[] targetCodes = ShuttleCar.ShuttleCarPosition.Split("-"); |
| | | |
| | | _shuttleCarService.UpdateData(ShuttleCar); |
| | | if (string.IsNullOrEmpty(dt_Task.Remark))//å®æç§»åºä»»å¡ |
| | | _taskService.AddTask_Hty(dt_Task, TaskOperateTypeEnum.AutoComplete); |
| | |
| | | ShuttleCarTaskCommandR command = ReadCustomer<ShuttleCarTaskCommandR>(shuttleCar, shuttleCar.DeviceCode);//读åç©¿æ¢è½¦ä¿¡æ¯ |
| | | if (command != null && command.Status == (short)ShuttleCarStatus.Standby && command.TaskTypeComplete == (short)ShuttleCarTaskComplete.Standby && command.Err_Status == (short)ShuttleCarErr.Normal) |
| | | { |
| | | #region 夿å°è½¦ä½ç½®æ ABé¢ä¸ä¸åä»»å¡ |
| | | if (command.Position != 1 && command.Position != 2) |
| | | { |
| | | task.ExceptionMessage = $"{shuttleCar.DeviceName}å°è½¦ä½ç½®å¼å¸¸"; |
| | | _taskService.UpdateData(task); |
| | | return; |
| | | } |
| | | #endregion |
| | | //ä»»å¡è½¬æ¢ |
| | | ShuttleCarTaskCommandW shuttleCarTaskCommand = new ShuttleCarTaskCommandW(); |
| | | shuttleCarTaskCommand.Direction = command.Position; |