| | |
| | | { |
| | | case 0: |
| | | { |
| | | // if (doorLock == null) |
| | | // { |
| | | // ///防止抛异常 |
| | | // Send.CurrentDoorLock = new DoorLock(); |
| | | // } |
| | | // ///备注:WJC的 |
| | | //// Shared.Phone.Device.Logic.Send.CurrentDoorLock = doorLock; |
| | | // ///进来刷新一次设备列表; |
| | | // Common.Logic.LogicDviceList.Clear(); |
| | | // if (Common.Logic.LogicDviceList.Count == 0) |
| | | // { |
| | | // Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | // } |
| | | // var addLogicPage = new Shared.Phone.Device.Logic.SoneLogicList(); |
| | | // UserView.HomePage.Instance.AddChidren(addLogicPage); |
| | | // UserView.HomePage.Instance.PageIndex += 1; |
| | | // addLogicPage.Show(); |
| | | // addLogicPage.action += (w) => |
| | | // { |
| | | // //doorLock.IsDoorLockNormallyMode = w; |
| | | // /////留给徐梅用的 |
| | | // //UpdateNomallyOpenStatus(); |
| | | // }; |
| | | |
| | | |
| | | //new一个新逻辑对象; |
| | | //新增正常自动化入口 |
| | | Common.Logic.CurrentLogic = new Common.Logic(); |
| | |
| | | /// </summary> |
| | | public static void ShowAutotionView(FrameLayout functionSceneAutoBodyView) |
| | | { |
| | | // functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; |
| | | //functionSceneAutoBodyView.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; |
| | | #region ---推荐模板的组件 |
| | | //推荐模板背景控件 |
| | | var bjFrameLayout = new FrameLayout |
| | |
| | | /// <param name="timeVlaue">时间值</param> |
| | | /// <param name="common">设备</param> |
| | | /// <returns></returns> |
| | | public static async System.Threading.Tasks.Task<bool> LockAddModifyLogic(int timeVlaue, CommonDevice common) |
| | | public static async System.Threading.Tasks.Task<int> LockAddModifyLogic(int timeVlaue, CommonDevice common) |
| | | { |
| | | //读取系统当前时间:时-分 |
| | | var h = DateTime.Now.ToString("HH"); |
| | |
| | | { |
| | | //添加门锁失效时间的历史记录 |
| | | UserCenter.HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog((DoorLock)common, 9003, timeVlaue.ToString()); |
| | | return true;//表示添加成功; |
| | | return logicIfon.LogicId;//表示添加成功; |
| | | } |
| | | return false;//表示添加失败; |
| | | return 0;//表示添加失败; |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | return exist; |
| | | } |
| | | |
| | | |
| | | ///<summary> |
| | | ///获取逻辑信息 |
| | | /// 返回值:null不存在;其它值都存在; |
| | |
| | | } |
| | | return _if; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |