SPEC: update dotnet8 (parziale...)
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="px-0 align-content-center d-flex justify-content-end">
|
||||
<small class="fs-5">Edit Massivo Fermi</small>
|
||||
</div> *@
|
||||
<div class="px-0 align-content-center d-flex justify-content-end">
|
||||
<button class="btn btn-primary" @onclick="RaiseRefresh"><i class="fa-solid fa-arrow-rotate-right"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
@@ -8,12 +8,14 @@ namespace MP.SPEC.Components.Fermate
|
||||
#region Public Properties
|
||||
|
||||
[Parameter]
|
||||
public List<MappaStatoExplModel> ListMSE { get; set; } = null!;
|
||||
|
||||
public EventCallback<bool> EC_ReqRefresh { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public EventCallback<List<string>> EC_Selected { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public List<MappaStatoExplModel> ListMSE { get; set; } = null!;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
@@ -89,6 +91,15 @@ namespace MP.SPEC.Components.Fermate
|
||||
await ReloadData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Richiesta update
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task RaiseRefresh()
|
||||
{
|
||||
await EC_ReqRefresh.InvokeAsync(true);
|
||||
}
|
||||
|
||||
protected async Task SetNumRec(int newNum)
|
||||
{
|
||||
numRecord = newNum;
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
|
||||
<PackageReference Include="Blazored.SessionStorage" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="6.0.36" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.36" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="8.0.24" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components" Version="8.0.24" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog.Targets.OpenTelemetryProtocol" Version="1.2.6" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.14" />
|
||||
@@ -52,7 +52,7 @@
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.15.0" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.SqlClient" Version="1.15.0" />
|
||||
<PackageReference Include="OpenTelemetry.Instrumentation.StackExchangeRedis" Version="1.15.0-beta.1" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="6.0.1" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<ListMacc ListMSE="CurrMSE" EC_Selected="CheckSelection"></ListMacc>
|
||||
<ListMacc ListMSE="CurrMSE" EC_Selected="CheckSelection" EC_ReqRefresh="DoReload"></ListMacc>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
@if (showFermate)
|
||||
|
||||
@@ -25,6 +25,9 @@ namespace MP.SPEC.Pages
|
||||
[Inject]
|
||||
protected SharedMemService SMServ { get; set; } = null!;
|
||||
|
||||
[Inject]
|
||||
protected TabDataService TabDServ { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
@@ -59,6 +62,11 @@ namespace MP.SPEC.Pages
|
||||
showFermate = listSelezione.Count > 0;
|
||||
}
|
||||
|
||||
private async Task DoReload(bool forceReload)
|
||||
{
|
||||
CurrMSE = await MDService.MseGetAll(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gestione selezione evento da registrare x le macchine selezionate
|
||||
/// </summary>
|
||||
@@ -81,22 +89,22 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
var rigaStato = MDService.StatoMacchina(idxMacc);
|
||||
// processo evento...
|
||||
|
||||
DateTime adesso = DateTime.Now.Floor(TimeSpan.FromSeconds(1));
|
||||
EventListModel newRec = new EventListModel()
|
||||
{
|
||||
IdxMacchina = idxMacc,
|
||||
InizioStato = adesso,
|
||||
IdxTipo = selEv.IdxEv,
|
||||
CodArticolo = rigaStato.CodArticolo,
|
||||
Value = "DRT",
|
||||
MatrOpr = 1, // rivedere!!!
|
||||
pallet = rigaStato.pallet
|
||||
};
|
||||
// FORZO con metodo TAB
|
||||
await TabDServ.EvListInsert(newRec, tipoInputEvento.barcode);
|
||||
// resetta il microstato in modo da ricevere successive info HW
|
||||
await TabDServ.resetMicrostatoMacchina(idxMacc);
|
||||
|
||||
DateTime adesso = DateTime.Now.Floor(TimeSpan.FromSeconds(1));
|
||||
EventListModel newRec = new EventListModel()
|
||||
{
|
||||
IdxMacchina = idxMacc,
|
||||
InizioStato = adesso,
|
||||
IdxTipo = selEv.IdxEv,
|
||||
CodArticolo = rigaStato.CodArticolo,
|
||||
Value = "DRT",
|
||||
MatrOpr = 1, // rivedere!!!
|
||||
pallet = rigaStato.pallet
|
||||
};
|
||||
// FORZO con metodo TAB
|
||||
await TabDServ.EvListInsert(newRec, tipoInputEvento.barcode);
|
||||
// resetta il microstato in modo da ricevere successive info HW
|
||||
await TabDServ.resetMicrostatoMacchina(idxMacc);
|
||||
}
|
||||
|
||||
var ListMSE = await MDService.MseGetAll(true);
|
||||
@@ -106,8 +114,6 @@ namespace MP.SPEC.Pages
|
||||
}
|
||||
}
|
||||
|
||||
[Inject]
|
||||
protected TabDataService TabDServ { get; set; } = null!;
|
||||
private async Task ReloadData()
|
||||
{
|
||||
CurrMSE = await MDService.MseGetAll(false);
|
||||
|
||||
Reference in New Issue
Block a user