- Tabella tempi (no logiche)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36915.13
|
||||
# Visual Studio Version 18
|
||||
VisualStudioVersion = 18.1.11304.174 d18.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TecniStamp", "TecniStamp\TecniStamp.csproj", "{CFA3D1CC-936B-4DF5-B2AE-A46A8616501A}"
|
||||
EndProject
|
||||
|
||||
55
TecniStamp/TecniStamp/Components/Pages/Tempi/Tempi.razor
Normal file
55
TecniStamp/TecniStamp/Components/Pages/Tempi/Tempi.razor
Normal file
@ -0,0 +1,55 @@
|
||||
@page "/tempi"
|
||||
@using Microsoft.EntityFrameworkCore
|
||||
@using TecniStamp.Model.Tempi
|
||||
@using TecniStamp.Model.Common
|
||||
@using TecniStamp.Utils
|
||||
|
||||
@rendermode InteractiveServer
|
||||
@inject AuthenticationStateProvider auth
|
||||
|
||||
<PageTitle>Tempi</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-lg-12">
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<RadzenDataGrid @ref="tempiGrid" AllowFiltering="true" AllowColumnResize="true" AllowAlternatingRows="false" FilterMode="FilterMode.CheckBoxList" AllowSorting="true" PageSize="25"
|
||||
AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true"
|
||||
Data="@tempi" ColumnWidth="300px" LogicalFilterOperator="LogicalFilterOperator.Or" SelectionMode="DataGridSelectionMode.Single">
|
||||
<Columns>
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.Operatore)" Title="Operatore" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.Commessa)" Title="Commessa" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.Prodotto)" Title="Prodotto" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.Lavorazione)" Title="Lavorazione" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.DataInizio)" Title="Data Inizio" FormatString="{0:dd/MM/yyyy HH:mm}" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.DataFine)" Title="Data Fine" FormatString="{0:dd/MM/yyyy HH:mm}" Width="160px" />
|
||||
<RadzenDataGridColumn Property="@nameof(TempiViewModel.TempoTotale)" Title="Tempo Totale" Width="160px" />
|
||||
</Columns>
|
||||
</RadzenDataGrid>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@code {
|
||||
List<TempiViewModel> tempi;
|
||||
RadzenDataGrid<TempiViewModel> tempiGrid;
|
||||
public List<BreadcrumbViewModel> BreadcrumbList { get; set; } = new();
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await base.OnInitializedAsync();
|
||||
|
||||
|
||||
|
||||
BreadcrumbList = await BreadcrumbUtils.BuildBreadcrumbByFeature(_managerService, "Tempi_Info");
|
||||
}
|
||||
|
||||
}
|
||||
17
TecniStamp/TecniStamp/Model/Tempi/TempiViewModel.cs
Normal file
17
TecniStamp/TecniStamp/Model/Tempi/TempiViewModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using TecniStamp.Model.Commesse;
|
||||
|
||||
namespace TecniStamp.Model.Tempi;
|
||||
|
||||
public class TempiViewModel
|
||||
{
|
||||
public string Operatore { get; set; }
|
||||
public string Commessa { get; set; }
|
||||
public string Prodotto { get; set; }
|
||||
public string Lavorazione { get; set; }
|
||||
public DateTime DataInizio { get; set; }
|
||||
public DateTime DataFine { get; set; }
|
||||
public decimal TempoTotale { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user