SVN r821
SVN-Revision: r821
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user