浏览代码

222

样式分支
fyf 2 年前
父节点
当前提交
9b308cec48
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. +6
    -4
      BPASmartClient.IoT/DataVClient.cs

+ 6
- 4
BPASmartClient.IoT/DataVClient.cs 查看文件

@@ -167,10 +167,12 @@ namespace BPASmartClient.IoT
{
DeviceId=device.DeviceId,
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);
});


正在加载...
取消
保存