1
This commit is contained in:
parent
0f3f95285f
commit
5907fcf67e
@ -335,6 +335,17 @@ namespace YunDa.ISAS.Application.GeneralInformation
|
|||||||
}
|
}
|
||||||
|
|
||||||
string deviceBoardStatesRedisKey = "deviceBoardStates";
|
string deviceBoardStatesRedisKey = "deviceBoardStates";
|
||||||
|
List<NameIntValueProperty> iopositions = new List<NameIntValueProperty>
|
||||||
|
{
|
||||||
|
new NameIntValueProperty("运行", 0),
|
||||||
|
new NameIntValueProperty("告警", 0),
|
||||||
|
new NameIntValueProperty("IO插件1", 0),
|
||||||
|
new NameIntValueProperty("IO插件2", 0),
|
||||||
|
new NameIntValueProperty("IO插件3", 0),
|
||||||
|
new NameIntValueProperty("IO插件4", 0),
|
||||||
|
new NameIntValueProperty("电源插件(IO5)", 0),
|
||||||
|
new NameIntValueProperty("液晶", 0)
|
||||||
|
};
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取板卡状态
|
/// 获取板卡状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -362,7 +373,15 @@ namespace YunDa.ISAS.Application.GeneralInformation
|
|||||||
{
|
{
|
||||||
|
|
||||||
var state = await _deviceBoardStatesRedis.HashSetGetAllAsync(deviceBoardStatesRedisKey, protectionDeviceInfo.DeviceAddress.ToString());
|
var state = await _deviceBoardStatesRedis.HashSetGetAllAsync(deviceBoardStatesRedisKey, protectionDeviceInfo.DeviceAddress.ToString());
|
||||||
|
if (state != null)
|
||||||
|
{
|
||||||
rst.ResultData = state.States.Select(t => new DeviceRunState { Name = t.Name, State = t.Value }).ToList();
|
rst.ResultData = state.States.Select(t => new DeviceRunState { Name = t.Name, State = t.Value }).ToList();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rst.ResultData = iopositions.Select(t => new DeviceRunState { Name = t.Name, State = t.Value }).ToList();
|
||||||
|
|
||||||
|
}
|
||||||
rst.Flag = true;
|
rst.Flag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3472,6 +3472,14 @@
|
|||||||
<param name="equipmentInfoId"></param>
|
<param name="equipmentInfoId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:YunDa.ISAS.Application.GeneralInformation.IBoardCardInfoAppService.GetBoardStateInfo(System.Guid,System.Guid)">
|
||||||
|
<summary>
|
||||||
|
查询板卡在线信息
|
||||||
|
</summary>
|
||||||
|
<param name="equipmentId"></param>
|
||||||
|
<param name="deviceId"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:YunDa.ISAS.Application.GeneralInformation.IProtectionDeviceAppService.FindDataByEquipmentInfoId(System.Nullable{System.Guid})">
|
<member name="M:YunDa.ISAS.Application.GeneralInformation.IProtectionDeviceAppService.FindDataByEquipmentInfoId(System.Nullable{System.Guid})">
|
||||||
<summary>
|
<summary>
|
||||||
查询保护设备信息
|
查询保护设备信息
|
||||||
@ -3493,6 +3501,14 @@
|
|||||||
<param name="stationId"></param>
|
<param name="stationId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:YunDa.ISAS.Application.GeneralInformation.IProtectionDeviceAppService.GetDeviceEventType(System.Int32,System.Int32)">
|
||||||
|
<summary>
|
||||||
|
获取装置事件类型
|
||||||
|
</summary>
|
||||||
|
<param name="deviceAddr"></param>
|
||||||
|
<param name="eventCode"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="T:YunDa.ISAS.Application.GeneralInformation.ProtectionDeviceAppService">
|
<member name="T:YunDa.ISAS.Application.GeneralInformation.ProtectionDeviceAppService">
|
||||||
<summary>
|
<summary>
|
||||||
保护装置履历信息管理类
|
保护装置履历信息管理类
|
||||||
@ -3572,7 +3588,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="M:YunDa.ISAS.Application.GeneralInformation.ProtectionDeviceAppService.GetDeviceEventType(System.Int32,System.Int32)">
|
<member name="M:YunDa.ISAS.Application.GeneralInformation.ProtectionDeviceAppService.GetDeviceEventType(System.Int32,System.Int32)">
|
||||||
<summary>
|
<summary>
|
||||||
获取装置时间类型
|
获取装置事件类型
|
||||||
</summary>
|
</summary>
|
||||||
<param name="deviceAddr"></param>
|
<param name="deviceAddr"></param>
|
||||||
<param name="eventCode"></param>
|
<param name="eventCode"></param>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user