94 lines
4.7 KiB
Plaintext
94 lines
4.7 KiB
Plaintext
@inherits BaseComp
|
|
|
|
@if (isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<div class="card mb-1">
|
|
<div class="card-header bg-info bg-gradient bg-opacity-25 py-1 px-2">
|
|
<div @onclick="() => ToggleGruppo()" style="cursor: pointer;">
|
|
<div class="row w-100 g-1 align-items-center">
|
|
<div class="col-4 px-0 d-flex align-items-center">
|
|
<i class="bi @ToggleIcon"></i>
|
|
<strong>@CurrRec.BuyOrderCode</strong> <span class="badge rounded-pill bg-dark ms-2">@totalCount</span>
|
|
</div>
|
|
<div class="col-4 text-center">
|
|
@CurrRec.BuyOrderRowNav.First().ClassCode
|
|
</div>
|
|
<div class="col-4 px-0 d-flex justify-content-end 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 class="row w-100 g-1 mt-1 align-items-center">
|
|
<div class="col ps-3 pe-0 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-info bg-gradient bg-opacity-25 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>
|
|
</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>
|
|
} |