浏览代码

临时修复批量导出bug:过滤路径存在特殊字符

Jimmy 2 年之前
父节点
当前提交
e18f4b56f0
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      fis/Managers/FileExporterManager.cs

+ 6 - 0
fis/Managers/FileExporterManager.cs

@@ -147,6 +147,7 @@ namespace fis.Win.Dev.Managers
                         var patientPath = Path.Combine(reportPath, c.PatientName);
                         if (!Directory.Exists(patientPath))
                         {
+                            patientPath = patientPath.Replace("*", "");
                             Directory.CreateDirectory(patientPath);
                         }
                       
@@ -198,6 +199,7 @@ namespace fis.Win.Dev.Managers
                         var patientPath = Path.Combine(imagePath, c.PatientName);
                         if (!Directory.Exists(patientPath))
                         {
+                            patientPath = patientPath.Replace("*", "");
                             Directory.CreateDirectory(patientPath);
                         }
 
@@ -226,6 +228,10 @@ namespace fis.Win.Dev.Managers
                             finally
                             {
                                 _fileFinishCount++;
+                                if (_fileFinishCount == 41)
+                                {
+                                    ;
+                                }
                             }
 
                         }