tomam for kabab mahdi

This commit is contained in:
SamSys
2025-03-25 03:35:15 +03:30
parent f2b03cc34f
commit 1707c90072
2 changed files with 14 additions and 14 deletions

View File

@@ -22,10 +22,10 @@
<button type="submit">ست شیفت 1 </button>
</form>
@* <form asp-page-handler="ShiftDateNew2" id="10" method="post">
<form asp-page-handler="ShiftDateNew2" id="10" method="post">
<button type="submit">ست شیفت 2 </button>
</form> *@
</form>
@if (ViewData["message"] != null)

View File

@@ -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();
}