xxe 2 years ago
parent
commit
5861d1f088
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      HKCardManager/Form1.cs

+ 4
- 3
HKCardManager/Form1.cs View File

@@ -370,15 +370,16 @@ namespace HKCardManager

if (string.IsNullOrEmpty(res))
{
MessageBox.Show("提示!!!\n 请放入卡片,在选择销卡...");
MessageLogNotify.GetInstance.Show("请放入卡片");
return;
}

UHFCardHelper.GetInstance().WriteCard("000");
string worker = new IdWorker(1, 1).NextId().ToString();// ID生成
var resm = UHFCardHelper.GetInstance().WriteCard(worker);
MessageLogNotify.GetInstance.ShowWarning("卡片重置成功,卡号"+ worker);
MessageBox.Show("提示!!!\n 卡片重置成功,卡号"+ worker);
MessageLogNotify.GetInstance.Show($"卡片重置成功,原卡号【{res}】,新卡号【{worker}】");
MessageBox.Show($"提示!!!\n 卡片重置成功,原卡号【{res}】,新卡号【{worker}】");
}
catch (Exception)
{


Loading…
Cancel
Save