|
|
|
@ -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; |
|
|
|
} |
|
|
|
|