Эх сурвалжийг харах

装箱采集处理无标签情况

shim 8 жил өмнө
parent
commit
0490ac4153

+ 8 - 1
UAS-MES/FunctionCode/Make/Make_PackageCollection.cs

@@ -261,7 +261,14 @@ namespace UAS_MES.Make
                 if (pr_outboxinnerqty.Text == pa_packageqty.Text)
                 {
                     OperateResult.AppendText(">>打印箱号" + pa_outboxcode.Text + "\n", Color.Green);
-                    Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
+                    if (PrintLabel.Items.Count != 0)
+                    {
+                        Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
+                    }
+                    else
+                    {
+                        OperateResult.AppendText(">>产品" + pr_code.Text + "未维护打印标签\n", Color.Red);
+                    }
                 }
             }
         }