|
|
@ -1,4 +1,4 @@
|
|
|
|
using HighWayIot.Repository.domain;
|
|
|
|
using HighWayIot.Repository.domain;
|
|
|
|
using HighWayIot.Repository.service;
|
|
|
|
using HighWayIot.Repository.service;
|
|
|
|
using HighWayIot.Repository.service.Impl;
|
|
|
|
using HighWayIot.Repository.service.Impl;
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
@ -23,13 +23,13 @@ namespace HighWayIot.Winform.MainForm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 登陆验证
|
|
|
|
/// 登陆验证
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
/// <param name="e"></param>
|
|
|
|
/// <param name="e"></param>
|
|
|
|
private void Login_Click(object sender, EventArgs e)
|
|
|
|
private void Login_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//验证账号密码,或从数据库验证成功
|
|
|
|
//验证账号密码,或从数据库验证成功
|
|
|
|
var lists = sysUserInfoService.GetUserInfoByUserName(UserText.Text);
|
|
|
|
var lists = sysUserInfoService.GetUserInfoByUserName(UserText.Text);
|
|
|
|
|
|
|
|
|
|
|
|
if (lists.Count == 1 && lists.First().Password == PassText.Text)
|
|
|
|
if (lists.Count == 1 && lists.First().Password == PassText.Text)
|
|
|
@ -39,7 +39,7 @@ namespace HighWayIot.Winform.MainForm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MessageBox.Show("账号或密码错误!");
|
|
|
|
MessageBox.Show("账号或密码错误!");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|