Browse Source

数量含有字符BUG调整

章政 6 years ago
parent
commit
503844ede2

+ 5 - 5
UAS-出货标签管理(贸易版)/PublicMethod/ftpOperater.cs

@@ -43,11 +43,11 @@ namespace UAS_LabelMachine
                 {
                     if (filelist[i] == filename)
                     {
-                        string upload = MessageBox.Show("已存在同名文件,是否覆盖", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
-                        if (upload.ToString() != "Yes")
-                        {
-                            return;
-                        }
+                        //string upload = MessageBox.Show("已存在同名文件,是否覆盖", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
+                        //if (upload.ToString() != "Yes")
+                        //{
+                        //    return;
+                        //}
                     }
                 }
             FtpWebRequest reqFTP;

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

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