diff --git a/MP.SPEC/Components/ProdKit/GestKitPodl.razor.cs b/MP.SPEC/Components/ProdKit/GestKitPodl.razor.cs index be24963a..ec5cde61 100644 --- a/MP.SPEC/Components/ProdKit/GestKitPodl.razor.cs +++ b/MP.SPEC/Components/ProdKit/GestKitPodl.razor.cs @@ -7,12 +7,18 @@ namespace MP.SPEC.Components.ProdKit { public partial class GestKitPodl : ComponentBase, IDisposable { + #region Public Properties + + [Parameter] + public List SearchRecords { get; set; } = new List(); + + #endregion Public Properties + #region Public Methods public void Dispose() { EditRecord = null; - SearchRecords = null; ListRecords = null; GC.Collect(); } @@ -84,9 +90,8 @@ namespace MP.SPEC.Components.ProdKit return answ; } - /// - /// Verifica eliminabilità del record: se è avviato il PODL non è liminabile... + /// Verifica eliminabilit� del record: se � avviato il PODL non � liminabile... /// /// /// @@ -150,22 +155,6 @@ namespace MP.SPEC.Components.ProdKit } } -#if false - protected override void OnAfterRender(bool firstRender) - { - if (firstRender) - { - if (OptAdmKitEnabled) - { - doReset(); - } - } - //base.OnAfterRender(firstRender); - } -#endif - - - protected override void OnParametersSet() { ReloadData(); @@ -219,7 +208,6 @@ namespace MP.SPEC.Components.ProdKit private bool doSearchArt = false; private IstanzeKitModel? EditRecord = null; - private List? ListRecords; private int minChar = 2; @@ -244,7 +232,6 @@ namespace MP.SPEC.Components.ProdKit /// private string regExp_OK = "#ROK"; - private List? SearchRecords; #endregion Private Fields @@ -293,7 +280,6 @@ namespace MP.SPEC.Components.ProdKit private void ReloadData() { isLoading = true; - SearchRecords = MDService.IstKitFilt("", ""); totalCount = SearchRecords.Count; // conto i kit = distinct... kitCount = SearchRecords.GroupBy(x => x.CodArtParent).Count(); @@ -326,6 +312,5 @@ namespace MP.SPEC.Components.ProdKit } #endregion Private Methods - } } \ No newline at end of file diff --git a/MP.SPEC/Components/ProdKit/KitVerify.razor.cs b/MP.SPEC/Components/ProdKit/KitVerify.razor.cs index d1a29098..530fe1f3 100644 --- a/MP.SPEC/Components/ProdKit/KitVerify.razor.cs +++ b/MP.SPEC/Components/ProdKit/KitVerify.razor.cs @@ -58,6 +58,9 @@ namespace MP.SPEC.Components.ProdKit /// Record selezionato da generare x Assieme/KIT private async Task DoCreatePOdl(TksScoreModel currRec) { + if (!await JSRuntime.InvokeAsync("confirm", "Confermi di voler creare il PODL del KIT selezionato?")) + return; + // eseguo stored... bool fatto = MDService.IstKitInsertByWKS(currRec.CodArtParent, KeyFilt); if (fatto) diff --git a/MP.SPEC/Components/ProdKit/Manager.razor b/MP.SPEC/Components/ProdKit/Manager.razor index bce4f1cd..a88e9259 100644 --- a/MP.SPEC/Components/ProdKit/Manager.razor +++ b/MP.SPEC/Components/ProdKit/Manager.razor @@ -20,7 +20,7 @@ }
- +
} diff --git a/MP.SPEC/Components/ProdKit/Manager.razor.cs b/MP.SPEC/Components/ProdKit/Manager.razor.cs index c06aec67..3bbec384 100644 --- a/MP.SPEC/Components/ProdKit/Manager.razor.cs +++ b/MP.SPEC/Components/ProdKit/Manager.razor.cs @@ -87,6 +87,7 @@ namespace MP.SPEC.Components.ProdKit private List listPODL = new List(); private List listTSM = new List(); private List listWSM = new List(); + private List listIKP = new List(); private string padCodXdl = "00000"; #endregion Private Fields @@ -108,6 +109,7 @@ namespace MP.SPEC.Components.ProdKit listPODL = new List(); listWSM = MDService.WipKitFilt(keyFilt); listTSM = MDService.TksScore(keyFilt, 1000, true); + listIKP = MDService.IstKitFilt("", ""); // verifico se ho score 100%... var recMaxScore = listTSM .Where(x => x.TotalScore == 1)