Browse Source

222

样式分支
fyf 2 years ago
parent
commit
9b308cec48
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      BPASmartClient.IoT/DataVClient.cs

+ 6
- 4
BPASmartClient.IoT/DataVClient.cs View File

@@ -167,10 +167,12 @@ namespace BPASmartClient.IoT
{ {
DeviceId=device.DeviceId, DeviceId=device.DeviceId,
Name=device.Name, Name=device.Name,
DeviceType=device.DeviceType,
IsBusy=device.IsBusy,
IsHealth=device.IsHealth,
Status=device.Status.GetStatus(),
DeviceType=device.DeviceType.ToString(),
IsBusy=device.IsBusy?"忙碌":"空闲",
IsBusyColor= device.IsBusy ? new ALYColor {r=255,g=0,b=0,a=1} : new ALYColor {r = 51, g = 232, b = 34, a = 1 },
IsHealth =device.IsHealth?"健康":"故障",
IsHealthColor = !device.IsHealth ? new ALYColor { r = 255, g = 0, b = 0, a = 1 } : new ALYColor { r = 51, g = 232, b = 34, a = 1 },
Status = device.Status.GetStatus(),
}; };
dataVNode.data.Add(obj); dataVNode.data.Add(obj);
}); });


Loading…
Cancel
Save