Browse Source

限制抽样数量可以等于

章政 8 years ago
parent
commit
62250ffbdf

+ 2 - 2
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs

@@ -146,9 +146,9 @@ namespace UAS_MES.OQC
         //对于最大不合格允通过数的校验
         private bool Checkob_maxngacceptqty()
         {
-            if (ob_maxngacceptqty.Text == "0" || ob_maxngacceptqty.Text == "" || int.Parse(ob_maxngacceptqty.Text) < 0)
+            if (int.Parse(ob_maxngacceptqty.Text) < 0)
             {
-                OperateResult.AppendText(">>最大不合格允通过数必须大于0\n", Color.Red);
+                OperateResult.AppendText(">>最大不合格允通过数必须大于等于0\n", Color.Red);
                 ob_maxngacceptqty.Text = null;
                 return false;
             }

+ 0 - 1
UAS-MES/PublicMethod/LogicHandler.cs

@@ -660,7 +660,6 @@ namespace UAS_MES.PublicMethod
             oID2 = "";
             oID3 = "";
             //通过序列号获取最近操作的工单号
-            string MakeCode;
             string ms_id = dh.getFieldDataByCondition("makeserial", "ms_id", "ms_sncode='" + iSnCode + "'").ToString();
             if (ms_id != "")
             {