浏览代码

加强提示。

JeffWang 2 年之前
父节点
当前提交
64d605d16c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      FactoryTool_CShare/Views/OperationPanel.cs

+ 2 - 2
FactoryTool_CShare/Views/OperationPanel.cs

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