Browse Source

限制设备治具修改

callm 2 months ago
parent
commit
d70cb47ec9
1 changed files with 8 additions and 8 deletions
  1. 8 8
      UAS_MES_BG/FunctionCode/Make/Make_TestCollection.cs

+ 8 - 8
UAS_MES_BG/FunctionCode/Make/Make_TestCollection.cs

@@ -209,13 +209,13 @@ namespace UAS_MES_NEW.Make
                 WaitList.Clear();
                 ChoosedList.Clear();
 
-                if (User.CurrentStepName == "程序烧写" && string.IsNullOrEmpty(new_softversion.Text))
-                {
-                    OperateResult.AppendText(">>请输入软件版本号\n", Color.Red);
-                    new_softversion.Focus();
-                    new_softversion.SelectAll();
-                    return;
-                }
+                //if (User.CurrentStepName == "程序烧写" && string.IsNullOrEmpty(new_softversion.Text))
+                //{
+                //    OperateResult.AppendText(">>请输入软件版本号\n", Color.Red);
+                //    new_softversion.Focus();
+                //    new_softversion.SelectAll();
+                //    return;
+                //}
 
                 if (LogicHandler.CheckStepAttribute(Tag.ToString(), User.UserSourceCode, out ErrorMessage))
                 {
@@ -242,7 +242,7 @@ namespace UAS_MES_NEW.Make
                                 LockMakeCode.Checked = true;
                             }
                         }
-                        if (dh.getRowCount("PRODUCTDEVICE left join product on pr_id=PDE_PRID", " pr_code='" + ma_prodcode.Text + "'") > 0)
+                        if (dh.getRowCount("PRODUCTDEVICE left join product on pr_id=PDE_PRID", " pr_code='" + ma_prodcode.Text + "' and pde_stepcode='"+User.CurrentStepCode+"'") > 0)
                         {
                             if (device.Text == "")
                             {