SVN-Revision: r821
This commit is contained in:
cyf
2025-07-01 09:35:37 +00:00
parent 404c423daf
commit 6e3e683317
3 changed files with 74 additions and 28 deletions
+23
View File
@@ -1635,6 +1635,29 @@ namespace Lskj.Main
}
}
}
if (SystemInfo.Instance.AccountSwitchingRestrictions > 0)
{
DataTable dataTable = this.lueUserName.DataSource as DataTable;
DataRow[] array = dataTable.Select("UserName='" + UserName + "'");
DataRow dataRow = array.Length > 0 ? array[0] : null;
if (dataRow!=null)
{
int uid = int.Parse(dataRow["UserId"] + "");
if (uid <= SystemInfo.Instance.AccountSwitchingRestrictions)
{
this.cbLedger.Enabled = true;
}
else
{
this.cbLedger.Enabled = false;
}
}
}
if (isClear)
{
chkRemPwd.Checked = false;