Browse Source

尾数代码

章政 7 years ago
parent
commit
5f0cd4424f
1 changed files with 8 additions and 0 deletions
  1. 8 0
      UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

+ 8 - 0
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -767,6 +767,14 @@ namespace UAS_LabelMachine
                 {
                 {
                     try
                     try
                     {
                     {
+                        if (!MidLabelAutoPrint.Checked)
+                        {
+                            DataTable dt = (DataTable)dh.ExecuteSql("select pib_id from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' and pib_outboxcode1='" + MidOutBoxCodeIndex[i] + "'", "select");
+                            if (dt.Rows.Count < 10)
+                            {
+                                continue;
+                            }
+                        }
                         MidBoxCodePrint(la_id, MidOutBoxCodeIndex[i]);
                         MidBoxCodePrint(la_id, MidOutBoxCodeIndex[i]);
                     }
                     }
                     catch (Exception e)
                     catch (Exception e)