| | |
| | | { |
| | | ///区分出输入条件和输出目标设备 |
| | | var listdevicetype = GetDevice(type); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype); |
| | | var listdevice = GetDeviceUIList(listAllRoom[i], listdevicetype, type); |
| | | if (listdevice.Count == 0) |
| | | { |
| | | ///过滤掉没有设备的房间 |
| | |
| | | /// </summary> |
| | | /// <param name="room">当前房间</param> |
| | | /// <param name="deviceTypelist">设备类型</param> |
| | | /// /// <param name="type">逻辑类型</param> |
| | | /// <returns></returns> |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist) |
| | | public static List<CommonDevice> GetDeviceUIList(Common.Room room, List<DeviceType> deviceTypelist,string type) |
| | | { |
| | | var deviceUIlist = new List<CommonDevice>(); |
| | | foreach (var deviceKey in room.ListDevice) |
| | |
| | | continue;
|
| | | } |
| | | } |
| | | if (type == "condition_mould") |
| | | { |
| | | if (device.Type == DeviceType.IASZone) |
| | | { |
| | | if (device.IasDeviceType != 13) |
| | | {//自动化模板只支持红外传感器 |
| | | continue; |
| | | } |
| | | if (device.ModelIdentifier == "MSPIRB-ZB.10") |
| | | { |
| | | //自动化模板不支持光照度 |
| | | continue; |
| | | } |
| | | |
| | | } |
| | | } |
| | | deviceUIlist.Add(device); |
| | | } |
| | | return deviceUIlist; |