callm 2 дней назад
Родитель
Сommit
fb345035d5
1 измененных файлов с 6 добавлено и 0 удалено
  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);