| | |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | ///门锁特殊 |
| | | deviceTypeList.Add(DeviceType.DoorLock); |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |
| | | break; |
| | | case "condition_mould": |
| | |
| | | deviceTypeList.Add(DeviceType.Thermostat); |
| | | deviceTypeList.Add(DeviceType.AirSwitch); |
| | | ///门锁特殊 |
| | | deviceTypeList.Add(DeviceType.DoorLock); |
| | | // deviceTypeList.Add(DeviceType.DoorLock); |
| | | } |
| | | break; |
| | | |
| | |
| | | { |
| | | succeed = true; |
| | | CurrentLogic.LogicId = logicifon.LogicId; |
| | | Common.Logic.LogicList.Add(CurrentLogic); |
| | | if (LogicView.IfString._LockLogic == if_logic) |
| | | { |
| | | //门锁联动事件逻辑列表 |
| | | Common.Logic.LockLogicList.Add(CurrentLogic); |
| | | } |
| | | else |
| | | { |
| | | //自动化逻辑列表 |
| | | Common.Logic.LogicList.Add(CurrentLogic); |
| | | |
| | | } |
| | | if (tag) |
| | | { |
| | | Send.Zj(tag, CurrentLogic); |
| | |
| | | |
| | | if (LogicView.IfString._Logic == if_logic) |
| | | { |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic"); |
| | | if (CurrentLogic.LogicType == 0) |
| | | { |
| | | |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic"); |
| | | //只刷新分类上下滑动view; |
| | | Phone.Category.CategoryMainForm.instance?.RefreshBodyView(); |
| | | // Category.Category.instance?.RefreshBodyView(); |
| | |
| | | } |
| | | else if (LogicView.IfString._LockLogic == if_logic) |
| | | { |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic"); |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic");//移除所有标记Logic界面 |
| | | UserView.HomePage.Instance.RemoveViewByTag("LockListView");//移除所有标记LockListView界面 |
| | | var doorLockLogicList = new DoorLockLogic.LockLogicList(); |
| | | UserView.HomePage.Instance.AddChidren(doorLockLogicList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | |
| | | deviceTarget.Show(str1, str2); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |