Ok verifica su num record TSC x creazione PODL

This commit is contained in:
Samuele Locatelli
2025-04-11 07:57:06 +02:00
parent e07b1d3ad2
commit 8e0407ae1b
3 changed files with 15 additions and 7 deletions
+3 -3
View File
@@ -18,14 +18,14 @@
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
@foreach (var record in ListRecScore)
{
<tr>
<td>@record.CodArtParent</td>
<td>@record.ChildFound</td>
<td>@record.ChildFound / @numRecWsm</td>
<td>@($"{record.TotalScore:P2}")</td>
<td>
@if (record.TotalScore == 1)
@if (record.TotalScore == 1 && numRecWsm == record.ChildFound)
{
<button @onclick="() => DoCreatePOdl(record)" class="btn btn-success btn-sm"><i class="fa-solid fa-plus"></i> Prom ODL</button>
}
+11 -3
View File
@@ -13,7 +13,9 @@ namespace MP.SPEC.Components.ProdKit
public string KeyFilt { get; set; } = "";
[Parameter]
public List<TksScoreModel> SearchRecord { get; set; } = new List<TksScoreModel>();
public List<TksScoreModel> AllRecTSM { get; set; } = new List<TksScoreModel>();
[Parameter]
public List<WipSetupKitModel> AllRecWSM { get; set; } = new List<WipSetupKitModel>();
#endregion Public Properties
@@ -38,7 +40,7 @@ namespace MP.SPEC.Components.ProdKit
#region Private Fields
private List<TksScoreModel> ListRecords = new List<TksScoreModel>();
private List<TksScoreModel> ListRecScore = new List<TksScoreModel>();
#endregion Private Fields
@@ -50,9 +52,15 @@ namespace MP.SPEC.Components.ProdKit
private void ReloadData()
{
ListRecords = SearchRecord.ToList();
ListRecScore = AllRecTSM.ToList();
numRecWsm = AllRecWSM.Count();
}
/// <summary>
/// Num record composizione kit...
/// </summary>
private int numRecWsm = 0;
#endregion Private Methods
}
}
+1 -1
View File
@@ -15,7 +15,7 @@
<KitComposer SearchRecords="@listWSM" KeyFilt="@keyFilt" EC_ListUpdated="ForceReloadData"></KitComposer>
</div>
<div class="col-12">
<KitVerify KeyFilt="@keyFilt" SearchRecord="@listTSM"></KitVerify>
<KitVerify KeyFilt="@keyFilt" AllRecTSM="@listTSM" AllRecWSM="@listWSM"></KitVerify>
</div>
<div class="col-12">
<GestKitPodl></GestKitPodl>