легкие правочки

This commit is contained in:
Олег Кудринский 2024-12-20 14:17:56 +04:00
parent 4708a26995
commit 48528305d7
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ internal class DocReport
["Название изделия", "Стоимость", "Дата сборки"],
.. _productRepository
.ReadProducts()
.Select(x => new string[] { x.ProductName, x.Price.ToString(), x.ProductType.ToString()}), // Добавьте пустую строку для "Дата сборки" или заполните реальным значением
.Select(x => new string[] { x.ProductName, x.Price.ToString(), x.ProductType.ToString()}),
];
}

View File

@ -58,7 +58,7 @@ namespace ProjectWorkshop.Reports
var shiftData = _assemblerShiftRepository
.ReadAssemblerShifts()
.Where(x => x.AssemblerShiftDate >= startDate && x.AssemblerShiftDate <= endDate && x.AssemblerID_Assembler == assemblerID)
.OrderBy(x => x.AssemblerShiftDate)
.OrderBy(x => x.AssemblerShiftDate)
.ToList();
var result = new List<string[]>
@ -121,3 +121,4 @@ namespace ProjectWorkshop.Reports
}
}