Browse Source

添加物料条件

章政 6 years ago
parent
commit
b66d5eace2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

+ 4 - 0
UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

@@ -1835,6 +1835,10 @@ namespace UAS_LabelMachine
                         {
                             BoxCode = BoxCode + 1;
                         }
+                        else  if (LabelInf.Rows[i].Cells["pib_prodcode"].Value.ToString() != LabelInf.Rows[i + 1].Cells["pib_prodcode"].Value.ToString())
+                        {
+                            BoxCode = BoxCode + 1;
+                        }
                     }
                 }
                 sdh.BatchInsert("prodiobarcode", LabelInf.DataSource as DataTable);