修改结构
This commit is contained in:
@@ -42,12 +42,12 @@ namespace CleanMachineHMI
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(txtAccount.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入登陆账号!", "PleaseInputAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("请输入登陆账号!", "PleaseInputAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(txtPs.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入登陆密码!", "PleaseInputPassword"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("请输入登陆密码!", "PleaseInputPassword"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -59,17 +59,17 @@ namespace CleanMachineHMI
|
||||
var data = dt.Rows[0];
|
||||
if (data["USED_FLAG"].ToString() == "0")
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("用户已被停用!", "UserStop"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("用户已被停用!", "UserStop"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
if (data["DEL_FLAG"].ToString() == "1")
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("用户已被删除!", "UserDeleted"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("用户已被删除!", "UserDeleted"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
if (data["PASSWORD"].ToString().ToLower() != txtPs.Text.ToLower())
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("输入密码错误!", "PasswordFail"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("输入密码错误!", "PasswordFail"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
AppConfigHelper.Update("LastTimeUserCode",txtAccount.Text.Trim());
|
||||
@@ -102,7 +102,7 @@ namespace CleanMachineHMI
|
||||
}
|
||||
else
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入正确的登陆账号!", "PleaseCorrectAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
KryptonMessageBox.Show(this.T("请输入正确的登陆账号!", "PleaseCorrectAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user