Ok verifica su num record TSC x creazione PODL
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user