From eb32b4263f6901bb7ac1915b400e4fe28db20ef0 Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期四, 13 四月 2023 15:38:11 +0800 Subject: [PATCH] 123 --- Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs b/Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs index 7b256ef..07c8e15 100644 --- a/Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs +++ b/Application/IStation.Application.DataFile/eta_day_report/Eta_Day_Report_Controller.cs @@ -15,6 +15,7 @@ namespace IStation.Application { + #region 鎶ヨ〃鐢熸垚 /// <summary> /// Report /// </summary> @@ -57,7 +58,7 @@ } LogHelper.Info("鐢熸垚鏍圭洰褰�"); var pdf = new Eta_Day_ReportPdf(); - var ReportPath = Path.Combine(ConfigHelper.DataPath, Settings.DataFile.PdfFolder); + var ReportPath = Path.Combine(ConfigHelper.DataPath, @"Report"); if (!Directory.Exists(ReportPath)) Directory.CreateDirectory(ReportPath); LogHelper.Info("鎷兼帴鏃ユ湡鏂囦欢澶�"); @@ -75,8 +76,8 @@ var etaPdfFileName = $"Station_Eta_{station.ID}_{input.DateTime.ToString("MM-dd")}.pdf"; var etaPdfFilePath = Path.Combine(pdfPath, etaPdfFileName); - var turePath = Path.Combine("/" + Settings.DataFile.PdfFolder, EtaPathName, dateTimePathName, etaPdfFileName); - turePath = turePath.Replace("\\", "/"); + var turePath = Path.Combine(@"Report", EtaPathName, dateTimePathName, etaPdfFileName); + turePath = turePath.Replace(@"\\", @"/"); LogHelper.Info("鎷兼帴鏈�缁堣矾寰�"); if (!File.Exists(etaPdfFilePath)) @@ -102,4 +103,5 @@ } +#endregion } \ No newline at end of file -- Gitblit v1.9.3