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:
@ -0,0 +1,8 @@
|
||||
@page "/ProductionReports/DailyReport"
|
||||
|
||||
<ReportHeader Title="Daily Report" Date="@DateTime.Now" />
|
||||
|
||||
@if (Targets != null && QTDOutsAndScrap != null)
|
||||
{
|
||||
<TargetsSummary StartDate="@StartDate" EndDate="@EndDate" QuarterStartDate="@QuarterStartDate" Targets="@Targets" QTDOutsAndScrap="@QTDOutsAndScrap" />
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using ReportingServices.Blazor.Services;
|
||||
using ReportingServices.Shared.Blazor.HelperClasses;
|
||||
using ReportingServices.Shared.Blazor.Models.ProductionReport;
|
||||
|
||||
namespace ReportingServices.Blazor.Pages.ProductionReports;
|
||||
|
||||
public partial class DailyReport
|
||||
{
|
||||
[Inject]
|
||||
public ScrapeDBService Db { get; set; }
|
||||
|
||||
public DateTime StartDate { get; set; }
|
||||
public DateTime EndDate { get; set; }
|
||||
public DateTime QuarterStartDate { get; set; }
|
||||
public QuarterlyTargets Targets { get; set; }
|
||||
public OutsAndScrapTotal QTDOutsAndScrap { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
QuarterStartDate = await Db.GetQuarterStartDate();
|
||||
Targets = await Db.GetTargetsAsync();
|
||||
QTDOutsAndScrap = await Db.GetOutsAndScrapAsync(QuarterStartDate, DateTime.Now);
|
||||
|
||||
StartDate = DateTime.Parse(APIHelperFunctions.GetBeginningOfWeekAsAPIString());
|
||||
EndDate = DateTime.Now;
|
||||
|
||||
base.OnInitializedAsync();
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
@page "/ProductionReports/HoldLotReport"
|
||||
|
||||
@using ReportingServices.Shared.Blazor.Models.ProductionReport;
|
||||
|
||||
<ReportHeader Title="Hold Lot Report" Date="@DateTime.Now"></ReportHeader>
|
||||
|
||||
<MudTable Items="@HoldLots" Hover="true" SortLabel="Sort By" RowsPerPage="15">
|
||||
<HeaderContent>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.WO_NO)">WO</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.RDS_NO)">RDS</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.REACTOR)">Reactor</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.HOLD_DATE)">Hold Time</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.HOLD_USER)">Hold User</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<HoldLot, object>(x => x.HOLD_REASON)">Hold Reason</MudTableSortLabel></MudTh>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="WO">@context.WO_NO</MudTd>
|
||||
<MudTd DataLabel="RDS">@context.RDS_NO</MudTd>
|
||||
<MudTd DataLabel="Reactor">@context.REACTOR</MudTd>
|
||||
<MudTd DataLabel="Hold Time">@context.HOLD_DATE</MudTd>
|
||||
<MudTd DataLabel="Hold User">@context.HOLD_USER</MudTd>
|
||||
<MudTd DataLabel="Hold Reason">@context.HOLD_REASON</MudTd>
|
||||
</RowTemplate>
|
||||
<PagerContent>
|
||||
<MudTablePager PageSizeOptions="new int[]{ 15, 50, 100 }" />
|
||||
</PagerContent>
|
||||
</MudTable>
|
@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using ReportingServices.Blazor.Services;
|
||||
using ReportingServices.Shared.Blazor.Models.ProductionReport;
|
||||
|
||||
namespace ReportingServices.Blazor.Pages.ProductionReports;
|
||||
|
||||
public partial class HoldLotReport
|
||||
{
|
||||
public List<HoldLot> HoldLots { get; set; }
|
||||
|
||||
[Inject]
|
||||
private ScrapeDBService Db { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
|
||||
HoldLots = await Db.GetHoldLotsAsync();
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
@page "/ProductionReports/NCRReport"
|
||||
@using ReportingServices.Shared.Blazor.Models.ProductionReport;
|
||||
|
||||
<ReportHeader Title="NCR Report" Date="@DateTime.Now"></ReportHeader>
|
||||
|
||||
<MudTable Items="@NCRs" Hover="true" SortLabel="Sort By" RowsPerPage="15">
|
||||
<HeaderContent>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.ENTRY_DATE.ToShortDateString())">Entry Date</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.SHIFT)">Shift</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.REACTOR)">Reactor</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.RDS_NO)">RDS</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.TOT_REJ)">Total Reject</MudTableSortLabel></MudTh>
|
||||
<MudTh><MudTableSortLabel SortBy="new Func<NCR, object>(x => x.LOSS_COMMENTS)">Loss Comments</MudTableSortLabel></MudTh>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="Entry Date">@context.ENTRY_DATE.ToShortDateString()</MudTd>
|
||||
<MudTd DataLabel="Shift">@context.SHIFT</MudTd>
|
||||
<MudTd DataLabel="Reactor">@context.REACTOR</MudTd>
|
||||
<MudTd DataLabel="RDS">@context.RDS_NO</MudTd>
|
||||
<MudTd DataLabel="Total Reject">@context.TOT_REJ</MudTd>
|
||||
<MudTd DataLabel="Loss Comments">@context.LOSS_COMMENTS</MudTd>
|
||||
</RowTemplate>
|
||||
<PagerContent>
|
||||
<MudTablePager PageSizeOptions="new int[]{ 15, 50, 100 }" />
|
||||
</PagerContent>
|
||||
</MudTable>
|
@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using ReportingServices.Blazor.Services;
|
||||
using ReportingServices.Shared.Blazor.Models.ProductionReport;
|
||||
|
||||
namespace ReportingServices.Blazor.Pages.ProductionReports;
|
||||
|
||||
public partial class NCRReport
|
||||
{
|
||||
public List<NCR> NCRs { get; set; }
|
||||
|
||||
[Inject]
|
||||
private ScrapeDBService Db { get; set; }
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
|
||||
NCRs = await Db.GetNCRsAsync();
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
@page "/ProductionReports"
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 d-grid">
|
||||
<a class="btn btn-outline-secondary text-start" href="/ProductionReports/DailyReport" onclick="displayBusyIndicator()"><span class="float-start"><i class="fa-regular fa-file-alt fa-4x buttonImage align-middle"></i> Production Passdown Report</span></a>
|
||||
</div>
|
||||
<div class="col-3 d-grid">
|
||||
<a class="btn btn-outline-secondary text-start" href="/ProductionReports/HoldLotReport" onclick="displayBusyIndicator()"><span class="float-start"><i class="fa-regular fa-file-alt fa-4x buttonImage align-middle"></i> Hold Lot Report</span></a>
|
||||
</div>
|
||||
<div class="col-3 d-grid">
|
||||
<a class="btn btn-outline-secondary text-start" href="/ProductionReports/NCRReport" onclick="displayBusyIndicator()"><span class="float-start"><i class="fa-regular fa-file-alt fa-4x buttonImage align-middle"></i> Open NCR Report</span></a>
|
||||
</div>
|
||||
<div class="col-3 d-grid">
|
||||
<a class="btn btn-outline-secondary text-start" href="http://goto.infineon.com/mesassrreport" onclick="displayBusyIndicator()"><span class="float-start"><i class="fa-regular fa-file-alt fa-4x buttonImage align-middle"></i> Mesa SSR Report</span></a>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user