This commit is contained in:
2024-05-10 09:49:58 +08:00
parent 4156acfeaa
commit 0344f3a3a0
12 changed files with 42 additions and 32 deletions
@@ -153,16 +153,23 @@
/// <param name="e"></param>
protected void btnMenuUnLock_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
if (this.CurrUser.Account == Const.Gly)
{
string userId = Grid1.SelectedRowID;
Sys_UserService.UpdateErrorNum(userId, 0);
Sys_UserService.UpdateLockTime(userId, null);
ShowNotify("该用户解锁成功!", MessageBoxIcon.Success);
if (!string.IsNullOrEmpty(Grid1.SelectedRowID))
{
string userId = Grid1.SelectedRowID;
Sys_UserService.UpdateErrorNum(userId, 0);
Sys_UserService.UpdateLockTime(userId, null);
ShowNotify("该用户解锁成功!", MessageBoxIcon.Success);
}
else
{
ShowNotify("请选择要解锁的用户!");
}
}
else
{
ShowNotify("请选择要解锁的用户");
ShowNotify("您没有这个权限,请与管理员联系");
}
}