|
|
@@ -12,6 +12,7 @@ using System.Text.RegularExpressions; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Windows.Forms; |
|
|
|
using UHFHelper; |
|
|
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement; |
|
|
|
|
|
|
|
namespace HKCardManager.UserPages |
|
|
|
{ |
|
|
@@ -120,7 +121,7 @@ namespace HKCardManager.UserPages |
|
|
|
comboBox2.Visible = true; |
|
|
|
comboBox2.Enabled = true; |
|
|
|
//textBox4.Enabled = false; |
|
|
|
//comboBox1.Enabled = false; |
|
|
|
comboBox1.Enabled = false; |
|
|
|
var user = Global.UserListDtos.FirstOrDefault(p => !string.IsNullOrEmpty(comboBox2.Text.Trim()) && !string.IsNullOrEmpty(p.UserName) && p.UserName == comboBox2.Text.Trim()); |
|
|
|
if (user != null && !string.IsNullOrEmpty(user.Phone)) |
|
|
|
{ |
|
|
@@ -163,7 +164,12 @@ namespace HKCardManager.UserPages |
|
|
|
MessageLogNotify.GetInstance.ShowWarning("请输入姓名"); |
|
|
|
return; |
|
|
|
} |
|
|
|
Name = textBox2.Text.Trim(); |
|
|
|
if (HKLibHelper.GetUserList(textBox2.Text.Trim()).Count > 0) |
|
|
|
{ |
|
|
|
MessageLogNotify.GetInstance.ShowWarning("用户已经存在,请勿重复添加"); |
|
|
|
return; |
|
|
|
} |
|
|
|
Name = textBox2.Text.Trim(); |
|
|
|
} |
|
|
|
//if (!textBox4.Text.Trim().IsMobile()) |
|
|
|
//{ |
|
|
@@ -237,7 +243,7 @@ namespace HKCardManager.UserPages |
|
|
|
comboBox1.Text = users.OrgInfo.ElementAt(0).Name; |
|
|
|
} |
|
|
|
}); |
|
|
|
MessageLogNotify.GetInstance.Show("读卡成功,详细信息请在页面查看"); |
|
|
|
MessageLogNotify.GetInstance.Show($"读卡成功,当前卡号【{res}】,详细信息请在页面查看"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|