7930ce273f
- fix col spacing - aggiunta warng signal
84 lines
3.4 KiB
Plaintext
84 lines
3.4 KiB
Plaintext
@using MP.MONO.Data
|
|
@using MP.MONO.UI.Components
|
|
@using MP.MONO.Core.DTO
|
|
@using MP.MONO.UI.Data
|
|
|
|
@inject CurrentDataService MMDataService
|
|
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5>Preventive/Programmed Maintenance's Task</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (ListRecords == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">No record found</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
<div class="@mainCssClass">
|
|
<table class="table table-sm table-striped table-responsive-lg small">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Topic</th>
|
|
<th>Machine Group</th>
|
|
<th>Expyre (H)</th>
|
|
<th>Team in Charge</th>
|
|
<th>Counter Var</th>
|
|
<th>Job Description</th>
|
|
<th class="text-end"># Exec</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecords)
|
|
{
|
|
<tr class="@checkSel(record.PMTaskId)">
|
|
<td class="text-nowrap">
|
|
@record.ExtIdx
|
|
</td>
|
|
<td>@record.TopicNav.Description</td>
|
|
<td>@record.MachGroupNav.Description</td>
|
|
<td>@record.ExpiryVal</td>
|
|
<td>@record.UserTeamNav.Description</td>
|
|
<td>@record.CounterNav.Description</td>
|
|
<td>@record.JobDescription</td>
|
|
@if (currPMTaskId == 0)
|
|
{
|
|
<td class="text-end">@record.NumTaskDone</td>
|
|
}
|
|
<td>
|
|
@if (record.NumTaskDone > 0)
|
|
{
|
|
<button class="btn btn-success btn-sm" @onclick="() => ShowDetail(record.PMTaskId)" title="Show History"><i class="bi bi-clock-history"></i></button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@if (currPMTaskId > 0)
|
|
{
|
|
<div class="col-4 small">
|
|
<SchedMaintTaskHist currPMTaskId="@currPMTaskId" reqClose="() => ShowDetail(0)"></SchedMaintTaskHist>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="card-footer py-0">
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="totalCount" showLoading="isLoading" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|