| | |
| | | } |
| | | break; |
| | | //环境检测传感器 |
| | | case SPK.SensorEnvironment: |
| | | case SPK.SensorEnvironment:case SPK.SensorEnvironmentHailin: |
| | | case SPK.SensorEnvironment2: |
| | | case SPK.SensorEnvironment3: |
| | | { |
| | |
| | | }; |
| | | } |
| | | break; |
| | | //pm210 |
| | | //pm10 |
| | | case SPK.SensorPm10: |
| | | { |
| | | ///pm210 |
| | |
| | | } |
| | | } |
| | | break; |
| | | |
| | | //萤石视频门锁 |
| | | case SPK.VideoDoorLock: |
| | | { |
| | | LogicView.FunTypeView view1 = new LogicView.FunTypeView(); |
| | | view1.btnText.TextID=StringId.yonghurenyuan; |
| | | view1.btnText.Name = Language.StringByID(StringId.shipinmensuo); |
| | | fLayout.AddChidren(view1.FLayoutView()); |
| | | view1.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | this.identifier = "open_door";//开锁事件 |
| | | this.VideoDoorLockAction(this, device, view1.btnState); |
| | | }; |
| | | if (edit) |
| | | { |
| | | this.GetEditState(device, index, view1.btnState,null, null, null); |
| | | } |
| | | } |
| | | break; |
| | | |
| | | } |
| | | #region 保存 |
| | | ///保存View |
| | |
| | | Input inputDevice = new Input(); |
| | | inputDevice.condition_type = "3"; |
| | | inputDevice.sid = device.sid; |
| | | inputDevice.condition = dicSateteList; |
| | | inputDevice.condition.AddRange(dicSateteList); |
| | | if (device.spk == SPK.doorgate) |
| | | { |
| | | //可视对讲 |
| | |
| | | //condition默认[] |
| | | inputDevice.condition = new List<Dictionary<string, string>>(); |
| | | } |
| | | } |
| | | else if (device.spk == SPK.VideoDoorLock) |
| | | { |
| | | ////萤石视频门锁 |
| | | inputDevice.condition_type = "9"; |
| | | inputDevice.identifier = this.identifier; |
| | | } |
| | | |
| | | |
| | |
| | | if (inputs.condition.Count != 0) |
| | | { |
| | | //有数据重新赋值 |
| | | dicSateteList = inputs.condition; |
| | | dicSateteList.AddRange(inputs.condition); |
| | | } |
| | | } |
| | | new LogicView.TipPopView { }.InputBox(textInt, stateValue, (value) => |
| | |
| | | if (inputs.condition.Count != 0) |
| | | { |
| | | //有数据重新赋值 |
| | | dicSateteList = inputs.condition; |
| | | dicSateteList.AddRange(inputs.condition); |
| | | } |
| | | } |
| | | PublicInterface view = new PublicInterface(); |
| | |
| | | case SPK.SensorPm25: |
| | | case SPK.SensorTVOC: |
| | | case SPK.SensorHcho: |
| | | case SPK.SensorPm10: |
| | | { |
| | | if (!Is_SpkAttribute(key)) |
| | | { |
| | |
| | | if (dicList.Count != 0) |
| | | { |
| | | //有数据重新赋值 |
| | | dicSateteList = dicList; |
| | | dicSateteList.AddRange(dicList); |
| | | } |
| | | InpOrOutLogicMethod.Current.EditDeviceState(device, dicList, button1, button2, button3, button4); |
| | | } |