Explorar o código

添加物料条件

章政 %!s(int64=6) %!d(string=hai) anos
pai
achega
b66d5eace2

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

@@ -1835,6 +1835,10 @@ namespace UAS_LabelMachine
                         {
                         {
                             BoxCode = BoxCode + 1;
                             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);
                 sdh.BatchInsert("prodiobarcode", LabelInf.DataSource as DataTable);