101 lines
5.1 KiB
Plaintext
101 lines
5.1 KiB
Plaintext
@inherits BaseComp
|
|
|
|
@if (isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<div class="card mb-1">
|
|
<div class="card-header bg-primary bg-gradient bg-opacity-10 py-1 px-2">
|
|
<div class="row">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<div class="px-0 align-items-center" style="cursor: pointer;" @onclick="() => ToggleGruppo()">
|
|
<div class="px-0 d-flex align-items-center">
|
|
<i class="fs-3 bi @ToggleIcon pb-0 mb-0"></i>
|
|
<span class="border rounded-4 py-1 px-2 text-light bg-dark text-center mx-2" style="width: 2.5rem;">@totalCount</span>
|
|
<div class="px-0 fs-5"><strong>@CurrRec.BuyOrderCode</strong></div>
|
|
</div>
|
|
</div>
|
|
<div class="p-0 align-items-center">
|
|
<div class="text-center">
|
|
@CurrRec.BuyOrderRowNav.First().ClassCode
|
|
</div>
|
|
</div>
|
|
<div class="p-0 align-items-center">
|
|
<div class="px-0 align-items-center gap-2">
|
|
@CurrRec.Inserted
|
|
<div class="btn-group" role="group">
|
|
<a href="@(DownloadUrl(CurrRec.BuyOrderID))" title="@Traduci("fornitore_stampa")" @onclick:stopPropagation="true" target="_blank" class="btn btn-sm btn-primary">
|
|
<i class="fa-solid fa-print"></i>
|
|
</a>
|
|
<button class="btn btn-sm btn-primary" title="@Traduci("fornitore_selTemplate")" @onclick:stopPropagation="true" @onclick="() => SelectOptPrint(CurrRec.BuyOrderID)">
|
|
<i class="fa-solid fa-chevron-down small"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row ps-4 align-items-center">
|
|
<div class="input-group input-group-sm text-start">
|
|
@if (descriptEdit)
|
|
{
|
|
<button class="btn btn-sm btn-primary" @onclick:stopPropagation="true" @onclick="() => SaveEditDescript(CurrRec)"><i class="fa-solid fa-floppy-disk"></i></button>
|
|
<input type="text" class="form-control fs-6" @onclick:stopPropagation="true" @bind="@CurrRec.Description">
|
|
<button class="btn btn-sm btn-warning" @onclick:stopPropagation="true" @onclick="CancelEditDescript"><i class="fa-solid fa-ban"></i></button>
|
|
}
|
|
else
|
|
{
|
|
<div class="form-control bg-primary bg-gradient bg-opacity-10 fs-6">@CurrRec.Description</div>
|
|
<button class="btn btn-sm btn-primary" @onclick:stopPropagation="true" @onclick="SetEditDescript"><i class="fa-solid fa-pen"></i></button>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (showDetail)
|
|
{
|
|
<div class="card-body py-1 px-2">
|
|
<table class="table table-sm table-striped" >
|
|
<thead>
|
|
<tr>
|
|
<th class="hederTabCss text-start">Articolo</th>
|
|
@if (!CurrRec.BuyOrderRowNav.First().ClassCode.Equals("WindowHardware"))
|
|
{
|
|
<th class="col-5 text-start">@Traduci("descrizione")</th>
|
|
}
|
|
<th class="col-1 text-end">@Traduci("qty")</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody data-spy="scroll">
|
|
@foreach (var item in ListRecords)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item.ItemCode
|
|
</td>
|
|
@if (item.ItemNav != null)
|
|
{
|
|
<td>
|
|
<span>@item.ItemNav.Description</span>
|
|
</td>
|
|
}
|
|
<td class="text-end">@item.TotQty.ToString("N1")</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<div class="card-footer py-0 px-1">
|
|
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
}
|
|
@if (selectOptPrint)
|
|
{
|
|
<PrintModal url="@apiUrl" currId="@currId" repType="BuyOrder" EC_Close="ClosePrintModal"></PrintModal>
|
|
} |