去掉3三分钟不操作,登录账号自动退出的功能

Eight
lhiven 3 months ago
parent e428142635
commit fd39ebd20e

@ -553,19 +553,19 @@ namespace Rs.MotionPlat
// //lblMachineState.Text=MachineManage.Instance.MachineStatus.ToString();
//}
long idleCount = GetIdleTick();
if(idleCount> 1000 * 60 * 3)
{
if(!string.IsNullOrEmpty(GlobalUser.UserName))
{
GlobalUser.UserName = "";
if(btnPermission.ShowText.IndexOf("-")>=0)
{
btnPermission.ShowText = btnPermission.ShowText.Substring(0, btnPermission.ShowText.IndexOf("-"));
btnPermission.Invalidate();
}
}
}
//long idleCount = GetIdleTick();
//if(idleCount> 1000 * 60 * 3)
//{
// if(!string.IsNullOrEmpty(GlobalUser.UserName))
// {
// GlobalUser.UserName = "";
// if(btnPermission.ShowText.IndexOf("-")>=0)
// {
// btnPermission.ShowText = btnPermission.ShowText.Substring(0, btnPermission.ShowText.IndexOf("-"));
// btnPermission.Invalidate();
// }
// }
//}
if (MonitorSystemButton.Instance.GetStep() != lblMonitorFlow.Text.Replace("Monitor:", ""))
{

Loading…
Cancel
Save