84 lines
3.7 KiB
Plaintext
84 lines
3.7 KiB
Plaintext
<div class="card shadow shadow-lg">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<h3>Licenze</h3>
|
|
</div>
|
|
</div>
|
|
<div class="card-body px-2">
|
|
@if (isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
|
|
@if (AllRecords == null || AllRecords.Count == 0)
|
|
{
|
|
<div class="alert alert-warning">No record to search</div>
|
|
}
|
|
else
|
|
{
|
|
if (string.IsNullOrEmpty(searchVal) && string.IsNullOrEmpty(LockId))
|
|
{
|
|
<div class="alert alert-info text-center mb-0">
|
|
<b>@AllRecords.Count</b> Records found
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
<tr>
|
|
<th>Prodotto</th>
|
|
<th>Licenza</th>
|
|
<th>Assistenza</th>
|
|
<th>Note</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="small">
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
string cssDef = item.IsDefinitiva ? "text-success" : "text-danger";
|
|
<tr>
|
|
<td>
|
|
<div class="d-flex justify-content-between small text-nowrap">
|
|
<div class="px-1">
|
|
<b>@item.ProdNav.ProductName</b>
|
|
</div>
|
|
<div class="px-1">
|
|
Vers: @item.ProductVersion
|
|
</div>
|
|
</div>
|
|
<div class="d-flex justify-content-between small text-nowrap @item.CssDefinitiva">
|
|
<div class="px-1">
|
|
Level: @item.ProductLevel
|
|
</div>
|
|
<div class="px-1">
|
|
D: @($"{item.ProductDeadline:yyyy.MM.dd}")
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="text-nowrap">
|
|
<button class="btn btn-sm btn-outline-primary" @onclick="() => ReportLockId(item.LockID)">
|
|
<div class="small">
|
|
@item.LockID
|
|
</div>
|
|
<small>
|
|
<i class="fas fa-angle-double-right"></i> @($"{item.Date:yyyy.MM.dd}") <i class="fas fa-angle-double-left"></i>
|
|
</small>
|
|
</button>
|
|
</td>
|
|
<td class="@item.CssScad">
|
|
<b>@($"{item.DtScadenza:yyyy.MM}")</b>
|
|
</td>
|
|
<td>@item.Note</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
}
|
|
</div>
|
|
<div class="card-footer">
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" />
|
|
</div>
|
|
</div>
|