Преглед на файлове

临时修复批量导出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)
+                                {
+                                    ;
+                                }
                             }
 
                         }