tomam for kabab mahdi
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user