| | |
| | | EventHandler<MouseEventArgs> foolrnameclick = (sender13, e13) => |
| | | { |
| | | roomhorizontalScrol.RemoveAll(); |
| | | devicetypehorizontalScrol.RemoveAll(); |
| | | middle.RemoveAll(); |
| | | foolrname.Text = btnfoolrname.Text; |
| | | flMain.RemoveFromParent(); |
| | | var list = Send.GetRoomList(btnfoolrname.Tag.ToString()); |
| | |
| | | |
| | | var roomlists = new List<Common.Room>(); |
| | | roomlists.Clear(); |
| | | if (Config.Instance.Home.FloorDics.Count < 1) |
| | | if (Config.Instance.Home.FloorDics.Count < 2) |
| | | { |
| | | foolrname.Visible = false; |
| | | dropdown.Visible = false; |
| | |
| | | break; |
| | | case DeviceType.DoorLock: |
| | | { |
| | | #region ------ |
| | | var doorlockifonlist = Send.ReadDoorLockIfon("ccccccfffe300347"); |
| | | //var list = Send.ReadDoorLockIfon(common.DeviceAddr); |
| | | var pra = new UserCenter.MemberListInfoPra(); |
| | | string result = await UserCenter.UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountByDistributedMark", false, pra); |
| | | var listInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<List<UserCenter.MemberInfoRes>>(result); |
| | | Send.UserList.Clear(); |
| | | for (int i = 0; i < listInfo.Count; i++) |
| | | { |
| | | var membership = new Send.MembershipIfon(); |
| | | var membershipifon = listInfo[i]; |
| | | for (int j = 0; j < doorlockifonlist.Count; j++) |
| | | { |
| | | ///查找成员以及成员门锁触发源(1按键/3卡/15指纹) |
| | | if (doorlockifonlist[j].CloudAccountId == membershipifon.SubAccountDistributedMark) |
| | | { |
| | | membership.UserIdMode.Add(doorlockifonlist[j].UserIdMode); |
| | | membership.MembershipName = membershipifon.UserName; |
| | | membership.MembershipId = membershipifon.SubAccountDistributedMark; |
| | | |
| | | } |
| | | |
| | | } |
| | | if (membership.UserIdMode.Count != 0) |
| | | { |
| | | ///过滤掉重复数据; |
| | | var str = Send.UserList.Find((c) => { return c.MembershipId == membership.MembershipId; }); |
| | | if (str == null) |
| | | { |
| | | Send.UserList.Add(membership); |
| | | } |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | var memberList = new MemberList(); |
| | | UserView.HomePage.Instance.AddChidren(memberList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |