yibo 7 years ago
parent
commit
d78c6a5213
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      SelfHelpClient/ReadCardForm.cs

+ 9
- 1
SelfHelpClient/ReadCardForm.cs View File

@ -25,8 +25,16 @@ namespace SelfHelpClient
void ReadCardForm_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Tab)
if (e.KeyChar == (char)Keys.Enter)
{
var arr = _cardNumber.Split(new char[] { (char)Keys.Tab }, StringSplitOptions.RemoveEmptyEntries);
if (arr.Length == 8)
_cardNumber = arr[5];
else
{
DialogForm.ShowDialog("身份证读卡配置错误,请联系管理员!", 5);
return;
}
FillViewEntity(_cardNumber);
DialogResult = DialogResult.OK;
}


Loading…
Cancel
Save