diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 85b6abb4..5a64a5bd 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2505.714 + 6.16.2505.717 1800a78a-6ff1-40f9-b490-87fb8bfc1394 en diff --git a/MP.SPEC/Pages/KIT.razor b/MP.SPEC/Pages/KIT.razor index 068ddba4..2596ab1e 100644 --- a/MP.SPEC/Pages/KIT.razor +++ b/MP.SPEC/Pages/KIT.razor @@ -87,7 +87,14 @@
- + @if (enabFreeCodArt) + { + + } + else + { + + }
@@ -172,10 +179,10 @@ -
@record.CodArtParent
+ -
@record.CodArtChild
+
@record.Qty
diff --git a/MP.SPEC/Pages/KIT.razor.cs b/MP.SPEC/Pages/KIT.razor.cs index bbd982d5..b40dece1 100644 --- a/MP.SPEC/Pages/KIT.razor.cs +++ b/MP.SPEC/Pages/KIT.razor.cs @@ -22,6 +22,7 @@ namespace MP.SPEC.Pages #region Protected Fields + protected string CodAzienda = "***"; protected int kitCount = 0; protected int totalCount = 0; @@ -134,6 +135,7 @@ namespace MP.SPEC.Pages CodArtChild = "", Qty = 1 }; + SearchParent = codParent; await Task.Delay(1); } @@ -154,6 +156,7 @@ namespace MP.SPEC.Pages Qty = selRec.Qty }; EditRecord = newRec; + SearchParent = selRec.CodArtParent; await Task.Delay(1); } @@ -174,7 +177,23 @@ namespace MP.SPEC.Pages await Task.Delay(1); } - protected string CodAzienda = "***"; + /// + /// Imposta filtro CodArtChild da record + /// + /// + protected void DoFiltChild(TemplateKitModel selRec) + { + SearchChild = selRec.CodArtChild; + } + + /// + /// Imposta filtro CodArtParent da record + /// + /// + protected void DoFiltParent(TemplateKitModel selRec) + { + SearchParent = selRec.CodArtParent; + } protected async Task DoUpdate(TemplateKitModel selRec) { @@ -211,6 +230,11 @@ namespace MP.SPEC.Pages { bool.TryParse(rawVal, out enabKitSearch); } + rawVal = MDService.ConfigTryGet("SPEC_Kit_enabFreeCodArt"); + if (!string.IsNullOrEmpty(rawVal)) + { + bool.TryParse(rawVal, out enabFreeCodArt); + } } protected override void OnParametersSet() @@ -273,10 +297,14 @@ namespace MP.SPEC.Pages private TemplateKitModel? EditRecord = null; + /// + /// Abilita inserimento libero codice articolo + /// + private bool enabFreeCodArt = false; + private bool enabKitCount = false; private bool enabKitSearch = false; - private List? ListRecords; private int minChar = 2; diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 4b65a8d0..f9322d53 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2505.714

+

Versione: 6.16.2505.717


Note di rilascio: