| | |
| | | using HslCommunication; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.Drawing.Chart; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common.ShuttleCarEnum; |
| | |
| | | var complete = shuttleCar.GetValue<ShuttleCarDBName, bool>(ShuttleCarDBName.TaskComplete); |
| | | if (complete && command.TaskTypeComplete > (short)ShuttleCarTaskComplete.Standby) |
| | | { |
| | | #region æ¥å¿è®°å½ |
| | | FieldInfo? fieldInfo = typeof(ShuttleCarTaskComplete).GetField(((ShuttleCarTaskComplete)command.TaskTypeComplete).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | var type = description?.Description ?? ((ShuttleCarTaskComplete)command.TaskTypeComplete).ToString(); |
| | | WriteDebug($"{shuttleCar.DeviceName}ä»»å¡å®æ", $"ä»»å¡å·ã{command.number}ã,å®æç±»åã{type}ã"); |
| | | #endregion |
| | | _taskService.ShuttleCarTaskCompleted(command.number, command.TaskTypeComplete); |
| | | shuttleCar.SetValue(ShuttleCarDBName.ConfirmComplete, true, shuttleCar.DeviceCode); |
| | | } |
| | |
| | | #region å建移车å
çµä»»å¡ |
| | | if (command.Err_Status == (short)ShuttleCarErr.LowBattery || command.ElectricQuantity <= (short)ShuttleCarErr.LowBattery) |
| | | { |
| | | var ShuttleCar = QueryCode(shuttleCar.DeviceCode);//å¨å
çµä½ç´æ¥è®©ç©¿æ¢è½¦å»å
çµ |
| | | //çæå åæºç§»è½¦ä»»å¡&ç©¿æ¢è½¦å
çµä»»å¡,夿æ¯å¦æç©¿æ¢è½¦å¨å
çµ |
| | | var ShuttleCar = QueryCode(shuttleCar.DeviceCode); |
| | | #region å¤æç©¿æ¢è½¦å½åä½ç½®æ¯å¦æä»»å¡ |
| | | if (_taskRepository.QueryFirst(x => x.SourceAddress == ShuttleCar.ShuttleCarPosition || x.TargetAddress == ShuttleCar.ShuttleCarPosition) == null) |
| | | { |
| | | Dt_Task _Task = _taskRepository.QueryFirst(x => x.TaskType == TaskOtherTypeEnum.RelocationCarCharging.ObjToInt()); |
| | | if (_Task != null) |
| | | { |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | #endregion |
| | | |
| | | #region è·å移车/åºå
¥åºä»»å¡ |
| | | if (command != null && |