| | |
| | | list.AddRange(list2); |
| | | list.AddRange(FunctionList.List.groupControls); |
| | | #if DEBUG |
| | | GetTestDevice(ref list, true); |
| | | //GetTestDevice(ref list, true); |
| | | #endif |
| | | return list; |
| | | } |
| | |
| | | return "FunctionIcon/DoorLock/DoorLock.png"; |
| | | } |
| | | else if (SPK.SensorDryContact == device.spk |
| | | || SPK.SensorDryContact2 == device.spk) |
| | | || SPK.SensorDryContact2 == device.spk |
| | | || SPK.OtherCommon == device.spk |
| | | ) |
| | | { |
| | | return "LogicIcon/ganjiedian.png"; |
| | | } |
| | |
| | | || device.spk == SPK.LightCCT |
| | | || device.spk == SPK.LightRGB |
| | | || device.spk == SPK.LightRGBW |
| | | || device.spk == SPK.OtherCommon |
| | | ); |
| | | if (lightjosn != null) |
| | | { |
| | |
| | | functionTypeList.Add(SPK.AirSwitch); |
| | | functionTypeList.Add(SPK.PanelSocket); |
| | | functionTypeList.Add(SPK.ElectricSocket); |
| | | functionTypeList.Add(SPK.OtherCommon); |
| | | } |
| | | //群控 |
| | | else if (deviceType == Language.StringByID(StringId.GroupControl)) |
| | |
| | | functionTypeList.Add(SPK.SensorPirHold); |
| | | functionTypeList.Add(SPK.ElectricalTvHisense); |
| | | functionTypeList.Add(SPK.SensorLight); |
| | | functionTypeList.Add(SPK.OtherCommon); |
| | | |
| | | } |
| | | |
| | |
| | | deviceTypeList.Add(SPK.MechanicalArm); |
| | | deviceTypeList.Add(SPK.AcIr); |
| | | deviceTypeList.Add(SPK.ElectricalTvHisense); |
| | | deviceTypeList.Add(SPK.OtherCommon); |
| | | } |
| | | break; |
| | | } |
| | |
| | | new Entity.Function { sid = "1234567890", name = "光照传感器", spk = Entity.SPK.SensorLight }, |
| | | new Entity.Function { sid = "1234567891", name = "干节点", spk = Entity.SPK.SensorDryContact }, |
| | | new Entity.Function { sid = "1234567892", name = "紧急求助传感器", spk = Entity.SPK.SensorHelp }, |
| | | new Entity.Function { sid = "12345678921", name = "通用开关", spk = Entity.SPK.OtherCommon }, |
| | | //new Entity.Function { sid = "12345678933456", name = "门锁", spk = Entity.SPK.DoorLock }, |
| | | // new Entity.Function { sid = "1234567895444", name = "视频门锁", spk = Entity.SPK.VideoDoorLock }, |
| | | //new Entity.Function { sid = "12345678968888", name = "人体存在传感器", spk = Entity.SPK.SensorPirHold }, |