|
|
@@ -2862,6 +2862,19 @@ namespace TeamAAS_VP.Core
|
|
|
File.Copy(item, target_Torque, true);
|
|
|
}
|
|
|
}
|
|
|
+ //string target_Directory = Path.Combine(filePath, "扭力曲线"); 待测试
|
|
|
+ //string source_Torque_Image = config.ScrewCurvePath + $"\\{dt.ToString("yyyy-MM")}\\{dt.ToString("yyyy-MM-dd")}\\{currentProduct.Name}\\{ProductMainSN[i]}";
|
|
|
+ //try
|
|
|
+ //{
|
|
|
+ // var col = Directory.GetFiles(source_Torque_Image);
|
|
|
+ // Directory.CreateDirectory(target_Directory);
|
|
|
+ // foreach (var item in col)
|
|
|
+ // {
|
|
|
+ // string fileName = Path.GetFileName(item); // 获取文件名(带后缀)
|
|
|
+ // string target_Torque = Path.Combine(target_Directory, fileName); // 拼路径(推荐)
|
|
|
+ // File.Copy(item, target_Torque, true);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
catch (Exception)
|
|
|
{
|
|
|
SendTaskMessage($"扭力曲线图读取失败", MessageLevel.Error);
|