SVN r1002
SVN-Revision: r1002
This commit is contained in:
@@ -1078,13 +1078,6 @@ namespace Lskj.Main
|
||||
{
|
||||
this.chkNotice.Checked = true;
|
||||
}
|
||||
if (SystemInfo.Instance.HiddenIntelligentClient)
|
||||
{
|
||||
this.chkClient.Visible = false;
|
||||
this.pictureBox1.Location = new Point(this.chkNotice.Location.X, this.pictureBox1.Location.Y);
|
||||
this.btnSetConfig.Location = new Point(this.pictureBox1.Location.X + this.pictureBox1.Width, this.pictureBox1.Location.Y);
|
||||
this.chkNotice.Location = this.chkClient.Location;
|
||||
}
|
||||
if (SystemInfo.Instance.StartMessageBox)
|
||||
{
|
||||
this.chkNotice.Checked = true;
|
||||
@@ -1096,6 +1089,42 @@ namespace Lskj.Main
|
||||
this.chkRemPwd.Enabled = false;//记住密码禁止修改
|
||||
}
|
||||
|
||||
if (SystemInfo.Instance.HiddenIntelligentClient|| SystemInfo.Instance.HiddenNotification || SystemInfo.Instance.HiddenServerSetting)
|
||||
{
|
||||
List<System.Windows.Forms.Control> controls = new List<System.Windows.Forms.Control>();
|
||||
//隐藏 智能客户端
|
||||
if (SystemInfo.Instance.HiddenIntelligentClient)
|
||||
{
|
||||
this.chkClient.Visible = false;
|
||||
}
|
||||
//隐藏 消息通知
|
||||
if (SystemInfo.Instance.HiddenNotification)
|
||||
{
|
||||
this.chkNotice.Checked = false;
|
||||
this.chkNotice.Visible = false;
|
||||
}
|
||||
//隐藏 设置服务器
|
||||
if (SystemInfo.Instance.HiddenServerSetting)
|
||||
{
|
||||
this.pictureBox1.Visible = false;
|
||||
this.btnSetConfig.Visible = false;
|
||||
}
|
||||
int X = this.chkUpdate.Location.X + this.chkUpdate.Width + 10;
|
||||
//controls.Add(this.chkUpdate);
|
||||
controls.Add(this.chkClient);
|
||||
controls.Add(this.chkNotice);
|
||||
controls.Add(this.pictureBox1);
|
||||
foreach (System.Windows.Forms.Control item in controls)
|
||||
{
|
||||
if (item.Visible)
|
||||
{
|
||||
item.Location = new Point(X, item.Location.Y);
|
||||
X= item.Location.X + item.Width + 10;
|
||||
if (item is PictureBox) this.btnSetConfig.Location = new Point(item.Location.X + item.Width, this.btnSetConfig.Location.Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.BackgroundImage = BitMapHelper.getBitmap(BitMapEnum.loginbg);
|
||||
this.lblCopyright.Text = string.IsNullOrEmpty(SystemInfo.Instance.CopyRight) ? this.lblCopyright.Text : SystemInfo.Instance.CopyRight;
|
||||
@@ -1623,12 +1652,13 @@ namespace Lskj.Main
|
||||
if (!string.IsNullOrEmpty(UserName) && !SystemInfo.Instance.DisableRememberPassword)
|
||||
{
|
||||
string[] PwdState = AESUtil.Decrypt(IniHelper.Read(DBConfig.Instance.ServerName + UserName)).Split('^');
|
||||
if (PwdState.Count() == 2)
|
||||
if (PwdState.Count() >= 2)
|
||||
{
|
||||
chkRemPwd.Checked = Convert.ToBoolean(PwdState[0]);
|
||||
if (chkRemPwd.Checked)
|
||||
{
|
||||
this.txtPassword.Text = PwdState[1];
|
||||
if(PwdState.Count() > 2) this.txtPassword.Text=string.Join("^", PwdState.Skip(1));
|
||||
isClear = false;
|
||||
this.lueUserName.Text = UserName;
|
||||
this.txtPassword.Focus();
|
||||
|
||||
Reference in New Issue
Block a user