Browse Source

调整规格型号

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

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

@@ -2409,6 +2409,10 @@ namespace UAS_LabelMachine
                 for (int i = 0; i < dt.Rows.Count; i++)
                 for (int i = 0; i < dt.Rows.Count; i++)
                 {
                 {
                     string pr_spec = dt.Rows[i]["规格型号"].ToString();
                     string pr_spec = dt.Rows[i]["规格型号"].ToString();
+                    if (pr_spec == "")
+                    {
+                        break;
+                    }
                     string qty = Regex.Replace(dt.Rows[i]["数量"].ToString(), @"[^\d]*", ""); ;
                     string qty = Regex.Replace(dt.Rows[i]["数量"].ToString(), @"[^\d]*", ""); ;
                     //累计Excel该型号的数量
                     //累计Excel该型号的数量
                     if (!sumqty.ContainsKey(pr_spec))
                     if (!sumqty.ContainsKey(pr_spec))
@@ -2438,6 +2442,10 @@ namespace UAS_LabelMachine
                 for (int i = 0; i < dt.Rows.Count; i++)
                 for (int i = 0; i < dt.Rows.Count; i++)
                 {
                 {
                     string pr_spec = dt.Rows[i]["规格型号"].ToString();
                     string pr_spec = dt.Rows[i]["规格型号"].ToString();
+                    if (pr_spec == "")
+                    {
+                        break;
+                    }
                     string qty = dt.Rows[i]["数量"].ToString();
                     string qty = dt.Rows[i]["数量"].ToString();
                     string DateCode = "";
                     string DateCode = "";
                     string LotNo = "";
                     string LotNo = "";