Browse Source

优化箱号回退

callm 1 day ago
parent
commit
da8724069b

+ 1 - 1
UAS_MES_HGS/DataOperate/ExcelHandler.cs

@@ -24,7 +24,7 @@ namespace UAS_MES_NEW.DataOperate
             MemoryStream ms;
             ms = DataTableToExcel(dt);
             //以系统当前时间命名文件,FileMode.Create表示创建文件,FileAccess.Write表示拥有写的权限
-            string filePath = @FolderPath + "\\" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls";
+            string filePath = FolderPath;
             FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write);
             byte[] data = ms.ToArray();
             fs.Write(data, 0, data.Length);

+ 1 - 1
UAS_MES_HGS/FunctionCode/Special/Special_Reset.cs

@@ -97,7 +97,7 @@ namespace UAS_MES_NEW.Special
                     for (int i = 0; i < sb.Count; i++)
                     {
                         if (ReSN(sb[i].ToString(), cd_stepcode.Text))
-                            OperatResult.AppendText("SN:" + sb[i].ToString() + "回流至" + cd_stepcode.Text + "完成\n", Color.Green);
+                            OperatResult.AppendText("SN:" + sb[i].ToString() + "回流  至" + cd_stepcode.Text + "完成\n", Color.Green);
                     }
                     WeighRecord.Clear();
                     sb.Clear();