diff --git a/Seyounth.Hyosung.Data/Services/ReportExportService.cs b/Seyounth.Hyosung.Data/Services/ReportExportService.cs index a4b3e0a..304d203 100644 --- a/Seyounth.Hyosung.Data/Services/ReportExportService.cs +++ b/Seyounth.Hyosung.Data/Services/ReportExportService.cs @@ -67,16 +67,16 @@ public class ReportExportService( } else { - dt.Rows.Add(yarns[i - 1].Lot, tray.DtexFila, "", yarns[i - 1].ProduceTime, + dt.Rows.Add(yarns[i - 1].Lot, tray.DtexFila, " ", yarns[i - 1].ProduceTime, yarns[i - 1].Machine, yarns[i - 1].WorkShift); } } var path = await GetDirectoryAsync(); - var fileName = $"{variety.Lot}_{tray.Barcode.Split(" ")[1]}_{DateTime.Now:yyyyMMdd}.xlsx"; + var fileName = $"{variety.Lot}_{tray.Barcode.Split(" ")[1]}_{DateTime.Now:yyyyMMdd}.xlsx"; var filePath = Path.Combine(path, fileName); using var workbook = new XLWorkbook(); - var worksheet = workbook.Worksheets.Add(dt); + var worksheet = workbook.Worksheets.Add(dt,"export"); // 设置数据行字体大小 var dataRows = worksheet.RowsUsed(); foreach (var row in dataRows) @@ -153,7 +153,7 @@ public class ReportExportService( { try { - await ExportAsync(code); + await ExportSampleAsync(code); } catch (Exception e) {