Explorar el Código

添加扫码限制

callm hace 18 horas
padre
commit
fb345035d5
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCT2.cs

+ 6 - 0
UAS_MES_ZT/FunctionCode/Make/Make_TestCollectionCT2.cs

@@ -1195,6 +1195,12 @@ namespace UAS_MES_NEW.Make
                 if (oth.Text != "")
                 {
                     string ms_status = dh.getFieldDataByCondition("makeserial", "ms_status", "ms_sncode='" + oth.Text + "'").ToString();
+                    if (ms_sncode.Text == oth.Text)
+                    {
+                        OperateResult.AppendText(">>条码" + oth.Text + "和SN【" + ms_sncode.Text + "】一致,不允许采集\n", Color.Red, oth);
+                        oth.Focus();
+                        return;
+                    }
                     if (ms_status != "2")
                     {
                         OperateResult.AppendText(">>条码" + oth.Text + "未完工,不允许采集\n", Color.Red, oth);