盟讯公司1.搜索栏可以输入英文字符 2.退出出库模式异常

This commit is contained in:
hehaibing-1996
2024-09-27 17:39:39 +08:00
parent e1c558a627
commit 376a40cfd9
2 changed files with 6 additions and 2 deletions

View File

@ -62,7 +62,8 @@ namespace 货架标准上位机
private void txtMatQty1_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
if (!Regex.IsMatch(e.Text, "^[0-9]"))
//要求可以输入英文字符
if (!Regex.IsMatch(e.Text, @"^[0-9A-Za-z]+$"))
{
e.Handled = true;
}