shim %!s(int64=8) %!d(string=hai) anos
pai
achega
2a422a100a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UAS-MES/FunctionCode/Make/Make_UpdateCollectCode.cs

+ 1 - 1
UAS-MES/FunctionCode/Make/Make_UpdateCollectCode.cs

@@ -213,7 +213,7 @@ namespace UAS_MES.Make
                                 return;
                             }
                             //验证长度前缀通过,验证数据库
-                            if (dh.CheckExist("makeserial", "ms_status in (0,1,2,3) and  ms_" + (((CheckBox)list[step - 1]).Text == "网标" ? "NETCODE" : ((CheckBox)list[step - 1]).Text) + " ='" + inputValue.Text + "'"))
+                            if (dh.CheckExist("makeserial", "ms_status in (0,1,2,3) and  ms_" + (((CheckBox)list[step - 1]).Text == "网标" ? "NETCODE" : ((CheckBox)list[step - 1]).Text) + " ='" + inputValue.Text + "' and ms_id <>'"+ms_id+"'"))
                             {
                                 OperateResult.AppendText("<<" + ((CheckBox)list[step - 1]).Text + ":" + inputValue.Text + "错误,已被使用\n", Color.Red, inputValue);
                                 return;