123
This commit is contained in:
@@ -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("您没有这个权限,请与管理员联系!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user