| | |
| | | |
| | | namespace IStation.Application |
| | | { |
| | | #region 报表生成 |
| | | /// <summary> |
| | | /// Report |
| | | /// </summary> |
| | |
| | | } |
| | | 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("拼接日期文件夹"); |
| | |
| | | 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)) |
| | |
| | | |
| | | |
| | | } |
| | | #endregion |
| | | } |