浏览代码

取消全选

callm 4 年之前
父节点
当前提交
a318951060
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 8 - 8
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -253,7 +253,7 @@ namespace UAS_LabelMachine
                 {
                     receiveClient.Client.Send(Encoding.ASCII.GetBytes("ReadId1|,|NG|,|Y"));
                 }
-                Input.SelectAll();
+                //Input.SelectAll();
                 return;
             }
             for (int i = 0; i < SplitData.Length; i++)
@@ -290,7 +290,7 @@ namespace UAS_LabelMachine
                 if (!MixPrCode.Checked)
                 {
                     richTextAutoBottom1.AppendText("当前采集【物料编号" + Data["PRCODE"] + "】不对应,请重新采集\n");
-                    Input.SelectAll();
+                    //Input.SelectAll();
                     if (ConnectToMachine)
                         receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
                     return;
@@ -313,7 +313,7 @@ namespace UAS_LabelMachine
                     if (!FindProd)
                     {
                         richTextAutoBottom1.AppendText("当前采集【物料编号" + Data["PRCODE"] + "】没有需要采集的内容\n");
-                        Input.SelectAll();
+                        //Input.SelectAll();
                         if (ConnectToMachine)
                             receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
                         return;
@@ -324,7 +324,7 @@ namespace UAS_LabelMachine
             if (!CheckDateCode(Data["DATECODE"]))
             {
                 richTextAutoBottom1.AppendText("物料" + Data["PRCODE"] + "【DateCode】超出校验日期\n");
-                Input.SelectAll();
+                //Input.SelectAll();
                 if (ConnectToMachine)
                     receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
                 return;
@@ -332,7 +332,7 @@ namespace UAS_LabelMachine
             if (Data["BRAND"] != CurrentBrand)
             {
                 richTextAutoBottom1.AppendText("当前采集【品牌" + Data["BRAND"] + "】不对应\n");
-                Input.SelectAll();
+                //Input.SelectAll();
                 if (ConnectToMachine)
                     receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
                 return;
@@ -354,7 +354,7 @@ namespace UAS_LabelMachine
                 if (decimal.Parse((Convert.ToDouble((double.Parse(Data["QTY"]) / 1000).ToString("0.000")) / Convert.ToDouble(double.Parse(CurrentZXBZ).ToString("0.000"))).ToString()) % 1 != 0)
                 {
                     richTextAutoBottom1.AppendText("物料" + Data["PRCODE"] + "采集数量无法按照最小包装数拆分\n");
-                    Input.SelectAll();
+                    //Input.SelectAll();
                     if (ConnectToMachine)
                         receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
                     return;
@@ -369,7 +369,7 @@ namespace UAS_LabelMachine
                     richTextAutoBottom1.AppendText("采集【数量】无法按照最小包装数拆分\n");
                     if (ConnectToMachine)
                         receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
-                    Input.SelectAll();
+                    //Input.SelectAll();
                     return;
                 }
                 CodeCount = int.Parse((double.Parse(Data["QTY"]) / double.Parse(CurrentZXBZ)).ToString());
@@ -466,7 +466,7 @@ namespace UAS_LabelMachine
                 richTextAutoBottom1.AppendText("物料" + Data["PRCODE"] + "采集后数量为" + (CollectQty + CollectNum) + ",【超出】本行出货数量" + CurrentPrCount + "\n");
                 if (ConnectToMachine)
                     receiveClient.Client.Send(Encoding.ASCII.GetBytes(GetSendCode("ReadId1|,|NG|,|Y")));
-                Input.SelectAll();
+                //Input.SelectAll();
                 return;
             }
             GetBarCodeRule(out Prefix, out Suffix, out MaxNum, out NumLength, out Radix, CodeCount);