|
|
|
|
@ -7,9 +7,46 @@
|
|
|
|
|
<PageTitle>Commesse</PageTitle>
|
|
|
|
|
<Breadcrumb Items="BreadcrumbList" />
|
|
|
|
|
|
|
|
|
|
<main role="main">
|
|
|
|
|
<div class="container-fluid h-100 mt-5">
|
|
|
|
|
<div class="row justify-content-start">
|
|
|
|
|
<div class="row row-cards">
|
|
|
|
|
<div class="col-auto ms-auto">
|
|
|
|
|
<div class="btn-list">
|
|
|
|
|
<a href="/commesse/Modifica" class="btn btn-primary btn-5 d-none d-sm-inline-block">
|
|
|
|
|
Nuova Commessa
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
|
<RadzenDataGrid @ref="commesseGrid" AllowFiltering="true" AllowColumnResize="true" AllowAlternatingRows="false" FilterMode="FilterMode.CheckBoxList" AllowSorting="true" PageSize="25"
|
|
|
|
|
AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true"
|
|
|
|
|
Data="@CommesseList" ColumnWidth="300px" LogicalFilterOperator="LogicalFilterOperator.Or" SelectionMode="DataGridSelectionMode.Single">
|
|
|
|
|
<Columns>
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.CodiceCommessa)" Title="NR Commessa" Width="160px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.RagioneSocialeCliente)" Title="Cliente" Width="160px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.ClienteId)" Title="Data Vis.Cliente" Width="200px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.RiferimentoCliente)" Title="Riferimento Cliente" Width="200px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.DataOrdine)" FormatString="dd/MM/yyyy" Title="Data ordine" Width="200px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.DataConsegnaPrevista)" FormatString="dd/MM/yyyy" Title="Data consegna effettiva" Width="200px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.DataConsegna)" FormatString="dd/MM/yyyy" Title="Data consegna richiesta" Width="200px" />
|
|
|
|
|
<RadzenDataGridColumn Property="@nameof(CommessaViewModel.Stato)" Title="Stato" Width="200px" />
|
|
|
|
|
</Columns>
|
|
|
|
|
</RadzenDataGrid>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
public List<BreadcrumbViewModel> BreadcrumbList { get; set; } = new();
|
|
|
|
|
public List<CommessaViewModel> CommesseList { get; set; } = new();
|
|
|
|
|
RadzenDataGrid<CommessaViewModel> commesseGrid;
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
|
{
|
|
|
|
|
@ -17,7 +54,9 @@
|
|
|
|
|
|
|
|
|
|
BreadcrumbList = await BreadcrumbUtils.BuildBreadcrumbByFeature(_managerService, "Commesse_Info");
|
|
|
|
|
|
|
|
|
|
CommesseList = (await _managerService.CommessaService.RicercaQueryable(x => x.Eliminato == false))
|
|
|
|
|
CommesseList = (await _managerService.CommessaService.RicercaQueryable(
|
|
|
|
|
x => x.Eliminato == false,
|
|
|
|
|
includi:x => x.Include(y => y.Cliente).ThenInclude(z => z.Comune).ThenInclude(w => w.ProvinciaIstat)))
|
|
|
|
|
.Select(x => (CommessaViewModel)x).ToList();
|
|
|
|
|
}
|
|
|
|
|
}
|