commit merge
This commit is contained in:
@ -0,0 +1,7 @@
|
|||||||
|
@page "/anagrafiche/clienti"
|
||||||
|
|
||||||
|
<PageTitle>Clienti</PageTitle>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
@page "/anagrafiche/lavorazioni"
|
||||||
|
|
||||||
|
<PageTitle>Lavorazioni</PageTitle>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
|
||||||
|
}
|
||||||
@ -7,9 +7,46 @@
|
|||||||
<PageTitle>Commesse</PageTitle>
|
<PageTitle>Commesse</PageTitle>
|
||||||
<Breadcrumb Items="BreadcrumbList" />
|
<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 {
|
@code {
|
||||||
public List<BreadcrumbViewModel> BreadcrumbList { get; set; } = new();
|
public List<BreadcrumbViewModel> BreadcrumbList { get; set; } = new();
|
||||||
public List<CommessaViewModel> CommesseList { get; set; } = new();
|
public List<CommessaViewModel> CommesseList { get; set; } = new();
|
||||||
|
RadzenDataGrid<CommessaViewModel> commesseGrid;
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
@ -17,7 +54,9 @@
|
|||||||
|
|
||||||
BreadcrumbList = await BreadcrumbUtils.BuildBreadcrumbByFeature(_managerService, "Commesse_Info");
|
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();
|
.Select(x => (CommessaViewModel)x).ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15,6 +15,8 @@ public class CommessaViewModel : BaseViewModel
|
|||||||
public DateTime DataConsegnaPrevista { get; set; }
|
public DateTime DataConsegnaPrevista { get; set; }
|
||||||
public DateTime DataConsegna { get; set; }
|
public DateTime DataConsegna { get; set; }
|
||||||
public CommessaStato Stato { get; set; }
|
public CommessaStato Stato { get; set; }
|
||||||
|
|
||||||
|
public string RagioneSocialeCliente => Cliente?.RagioneSociale ?? string.Empty;
|
||||||
|
|
||||||
public override void Validate()
|
public override void Validate()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,4 +17,8 @@
|
|||||||
<ProjectReference Include="..\TecniStamp.Service\TecniStamp.Service.csproj" />
|
<ProjectReference Include="..\TecniStamp.Service\TecniStamp.Service.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Components\Pages\Clienti\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user