First Commit
This commit is contained in:
26
ReportingServices/Controllers/PlanningReportController.cs
Normal file
26
ReportingServices/Controllers/PlanningReportController.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ReportingServices.HelperClasses;
|
||||
using ReportingServices.Models.PlanningReport;
|
||||
|
||||
namespace ReportingServices.Controllers
|
||||
{
|
||||
public class PlanningReportController : Controller
|
||||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult WeeklyPartChangesReport(DateTime StartDate, DateTime EndDate)
|
||||
{
|
||||
DBCaller caller = new();
|
||||
|
||||
List<WeeklyPartChanges> weeklyPartChanges = caller.GetWeeklyPartChanges(StartDate.ToString(), EndDate.ToString());
|
||||
ViewBag.NumberOfPartChanges = caller.GetNumberOfPartChanges(StartDate.ToString(), EndDate.ToString());
|
||||
ViewBag.StartDate = StartDate.ToShortDateString();
|
||||
ViewBag.EndDate = EndDate.ToShortDateString();
|
||||
|
||||
return View(weeklyPartChanges);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user