add tomam 2

This commit is contained in:
2025-04-24 15:07:30 +03:30
parent e190408504
commit 7ad1a2f376

View File

@@ -73,16 +73,16 @@ namespace ServiceHost.Areas.AdminNew.Pages.Company.AndroidApk
public IActionResult OnPostShiftDateNew2()
{
var startRollCall = new DateTime(2025, 2, 19);
var rollCalls = _context.RollCalls.Where(x => x.ShiftDate >= startRollCall && x.WorkshopId == 170).ToList();
var startRollCall = new DateTime(2025, 3, 21);
var rollCalls = _context.RollCalls.Where(x => x.StartDate >= startRollCall &&x.EndDate != null && x.ShiftDate == new DateTime()).ToList();
var r1 = rollCalls.Take(3000).ToList();
var r2 = rollCalls.Skip(3000).ToList();
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("endStep 1 ============");
SetRollCall(r1);
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("endStep 2 ============");
SetRollCall2(r2);
ViewData["message"] = "تومام دو";
ViewData["message"] = "تومام دو";
return Page();
}