| | |
| | | unLockMethod.Show(); |
| | | } |
| | | else if (currentIndex == 1) |
| | | { |
| | | { |
| | | if (!btnRight.IsSelected) |
| | | { |
| | | FreezeUser(true); |
| | | FreezeUser(true); |
| | | } |
| | | else |
| | | { |
| | | FreezeUser(false); |
| | | FreezeUser(false); |
| | | } |
| | | } |
| | | else if (currentIndex == 2) |
| | | { |
| | | { |
| | | if (!btnRight.IsSelected) |
| | | { |
| | | HasRemoteUnlockAccessMethod(true); |
| | | HasRemoteUnlockAccessMethod(true); |
| | | } |
| | | else |
| | | { |
| | | HasRemoteUnlockAccessMethod(false); |
| | | HasRemoteUnlockAccessMethod(false); |
| | | } |
| | | } |
| | | }; |
| | |
| | | foreach (var curDoorLockUser in curAccountDoorLockUserList)
|
| | | {
|
| | | // 账户中没有门锁用户
|
| | | if (curDoorLockUser.DoorLockLocalUserId == null || curDoorLockUser.DoorLockLocalUserId == "")
|
| | | { |
| | | if (string.IsNullOrEmpty(curDoorLockUser.DoorLockLocalUserId))
|
| | | {
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | //冻结/解冻用户
|
| | | int count1 = tempGroupId.Count; |
| | | if (tempGroupId.Count==1) |
| | | if (tempGroupId.Count == 1) |
| | | { |
| | | foreach (var a in tempGroupId) |
| | | { |
| | | if(a.Count ==0) |
| | | if (a.Count == 0) |
| | | { |
| | | count1 = 0; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | int count2 = 0; |
| | | |
| | |
| | | else if (resultData.defaultControlResponseData.status == 33) |
| | | { |
| | | count2++; |
| | | } |
| | | System.Threading.Thread.Sleep(1000); |
| | | } |
| | | System.Threading.Thread.Sleep(1000); |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | tempCount++; |
| | | } |
| | | |
| | | |
| | | // 批量冻结门锁中的账户后,准备冻结云端账户 |
| | | if (count2 == count1) |
| | | { |
| | |
| | | });
|
| | | }
|
| | | });
|
| | | }; |
| | | }; |
| | | } |
| | | |
| | | //是否给子账户拥有远程开锁的条件 |
| | |
| | | }); |
| | | } |
| | | }); |
| | | }; |
| | | }; |
| | | } |
| | | |
| | | #region ◆ 接口实现__________________________ |