From 1707c90072fc714b6d2b57ea418c087872cf1a7a Mon Sep 17 00:00:00 2001 From: SamSys Date: Tue, 25 Mar 2025 03:35:15 +0330 Subject: [PATCH] tomam for kabab mahdi --- .../Pages/Company/AndroidApk/Index.cshtml | 4 ++-- .../Pages/Company/AndroidApk/Index.cshtml.cs | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml index 500e7638..d11b8e25 100644 --- a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml +++ b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml @@ -22,10 +22,10 @@ -@*
+ -
*@ + @if (ViewData["message"] != null) diff --git a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs index 24fd76b3..8a3c5db7 100644 --- a/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs +++ b/ServiceHost/Areas/AdminNew/Pages/Company/AndroidApk/Index.cshtml.cs @@ -58,7 +58,7 @@ namespace ServiceHost.Areas.AdminNew.Pages.Company.AndroidApk public IActionResult OnPostShiftDateNew() { var startRollCall = new DateTime(2025, 2, 19); - var rollCalls = _context.RollCalls.Where(x => x.ShiftDate >= startRollCall && x.EmployeeId == 41253).ToList(); + var rollCalls = _context.RollCalls.Where(x => x.ShiftDate >= startRollCall && x.WorkshopId == 170).ToList(); var r1 = rollCalls.Take(3000).ToList(); Console.ForegroundColor = ConsoleColor.DarkRed; @@ -70,20 +70,20 @@ namespace ServiceHost.Areas.AdminNew.Pages.Company.AndroidApk return Page(); } - //public IActionResult OnPostShiftDateNew2() - //{ - // var startRollCall = new DateTime(2025, 2, 19); - // var rollCalls = _context.RollCalls.Where(x => x.ShiftDate >= startRollCall).ToList(); + public IActionResult OnPostShiftDateNew2() + { + var startRollCall = new DateTime(2025, 2, 19); + var rollCalls = _context.RollCalls.Where(x => x.ShiftDate >= startRollCall && x.WorkshopId == 170).ToList(); - // var r2 = rollCalls.Skip(3000).ToList(); + var r2 = rollCalls.Skip(3000).ToList(); - // Console.ForegroundColor = ConsoleColor.Yellow; - // Console.WriteLine("endStep 2 ============"); - // SetRollCall2(r2); + Console.ForegroundColor = ConsoleColor.Yellow; + Console.WriteLine("endStep 2 ============"); + SetRollCall2(r2); - // ViewData["message"] = "تومام دو"; - // return Page(); - //} + ViewData["message"] = "تومام دو"; + return Page(); + }