PIbd-21_Kudrinsky_O.S._LabWork_3 #6
@ -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()}),
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user