|
@@ -760,7 +760,7 @@ namespace MOKA_Factory_Tools
|
|
|
{
|
|
|
if (SN.Length != FunctionSettingNow.BarcodeLength || !SN.StartsWith(FunctionSettingNow.BarcodeKeyword))
|
|
|
{
|
|
|
- MessageBox.Show(LResource.WrongBarcode + "\r\n" + SN);
|
|
|
+ MessageBox.Show(string.Format("{0}\r\nSN=<{1}, Len={2}>\r\nKeyword=<{3}>", LResource.WrongBarcode, SN, SN.Length, FunctionSettingNow.BarcodeKeyword));
|
|
|
SNText.Enabled = true;
|
|
|
SNText.Text = "";
|
|
|
return;
|
|
@@ -772,7 +772,7 @@ namespace MOKA_Factory_Tools
|
|
|
Regex r = new Regex(@"^[A-Z0-9]+$");
|
|
|
if (!r.Match(SN).Success)
|
|
|
{
|
|
|
- MessageBox.Show(LResource.WrongBarcode + "\r\n" + SN);
|
|
|
+ MessageBox.Show(string.Format("{0}\r\nSN=<{1}, Len={2}>\r\nKeyword=<{3}>", LResource.WrongBarcode, SN, SN.Length, FunctionSettingNow.BarcodeKeyword));
|
|
|
SNText.Enabled = true;
|
|
|
SNText.Text = "";
|
|
|
return;
|