PIbd-21_Kudrinsky_O.S._LabWork_3 #6

Closed
8floom wants to merge 4 commits from LabWork_3 into LabWork_2
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 48528305d7 - Show all commits

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
}
}