From 8e0407ae1bc19507ac444d2a195afb5da8f83dee Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 11 Apr 2025 07:57:06 +0200 Subject: [PATCH] Ok verifica su num record TSC x creazione PODL --- MP.SPEC/Components/ProdKit/KitVerify.razor | 6 +++--- MP.SPEC/Components/ProdKit/KitVerify.razor.cs | 14 +++++++++++--- MP.SPEC/Components/ProdKit/Manager.razor | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/MP.SPEC/Components/ProdKit/KitVerify.razor b/MP.SPEC/Components/ProdKit/KitVerify.razor index 2b9187b3..242d0b67 100644 --- a/MP.SPEC/Components/ProdKit/KitVerify.razor +++ b/MP.SPEC/Components/ProdKit/KitVerify.razor @@ -18,14 +18,14 @@ - @foreach (var record in ListRecords) + @foreach (var record in ListRecScore) { @record.CodArtParent - @record.ChildFound + @record.ChildFound / @numRecWsm @($"{record.TotalScore:P2}") - @if (record.TotalScore == 1) + @if (record.TotalScore == 1 && numRecWsm == record.ChildFound) { } diff --git a/MP.SPEC/Components/ProdKit/KitVerify.razor.cs b/MP.SPEC/Components/ProdKit/KitVerify.razor.cs index bb5b5185..67cae1cb 100644 --- a/MP.SPEC/Components/ProdKit/KitVerify.razor.cs +++ b/MP.SPEC/Components/ProdKit/KitVerify.razor.cs @@ -13,7 +13,9 @@ namespace MP.SPEC.Components.ProdKit public string KeyFilt { get; set; } = ""; [Parameter] - public List SearchRecord { get; set; } = new List(); + public List AllRecTSM { get; set; } = new List(); + [Parameter] + public List AllRecWSM { get; set; } = new List(); #endregion Public Properties @@ -38,7 +40,7 @@ namespace MP.SPEC.Components.ProdKit #region Private Fields - private List ListRecords = new List(); + private List ListRecScore = new List(); #endregion Private Fields @@ -50,9 +52,15 @@ namespace MP.SPEC.Components.ProdKit private void ReloadData() { - ListRecords = SearchRecord.ToList(); + ListRecScore = AllRecTSM.ToList(); + numRecWsm = AllRecWSM.Count(); } + /// + /// Num record composizione kit... + /// + private int numRecWsm = 0; + #endregion Private Methods } } \ No newline at end of file diff --git a/MP.SPEC/Components/ProdKit/Manager.razor b/MP.SPEC/Components/ProdKit/Manager.razor index 7f0f7642..3058eebb 100644 --- a/MP.SPEC/Components/ProdKit/Manager.razor +++ b/MP.SPEC/Components/ProdKit/Manager.razor @@ -15,7 +15,7 @@
- +