Updated daily report to show correct information when two work weeks split quarters.
Also current changes to project with Blazor implementation is implemented here as well.
This commit is contained in:
30
ReportingServices.Blazor/Components/DatePickerModal.razor.cs
Normal file
30
ReportingServices.Blazor/Components/DatePickerModal.razor.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using MudBlazor;
|
||||
using ReportingServices.Blazor.Services;
|
||||
|
||||
namespace ReportingServices.Blazor.Components;
|
||||
|
||||
public partial class DatePickerModal
|
||||
{
|
||||
DateTime? StartDate { get; set; } = DateTime.Now.Date;
|
||||
DateTime? EndDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Inject]
|
||||
public AppData? ApplicationState { get; set; }
|
||||
|
||||
[Inject]
|
||||
public NavigationManager? NavigationManager { get; set; }
|
||||
|
||||
[CascadingParameter] MudDialogInstance? MudDialog { get; set; }
|
||||
|
||||
void Submit()
|
||||
{
|
||||
ApplicationState!.StartDate = (DateTime)StartDate!;
|
||||
ApplicationState.EndDate = (DateTime)EndDate!;
|
||||
|
||||
MudDialog!.Close(DialogResult.Ok(true));
|
||||
|
||||
NavigationManager!.NavigateTo("/PlanningReports/WeeklyPartChangesReport");
|
||||
}
|
||||
void Cancel() => MudDialog!.Cancel();
|
||||
}
|
Reference in New Issue
Block a user